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

* {
    padding: 0;
}

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

body {
    background-color: black;
    color: white;
    margin: 0px;
    overflow-x: hidden;
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-weight: 300;
    font-style: normal;
}

/* Splash Screen Styling */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#splash img {
    width: 150px;
    height: 150px;
    box-shadow: 0 0 20px #F0DB4F;
}

/* Fade out effect */
#splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loading {
    width: 0px;
    height: 2px;
    background-color: #F0DB4F;
    box-shadow: 0 0 10px #F0DB4F, 0 0 10px #F0DB4F, 0 0 10px #F0DB4F;
    margin-top: 40px;
    animation: load 1s ease-in-out forwards;
    margin-left: -150px;
    transform: translate(50%, 0px);
}

@keyframes load {
    0% {
        width: 0px;
    }

    100% {
        width: 150px;
    }
}

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

#coffee {
    position: fixed;
    height: 35px;
    border-radius: 35px;
    z-index: 10;
    bottom: 75px;
    right: 20px;
}

a {
    text-decoration: none;
    color: white;
}

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

#menu {
    background-color: transparent;
    color: white;
    border: 1px solid rgb(55, 55, 55);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    line-height: 20px;
    padding: 3px 7px 7px 7px;
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-weight: 300;
    font-style: normal;
    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, 213, 0, 0.5);
}

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

header {
    height: 60px;
    position: fixed;
    top: 0px;
    background-color: #000000c9;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(55, 55, 55);
    width: 100vw;
    font-size: 25px;
    z-index: 100;
    transition-duration: 0.2s;
}

header p {
    margin: 15px;
}

#nav {
    margin-left: 10px;
    border-spacing: 4px;
    overflow-x: hidden;
    background-color: #00000000;
    border-bottom: 1px solid rgba(128, 128, 128, 0.308);
}

.controls {
    position: absolute;
    top: 10px;
    right: 60px;
    height: 25px;
    border: 1px solid rgb(55, 55, 55);
    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 rgba(128, 128, 128, 0.308);
    transition-duration: 0.2s;
    cursor: pointer;
    background-color: #00000000;
}

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

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

#current {
    background-color: rgba(128, 128, 128, 0.408);
}

#blank {
    width: 100%;
    cursor: default;
}

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

#top {
    z-index: 100;
    background-color: #000000c9;
    backdrop-filter: blur(20px);
    transition-duration: 0.2s;
    width: calc(100vw + 10px);
    overflow: scroll;
    margin-left: -10px;
    position: fixed;
    top: 60px;
}

#scrollTop {
    position: fixed;
    bottom: 120px;
    right: 20px;
    padding: 3px;
    padding-bottom: 0px;
    background-color: rgba(0, 0, 0, 0.388);
    color: white;
    border: 1px solid rgb(54, 54, 54);
    cursor: pointer;
    transition-duration: 0.3s;
    z-index: 100;
    opacity: 0;
    backdrop-filter: blur(5px);
    box-shadow: 0px 0px 10px 0px rgb(0, 0, 0);
}

#scrollTop img {
    height: 30px;
}

section {
    padding-top: 10px;
    backdrop-filter: blur(20px);
    margin-top: 100px;
    margin-bottom: 70px;
    opacity: 1;
    filter: blur(0px);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

section.hideSection {
    opacity: 0;
    filter: blur(50px);
}

section.showSection {
    opacity: 1;
    filter: blur(0px);
}

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

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

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

#dots {
    position: absolute;
    width: 100vw;
    height: 40px;
    overflow: hidden;
    margin-top: -70px;
    margin-left: -10px;
}

.dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    will-change: transform;
}

.line {
    height: 0.7px;
    width: 100vw;
    background-image: linear-gradient(to right, rgb(16, 16, 16), rgb(0, 145, 255), turquoise, cyan, white, cyan, rgb(0, 128, 255), rgb(16, 16, 16));
    box-shadow: 0px 0px 10px 0px rgb(0, 247, 255), 0px 0px 10px 0px rgb(0, 247, 255);
    margin: 50px;
    margin-left: -10px;
    animation: glow 5s infinite;
    transition: box-shadow 0.5s;
}

@keyframes glow {
    0% {
        box-shadow: 0px 0px 5px 0px rgb(0, 247, 255), 0px 0px 5px 0px rgb(0, 247, 255), 0px 0px 5px 0px rgb(0, 247, 255), 0px 0px 5px 0px rgb(0, 247, 255);
    }

    50% {
        box-shadow: 0px 0px 20px 0px rgb(0, 247, 255), 0px 0px 20px 0px rgb(0, 247, 255), 0px 0px 10px 0px rgb(0, 247, 255), 0px 0px 5px 0px rgb(0, 247, 255);
    }

    100% {
        box-shadow: 0px 0px 5px 0px rgb(0, 247, 255), 0px 0px 5px 0px rgb(0, 247, 255), 0px 0px 5px 0px rgb(0, 247, 255), 0px 0px 5px 0px rgb(0, 247, 255);
    }
}

#legend {
    font-size: small;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: rgba(27, 27, 27, 0.874);
    width: calc(100vw - 35px);
    border: 1px solid rgba(128, 128, 128, 0.23);
    padding: 5px;
    max-width: 500px;
    margin-left: 50vw;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.6s ease, filter 0.6s ease;
    transform: translate(calc(-50% - 10px), 0px);
}

#legend.show {
    opacity: 1;
    filter: blur(0px);
}

.legend_part {
    display: flex;
    margin-top: 5px;
    align-items: center;
    width: 100%;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.107);
}

.legend_part div {
    margin-right: 5px;
}

#where {
    width: 1px;
    height: 15px;
    background-color: cyan;
    margin-left: 10px;
}

.who {
    height: 8px;
    width: 15px;
    background-color: gold;
    border-radius: 7px 7px 0px 0px;
    margin-left: 3px;
}

#conquered {
    height: 15px;
    width: 15px;
    background-color: teal;
    border-radius: 2px;
    margin-left: 3px;
}

#user {
    background-color: #159c00;
}

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: rgb(0, 0, 0);
    border-top: 1px solid rgba(128, 128, 128, 0.308);
    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;
        top: 10px;
        right: 11px;
    }

    .td {
        font-size: 15px;
    }

    header {
        font-size: 20px;
    }

    header p {
        font-size: 20px;
    }

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

    #home {
        margin-top: 70px;
    }

    #coffee {
        bottom: 20px;
    }

    footer {
        position: relative;
        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);
    }

    #top {
        top: 54px;
    }

    .controls {
        right: 55px;
    }

    #scrollTop {
        bottom: 70px;
        right: 20px;
    }
}