html {
    font-size: 16px;
}

body {
    padding: 0;
    margin: 0;
    background-color: #0C131D;
    color: wheat;
    max-width: 1024px;
    margin: auto;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: yellowgreen;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    color: goldenrod;
    text-decoration: underline;
}

a:active {
    color: #ff4040;
}

a:visited {
    color: #90ee90;
}

a:focus {
    outline: 2px solid yellowgreen;
    outline-offset: 2px;
}

.section {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.game-name {
    color: goldenrod;
    font-weight: bold;
}

.mode-name {
    color: goldenrod;
    font-weight: bold;
}

.warning {
    color: tomato;
    font-size: 1.5rem;
}

#play-link {
    width: 65%;
    margin: auto;
    text-align: center;
}

#play-link a {
    font-size: 3rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

#play-link a:hover {
    background-color: rgba(218, 165, 32, 0.2);
}

#play-link a:active {
    background-color: rgba(255, 64, 64, 0.3);
}

#play-link a:focus {
    outline: 3px solid yellowgreen;
}

#head-img {
    width: 100%;
    display: block;
}

#description {
    padding: 1.25rem;
}

#example-gameplay {
    padding: 1.25rem;
}

#example-gameplay video {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(63, 77, 36, 0.3);
}

#example-gameplay video:focus {
    outline: 3px solid yellowgreen;
    outline-offset: 2px;
}

#old-man-img {
    width: 19rem;
    flex-shrink: 0;
}


#rifle-vs-meteor,
#texting-during-apocalypse {
    width: 15rem;
    flex-shrink: 0;
}

#rifle-vs-meteor {
    order: 1;
}

#foot-img {
    width: 100%;
    display: block;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
        align-items: center;
    }

    #play-link {
        width: 80%;
    }

    #old-man-img,
    #rifle-vs-meteor,
    #texting-during-apocalypse {
        width: 100%;
        max-width: 18.75rem;
    }

    #rifle-vs-meteor {
        order: 0;
    }
}
