* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
    border: none;
    text-decoration: none;
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--grey);
}

:root {
    --grey: hsl(0, 0%, 45%);
    --grey-1: hsl(0, 0%, 85%);
    --grey-2: hsl(0, 0%, 98%);
    --black: hsl(0, 5%, 15%);
    
    background-color: hsl(0, 0%, 99%);
    transition: background-color 0.2s ease-in;
}

.dark-theme {
    --grey: hsl(0, 0%, 85%);
    --black: hsl(0, 0%, 98%);
    
    background-color: hsl(0, 5%, 15%);
}


button, a {
    cursor: pointer;
}

/* *
 * Page nav in playground and other pages
*/
nav.page_nav {
    padding: 3rem 10vw 0rem;
}

nav.page_nav button > span,
nav.page_nav a > span {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    padding: 0.2rem 0.5rem;
}

/**
 ** The Transisition Div
*/
.transistion_wrapper {
    /* opacity: 0; */
    overflow: hidden;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    background-color: hsl(0, 0%, 99%);
    transition: opacity .5s ease-in;
}    

.dark-theme .transistion_wrapper {
    background-color: hsl(0, 5%, 15%);
}    

.transistion_wrapper > canvas {
    width: 100%;
    height: 100%;
}

.transistion_wrapper > .fade_content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    width: 80%;
    mix-blend-mode: difference;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0;
    /* transition: opacity 0.8s ease-in; */
}


/* 
 * Header
 
 */
header {
    padding: 10vh 10vw 1rem;
}

header > div:first-child {
    display: flex;
    margin-bottom: 0.2rem;
    max-width: 512px;
}

header > div:first-child > button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -0.5rem 0.5rem 0rem;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

header > div:first-child > button:hover {
    border: var(--grey-1) 1px solid;
}

header h4 {
    color: var(--black);
    font-weight: 700;
}

/*
 * Main

 */
main {
    padding: 1rem 10vw 1rem; 
}

main > section {
    max-width: 512px;
}

main > section > p {
    margin-bottom: 1rem;
}

main > section > p > a {
    font-weight: 700;
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--grey-1);
    text-decoration-thickness: 2px;

}

main > section.projects {
    padding-top: 2rem;
    max-width: 512px;
}

main > section.projects > nav > ul {
    list-style: none;
    display: flex;
    padding: 1rem 0;
}

main > section.projects > nav > ul button {
    padding-right: 0.5rem;
    margin-right: 1rem;
}

main > section.projects > nav > ul button.active {
    font-weight: 700;
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--grey-1);
    text-decoration-thickness: 2px;
}

section.projects > div {
    border-top: var(--grey-1) 1px solid;
    display: grid;
    grid-template-columns: 2fr 3fr;
    padding: 1rem 0 2rem;
}

section.projects > div > .title p {
    font-size: 14px;
}

section.projects > div > .list a {
    display: inline-block;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    padding-right: 0.5rem;
    margin-bottom:  0.8rem;
}

footer{
    font-size: 10px;
    padding: 5rem 10vw 0.5rem;
    animation: alternate;
}

footer::after{
    content: "";
    padding: 0 0.2rem;
    display: inline-block;
    animation: footer-anim 2s alternate infinite;
    animation-timing-function: steps(10);
}

@keyframes footer-anim {
    0% { content: ">>>⋙⋙⋙»»=-∠=º" }
    10% { content: ">>⋙⋙⋙»»=-∠=º>" }
    20% { content: ">⋙⋙⋙»»=-∠=º>>" }
    30% { content: "⋙⋙⋙»»=-∠=º>>>" }
    40% { content: "⋙⋙»»=-∠=º>>>⋙" }
    50% { content: "⋙»»=-∠=º>>>⋙⋙" }
    60% { content: "»»=-∠=º>>>⋙⋙⋙" }
    70% { content: "»=-∠=º>>>⋙⋙⋙»" }
    80% { content: "=-∠=º>>>⋙⋙⋙»»" }
    90% { content: "-∠=º>>>⋙⋙⋙»»=" }
    100% { content: "=º>>>⋙⋙⋙»»=-∠" }
}
