:root {
    --text-default: #ffffff;

    --header-text: #d32786;

    --button: #2738d3;
    --button-text: white;
    --button-hover: rgb(50, 35, 184);
    --button-press: #3675d3;

    --button-alt: #d32786;
    --button-hover-b-alt: #d32786;
    --button-hover-alt: #a021677e;
    --button-press-alt: #5d83bd80;

    --link-def: #91e9ff;
    --link-visited: #efff91;

    --team-card: #1e1b20;

    --nav: #261e27;

    --section: #1e1b20;
    --section-alt: #3e3642;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--nav);
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url("../media/backgrounds/stageback.png");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(255, 255, 255);
}

header {
    text-align: center;

    padding: 15vh 2em 25vh 2em;

    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)), url("../media/backgrounds/fnfmobile.jpeg") no-repeat;
    background-size: cover;
    background-position: right;

    box-shadow: 0 14px 18px rgba(0, 0, 0, 0.5);

    h1 {
        font-size: clamp(22px, 5vw, 45px);
        margin-bottom: 1em;
    }

    h2 {
        font-size: clamp(16px, 4.5vw, 30px);
        margin-bottom: 4em;
    }
}

footer {
    padding: 20px;
    background-color: var(--nav);

    section {
        h2 {
            color: var(--header-text);
            font-size: 1.5em;
        }

        p {
            margin: 20px 0px 20px 0px;
            font-size: 1em;
            line-height: 1.25rem;
        }
    }

    div {
        padding: 40px;

        p {
            margin: 20px 0px 20px 0px;
            font-size: 1em;
            line-height: 1.25rem;
        }
    }
}

section {
    padding: 40px;

    h2 {
        color: var(--header-text);
        font-size: 2.5em;
    }

    h2~p {
        font-size: 1.25rem;
        line-height: 1.5em;
    }
}

nav {
    padding: 15px 30px 15px 30px;
    position: sticky;
    top: 0;
    left: 0;
    background-color: var(--nav);
    z-index: 9999;

    display: grid;
    grid-template-columns: 0.1fr 1fr;

    box-shadow: 0 14px 18px rgba(0, 0, 0, 0.5);
}

nav a:link,
nav a:link:visited,
nav a:link:hover {
    color: white;
}

nav ul li a:link {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

nav ul li a:visited {
    color: rgb(255, 255, 255);
}

nav ul li a:link:hover,
ul li a:visited:hover {
    color: rgb(163, 163, 163);
}

nav ul li a:link:active,
ul li a:visited:active {
    color: rgb(77, 77, 77);
}

a:link {
    color: var(--link-def);
}

a:visited {
    color: var(--link-visited);
}

hr {
    margin: 0px 40px 0px 40px;
}

/* Custom Targets */

.section-img {
    margin-bottom: 20px;

    width: 100%;
    height: auto;
}

.responsive-nav .hamburger {
    font-size: 1.5em;
    color: var(--text-header);
    background-color: transparent;
    cursor: pointer;
    border: none;

    text-align: right;
    padding-right: 0.5em;
}

.nav-links {
    list-style: none;
    display: grid;
    padding: 0.5em;

    padding-right: 0.5em;

    grid-column-start: 2;
    text-align: right;
}


.nav-links li {
    transform: scale(1);
    transition: transform 0.1s ease-in-out;
    padding: 0.5em;
}

.nav-links a {
    text-decoration: none;

    font-size: 20px;
    font-weight: bolder;
}

.nav-logo {
    width: 100%;
    min-width: 80px;
    max-width: 100px;
    height: auto;
}

.nav-links-footer {
    list-style: none;
    display: grid;

    text-decoration: none;

    font-size: 1em;
    font-weight: bolder;

    li {
        padding-top: 10px;
    }

    li a {
        color: var(--text-default);

    }

    li a:hover {
        color: var(--button-press-alt)
    }

    li a:active {
        color: var(--button-press);
    }
}

.hero-logo {
    width: 40vw;
    min-width: 300px;
    max-width: 600px;
    height: auto;

    margin-bottom: 20px;
}

.action-button {
    background-color: var(--button);
    color: var(--button-text);
    display: inline-block;
    text-align: center;
    text-decoration: none;

    width: 80%;

    border-radius: 12px;
    border-style: none;

    padding: 0.75em 6vw 0.75em 6vw;
    margin-top: 2em;

    font-size: 4vw;
    font-weight: bolder;
}

.action-button:link,
.action-button:visited {
    color: var(--button-text);
    text-decoration: none;
}

.action-button:hover {
    background-color: var(--button-hover)
}

.action-button:active {
    background-color: var(--button-press)
}

.alt-button {
    background-color: transparent;
    border: var(--button-alt) 4px solid;

    width: 100%;
    max-width: 300px;

    padding: 0.75em 3vw 0.75em 3vw;
    margin-top: 0.5em;

    font-size: 1em;
}

.alt-button:hover {
    background-color: var(--button-hover-alt);
    border-color: var(--button-hover-b-alt);
}

.alt-button:active {
    background-color: var(--button-press-alt);
    border-color: var(--button-press);
}

.engine-button {
    background-color: transparent;
    border: var(--button) 4px solid;

    width: 100%;
    max-width: 250px;

    padding: 0.75em 3vw 0.75em 3vw;
    margin: 2em 0 4em 0;

    font-size: 1em;
}

.engine-button:active {
    background-color: var(--button-press-alt);
    border-color: var(--button-press);
}

.about-card {
    border: 12px;
}

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

.about,
.history,
.opensource,
.vslice,
.engines {
    padding: 40px;
    p {
        margin: 20px 0px 20px 0px;
    }
}

.opensource,
.vslice {
    background-color: var(--section-alt);
    display: flex;
    flex-direction: column;

    section {
        padding-left: 0;
    }
}

.opensource,
.team {
    h2 {
        color: var(--text-default)
    }
}

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

.engines {
    p {
        max-width: 100%;
        font-size: 1.25rem;
        line-height: 1.5em;
    }

    h2 {
        color: var(--text-default);
    }

    h3 {
        font-size: 1.5em;
        text-align: right;
        color: var(--text-default);
    }
}

.mobile-carousel-controls {
    display: none;
}

.performer-images {
    margin-top: 30px;

    display: grid;
    grid-template-columns: 1fr;
}

.show-container {
    border-radius: 40px;
    background: var(--team-card);
    display: flex;
    flex-direction: column;
    align-items: center;

    scroll-snap-align: center;

    margin: 20px;

    text-align: center;

    h3 {
        margin-top: 20px;
        font-size: 1.5em;
    }

    p {
        margin-top: 10px;
        font-size: 1em;
    }

    box-shadow: 0 7px 9px rgba(0, 0, 0, 0.2);
}


.showcase-image {
    border-radius: 20px;

    width: 80%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    margin-bottom: 10px;
    margin-top: 40px;
}

.socials {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.socials a {
    box-sizing: border-box;
    background-color: #000000;
    border-radius: 100%;
    display: flex;
    width: clamp(44px, 12%, 64px);
    aspect-ratio: 1;
    justify-content: center;
    align-items: center;
    padding: 8px;

    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.socials a:hover {
    filter: brightness(50%);
    transform: scale(1.1);

    transition: transform 0.3s ease-in-out;
}

.socials a:active {
    filter: brightness(100%);
    transform: scale(0.9);
    transition: transform 0.1s ease-in-out;
}

.icon {
    width: 100%;
    height: auto;
}


/* MEDIA SCREEN RESCALING */

@media screen and (max-width: 620px) {
    .mobile-carousel-controls {
        display: flex;
        justify-content: flex-end;
        gap: 20px;
        margin-top: 20px;
    }

    .mob-team {
        justify-content: flex-start;
    }

    .mobile-carousel-arrow,
    .mobile-carousel-arrow-team {
        display: grid;
        place-items: center;
        width: 56px;
        height: 56px;
        border: 0;
        border-radius: 50%;
        background-color: var(--button);
        color: var(--button-text);
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;

        box-shadow: 0 7px 9px rgba(0, 0, 0, 0.2);
    }

    .mobile-carousel-arrow:hover,
    .mobile-carousel-arrow-team:hover {
        background-color: var(--button-hover);
    }

    .mobile-carousel-arrow:active,
    .mobile-carousel-arrow-team:active {
        background-color: var(--button-press);
    }

    .mobile-scroll {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 40px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;

        margin-right: -40px;
        margin-left: -40px;
        margin-top: 10px;
        padding: 8px 40px 24px;
    }

    .mobile-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-scroll .show-container {
        flex: 0 0 clamp(220px, 78vw, 340px);
        margin: 0;
    }
}

@media screen and (min-width: 620px) {

    header {
        padding-left: 2em;
        text-align: right;

        background-position: center;

        h1,
        h2 {
            margin-right: 40px;
            margin-bottom: 10px;
        }

        .action-button {
            font-size: 1.5em;

            width: auto;
            margin-right: 40px;
        }
    }

    .performer-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .show-container {
        margin: 8px;
    }

    .nav-links {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .responsive-nav .hamburger {
        display: none;
    }

    .responsive-nav .nav-links {
        display: flex;
        text-align: left;
        flex-direction: row;
    }

    .grpInfo {
        display: grid;
        grid-template-rows: 1fr;
    }

    .opensource,
    .vslice {
        .rescale-img {
            width: 100%;
            object-fit: cover;

            max-height: 400px;
        }

        section {
            padding: 0px 40px 0px 40px;
        }
    }

    .engines {
        p {
            max-width: 70%;
            font-size: 1.25rem;
            line-height: 1.5em;
        }
    }
}

/* BIG SCREEN! */
@media screen and (min-width: 1024px) {
    .performer-images {
        grid-template-columns: repeat(3, 1fr);
    }

    .grpInfo {
        display: grid;
        grid-template-columns: 0.9fr 1fr;
    }

    .opensource,
    .vslice {
        .rescale-img {
            min-width: 300px;
            max-width: 400px;
            max-height: none;
            width: 100%;
            object-fit: cover;
        }

        section {
            padding: 0px 40px 0px 40px;
        }

    }

    .opensource {
        flex-direction: row;
    }

    .vslice {
        flex-direction: row-reverse;
    }

    footer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    section {
        h2~p {
            font-size: 1.25rem;
            line-height: 1.5em;
        }
    }
}