/* CSS Resets */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Page styling */

html {
    height: 100%;
}

body {
    background-color: #f6efe7;
    background-image: url("images/creation.gif");
    background-position: left bottom 95px;
    background-size: 55%;
    background-repeat: no-repeat;
    color: #e1280f;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: "Source Code Pro", monospace;
}

body.switch {
    background-color: #201d28;
}

#container {
    position: relative;
    width: 100%;
    max-width: 1366px;
    padding-top: 3em;
}

h1, h2, footer p {
    margin: 0.25em;
}

h2, footer p, footer h1 {
    font-size: 1.5em;
}

main {
    display: flex;
    justify-content: space-between;
    margin: 1em auto;
}

main section {
    flex: 1;
    margin: 0 0.25em;
    padding: 1em;
}

a {
    color: #e1280f;
}

nav ol, nav ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

section h3 {
    text-transform: uppercase;
}

section a {
    line-height: 1.1em;
    display: inline-block;
    padding: 0.75em;
    color: #f6efe7;
    background-color: #e1280f;
    text-decoration: none;
    text-transform: lowercase;
    transition: 0.2s all;
}

section a:hover {
    background-color: #f6efe7;
    color: #c21e08;
}

section.switch a, footer.switch {
    color: #201d28;
}

section.switch h3, body.switch h1, body.switch h2, body.switch footer {
    font-family: "New Rocker", system-ui;
    font-weight: 500;
}

body.switch {
    font-family: "Jolly Lodger", system-ui;
}

section.switch a:hover {
    background-color: #201d28;
    color: #e1280f;
}

section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

#sections {
    display: flex;
    flex: 3;
}

footer {
    background-color: #e1280f;
    color: #f6efe7;
    width: 100vw;
    padding: 0.75em;
}

#graphic {
    justify-content: flex-start;
    flex: 2;
}

h1, h3 {
    font-weight: 600;
}

h2 {
    font-weight: 400;
}

h1 span {
    animation: blink 1.5s steps(2, start) infinite;
}

@keyframes blink {
  from {visibility: visible;}
  to {visibility: hidden;}
}

h2 a:hover {
    text-decoration: none;
}

header {
    padding-left: 4em;
}

/* responsive design */
/* forgot to do mobile first... we ball */

/* tablet */
@media (max-width: 900px) {

    main {
        flex-direction: column;
        align-items: stretch;
    }

    #graphic {
        flex: none;
        margin-bottom: 1.5em;
    }

    header {
        padding-left: 0.5em;
    }

    #sections {
        flex: none;
        flex-wrap: wrap;
        padding-left: 10em;
    }

    body {
        background-position: left bottom 3em;
        background-size: 45%;
    }
}

/* mobile */
@media (max-width: 600px) {
    h1 {
        font-size: 1.4em;
    }

    h2, footer p, footer h1 {
        font-size: 1.1em;
    }

    h3 {
        font-size: 1em;
    }

    #container {
        padding-top: 1em;
        padding-left: 0.75em;
        padding-right: 0.75em;
        margin: 0.5em auto;
    }

    main {
        flex-direction: column;
        margin: 0.5em auto;
    }

    #sections {
        flex-direction: column;
        padding-left: 0;
    }

    main section {
        margin: 0;
        padding: 0.5em 0;
    }

    section a {
        display: block;
        width: 100%;
        padding: 0.85em 0.75em;
    }

    section ul {
        gap: 0.4em;
    }

    body {
        background-position: top right -3em;
        background-size: 70%;
    }

    footer {
        padding: 1em 0.75em;
    }

    footer h1 {
        font-size: 1em;
    }

    footer p {
        font-size: 0.85em;
    }
}