html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Mono', monospace;
    margin: 0;
    background-color: black;
    text-shadow: 1px 1px 1px#ffffff90;
    overflow: hidden;
}

button {
    font-family: 'Space Mono', monospace;
    color: white;
    cursor: pointer;
}

@font-face {
  font-family: 'Space Mono';
  src: url('font/SpaceMono.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body::-webkit-scrollbar {
    display: none;
}

* {
    margin: 0;
    padding: 0;
}


#bootscreen {
    position: fixed;
    display: none;
    flex-direction: column;
    inset: 0;
    z-index: 9999;
    background-color: black;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

#preboot {
    display: flex;
    z-index: 10000;
    background-color: black;
    width: 100vw;
    height: 100vh;
    text-align: left;
    text-shadow: none;
}

#preboottext {
    color: rgb(0, 255, 0);
    white-space: pre-wrap;
}

#bootlogo {
    width: 70vw;
    height: auto;
    object-fit: contain;
}

#bootgif {
    width: 5vw;
    height: 5vw;
}

#mainpage {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 500vh;
    text-align: center;
    visibility: none;
}

#logo {
    width: 30vw;
    height: auto;
    aspect-ratio: auto;
    margin-left: auto;
    margin-right: auto;
}

#bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
    radial-gradient(circle at 0% 0%, #8800ff30 0%, transparent 20%),
    radial-gradient(circle at 10% 10%, #0051ff45 0%, transparent 70%),
    radial-gradient(circle at 90% 90%, #ff00d945 0%, transparent 30%),
    radial-gradient(circle at 100% 100%, #ff770025 0%, transparent 20%);
}

#blur {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to bottom, black 10%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 10%, transparent 100%);
}

#welcome {
    font-size: 300%;
    margin-bottom: 0;
}

#subbackground1 {
    position: fixed;
    z-index: -1;
}

#nodes {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

#matrix {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

#scrolldownbtn {
    position: fixed;
    z-index: 9999;
    right: 7.1428%;
    bottom: 3.5%;
    width: 5%;
    height: 10%;
    animation: bouncedown 1s infinite;
    transition: transform 0.5s ease;
}

@keyframes bouncedown {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(10px);
    }
}

#scrolldownbtn:hover {
    scale: 1.1;
}

#scrollupbtn {
    z-index: 9999;
    position: fixed;
    right: 1%;
    bottom: 3.5%;
    width: 5%;
    height: 10%;
    animation: bounceup 1s infinite;
    transition: transform 0.5s ease;
}

@keyframes bounceup {
    0%, 100% {
        transform: translateY(5px);
    }
    50% {
        transform: translateY(-5px);
    }
}

#scrollupbtn:hover {
    scale: 1.1;
}

#page1 {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    text-align: center;
    justify-content: center;
    color: white;
}

#page2, #page3, #page4, #page5 {
    display: flex;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    text-align: center;
    color: white;
    align-items: center;
}

.titleheader {
    font-size: 300%;
}

#projects {
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    width: 78vw;
    justify-content: flex-start;
    overflow-x: visible;
    gap: 1%;
}

.projbtn {
    min-width: 20vw;
    min-height: 20vw;
    aspect-ratio: 1/1;
    border: none;
    border-radius: 1vh;
    font-size: 120%;
}

.projbtn:hover {
    background-color: rgba(255, 255, 255, 0.2)!important;
}

.info {
    width: 78vw;
}

#topbar {
    z-index: 999;
    position: fixed;
    display: flex;
    width: 100vw;
    justify-content: center;
    padding-top: 2%;
    padding-bottom: 1.75%;
    gap: 1%;
}

.topbutton {
    width: 12vw;
    height: 7vh;
    font-size: large;
    border: none;
    border-radius: 1vh;
    color: white;
}

.topbutton:hover {
    background-color: rgba(255, 255, 255, 0.2)!important;
}

#bottombar {
    z-index: 999;
    position: fixed;
    bottom: 0;
    display: flex;
    width: 100vw;
    justify-content: center;
    padding-top: 2%;
    padding-bottom: 2%;
    gap: 1%;
}

.bottombutton {
    width: 12vw;
    height: 7vh;
    font-size: large;
    border: none;
    border-radius: 1vh;
    color: white;
}

.bottombutton:hover {
    background-color: rgba(255, 255, 255, 0.2)!important;
}