* {
    box-sizing:border-box;
}
body {
    background: black;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 352px;
    height: 198px;
    margin: 0 auto;
    /* scales game container by 2x and then shifts it
    down 50% of game container height*/
    transform: scale(3) translateY(50%) translateX(30%);
}
/* evenly multiplies pixels so graphics are enhanced*/
.game-container canvas {
    image-render: pixelated;
}

/* Base styles for screens */
.TitleScreen, .GameOverScreen, .HelpScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Animated logo */
.animated-logo {
    width: 75vw;
    max-width: 600px;
    height: auto;
    display: block;
    margin-bottom: 20px;
    animation: float 2s infinite ease-in-out, flicker 1.5s infinite ease-in-out;
}

/* Float animation for logo */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Flicker effect for logo */
@keyframes flicker {
    0% { opacity: 0.8; filter: brightness(1); }
    20% { opacity: 1; filter: brightness(1.2); }
    40% { opacity: 0.9; filter: brightness(1); }
    60% { opacity: 1; filter: brightness(1.3); }
    80% { opacity: 0.95; filter: brightness(1); }
    100% { opacity: 1; filter: brightness(1.1); }
}

/* Options list styling */
.options {
    font-size: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Option button styling */
.option {
    cursor: pointer;
    padding: 12px 24px;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* Selected option styling */
.option.selected {
    background: rgb(255, 217, 0);
    color: black;
    font-weight: bold;
    transform: scale(1.1);
}

/* Instructions text styling */
.instructions {
    font-size: 18px;
    color: gray;
    margin-top: 20px;
    font-style: italic;
}

/* Game over screen */
.GameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Game over option styling */
.option {
    font-size: 22px;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

/* Selected game over option styling */
.option.selected {
    background: rgb(255, 255, 255);
    color: black;
    font-weight: bold;
    transform: scale(1.1);
}

/* Game over instruction text styling */
.instruction-text {
    font-size: 14px;
    color: white;
    margin-top: 10px;
}

.HelpScreen {
    /* Help screen image styling */

    .help-image {
        width: 80vw;
        max-width: 700px;
        height: auto;
        display: block;
        margin-bottom: 20px;
        animation: fadeIn 0.5s ease-in-out;
    }

    /* Fade-in animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    /* Help screen instruction text */

    .help-instruction-text {
        font-size: 18px;
        color: gray;
        margin-top: 15px;
        font-style: italic;
    }
}