@font-face {
    font-family: 'VtuberFont';
    src: url('assets/vtuber.ttf') format('truetype');
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f0f2f5;
    box-sizing: border-box;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

input {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

input[type="range"] {
    width: 100%;  /* Pastikan slider mengisi lebar kontainer */
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #4299e1;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3182ce;
    border: none;
    cursor: pointer;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-moz-range-track {
    height: 6px;
    background: #4299e1;
    border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3182ce;
    border: none;
    cursor: pointer;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

button {
    background-color: #4299e1;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

button:hover {
    background-color: #3182ce;
}

#logoPreview {
    margin-top: 2rem;
    text-align: center;
}

canvas {
    max-width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
}

#letterColors {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
}

.letter-color {
    display: inline-block;
    margin: 0.5rem;
    text-align: center;
}

.letter-color label {
    display: block;
    margin-bottom: 0.25rem;
}

.letter-color input[type="color"] {
    width: 50px;
    height: 50px;
    padding: 0;
}

.letter-color input[type="text"] {
    width: 70px;
    margin-top: 0.5rem;
    padding: 0.25rem;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    input, button {
        font-size: 0.875rem;
    }

    .controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    button {
        width: 100%;
        padding: 0.75rem;
    }

    #letterColors {
        margin-top: 1rem;
    }

    .letter-color input[type="color"] {
        width: 40px;
        height: 40px;
    }

    .letter-color input[type="text"] {
        width: 60px;
    }

    canvas {
        max-width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    button {
        padding: 1rem;
        font-size: 1rem;
    }
}