html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7f9;
    color: #222;
    margin: 0;
    padding: 0.5em 0.2em 1em;
    min-height: 120dvh;
}

header {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 0 3em;
}

.f {
    transform: scale(-1, 1);
}

@media (max-width: 700px) {
    header {
        flex-wrap: wrap;
        gap: 0.25em 1em;
    }
}

a,
.a {
    color: #FF0000;
    text-decoration: none;
    transition: color 0.16s;
    cursor: pointer;
}

a:focus,
a:hover,
.a:focus,
.a:hover {
    color: #23527c;
    text-decoration: underline;
}

a:focus,
.a:focus {
    outline: 2px solid #ffd600;
    outline-offset: 2px;
}



html[data-theme="dark"] body,
html[data-theme="dark"] {
    background: #191c1f !important;
    color: #fafafc !important;
}



dialog.age::backdrop {
    background: #000;
}

*[popover]::backdrop {
    background: #000;
}


/* Main Layout: grid for content + two skyscraper banners */
.content-layout {
    max-width: 1440px;
    margin: 0.25em auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5em;
    align-items: start;
    min-height: 80dvh;
}

.skyscraper-banner {
    aspect-ratio: 300 / 1200;
    width: auto;
    height: 80dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: sticky;
    top: 3em;
}

.skyscraper-banner * {
    display: block;
    height: 100%;
    width: auto;
    aspect-ratio: 300 / 1200;
}



/* Hide banners on mobile/tablet */
@media (max-width: 1100px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .skyscraper-banner {
        display: none;
    }
}


@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    99% {
        opacity: 0;
        /* height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden; */
    }

    100% {
        display: none;
    }
}

.out {
    animation: fadeOut 0.5s ease forwards;
}

.center {
    text-align: center;
}

.reached-end {
    grid-column: 1 / -1;
    font-size: 1.5em;
    text-align: center;
    padding: 2em 0;
}