@font-face {
    font-family: "ReadexMedium";
    src: url("../fonts/ReadexPro-Medium.ttf");
}

@font-face {
    font-family: "ReadexBold";
    src: url("../fonts/ReadexPro-Bold.ttf");
}

@font-face {
    font-family: "DMSerifDisplay";
    src: url("../fonts/DMSerifDisplay-Regular.ttf");
}

:root {
    --primary-color: #FFFFFF;
    --secondary-color: #000000;
    --accent-color: #E60A17;
    --text-dark: #000000;
    --text-light: #A3A3A3;

    --info-color: #FFC368;
    --warning-color: #E64646;
    --success-color: #46E686;

    --max-width: 1000px;

}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body {
    font-family: "ReadexMedium", sans-serif;
}

h1 {
    font-family: "DMSerifDisplay", serif;
}

.fade-in-element {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
}

nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    z-index: 99;
}



.nav__content {
    max-width: var(--max-width);
    margin: auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo img {
    height: 2.5rem;
}

nav .checkbox {
    display: none;
}

nav input {
    display: none;
}

nav .checkbox i {
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    transition: left 0.3s;
}

nav ul li a {
    padding: 0.5rem 1rem;
    border: 3px solid transparent;
    text-decoration: none;
    font-weight: 400;
    color: var(--text-light);
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.section {
    background-color: var(--primary-color);
}

.landing {
    min-height: 100vh;
}

.inner-content {
    width: 85%;
    display: flex;
    flex-direction: column;
}


.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.content {
    max-width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.right-content {
    flex-direction: row;
}

.description {
    max-width: 80%;
}


.title {
    font-size: 3.5rem;
    font-weight: 100;
    line-height: 4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

p {
    line-height: 1.5rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.right-handed {
    text-align: right;
    align-self: end;
}

.right-handed p {
    align-self: end;
}

.action__btns {
    display: flex;
}

.action__btns button {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 1rem 1rem;
    outline: none;
    cursor: pointer;
}

.show_more {
    font-family: 'ReadexMedium';
    font-weight: 800;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transition: 0.3s;
    border: none;
}

.show_more .ri-arrow-right-line {
    color: var(--primary-color);
    transition: 0.3s;
    font-size: 1.2rem;
    margin-left: 2.5rem;
}

.show_more:hover {
    color: var(--primary-color);
    background-color: var(--accent-color);
}

.show_more:hover .ri-arrow-right-line {
    font-size: 1.2rem;
    margin-left: 3rem;
    color: var(--primary-color);
}


#webgl-mockup {
    width: min(25rem, 90%);
    aspect-ratio: 1/1.4;
    display: grid;
    place-items: center;
}



@media (width < 750px) {
    nav .checkbox {
        display: block;
    }

    nav ul {
        position: absolute;
        width: 100%;
        height: calc(100vh - 85px);
        left: -100%;
        top: 85px;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
    }

    nav #check:checked~ul {
        left: 0;
    }

    nav ul li a {
        font-size: 1.25rem;
    }

    .section__container {
        padding: 10rem 1rem 5rem 1rem;
        text-align: center;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }

    .platforms {
        flex-direction: column;
    }

    .content {
        max-width: 100%;

    }

    .description {
        max-width: 100%;
    }

    .right-handed {
        text-align: center;
        flex-direction: column;


    }

    .inner-content {
        width: 100%;
    }

    .platform-icons {
        justify-content: center;
    }

    #webgl-mockup {
        margin: auto;
        grid-area: 1/1/2/2;
    }

    #platform-mockup {
        margin: auto;
        grid-area: 1/1/2/2;
    }

    .action__btns {
        margin: auto;
    }

    .show_more .ri-arrow-right-line {
        margin-left: auto;
    }

    .aboutMe {
        columns: none;
    }
}