@font-face {
    font-family: "ShareTechMono";
    src: url("/assets/fonts/Share_Tech_Mono/ShareTechMono-Regular.woff2") format("woff2"),
    url("/assets/fonts/Share_Tech_Mono/ShareTechMono-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "VT323";
    src: url("/assets/fonts/VT323/VT323-Regular.woff2") format("woff2"),
    url("/assets/fonts/VT323/VT323-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #FBFBFB;
    --font-color: #11131a;
}
.dark-mode {
    --bg-color: #11131a;
    --font-color: #FBFBFB;
}
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: "ShareTechMono", 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--font-color);
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 2rem;
}

h1, h2, h3 {
    font-family: "ShareTechMono", 'Courier New', Courier, monospace;
    font-weight: normal;
}

a {
    text-decoration: none;
    color: var(--font-color);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
a:hover {
    color: gray;
}

::-moz-selection {
    background: #FF5A5A;
    color: #fff;
}
::selection {
    background: #FF5A5A;
    color: #fff;
}




nav > ul {
    margin: 0;
    list-style-type: none;
    padding: 0;
}

#dark-mode-toggle {
    background-color: transparent;
}
#dark-mode-toggle:hover {
    cursor: pointer;
}

#header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    border-bottom: 1px dotted #3e3e3e;
    margin-left: 0;
    margin-right: 0;
    padding: 16px 0 16px 0;
}
#header_link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 0;
    margin: 0;
}
#header_darkmodeToggle {
    margin-left: auto;
    padding-right: 10px;
}


#header_ {
    font-family: "VT323", 'Courier New', Courier, monospace;
    font-size: 2em;
    unicode-bidi: isolate;
    color: var(--font-color);
}


.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.project {

    flex: 1 1 calc(33.333% - 20px);
    padding: 20px;
}
.project img {
    width: 15rem;
    height: auto;
}

.project_ {
    background-color: transparent;
    border: 1px solid #3e3e3e;
    border-radius: 3px;
    padding: 80px;
    box-shadow: 5px 5px #3e3e3e;
}
.project_:hover {
    background-color: rgba(0, 0, 0, 0.03);
}



.project3 {
    flex: 1 1 100%;
}


.legal {
    margin: 50px 30px 50px 30px;
}
.legal p {
    text-align: left;
}
.legal h2 {
    text-align: left;
}
.legal a {
    text-decoration: none;
    color: var(--font-color);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.legal a:hover {
    color: gray;
}



.h2 {
    font-weight: bold;
}




footer {
    margin-top: 40px;
    border-top: 1px dotted #3e3e3e;
    width: 100%;
}

footer p {
    font-size: 14px;
}
footer a {
    color: var(--font-color);
}



@media screen and (min-width: 1024px) {
    .legal {
        margin: 25px 200px 100px 200px;
    }
    h1 {
        font-size: 340%;
    }
    #header {
        justify-content: space-between;
        position: static;
        padding-left: 40px;
        padding-right: 40px;
    }
    #header_link {
        position: static;
        left: auto;
        transform: none;
    }
    #header_darkmodeToggle {
        margin-left: unset;
        padding-right: unset;
    }
}



@media (max-width: 768px) {
    .project {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .project1 img {
        max-width: 80%;
    }

    footer p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .project {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .project1 img {
        max-width: 100%;
    }

    .projects {
        gap: 10px;
    }

    footer p {
        font-size: 10px;
    }
}