* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: black;
}

/* ALL */

a,
h2,
h3 {
    font-family: "Kanit", sans-serif;
    font-weight: 300;
}

/* BURGER */

h1.active {
    padding: 1em;
    color: white;
}

.topnav {
    overflow: hidden;
    position: relative;
}

.topnav #myLinks {
    display: none;
}

.topnav a {
    padding: 1em 2em;
    display: block;
    text-align: center;
}

.topnav a.icon {
    position: absolute;
    right: 0;
    top: 13px;
}

.active {
    margin: 1%;
}

.topnav .icon .material-symbols-outlined {
    font-size: 2em;
    font-weight: 600;
}

/* HEADER */

a {
    font-weight: 200;
    color: white;
    text-decoration: none;
    font-size: 1em;
}

a:hover {
    font-weight: 400;
    text-decoration: underline;
    transition: font-weight 0.1s ease-in-out;
}

header {
    padding: 0em 1em 4em 2em;
}

video {
    width: 100%;
}

a#logo {
    padding: 0em 1em 0em 0em;
    color: white;
    font-family: "Climate Crisis", sans-serif;
    font-size: 2.5em;
}

/* MAIN */

main#white {
    background-color: white;
}

h1#white {
    color: white;
}

h1 {
    font-family: "Climate Crisis", sans-serif;
    font-weight: 400;
    padding-top: 2em;
}

div#space {
    height: 0.5em;
}

.line {
    width: 80%;
    height: 2px;
    background: #000000;
    margin: 5rem auto 0;
    border: none;
}

#works.line {
    background: white;
}

img {
    width: 100%;
    padding-top: 2em;
}

img:hover {
    scale: 105%;
    transition: 0.5s ease-in-out;
}

img#title:hover {
    scale: 100%;
}

/* FOOTER */

footer {
    background-color: white;
}

img#title {
    width: 100%;
    padding: 0;
}

article {
    padding: 4em;
}

h2 {
    font-weight: 400;
}

a#guide {
    color: black;
    font-size: 2em;
    display: flex;
    text-align: right;
}

section {
    padding: 1em;
}

/* DIFFERENT PAGES */

section.pages {
    align-items: center;
}

img.pages {
    padding: 0 2em 0 0;
    width: 50%;
}

main {
    padding: 4em 3em;
}

main.pages {
    background-color: white;
    padding: 4em 3em;
}

video.pages {
    padding: 3em;
}

iframe {
    align-items: center;
    aspect-ratio: 16 / 9;
}

h1#number,
h1#number-white {
    font-size: 5em;
    padding: 0;
    text-align: center;
}

h1#number-white {
    color: white;
}

h3.pages-white {
    color: white;
    padding: 3em 2em 2em;
}

h3.pages {
    padding: 3em 2em;
}

h2.pages {
    text-align: center;
    padding: 5em 4em;
}

a#figma,
a#figma-white {
    font-family: "Climate Crisis", sans-serif;
    font-size: 2em;
    padding: 0.8em;
    background-color: black;
    display: flex;
    justify-content: center;
    text-align: center;
}

a#figma-white {
    background-color: white;
    color: black;
    margin: 1em 0;
}

/* QUERRY */
@media screen and (min-width: 900px) {
    article {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    section#right {
        display: block;
        justify-items: right;
    }

    section#grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    h1 {
        font-size: 3em;
    }

    img {
        padding: 6em 10em;
    }

    div {
        height: 5em;
    }

    /* NAVBAR */

    nav>ul {
        list-style-type: none;
        justify-items: center;
        opacity: 90%;
        background-color: black;
        padding: 2em;
    }

    ul#left {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    ul#right {
        display: flex;
        justify-content: right;
        align-items: center;
    }

    #navbar {
        position: sticky;
        top: 0;
        overflow: hidden;
        z-index: 1000;
        display: grid;
        grid-template-columns: 3fr 1fr;
        padding: 3em 3em 0em;
        justify-content: center;
    }

    nav.mobile-container {
        display: none;
    }

    header {
        padding: 0em 1em 4em 4em;
    }

    h1 {
        padding: 2em 2em 0em;
    }

    h3.pages,
    h3.pages-white {
        font-size: 1.5em;
    }

    h2.pages {
        font-size: 2em;
    }

    section.pages {
        display: flex;
        padding: 4em 3em 0;
    }

    video.pages,
    iframe {
        width: 33.3%;
    }

    iframe#presentation {
        width: 100%;
        padding: 4em;
    }

    img {
        padding: 5em;
    }
}

@media screen and (max-width: 900px) {
    #navbar {
        display: none;
    }

    img.pages {
        display: none;
    }
}