html, body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

#quote {
    text-align: center;
    font-size: 1.6rem;
    max-width: 90%;
    padding: 1rem;
    z-index: 2;
}

#version {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    font-family: monospace;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1002 !important;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    touch-action: none;
}

#nowPlaying {
    display: none;
}

#musicContainer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    text-align: center;
    z-index: 2;
}

#songTitle {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    font-family: monospace;
    margin-bottom: 0.5rem;
}

#songArtist {
    font-size: 1.1rem;
    color: white;
    font-family: monospace;
    margin-bottom: 1rem;
    opacity: 0.7;
}

#musicBar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.05);
}

#volumeContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    margin-top: 0.5rem;
}

#volumeLabel {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: monospace;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.volume-slider {
    width: 140px;
    height: 6px;
    background: rgba(100, 150, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

#volumeValue {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: monospace;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* Hamburger Menu Styles */
#effectsMenu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 300px !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    padding: 20px !important;
    transition: transform 0.3s ease !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    transform: translateX(100%) !important;
    backdrop-filter: blur(10px) !important;
    display: block !important;
}

#effectsMenu.active {
    transform: translateX(0) !important;
}

.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px;
    backdrop-filter: blur(5px);
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.effect-toggle {
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    transition: background-color 0.2s;
}

.effect-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.effect-toggle label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.effect-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 45px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.effect-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: white;
    transition: transform 0.3s, background-color 0.3s;
}

.effect-toggle input[type="checkbox"]:checked {
    background: rgba(100, 255, 150, 0.5);
}

.effect-toggle input[type="checkbox"]:checked::before {
    transform: translateX(21px);
    background: rgb(100, 255, 150);
}

.menu-header {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

/* Landscape Orientation Styles */
@media (orientation: landscape) {
    #quote {
        font-size: 1.2rem;
        max-width: 70%;
        padding: 0.5rem;
    }

    #musicContainer {
        bottom: 1rem;
    }

    /* Ensure hamburger menu styles in landscape */
    #effectsMenu {
        width: 250px !important;
    }

    .hamburger-btn {
        display: flex !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        width: 35px !important;
        height: 35px !important;
        z-index: 1001 !important;
    }

    .effect-toggle {
        margin: 8px 0;
        padding: 8px 12px;
        width: 100% !important;
        display: flex !important;
    }

    .menu-header {
        font-size: 1.2rem;
        margin-bottom: 20px;
        text-align: center !important;
        display: block !important;
    }

    #songTitle {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    #songArtist {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    #musicBar {
        gap: 1rem;
        padding: 0.5rem 1rem;
        margin-bottom: 0.8rem;
    }

    .control-btn {
        font-size: 1.6rem;
        padding: 8px 10px;
        min-width: 40px;
        min-height: 40px;
    }

    #volumeContainer {
        padding: 8px 16px;
        margin-top: 0.3rem;
    }

    .volume-slider {
        width: 120px;
        height: 5px;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    .volume-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
}

/* Additional landscape adjustments for very short heights */
@media (orientation: landscape) and (max-height: 400px) {
    #quote {
        font-size: 1rem;
        max-width: 60%;
    }

    #musicContainer {
        bottom: 0.5rem;
    }

    #effectsMenu {
        /* Keep the same mobile menu style but adjust size */
        width: 220px;
    }

    .effect-toggle {
        margin: 4px 0;
        padding: 6px 10px;
    }

    .menu-header {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
}
