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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c1445 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.3);
    background: #000;
}

#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, #001122 0%, #003366 50%, #001122 100%);
    border: 2px solid #0066cc;
}

/* Move score-display above the canvas */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px;
    pointer-events: none;
}

.score-display {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35); /* More transparent */
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 150, 255, 0.3);
    margin-bottom: 20px;
}

.score-display div {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.8);
}

.crystal-count {
    color: #ff69b4;
}

.light-level {
    color: #ffff00;
}

.time {
    color: #00ff88;
}

.game-message {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(0, 150, 255, 0.5);
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
    display: none;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 150, 255, 0.3);
    pointer-events: auto;
}

.controls p {
    margin-bottom: 15px;
    color: #00ccff;
    font-size: 16px;
}

button {
    background: linear-gradient(45deg, #0066cc, #0099ff);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.3);
    margin: 0 10px;
}

button:hover {
    background: linear-gradient(45deg, #0099ff, #00ccff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 255, 0.5);
}

button:active {
    transform: translateY(0);
}

/* Glow effects for crystals */
@keyframes crystalGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px currentColor); }
    50% { filter: brightness(1.3) drop-shadow(0 0 15px currentColor); }
}

/* Fish swimming animation */
@keyframes fishSwim {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Light fade animation */
@keyframes lightFade {
    0% { opacity: 1; }
    100% { opacity: 0.3; }
} 

@media (max-width: 1300px) {
    .ui-overlay {
        top: -90px;
    }
}

@media (max-width: 900px) {
    .ui-overlay {
        top: -110px;
    }
} 