:root {
    --header-color: #fff8eb;
}

.logo {
    margin-right: 0.5em;
}

.textimagepair {
    display: flex;
    flex-direction: row;
    gap: 1em;
    padding: 2rem;
    background-color: #fff4de;
}

@media screen and (max-width: 110em) {

    .textimagepair {
        flex-direction: column;
    }

    .textimagepair video {
        margin-left: auto;
        margin-right: auto;
    }

}

.callout {
    background-color: rgb(255, 241, 185);
    border: solid 0.1em rgb(255, 223, 96);
    border-left-width: 1em;
    padding: 1.5em;
    border-radius: 5px;
}

header span {
    display: flex;
    align-items: center;
}

.githublink {
    margin-left: 0.5em;
}

.speed-pattern {
    margin-top: 1em;
}

.speed-pattern h2 {
    margin-top: 0;
    background-color: #f0e6d3;
    border-radius: 0.5em;
    padding: 0.5em;
}

.contributing {
    background-color: #f0e6d3;
    padding: 1em;
    margin-top: 2em;
}

.contributing h2 {
    margin-top: 0;
}

.burger {
    margin-left: 0.5em;
}

body {
    margin: 0;
    background-color: white;
    display: grid;
    gap: 0;
    font-size: calc(15px + 0.390625vw);
}

nav {
    padding: 1em;
    background-color: #f0e6d3;
}

nav ul {
    list-style: none;
    padding: 0;
    font-size: 1.2em;
}

nav li {
    margin-bottom: 0.6em;
}

.mobile-hidden {
    display: none;
}

header {
    display: flex;
    align-items: center;
    background-color: #2D3866;
    padding: 1em;
    font-size: 2em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    justify-content: space-between;
}

header a {
    color: var(--header-color);
    text-decoration: none;
}

header a:visited {
    color: var(--header-color);
}

a {
    color: #4F63B3;
}

a:visited {
    color: #2D3866;
}

main {
    padding: 1em 3em 2em 3em;
}

.sidebar {
    padding: 1em;
    background-color: #f0e6d3;
}

.home-link {
    font-weight: bolder;
}

#homepage .speed-pattern img {
    max-width: 100%;
    max-height: 10em;
}

pre {
    text-wrap: pretty;
}

@media screen and (min-width: 75em) {

    .mobile-hidden {
        display: block;
    }

    html {
        height: 100%;
    }

    body {
        grid-template-columns: 1fr 5fr 18em;
        grid-template-rows: auto 1fr;
        height: 100%;
    }

    #homepage {
        grid-template-columns: 0 6fr 18em;
        grid-template-rows: auto 1fr;
        height: 100%;
    }

    header {
        grid-row: 1/2;
        grid-column: 1/4;
    }

    .sidebar {
        grid-row: 2/3;
        grid-column: 3/4;
    }

    main {
        grid-row: 2/3;
        grid-column: 2/3;
    }

    nav {
        grid-row: 2/3;
        grid-column: 1/2;
    }

    #homepage nav {
        display: none;
    }

    .burger {
        display: none;
    }

}