* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100vw;
    max-width: 100vw;
    padding: 0.75%;
    border-radius: 5px;
    background-color: black;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    text-align: center;
}

html::-webkit-scrollbar {
    display: none; 
}

#loader {
    z-index: 1010;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background-color: #000000;
    height: 100vh;
    align-content: center;
    justify-content: center;
    overflow: hidden;

    img {
        width: 40vmax;
        height: auto;
        margin: auto;
    }
}

.addB {
    background: #141414;
}

body {
    width: 100%;
    font-size: 100%;
    display: flex;
    flex-direction: column;
    transition: 1s ease-in-out;
    background-color: #000000;
    border-radius: 5px;
    background-image: url("../Images/gradient_ultimate.png");
    background-size: contain;
    background-repeat: repeat-y;
}

#first {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.head_active {
    position: fixed;
    padding: 0;
    height: fit-content;
    z-index: 1000;
    left: 50%;
    transform: translate(-50%, 0) !important;
    width: fit-content;
    color: white;

    .head {
        color: white;
    }
}

.nav_active {
    visibility: hidden;
    content-visibility: hidden;
    display: none;
}

#navigation {
    position: fixed;
    width: 98.5vw;
    height: 8vmax;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    padding: 0 5vw;
    background: none;
}

#navigation2 {
    visibility: hidden;
    content-visibility: hidden;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 998;
    padding: 0 5vw;
    background-color: black;
    height: fit-content;
    align-items: center;

    a {
        color: #eeeeee;
        width: fit-content;
        height: fit-content;
    }

    #center {
        grid-column: 2;
        width: fit-content;
        justify-self: center;
        height: fit-content;

        a {
            font-family: 'aquirebold';
            font-size: 5vmax;
        }
    }

    .left {
        text-align: left;
        grid-column: 1;
        width: fit-content;
        justify-self: left;
        height: fit-content;
    }

    .right {
        grid-column: 3;
        text-align: right;
        width: fit-content;
        justify-self: right;
        height: fit-content;
    }
}

.nav2_active {
    visibility: visible !important;
    content-visibility: visible !important;
    display: grid !important;
}

a {
    text-decoration: none;
    color: #141414;
    font-family: 'aptos';
}

.left, .right {
    transition: 1s;

    a {
        font-size: 125%;
    }
}

.left:hover, .right:hover {
    transform: scale(125%);
}

header {
    margin: auto;
    align-self: center;
    justify-self: center;
    display: flex;
    justify-content: center;
    justify-items: center;
    width: fit-content;
    font-size: 8vmax;
    z-index: 999;
    padding-top: 15vh;
    align-content: center;

    a {
        font-family: 'aquirebold';
        align-self: center;
        color: #141414;
    }

    .head {
        transition: 0.5s ease-in-out;
    }
    
}

p {
    width: 100%;
    position: relative;
}

#opening {
    color: #141414;
    font-family: 'aptos';
    font-size: 1rem;
    max-width: 75vw;
    align-self: center;
    cursor: none;
    margin-bottom: 20vh;
}

@keyframes show {
    to {opacity: 1;}
}

.fixed {
    top: 0vh;
    left: 0vw;
    position: sticky;
}

@keyframes showSpan {
    to {opacity: 1;}
}

@keyframes hideC {
    to {opacity: 0;}
}

ul {
    padding: 50vh 0;
    width: 100%;
    position: relative;
    z-index: 1000;
    list-style-type: none;
    text-align: left;

    li { 
        animation: show 1s ease-in-out forwards, hideC 1s ease-in-out forwards;
        animation-timeline: view(), view();
        animation-range-start: 75vh, 195vh;
        animation-range-end: 100vh, 230vh;
        opacity: 0;
        width: 100%;
        margin: 0;
        position: relative;

        img {
            animation: imgFade 8s;
            object-fit: cover;
            width: 100%;
            height: 100vh;
            object-position: center;
        }

        span {
            position: absolute;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            top: 1vh;
            font-size: 1rem;
            animation: none;
            transition: none;
            font-family: 'aptos';
            color: #eeeeee;
        }
    }

    > span {
        margin: -5vh 2vw 0 2vw;
        opacity: 0;
        display: block;
        color: #fff;
        font-size: 11vmax;
        font-family: 'Tusker Grotesk SB 3600';
        animation: showSpan 1s ease-in-out forwards;
        animation-timeline: view(75vh 25vh);
    }

    > div {
        opacity: 0;
        text-align: center;
        margin-top: 55vh;
        height: 25vh;
        color: white;
        font-size: 1.25rem;
        font-family: 'aptos';
    }
}

@keyframes imgFade {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

footer {
    font-family: 'aptos';
    font-size: small;
    padding: 2% 0;
}

.end_list {
    width: fit-content;
    color: #141414;
    font-family: 'Tusker Grotesk SB 3600';
    font-size: 8vmax;
    text-align: left;
    padding-top: 25vmax;
    margin: 15vmax auto 3vh 3vw;
}

.slide {
    width: 100vw;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    margin: 5vmin 0;
}

@keyframes slide_rl {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes slide_lr {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0%);
    }
}

.series {
    display: inline-block;

    div {
        display: inline-block;
        padding: 0 4vmax;
        font-family: 'aptos';
        color: #141414;
        font-size: 1em;
    }
}

.slide:nth-child(even) .series{
    animation: slide_rl 30s infinite linear;
}

.slide:nth-child(odd) .series{
    animation: slide_lr 30s infinite linear;
}

#socials {
    margin-top: 2%;
    width: 100vw;
    font-family: 'aptos';
    font-size: 2vmax;
    font-weight: 700;

    #socials_list {
        margin: 2vmax auto;
        height: 4.5vmax;
        padding: 0 5%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        animation: none;

        .app {
            padding: 0 3%;
            height: 100%;

            a {
                height: 100%;
                width: 100%;
            }

            img {
                max-width: 100%;
                max-height: 100%;
            }
        }
    }
}

li:nth-of-type(odd) span {
    right: 0.3%;
    transform: rotate(180deg);
}

li:nth-of-type(even) span {
    left: 0.3%;
}

/* Source: https://www.youtube.com/watch?v=MBaw_6cPmAw */

#learnt {
    color: #eeeeee;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(95%);
    transition: 0.35s ease-in-out;
    border: 2px solid #141414;
    border-radius: 25px;
    z-index: -1;
    background-color: #141414;
    width: 95vw;
    opacity: 0;
    max-width: 95vw;
}

#learnt.active {
    z-index: 1001;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#learnt_header {
    font-family: 'Tusker Grotesk SB 3600';
    font-size: 4vmax;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #141414;
    padding: 1vmax 3vmax 3vmax 2vmax;
}

#learnt_close {
    font-weight: 600;
    color: #eeeeee;
    transform: scale(350%);
}

#overlay {
    position: fixed;
    max-height: 100vh;
    max-width: 100vw;
    transition: 0.5s ease-in-out;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

#overlay.active {
    opacity: 1;
    z-index: 1000;
    pointer-events: all;
}

button {
    color: #141414;
    background: transparent;
    outline: none;
    border: none;
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

button:hover {
    transform: scale(103%);
}

#learning {
    max-width: 80vw;
    display: grid;
    align-self: center;
    margin: 2vmax auto 4vmax auto;
    font-family: 'aptos';
    font-size: 1.5vmax;
    grid-template-rows: min-content;
    z-index: 999;

    div {
        grid-column: 2;
        height: 1em;

        img {
            display: block;
            height: 100%;
        }
    }
}

#learnt_body {
    max-width: 95%;
    font-family: 'aptos';
    font-size: 1.4vmax;
    line-height: 200%;
    margin: 0 auto 5vmin auto;
}

@media only screen and (max-width: 600px) {
    body {
        background-image: url("../Images/gradient_phone.png");
        border-radius: 25px;
    }

    html {
        padding: 0;
        border-radius: 25px;
    }

    #navigation {
        width: 100vw;
    }

    #navigation2 {
        max-height: 15vh;

        #center {
            grid-row: 1;
            grid-column: 1/4;
        }
        .left,
        .right {
            grid-row: 2;
            padding: 0 0 2vmin 0;
        }
    }

    ul {
        padding: 40vh 0 !important;
    }

    ul > div {
        margin-top: 65vh;
    }
}