article > h2:not(article:first-child h2) {
    margin-top: .75em;
}

article > h2 {
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: .25em;
}

.game-header {
    padding-inline: .25em;
    padding-block: .5em;
    display: flex;
    align-items: center;
    justify-content: end;
}

.game-header .play-icon {
    color: green;
    margin-left: .1em;
    rotate: 90deg;
}

.game-header .source-code-icon {
    color: rgb(140, 144, 161);
    margin-left: .25em;
}

.game-header .first-new-tab-icon {
    margin-right: 1em;
}

.game-header .new-tab-icon {
    padding-top: .5em;
    padding-right: .5em;
    rotate: 135deg;
}

hr {
    margin-top: 2em;
}

#spaceship-survival-article {
    container-type: inline-size;
}

iframe, .iframe-replacement {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 3/4;
}

.page-not-responsive {
    display: none;
}

.iframe-replacement {
    display: block;
    outline: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.game-header {
    text-align: right;
}

@media (min-width: 800px) {
    iframe, .iframe-replacement {
        aspect-ratio: 16/9;
    }
}

@container (width >= 800px) {
    .iframe-replacement {
        display: none;
    }

    .page-not-responsive {
        display: block;
    }
}

footer p {
    text-align: center;
    font-size: 1rem;
    margin-top: 2em;
    margin-inline: auto;
}
