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

/*styling variables*/
:root {
    --bg-color: rgb(0, 0, 0);
    --text-color: rgb(255, 255, 255);
    --small-text-color: rgb(208, 208, 208);
    --font-family: "IBM Plex Sans", sans-serif;
    --font-weight: 300;
    --font-variation-settings: "wdth" 100;
    --border-color: rgb(36, 36, 36);
    --highlight-color: rgba(92, 92, 92, 0.408);
}

* {
    padding: 0;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    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);
    font-style: normal;
}

#splash {
    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 {
    margin-top: -30px;
}

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

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

#home_body {
    overflow-y: hidden;
    height: 100vh;
}

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

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

#menu {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 20px;
    line-height: 20px;
    padding: 5px 5px 3px 5px;
    cursor: pointer;
    transition-duration: 0.3s;
}

#menu img {
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

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

::selection {
    background-color: rgba(255, 255, 255, 0.877);
    color: #000;
}

button {
    -webkit-tap-highlight-color: transparent;
}

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

header p {
    margin: 7px 10px;
}

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

.controls {
    position: absolute;
    top: 7px;
    right: 44px;
    height: 20px;
    border: 1px solid var(--border-color);
    padding: 5px;
    opacity: 1;
    transition: opacity 0.2s, scale 0.2s;
    transform: scale(1);
}

.control_btn {
    cursor: pointer;
    border: none;
}

.td {
    font-size: 17px;
    border: 1px solid var(--border-color);
    transition-duration: 0.2s;
    cursor: pointer;
}

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

#highlight {
    position: absolute;
    background-color: var(--highlight-color);
    transition: all 0.3s ease;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

#current {
    background-color: var(--highlight-color);
}

#blank {
    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: 46px;
}

#scrollTop {
    position: fixed;
    bottom: 70px;
    right: 20px;
    padding: 3px;
    padding-bottom: 0px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition-duration: 0.3s;
    z-index: 100;
    opacity: 0;
    backdrop-filter: blur(5px);
}

#scrollTop img {
    height: 30px;
}

section {
    margin-top: 90px;
    margin-bottom: 70px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

section.hideSection {
    opacity: 0;
}

section.showSection {
    opacity: 1;
}

#home {
    min-height: calc(100vh - 60px);
}

#home {
    margin-top: 70px;
    margin-left: 10px;
}

#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 solid 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;
}

@media screen and (max-width:600px) {
    #menu {
        font-size: 40px;
        padding-top: 0px;
        padding-bottom: 5px;
    }

    #link {
        right: 44px;
    }

    .td {
        font-size: 15px;
    }

    header {
        font-size: 20px;
    }

    header p {
        font-size: 20px;
    }

    section {
        margin-top: 100px;
        margin-bottom: 100px;
    }

    #home {
        margin-top: 70px;
    }

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

    .social_icon {
        height: 17px;
    }

    #home_footer {
        position: fixed;
        bottom: 0px;
    }

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

    .controls {
        right: 55px;
    }

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