html,
body {
    margin: 0px;
    padding: 0px;
    color-scheme: dark;
}

:root {
    --black: #02010a;
    --dark-blue: #04052e;
    --twilight: #140152;
    --navy: #22007c;
    --navy-electric: #0d00a4;

    --alternate-blue: #050e3c;
    --alternate-navy: #002455;
    --dark-orange: #dc0000;
    --red: #ff3838;
    scrollbar-width: thin;
}

@font-face {
    font-family: "SG";
    src: url("assets/ScienceGothic.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background: linear-gradient(
        -45deg,
        var(--black),
        var(--twilight),
        var(--dark-blue),
        var(--alternate-blue)
    );
    width: 100%;
    height: 100%;
    background-size: 600% 600%;
    animation: moveGradient 15s ease infinite;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.1;
    }
    100% {
        opacity: 1;
    }
}

.profilecontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70vw;
    flex-direction: column;
}

.spacer {
    height: 360px;
}

.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 40px;
    position: relative;
    width: 40vw;
}

.profile > div:not(.spacer) {
    opacity: 0;
    position: absolute;
    z-index: 2;
    width: 30vw;
    padding-left: 600px;
    transition: opacity 0.5s ease;
}

.profile:hover > div {
    opacity: 1;
}

.profile > div:not(.spacer) > p {
    font-family: "SG";
    box-sizing: border-box;
    font-size: 1rem;
    color: white;
    user-select: none;
}

.profile > div:not(.spacer) > h1 {
    font-family:
        "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
        "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    font-size: 2rem;
    color: white;
    user-select: none;
    font-weight: 900;
}

.profile > img {
    border-radius: 50%;
    object-fit: cover;
    animation: glow 2s ease-in-out infinite alternate;
    user-select: none;
    position: absolute;
    z-index: 2;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.profile:hover > img {
    transform: translateX(-300px);
}

.profilecontainer > p {
    font-family: "SG";
    margin-top: 25px;
    box-sizing: border-box;
    font-size: 2rem;
    color: white;
    user-select: none;
}

@keyframes glow {
    0% {
        filter: drop-shadow(0px 1px 2px var(--dark-orange));
    }
    100% {
        filter: drop-shadow(0px 15px 20px var(--dark-orange));
    }
}

.maincontainer {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.iconcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 30px;
}

.iconcontainer > img {
    width: 75px;
    fill: white;
    border: 2px solid transparent;
    border-radius: 50%;
    transition:
        border-color 0.1s ease-in,
        filter 0.1s ease-in,
        transform 0.1s ease-in;
    user-select: none;
}

.iconcontainer > img:hover {
    border-color: var(--dark-orange);
    filter: drop-shadow(0px 4px 5px var(--dark-orange));
    cursor: pointer;
}

.iconcontainer > img:active {
    transform: scale(0.95);
}

.continuecontainer {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.projectslist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row dense;
    grid-gap: 30px;
    width: 95%;
    color: white;
    padding-bottom: 100px;
}

.projectslist > div {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    color: white;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    overflow: hidden;
    transition:
        filter,
        0.1s ease;
}

.projectslist > div > img {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
}

.projectslist > div:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

.projectslist > div p:first-of-type {
    font-family:
        "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
        "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    font-weight: 900;
    padding: 20px 0px;
    font-size: 2rem;
    margin: 0;
}

.projectslist > div p:nth-of-type(2) {
    padding: 10px 20px;
    padding-bottom: 20px;
    font-weight: 100;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    font-size: 1rem;
}
