:root {
    --header-background: #ffffff;
    --dots-color: black;
    --title-color: black;
    --main-background: #fffff;
}

@font-face {
    font-family: Inter;
    src: local("Inter"), url("Inter.ttf");
}

#header {
    background-image: radial-gradient(var(--dots-color) 1px, transparent 0);
    background-position: center;
    background-size: 30px 30px;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    position: relative;
    background-color: var(--header-background);
    color: var(--title-color);
    scroll-snap-align: end;
}
#dots-canvas {
    width: 100%;
    height: 100dvh;
    position: absolute;
    left: 0;
    top: 0;
    background: transparent;
}
#scroll-chevron {
    position: absolute;
    bottom: 12px;
    left: calc(50% - 0.25px);
    transform: translateX(-50%);
    animation: 2s float-u-d infinite;
    animation-timing-function: ease-in-out;
    cursor: pointer;
    transition: bottom .2s ease-in-out;
    z-index: 100;
    user-select: none !important;
    -webkit-user-select: none !important;
}
#scroll-chevron > img {
    transition: transform .2s ease-in-out;
    transform: rotateX(0deg);
}
#scroll-chevron.bottom {
    bottom: -52px;
}
#scroll-chevron.bottom > img {
    transform: rotateX(180deg);
}

.header-box {
    backdrop-filter: blur(12px);
}

#main-title {
    font-weight: bold;
    font-size: min(14vw, 96px);
    padding: 32px;
    font-family: Inter, sans-serif;
}
#title-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    white-space: nowrap;
    gap: 24px;
    pointer-events: none;
    user-select: none !important;
}
#avoid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
#subtitle {
    margin-top: 96px;
    font-size: 22px;
    font-family: Inter;
    padding: 11px;
    transform: translateX(0);
    white-space: normal !important;
    transition: transform 0.2s linear;
}
#dev {
    width: calc(100.786px + 1em) !important;
}
#n {
    display: inline-block;
    width: 0em;
    overflow: hidden;
    vertical-align: bottom;
    transition: width 0.2s linear;
}
.n-show > #n {
    width: 18px;
}
.n-show {
    /*
        half of the n's width because the entire thing is centered
     */
    transform: translateX(-9px) !important;
}
body {
    width: 100%;
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: stretch;
    font-size: 1em;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
}

#palette {
    display: block;
    position:fixed;
    top: 1em;
    right: 1em;
    user-select: none;
    -webkit-user-select: none;
}

::-webkit-scrollbar {
    width: 12px;
}


::-webkit-scrollbar-track {
    background: var(--header-background);
    padding: 2px;
    margin-right: 12px;
}

::-webkit-scrollbar-thumb {
    background: var(--dots-color);
    border-radius: 10px;
    background-clip: padding-box;
    border: 3px solid transparent;
    cursor: pointer;
}
::-webkit-scrollbar-corner {
    background: var(--header-background);
}



@media (prefers-color-scheme: dark) {
    :root {
        --header-background: #222;
        --dots-color: gray;
        --title-color: white;
        --main-background: #1c1c1c;
    }
    #scroll-chevron {
        filter: invert(1);
    }
}

@keyframes float-u-d {
    0% {
        transform: translateY(0px) translateX(-50%);
    }
    50% {
        transform: translateY(-10%) translateX(-50%);
    }
    100% {
        transform: translateY(0px) translateX(-50%);
    }
}

@media only screen and (max-width: 640px) {
    #subtitle {
        text-align: center;
    }
    #scroll-chevron {
        bottom: calc(env(safe-area-inset-bottom) + 24px);
    }
    #main-title {
        padding: 16px;
    }
    #framework {
        text-align: left !important;
    }
}