header {
    position: fixed;
    background: white;
    width: 100%;
    height: 3.6rem;
    z-index: 999;
}

#home {
    padding-left: 0.4rem;
    padding-top: 0.4rem;
}

#home_1 {
    font-size: 90%;
}

#home_2 {
    width: 0.12em;
    height: 2.8rem;
}

#home_3 {
    font-size: 70%;
}

header input {
    z-index: 1;
    position: absolute;
    width: 32px;
    height: 32px;
    top: 9px;
    right: 9px;
    opacity: 0;
    cursor: pointer;
}

#menu_button {
    z-index: 0;
    position: absolute;
    width: 32px;
    height: 24px;
    top: 16px;
    right: 11px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease-in-out;
}

#menu_button .line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background: var(--blue);
}

#menu_button .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.3s ease-in-out;
}

#menu_button .line2 {
    transition: transform 0.1s ease-in-out;
}

#menu_button .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.3s ease-in-out;
}

header input:checked ~ #menu_button {
    transform: translatex(6px);
}

header input:checked ~ #menu_button .line1 {
    transform: rotate(45deg);
}

header input:checked ~ #menu_button .line2 {
    transform: scaleY(0);
}

header input:checked ~ #menu_button .line3 {
    transform: rotate(-45deg);
}

header nav {
    position: absolute;
    background-color: var(--blue);
    border-left: 1px solid var(--green);
    transition: right 0.3s ease-in-out;
    top: calc(3.6rem);
    right: -100%;
}

header input:checked ~ nav {
    right: 0;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    padding-bottom: 0.6rem;
    margin: 0;
}

header nav a {
    color: white;
}

header nav span.menu_open {
    color: var(--light-blue);
}

header nav span.slash {
    background-color: var(--green);
    height: 1rem;
    width: 0.2rem;
    display: inline-block;
    transform: skewX(-32.6deg);
    vertical-align: middle;
    margin-left: 1.5rem;
    margin-top: -0.2rem;
    margin-right: 0.6rem;
}

header nav a,
header nav span.menu_open {
    display: inline-block;
    padding: 0.6rem;
    padding-left: 0;
    padding-right: 1rem;
    margin-top: 0.8rem;
}

main {
    padding-top: calc(3.6rem + 1px);
}

#logo {
    width: calc(var(--logo-width) / 100 * 70);
    height: calc(var(--logo-height) / 100 * 70);
    margin: 0.3em auto 0 auto;
}

#topical {
    margin: 0.8rem;
}

@media only screen and (min-width: 551px) {
    :root {
        --splash-image-height: 603px;
        --splash-background: url("/static/frontpage/intermediate-2.webp");
    }
    #splash_wrapper {
        background-position: center;
    }
}

@media only screen and (max-width: 550px) {
    :root {
        --splash-image-height: 580px;
        --splash-background: url("/static/frontpage/mobile-2.webp");
    }
    #splash_wrapper {
        background-size: 100%;
        background-repeat: no-repeat;
    }
}

#splash_wrapper {
    height: var(--splash-image-height);
    background-image: var(--splash-background);
}

#splash_box {
    height: var(--splash-box-height);
    margin-top: calc(var(--splash-image-height) - var(--splash-box-height) - 2rem);
    margin-left: 1rem;
    padding: 0.5rem 0.7rem;
}

.image_stripe {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image_stripe img {
    max-width: 100%;
    max-height: 210px;
    width: auto;
    margin: 0.4rem;
}
