html {
    font-family: 'Montserrat', sans-serif;
    background: #1e293b;
    margin: 0;
    height: 100vh;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    width: 100vw;
    height: 100vh;
}

#loadingscreen {
    width: 99vw;
    height: 99vh;
    display: none;
}

@keyframes load {
    0% {
        rotate: 0deg;
        transform: scale(100%);
        border-radius: 0px;
    }

    50% {
        rotate: 180deg;
        transform: scale(50%);
        border-radius: 100px;
    }

    100% {
        rotate: 360deg;
        transform: scale(100%);
        border-radius: 0px;
    }
}

#loader {
    width: 150px;
    height: 150px;
    margin: 30px;
    float: left;
    background-color: aqua;
    animation-name: load;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-direction: reverse;
}

#scrollbar {
    position: fixed;
    top: 20px;
    bottom: 20px;
    right: 15px;
    z-index: 100;
    background-color: #76797e;
    opacity: 0.5;
    width: 5px;
    float: right;
}

#scrollbarthumb {
    position: fixed;
    right: 7px;
    z-index: 100;
    border: 3px solid#90949b;
    width: 15px;
    height: 15px;
    border-radius: 100px;
    float: right;
}

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

#background {
    position: fixed;
    top: 0;
    width: 99vw;
    opacity: 0.3;
}

.snapto {
    scroll-snap-type: y mandatory;
    scroll-snap-align: center;
}

.snaptop {
    scroll-snap-type: y mandatory;
    scroll-snap-align: start;
}

.mainpage {
    position: relative;
    z-index: 1000;
    top: 100px;
    height: 100vh;
}

#hometext, #scrolltext, #scrollpointer {
    color: whitesmoke;
    text-align: center;
}

#hometext2 {
    color: rgb(225, 225, 225);
    text-align: center;
}

.projectpreviewimg {
    height: 350px;
    margin-top: 150px;
    /*margin-left: 100px;*/
    border-radius: 5px;
    transition: all 0.5s;
    float: left;
}

.projectpreviewimg:hover {
    border-radius: 20px;
    transform: scale(1.03);
}

#projectinfo {
    float: left;
    margin-top: 150px;
    margin-left: 20px;
}

#projectdesc {
    font-size: 15px;
    width: 400px;
    max-width: 400px;
    overflow: auto;
    overflow-wrap: break-word;
    font-family: monospace;
    margin-bottom: 30px;
}

#projcontainer {
    margin-top: 150px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

.maintext {
    color: whitesmoke;
}

.maintext2 {
    color: rgb(225, 225, 225);
}

.maintext {
    text-align: left;
}

#projectlink, #projectlink2 {
    border-radius: 5px;
    border: 1px solid;
    width: 130px;
    height: 50px;
    color: white;
    outline: none;
}

#projectlink {
    background-color: #3f4651;
    transition: all 0.3s;
}

#projectlink:hover {
    background-color: #54647d;
}

#page2, #page3, #page4, #page5, #page6, #page7, #page8 {
    font-family: "DM Serif Display";
}

/* PAGE 1 */

#scrollpointer {
    animation-name: floating;
    -webkit-animation-name: floating;
    animation-duration: 1.5s;
    -webkit-animation-duration: 1.5s;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;

    margin-top: 50px;
    font-size: 150px;
}

#scrolltext {
    margin-top: 100px;
    font-family: "DM Serif Display";
    font-size: 50px;
}

@keyframes floating {
    0% {
        transform: translateY(0%);
    }
    50% {
        transform: translateY(8%);
    }
    100% {
        transform: translateY(0%);
    }
}

/* PAGE 2 */

#page2 {
    margin-top: 100px;
    position: relative;
}
