body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: wheat;
    margin: 0;
    color: #1e293b;
    gap: 15px;
}

h1.tittle {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.character-container {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 8px 8px 6px rgb(24 22 22 / 46%);
    overflow: hidden;
    transition: transform 0.2s ease;
    border: 10px solid #4d4d4d;
}

.character-container:hover {
    transform: translateY(-4px);
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.background { z-index: 1; }
.base-body { z-index: 2; }
.eyes { z-index: 3; }
.eyebrows { z-index: 4; }
.mustache { z-index: 5; }
.head-accessory { z-index: 6; }
.eye-accessory { z-index: 7; }

.controls {
    background-color: #4d4d4d;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    gap: 8px;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
/* WebKit (Chrome, Safari, Edge) scrollbar styles */
.controls::-webkit-scrollbar {
    width: 18px; /* Scrollbar width */
}

.controls::-webkit-scrollbar-track {
    background: #4d4d4d; /* Track color matches control-group background */
    border-radius: 12px;
}

.controls::-webkit-scrollbar-thumb {
    background: wheat; /* Slider button color */
    border-radius: 12px;
    border: 2px solid #4d4d4d; /* Optional: border for better contrast */
}

.controls::-webkit-scrollbar-thumb:hover {
    background: #f5deb3; /* Slightly darker wheat on hover */
}

/* Firefox scrollbar styles */
.controls {
    scrollbar-width:inherit; /* Thin scrollbar */
    scrollbar-color: wheat #4d4d4d; /* Thumb wheat, track matches control-group */
}

.control-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: #4d4d4d;
    color: wheat;
    border: 1px solid wheat;
    border-radius: 12px;
}

.separator {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    justify-content: space-around;
}
.label-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 50%;
    gap: 15px;
    flex-shrink: 0;
}
.cycle-separator {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.control-group span {
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    min-width: 100px;
}
.control-group button {
	flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-pickers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap; 
    flex-grow: 1; 
    min-width: 0;
}
.picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100px;
  height: 100px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.picker::-webkit-color-swatch {
  border-radius: 15px;
  border: none;
}
.picker::-moz-color-swatch {
  border-radius: 15px;
  border: none;
}
.button {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4d4d4d;
    background-color: #f5deb3;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.button:hover {
    background-color: #f5deb3b6;
}

.button:active {
    transform: scale(0.98);
}

.donate-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #f59e0b;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.donate-button:hover {
    background-color: #d97706;
}

.donate-button:active {
    transform: scale(0.98);
}

input[type="color"] {
    width: 36px;
    height: 36px;
    padding: 2px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

input[type="color"]:hover {
    border-color: #3b82f6;
}

.download-options {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 8px;
}

select {
    padding: 8px 12px;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

select:hover {
    border-color: #3b82f6;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    h1.tittle {
        font-size: 1.5rem;
    }

    .character-container {
        width: 80vw;
        height: 80vw;
        max-width: 300px;
        max-height: 300px;
    }

    .controls {
        width: 90%;
        max-width: 100%;
        padding: 16px;
    }

    .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .control-group span {
        font-size: 0.9rem;
    }

    button, .donate-button, select {
        padding: 10px;
        font-size: 0.9rem;
        width: 100%;
    }

    input[type="color"] {
        width: 32px;
        height: 32px;
    }

    .download-options {
        flex-direction: column;
        gap: 8px;
    }

    select {
        width: 100%;
    }
}
.btn {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn :hover{
    background-color: #a3171780;
}
.download {
    color: #f5deb3;
    background-color: #4d4d4d;
}