* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: JetBrains Mono, sans-serif;
}

#css-toggle {
    position: relative;
    z-index: 99999;
    top: 45px;
    display: block;
    margin: 0 auto;
}

@font-face {
    font-family: JetBrains Mono;
    src: url(fonts/JetBrainsMono-Bold.ttf);
}

body,
html {
    background-color: #1b141c;
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

p {
    color: #f1f1f6;
}

hr {
    border: none;
    height: 12px;
    width: 60%;
    margin: 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M0 6 Q15 0 30 6 Q45 12 60 6 Q75 0 90 6 Q105 12 120 6' fill='none' stroke='%23d23e32' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 120px 12px;
    background-repeat: repeat-x;
    background-position: center;
}

.main hr {
    position: relative;
    top: 55px;
}

.title {
    font-size: 25px;
    position: relative;
    top: 25px;
    display: flex;
    justify-content: center;
}

.button {
    display: flex;
    justify-content: center;
    background-color: #d23e32;
}

.intro {
    font-size: 25px;
    position: relative;
    top: 35px;
    display: flex;
    justify-content: center;
}

.intro span {
    position: relative;
}

.intro span::before {
    content: "coder";
    color: #d23e32;
    animation: words 20s infinite;
}

.intro span::after {
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    background-color: #1b141c;
    border-left: 2px solid #d23e32;
    right: -8px;
    animation: cursor .8s infinite, typing 20s steps(14) infinite;
}

.projects {
    height: 600px;
    width: 500px;
    color: #251d26;
    background-color: #251d26;
    border-radius: 35px;
    position: relative;
    top: 90px;
    left: 100px;
}

.projects p.title {
    display: flex;
    justify-content: center;
    position: relative;
    top: 10px;
    font-size: 20px;
}

.projects p.chrono-deck {
    position: relative;
    top: 50px;
    left: 20px;
    font-size: 20px;
}

.projects p.info {
    position: relative;
    top: 75px;
    padding-left: 15px;
    padding-right: 10px;
}

.projects img {
    width: 60%;
    display: flex;
    justify-content: center;
    position: relative;
    top: 60px;
    left: 17px;
    border-radius: 10px;
}

.projects::before {
    content: "Projects";
    position: absolute;
    background-color: #d23e32;
    color: white;
    padding: 0.5em 1em;
    border-radius: 100px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-30px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(.51, -0.02, .29, 2.49);
}

.projects:hover::before {
    transform: translateY(-65px) rotate(0);
    opacity: 1;
}

.yet {
    height: 600px;
    width: 1000px;
    color: #251d26;
    background-color: #251d26;
    border-radius: 35px;
    position: relative;
    top: -510px;
    left: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes cursor {
    to {
        border-left: 2px solid #ff910000;
    }
}

@keyframes words {

    0%,
    20% {
        content: "coder"
    }

    21%,
    40% {
        content: "cosplayer"
    }

    41%,
    60% {
        content: "Hack Clubber"
    }

    61%,
    80% {
        content: "surfer"
    }

    81%,
    100% {
        content: "procrastinator"
    }
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}

section {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1b141c;
}

section .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url(images/wave.png);
    background-size: 1000px 100px;
}

section .wave.wave1 {
    animation: animate 30s linear infinite;
    z-index: 1000;
    opacity: 1;
    animation-delay: 0s;
    bottom: 0;
}

section .wave.wave2 {
    animation: animate2 15s linear infinite;
    z-index: 999;
    opacity: 0.5;
    animation-delay: -5s;
    bottom: 10;
}

section .wave.wave3 {
    animation: animate2 15s linear infinite;
    z-index: 998;
    opacity: 0.2;
    animation-delay: -2s;
    bottom: 15;
}

section .wave.wave4 {
    animation: animate2 5s linear infinite;
    z-index: 997;
    opacity: 0.7;
    animation-delay: -5s;
    bottom: 25;
}

@keyframes animate {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1000px;
    }
}

@keyframes animate2 {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: -1000px;
    }
}