@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet');

/* Dark (default) */
:root {
    --bg-color: rgb(14, 14, 14);
    --text-color: rgba(255, 255, 255, 0.75);
    --small-text-color: rgb(129, 129, 129);
    /* --font-family: "IBM Plex Sans", sans-serif;
    --font-weight: 300;
    --font-variation-settings: "wdth" 100; */
    --font-family: Inter, "Inter Fallback", sans-serif;
    --font-weight: 460;
    --line-height: 1.5;
    --border-color: rgb(40, 40, 40);
    --highlight-color: rgba(92, 92, 92, 0.408);
    --border-radius: 7px;
    --icon-filter: brightness(0) invert(1);
    --selection-color: rgb(0, 0, 0);
    --selection-bg-color: rgb(255, 255, 255);
}

/* Light theme */
:root.light {
    --bg-color: rgb(238, 238, 238);
    --text-color: rgb(20, 20, 20);
    --small-text-color: rgb(90, 90, 90);
    --border-color: rgb(178, 178, 178);
    --highlight-color: rgba(0, 0, 0, 0.08);
    --icon-filter: brightness(0) invert(0);
    --selection-color: rgb(255, 255, 255);
    --selection-bg-color: rgb(0, 0, 0);
}

* {
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
    scroll-margin-left: 0px;
    filter: invert(0);
}

body {
    font-size: 14px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: var(--line-height);
    letter-spacing: -.00563rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0px;
    overflow-x: hidden;
    font-family: var(--font-family);
    font-style: normal;
    font-variation-settings: var(--font-variation-settings);
    font-weight: var(--font-weight);
}

#splash,
#cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#splash p,
#cover img {
    margin-top: -30px;
}

#splash.fade-out,
#cover.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loading {
    width: 0%;
    height: 2px;
    background-color: var(--text-color);
    margin-left: -145px;
    max-width: 145px;
    transform: translate(50%, 0px);
    transition: width 0.2s ease;
}


a {
    text-decoration: none;
    color: var(--text-color);
}

button,
a,
td,
details,
span,
img {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

.white_icon {
    filter: var(--icon-filter);
}


.type {
    flex-wrap: wrap;
}

.type button {
    font-family: var(--font-family);
    font-style: normal;
    font-variation-settings: var(--font-variation-settings);
    font-weight: var(--font-weight);
    background-color: transparent;
    color: var(--text-color);
    padding: 4px 7px;
    margin: 2px;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
    transition: background-color 0.3s;
    border: 1px solid var(--border-color);
}

.type button:hover {
    background-color: var(--highlight-color);
}

#menu {
    position: absolute;
    top: 7px;
    right: 7px;
}

.controls {
    top: 7px;
    right: 42px;
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    position: absolute;
    height: 25px;
    opacity: 1;
    transition: opacity 0.2s, scale 0.2s;
    transform: scale(1);
    border-radius: var(--border-radius);
}

.controls button,
#menu,
.control_btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.controls button {
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.controls button:hover,
#menu:hover {
    background-color: var(--border-color);
}

#i_button {
    font-family: var(--font-family);
    font-style: normal;
    font-variation-settings: var(--font-variation-settings);
    font-weight: var(--font-weight);
    font-size: smaller;
    padding: 0px 5px;
}

.controls button img,
#menu img {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}

#menu img {
    transform: rotate(45deg);
}

#menu {
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

::-webkit-scrollbar {
    display: none;
}

::selection {
    background-color: var(--selection-bg-color);
    color: var(--selection-color);
}

button {
    -webkit-tap-highlight-color: transparent;
    border-radius: var(--border-radius);
}

header {
    height: 45px;
    position: fixed;
    top: 0px;
    background-color: var(--bg-color);
    border-bottom: 1px dashed var(--border-color);
    backdrop-filter: blur(20px);
    width: 100vw;
    font-size: 20px;
    z-index: 100;
}

header p {
    margin: 7px 10px;
}

#nav {
    margin-left: 7px;
    border-spacing: 4px;
    overflow-x: hidden;
    background-color: var(--bg-color);
    border-bottom: 1px dashed var(--border-color);
}

.td {
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: transform 0.2s, opacity 0.2s, background-color 0.2s;
    cursor: pointer;
}

.td a {
    padding: 7px;
    line-height: 25px;
}

.td:hover {
    background-color: var(--highlight-color);
}

#blank {
    border: 1px dashed var(--border-color) !important;
    width: 100%;
    cursor: default;
}

#blank:hover {
    background-color: #00000000;
}

#top {
    z-index: 100;
    background-color: var(--bg-color);
    transition-duration: 0.2s;
    width: calc(100vw + 10px);
    overflow: scroll;
    margin-left: -10px;
    position: fixed;
    top: 38px;
}

#scrollTop {
    position: fixed;
    bottom: 70px;
    right: 20px;
    padding: 3px;
    padding-bottom: 0px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 100;
    opacity: 0;
    backdrop-filter: blur(5px);
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollTop img {
    height: 20px;
}

section {
    margin-top: 70px;
    padding-top: 10px;
    margin-bottom: 70px;
    opacity: 1;
    transition: opacity 0.4s ease, margin-top 0.2s ease;
}

section.hideSection {
    opacity: 0;
}

section.showSection {
    opacity: 1;
}

#bio {
    opacity: 1;
    filter: blur(0px);
}

footer {
    z-index: 10;
    position: fixed;
    bottom: 0px;
    font-size: x-small;
    width: calc(100% + 10px);
    margin-left: 0px;
    padding-left: 10px;
    padding-bottom: 7px;
    padding-top: 7px;
    background-color: var(--bg-color);
    border-top: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
}

footer p {
    margin-top: 10px;
}

.copy {
    line-height: 5px;
}

.social {
    padding-right: 30px;
    margin: 5px;
}

.social_icon {
    margin-top: 5px;
    height: 20px;
    margin-right: 15px;
}

.social_icon {
    transition: opacity 0.2s ease;
}

.social:hover .social_icon {
    opacity: 0.4;
}

.social .social_icon:hover {
    opacity: 1 !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #0000003f;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: calc(100% - 20px);
    max-width: 400px;
    position: relative;
    text-align: left;
}

.modal-close {
    padding: 7px;
    border-bottom: 1px solid var(--border-color);
    width: calc(100% - 14px);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.modal img {
    width: calc(100% - 20px);
    margin: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.modal-content {
    padding: 7px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-loading {
    filter: brightness(0) invert(1);
    width: 20px !important;
    border: none !important;
    margin: 10px auto !important;
    display: block;
}

@media screen and (max-width:600px) {
    .td {
        font-size: 15px;
    }

    header {
        font-size: 20px;
    }

    header p {
        font-size: 20px;
    }

    section {
        margin-bottom: 100px;
    }

    footer {
        flex-direction: column-reverse;
        max-width: calc(100vw - 10px);
    }

    .social_icon {
        height: 17px;
    }

    footer p {
        max-width: calc(100vw - 20px);
    }

    #scrollTop {
        bottom: 15px;
        right: 15px;
    }
}