* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --pseudo: paused;
}

#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;
    transition: 0.5s ease-in-out;

    img {
        width: 40vmax;
        height: auto;
        margin: auto;
    }
}

body {
    font-size: 100%;
    display: flex;
    flex-direction: column;
    background-color: #141414;
    border-radius: 5px;
    text-align: center;
    color: #141414;
    background-image: url("../Images/gradient_ultimate.png"), url("../Images/gradient_2.png");
    /*bg image should be 16:9*/
    background-repeat: repeat-y;
    background-size: contain;
}

html {
    width: 100vw;
    padding: 0.75%;
    background-color: #000000;
    border-radius: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#first {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    display: flex;
    align-items: center;
    background-color: transparent;
    min-height: 10vh;
    height: fit-content;
    padding: 0;
    font-size: 6vmax;
    font-family: 'aquirebold';
    color: #ff0000;
    animation: header 4s ease-in-out;
    animation-play-state: 𝘃𝗮𝗿(--pseudo);
}

.head::before {
    content: "NavThinks";
    animation: span 5s ease-in-out;
    animation-play-state: var(--pseudo);
}

.head {
    height: fit-content;
    transition: 0.5s;
    width: 100%;
}

.head:hover {
    color: #141414;
}

@keyframes span {
    0% {
        content: "Navraj Kalsi's";
        color: #141414;
        padding: 10% 0;
    }

    50% {
        opacity: 0;
        color: #141414;
    }

    70% {
        color: #ff0000;
    }

    100% {
        content: "NavThinks";
        padding: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.opening {
    font-size: 1.5rem;
    font-family: 'aptos ';
    margin: auto;
    transition: 0.7s;
    cursor: none;
    max-width: 75vw;
}

.opening:hover {
    transform: scale(105%);
}

@keyframes header {
    0% {
        min-height: 100vh;
    }

    100% {
        min-height: 10vh;
    }
}

.arrow-container {
    margin: 0.25% auto 1% auto;
    display: inline-flex;
    align-items: center;
    transition: 1s;
    animation: arrow 3s ease-in-out infinite;
}

.arrow {
    margin: auto;
    display: inline-block;
    width: 25px;
    height: 25px;
    border-top: 3px;
    border-right: 3px;
    border-bottom: 0;
    border-left: 0;
    border-color: #141414;
    transform: rotate(135deg);
    border-style: solid;
}

.arrow-container:hover {
    animation-play-state: paused;
}

@keyframes arrow {
    0% {
        padding-top: 0;
        padding-bottom: 2%;
    }

    50% {
        padding-top: 2%;
        padding-bottom: 0;
    }

    100% {
        padding-top: 0;
        padding-bottom: 2%;
    }
}

.scroll-down {
    margin: 0;
    font-size: 0.9em;
}

.noBar::-webkit-scrollbar {
    display: none;
}

.about_p,
.about_h {
    color: #eeeeee;
    font-family: 'aptos';
}

.about_h {
    font-size: 2.25vmax;
    margin: 3% auto 0 2%;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
    height: fit-content;
}

.about_p {
    font-size: 1.25vmax;
    margin: 4% 2%;
    text-align: left;
    grid-column: 1;
    grid-row: 2;
}

ul {
    margin: 2vmax auto;
    height: 4.5vmax;
    list-style-type: none;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

li {
    padding: 0 3%;
    height: 100%;

    a {
        height: 100%;
        width: 100%;
    }

    img {
        max-width: 100%;
        max-height: 100%;
    }
}

nav {
    font-family: 'aptos';
    font-size: 2vmax;
    font-weight: 700;
    margin-top: 2%;
}

.animoji {
    margin: auto;
    display: block;
    max-width: 12vw;
    grid-column: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    pointer-events: none;

    img {
        width: 100%;
    }
}

/* From: https://www.youtube.com/watch?v=nAjR0Oj0J8E */

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.pages {
    display: flex;
    align-items: center;
    justify-items: center;
    min-height: 50vh;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.pages_slide {
    height: 100%;
    padding: 5vmax 0;
    display: inline-block;
    animation: slide 20s infinite linear;
}

.card {
    height: 100%;
    background-color: #18191a;
    box-sizing: content-box;
    padding: 0;
    position: relative;
    display: inline-block;
    height: fit-content;
    width: 30vmax;
    transition: 0.5s ease-in-out;
    margin: 0 5vmax;
    border-color: #18191a;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-radius: 10px;
    box-shadow: 0 0 0.5vmax 0.5vmax #18191a;

    .title {
        display: block;
        position: absolute;
        float: right;
        top: 31%;
        width: 100%;
        text-align: center;
        z-index: 1000;
        color: white;
        font-family: 'aptos';
        font-weight: 1000;
        font-size: 4.5vmax;
    }
}

.card:hover {
    transform: scale(105%);
}

.card_image {
    width: 100%;
    height: auto;
    filter: blur(10px);
    border-radius: 10px;
}

.pages:hover .pages_slide {
    animation-play-state: paused;
}

section {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    background-color: #141414;
    height: fit-content;
}

footer {
    font-family: 'aptos';
    font-size: 1vmax;
    padding: 2% 0;
}

/* 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;
    width: 100vw;
    transition: 0.5s ease-in-out;
    opacity: 0;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

#overlay.active {
    opacity: 1;
    z-index: 999;
    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 {
    margin: 2vmax auto 4vmax auto;
    display: grid;
    max-width: 80vw;
    align-self: center;
    font-family: 'aptos';
    font-size: 1.5vmax;
    z-index: 999;
    grid-template-rows: min-content;

    div {
        grid-column: 2;
        height: 1em;

        img {
            display: block;
            height: 100%;
        }
    }
}

#learnt_body {
    max-width: 75%;
    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;
    }

    header {
        color: #141414;
    }

    .arrow-container {
        transform: scale(75%);
    }

    .animoji {
        visibility: hidden;
    }

    .pages {
        overflow-x: scroll;
    }

    .pages::-webkit-scrollbar {
        display: none;
    }

    .pages_slide {
        animation: none;
    }

    #class2 {
        display: none;
        content-visibility: hidden;
        visibility: hidden;
    }
}