* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Space Mono', monospace;
    background-color: #000;
    color: #fff;
}

#container {
    position: relative;
    width: 100%;
    height: 100%;
}

#game-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000011; /* Add a fallback background color */
}

#game-canvas canvas {
    display: block; /* Ensure canvas renders properly */
    width: 100%; 
    height: 100%;
}

#controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.slider-container {
    width: calc(33.33% - 10px);
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5));
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    height: 18px;
    width: 18px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .slider-container {
        width: 100%;
    }
    
    #controls {
        width: 90%;
        bottom: 10px;
    }
}

#play-music-button {
    position: fixed;
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 1.5em;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.7;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#play-music-button:hover {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

@keyframes hop {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.4); }
    100% { transform: translateY(0) scale(1); }
}

.attention-hop {
    animation: hop 0.8s ease-in-out;
    opacity: 1 !important;
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.9);
}

/* Notification that appears in the center */
#music-notification {
    position: fixed;
    bottom: 90px; /* Position it above the sliders */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.2em;
    z-index: 1010;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none; /* Ensures it doesn't interfere with clicking */
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation hint for zoom/rotation */
#navigation-hint {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1em;
    z-index: 1010;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    text-align: right;
    max-width: 250px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Title and subtitle styling */
#title {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInTitle 2s ease forwards;
}

#subtitle {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSubtitle 2s ease 0.5s forwards;
}

@keyframes fadeInTitle {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes fadeInSubtitle {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0.6;
        transform: translateY(0);
    }
} 