@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz@9..40&family=Long+Cang&family=Noto+Sans+SC&family=Noto+Serif+SC:wght@400;500&display=swap');

:root {
    --background: #fff;
    --black: #000;
    --subtitle: #717171;
    --text: #888;
    --footer: #eaeaea25;
}

::-moz-selection { /* Code for Firefox */
    background: var(--black);
    color: var(--background);
}
  
::selection {
    background: var(--black);
    color: var(--background);
  }

html {
    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;
    box-sizing: border-box;

    background: var(--background);
    background-size: cover;
}

body {
    overflow:auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    margin: 0;
}

#rotate {
    position: fixed;

    top: 0;
    height: 100vh;
    width: 100vw;

    color: var(--black);
    font-family: Noto Serif SC, Long Cang, serif;
    font-size: 2em;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: -1;
    opacity: 0;
}

#header {
    position: relative;

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    width: 70%;
    margin-top: clamp(3rem, 5vh, 10rem);
    height: 5vh;
}

h1, h2, h3, h5, li {
    color: var(--black);
    font-family: Noto Serif SC, Long Cang, serif;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* h1, h4, li {
    visibility: hidden;
} */

h4, p, #icon {
    color: var(--black);
    font-family: sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

#icon {
    font-size: 16px;

    display: flex;
    align-items: center;
}

#icon::-moz-selection, #footer h5::selection, img::selection {
    background: none;
}

#icon::selection, #footer h5::selection, img::selection {
    background: none;
}

#menu {
    display: flex;
    flex-direction: row;
    align-items: center;

    height: auto;
}

h5 {
    font-family: DM Sans, Arial, Helvetica, sans-serif;;
    font-size: 16px;

    cursor: pointer;

    margin: .2em;
}

#mode {
    height: 24px;
    margin-right: 1em;
    cursor: pointer;
}

#lang {
    font-style: italic;
}

#divider {
    cursor: default;
}

main {
    width: clamp(650px, 50vw, 800px);

    /* delete below. */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    overflow-x: visible;
    overflow-y: clip;
}

#hero_container {
    margin-top: clamp(0px, 15vh, 150px);
}

h1 {
    font-family: Long Cang, Noto Serif SC, serif;
    font-size: clamp(30px, 8vw, 84px);
    font-style: normal;

    margin-bottom: 0rem;
    display: inline-block;

    line-height: 120%;

    /* delete below. */
    margin: 0;
}

h4 {
    color: var(--subtitle);
    font-size: clamp(13px, 4.5vw, 25px);
}

ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: clamp(250px, 20vw, 400px);

    padding-inline-start: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    font-size: clamp(12px, 3vw, 14px);

    right: 5em;
}

#projects, #interests {
    position: relative;
    width: 45vw;
    top: 0;
}

#projects, #end {
    margin-top: 8rem;
}

#projects {
    margin-bottom: 4em;
}

h2 {
    font-size: 32px;
    font-weight: 700;

    margin-top: 0;
}

h3 {
    font-size: 24px;

    margin-bottom: 0;
}

p {
    color: var(--text);
    font-size: clamp(12px, 4vw, 18px);
    font-style: italic;

    margin-top: .5rem;
    margin-bottom: 2.5rem;
}

#interests h2 {
    margin-bottom: .8rem;
}

#end {
    width: 100%;

    background: var(--footer);

    display: flex;
    flex-direction: column;
    align-items: center;
}

#chat {
    font-weight: 400;
}

#arrow {
    font-family: Inter sans-serif;
    font-weight: 400;
}

#end h2, #footer {
    width: clamp(650px, 50vw, 900px);
    margin-top: 3rem;
}

#end h2 {
    height: 3em;
}

#footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-bottom: 4rem;
}

#footer h5 {
    font-family: DM Sans, Arial, Helvetica, sans-serif;
    font-size: 12px;

    cursor: default;
}

@media only screen and (min-width: 1600px) {
    #header, main, #end h2, #footer {
        width: clamp(720px, 45vw, 800px);
    }

    #projects, #interests {
        width: clamp(576px, 36vw, 640px);
    }
}

@media only screen and (max-width: 1000px) {
    #header, main, #projects, #interests, #end h2, #footer {
        width: 75vw;
    }
}

@media only screen and (max-width: 500px) {
    h1 {
        font-size: clamp(28px, 14vw, 80px);
    }

    h2 {
        font-size: clamp(25px, 8vw, 32px);
    }

    h3 {
        font-size: clamp(18px, 6vw, 24px);
    }

    ul {
        width: calc(100% - 1rem);
    }

    #end h2 {
        height: 5em;
    }
}

@media only screen and (max-height: 500px) and (orientation: landscape) {
    #rotate {
        opacity: 1;
        z-index: 10;
        background-color: var(--background);
    }
}