/* Google Chrome Dino Game - CSS Styles */

/* 1. Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(180deg, #ffcdd2 0%, #e1bee7 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #880e4f;
    overflow: hidden;
}

/* 2. Game Container */
#game-container {
    position: relative;
    width: 800px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.4);
    /* Glass styling */
    backdrop-filter: blur(5px);
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #ab47bc;
    /* Purple ground line */
}

/* 3. Canvas Styling */
#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* 4. Score Board Styling */
#score-board {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    user-select: none;
    z-index: 10;
    text-shadow: 2px 2px 0px #fff;
    /* Cute text shadow */
}

#score {
    margin-right: 15px;
}

#high-score {
    color: #ab47bc;
}

/* 5. Overlays (Start Screen & Game Over) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.6);
    /* Soft glass overlay */
    backdrop-filter: blur(2px);
    z-index: 20;
    text-align: center;
    border-radius: 20px;
}

.overlay h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e91e63;
    text-shadow: 3px 3px 0px #fff;
}

.overlay p {
    font-size: 24px;
    color: #880e4f;
    background: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: blink 1.5s infinite;
}

/* 6. Utility Classes */
.hidden {
    display: none !important;
}



/* 7. Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 820px) {
    #game-container {
        width: 95%;
        height: auto;
        aspect-ratio: 4 / 1;
    }

    .overlay h1 {
        font-size: 24px;
    }

    .overlay p {
        font-size: 14px;
    }

    #score-board {
        font-size: 16px;
    }
}