body {
    background-color: #e4cce4;
    font-family: "DM Sans", sans-serif;
    font-weight: 200;
    color: #b66cd1;
    min-height: 100vh;
}

h1 {
    font-weight: 900;
    text-align: center;
    font-size: 2.5em;
    margin: 20px 0;
}

#headerinfo {
    border: 2px solid #82349f;
    border-radius: 5px;
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    text-align: center;
}

.userinfo {
    font-size: 1.2em;
}

@media (max-width: 600px) {
    #headerinfo {
        flex-direction: column;
        padding: 1rem;
    }

    .userinfo {
        margin: 0;
        line-height: 1.1;
    }
}

.instruction {
    font-style: italic;
    text-align: center;
}

.master-gain-container {
    max-width: 600px;
    margin: 15px auto 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.master-gain-container label {
    min-width: 120px;
    font-weight: 600;
    font-size: 1.1em;
}

.sliders {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.buttons-container {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.visualizer-container {
    flex: 1;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.visualizer-container fieldset {
    border: none;
    padding: 0;
    margin: 10px 0;
    display: inline-flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.visualizer-container input[type="radio"] {
    display: none;
}

.visualizer-container label {
    padding: 8px 20px;
    margin: 0;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 500;
    opacity: 0.5;
}

.visualizer-container input[type="radio"]:checked + label {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    color: #000000;
}

#visualizer {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    flex: 1;
    border-radius: 30px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.slider-row label {
    min-width: 100px;
    font-weight: 600;
}

.harmonics {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 15px;
}

.harmonics .slider-row label {
    min-width: 40px;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b66cd1;
    cursor: pointer;
    margin-top: -5px;
}

input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
}

input[type="range"]::-moz-range-progress {
    height: 8px;
    border-radius: 5px;
    background: #ff69b4;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b66cd1;
    cursor: pointer;
    border: none;
    margin-top: 0;
}

.controls {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

button {
    width: 110px;
    height: 110px;
    border-radius: 100%;
    margin: 10px;
    border: none;
    cursor: pointer;

    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 1000;
    color: #160e3a;
    text-align: center;

    background: radial-gradient(
        #ffffff,
        #ffffff,
        #fff5f8,
        #ffebf0,
        #ffe0e8,
        #ffd5e0
    );

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0.4rem;
    white-space: normal;
    line-height: 1.1;
    word-break: break-word;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition: all 200ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    filter: brightness(2);
    transform: scale(0.8);
}

button.playing {
    filter: brightness(1.3);
    box-shadow: 0 0 25px rgba(255, 182, 193, 0.8),
                0 0 50px rgba(255, 182, 193, 0.5),
                0 4px 20px rgba(255, 105, 180, 0.3);
    transform: scale(1.08);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { filter: brightness(1.3); }
    50% { filter: brightness(1.5); }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }

    .application {
        padding: 10px;
    }

    .master-gain-container {
        max-width: 100%;
        margin: 10px auto;
        padding: 10px 15px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .master-gain-container label {
        min-width: auto;
        font-size: 1em;
        text-align: center;
    }

    .buttons-container {
        padding: 15px 0;
    }

    .controls {
        padding: 5px;
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    button {
        width: 70px;
        height: 70px;
        margin: 5px 3px;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        flex-shrink: 0;
    }

    .sliders {
        max-width: 100%;
        padding: 10px 15px;
    }

    .slider-row {
        gap: 10px;
        margin: 8px 0;
    }

    .slider-row label {
        min-width: 80px;
        font-size: 0.95em;
    }

    .harmonics .slider-row label {
        min-width: 35px;
    }

    input[type="range"] {
        height: 12px;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        margin-top: -6px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .master-gain-container {
        max-width: 90%;
    }

    .sliders {
        max-width: 90%;
    }

    button {
        width: 100px;
        height: 100px;
        margin: 8px;
    }
}

/* Desktop Large Screens */
@media (min-width: 1025px) {
    .application {
        max-width: 1200px;
        margin: 0 auto;
    }
}