/*
main.css
Copyright (C) 2025 Developers of Framescape.

part of the Framescape project.
*/

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');



:root {
    --border-radius: 8px;
    --main-padding: 8px;

    --detail-section-height: 90vh;
    --detail-sections-spacing: 16px;
    --detail-finals-spacing: 8px;

    --foreground: #ffffff;
    --link-foreground: #a5b6f2;
    --header-background: rgba(5, 5, 5, 0.45);
    --blur-background: rgba(5, 5, 5, 0.25);
    --accent: rgb(74, 219, 200);
    --accent-dark: rgb(18, 58, 53);

    --header-height: 24px;
}


* {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
}

html {
    background: rgb(15, 15, 15);
}

html {
    overflow: hidden;
}
body {
    overflow: scroll;
    min-height: 100vh;
    min-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    max-width: 100vw;
    width: 100vw;

    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;

    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url(https://fonts.gstatic.com/icon/font?kit=kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVYLALnqMAqXqIgntJnc-AscBGa&skey=b8dc2088854b122f&v=v271) format('woff2');
}
.symbols {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: var(--foreground);
}

header {
    all: unset;
    position: fixed;

    background: var(--header-background);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

    top: 0;
    left: 0;
    right: 0;

    width: calc(100% - 48px);
    height: var(--header-height);
    backdrop-filter: brightness(0.5) blur(10px);
    -webkit-backdrop-filter: brightness(0.5) blur(10px);

    gap: 24px;
}
header .home {
    margin-right: auto;
}
header a:nth-child(2) {
    margin-left: auto;
}
header a {
    all: unset;
    color: var(--foreground) !important;
    
    font-weight: 600;
    transition-duration: 250ms;
    transition-property: filter;
    transition-timing-function: ease-out;
}
header a:hover {
    filter: brightness(0.65);
}

.expansionMenuInterface {
    display: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}
.expansionMenu {
    display: none;
}
.preload * {
    transition: none !important;
}
@media only screen and (max-width: 600px) {
    .redirects {
        display: none;
    }

    .expansionMenuInterface {
        display: block;
        margin-left: auto;
        user-select: none;
        -moz-user-select: none;
        -webkit-user-drag: none;
        -webkit-user-select: none;
        font-size: 24px;
    }
    .expansionMenuInterface:hover {
        cursor: pointer;
    }

    .expansionMenu {
        visibility: hidden !important;
        z-index: 300;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        min-height: 100vh;
        min-width: 100vw;
        max-height: 100vh;
        height: 100vh;
        max-width: 100vw;
        width: 100vw;

        padding: 0;
        margin: 0;

        background: var(--accent-dark);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);

        filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, var(--shadow-intensity)));
        -webkit-filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, var(--shadow-intensity)));
        transform: scale(1.5);
        opacity: 0;
        -webkit-transition-duration: 250ms;
        -webkit-transition-timing-function: ease;
        -webkit-transition-property: all;
        transition-duration: 250ms;
        transition-timing-function: ease;
        transition-property: all;
    }
    .expansionMenu .contents {
        margin-left: auto;
        margin-right: auto;
        min-height: 100vh;
        max-height: 100vh;
        height: 100vh;

        display: flex;
        flex-direction: column;
        width: fit-content;
        justify-content: center;
    }
    .expansionMenu .contents .expansionMenuInterface {
        top: var(--header-height) !important;
        right: var(--header-height);
        left: auto;
        bottom: auto;
        position: absolute;
    }
    .expansionMenu h1 {
        margin: 0;
    }
    .expansionMenu h1>span {
        color: var(--accent) !important;
    }
    .expansionMenu a {
        all: unset;
        color: var(--foreground) !important;
        font-size: 20px;
        
        font-weight: 600;
        transition-duration: 250ms;
        transition-property: filter;
        transition-timing-function: ease-out;
    }
    .expansionMenu .home {
        display: flex;
        flex-direction: row;
        gap: 4px;
        align-items: center;
        justify-content: center;
    }
    .expansionMenu a:hover {
        text-decoration-line: underline;
        text-decoration-color: var(--foreground);
    }
    .expansionMenuOpenState {
        visibility: visible !important;
        transform: scale(1);
        opacity: 1;
    }
}

.logo {
    height: 30px;
    width: 50px;
    transition: transform 0.3s ease-in-out;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}

body {
    display: flex;
    flex-direction: column;
    -ms-overflow-style: none;
    scrollbar-width: none;

    padding: 0;
    margin: 0;
}

body::-webkit-scrollbar {
    display: none;
}


p,
h1,
h2,
noscript,
sub,
a {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding: none;
    color: #ffffff;
}
a {
    color: var(--link-foreground) !important;
}



div {
    flex-direction: column;
}

.populatedSection {
    display: flex;
    flex-direction: row;

    min-height: 100vh;
    min-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    max-width: 100vw;
    width: 100vw;

    padding: 0;
    margin: 0;

    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-align: start;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-snap-stop: always;
    -ms-overflow-style: none;
    scrollbar-width: none;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.populatedSection::-webkit-scrollbar {
    display: none;
}
.populatedSection[data-scroll-direction="right"] {
    flex-direction: row;
}
.populatedSection[data-scroll-direction="left"] {
    flex-direction: row-reverse;
}


.populatedSection .titleScreen,
.populatedSection .contentScreen {
    position: relative;
    display: flex;
    scroll-snap-align: start;

    min-height: 100vh;
    min-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    max-width: 100vw;
    width: 100vw;
}

.populatedSection .titleScreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: var(--foreground);
}
.populatedSection .titleScreen .landing {
    width: 80vw;
    max-width: 1000px;
    height: fit-content;
    align-self: center;
    justify-self: center;
}
.populatedSection[data-scroll-direction="left"] .titleScreen .landing h1,
.populatedSection[data-scroll-direction="left"] .titleScreen .landing p {
    width: 100%;
    text-align: left;
}
.populatedSection[data-scroll-direction="right"] .titleScreen .landing h1,
.populatedSection[data-scroll-direction="right"] .titleScreen .landing p {
    width: 100%;
    text-align: right;
}
.populatedSection[data-scroll-direction="left"] .titleScreen .landing h1,
.populatedSection[data-scroll-direction="right"] .titleScreen .landing h1 {
    font-size: 72px;
    font-weight: 600;
    margin-bottom: 0;
}
.populatedSection[data-scroll-direction="left"] .titleScreen .landing p,
.populatedSection[data-scroll-direction="right"] .titleScreen .landing p {
    font-size: 20px;
}
.populatedSection .contentScreen .contents {
    display: flex;
    flex-direction: row;
    overflow: scroll;

    width: 100vw;
    max-width: 100vw;
    gap: 16px;

    -ms-overflow-style: none;
    scrollbar-width: none;
}
.populatedSection .contentScreen .contents::-webkit-scrollbar {
    display: none;
}
.populatedSection .contentScreen .contents .panel:first-child {
    margin-left: 16px;
}
.populatedSection .contentScreen .contents .spacer {
    min-width: 16px;
    width: 16px;
}
.populatedSection .contentScreen .contents .panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 540px;
    padding: 24px;
    gap: 8px;
    
    margin-top: calc(12px + var(--header-height) + 32px);
    height: calc(100vh - var(--header-height) - 32px - 24px - 48px);
    margin-bottom: 12px;
    
    background: rgba(30, 30, 30, 0.45);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(5, 5, 5, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.populatedSection .contentScreen .contents .panel[data-type="smaller"] {
    flex: 0.5 1 0% !important;
}
.populatedSection .contentScreen .contents .panel h2 {
    margin-top: 8px;
    margin-bottom: 0px;
    color: var(--foreground);
}
.populatedSection .contentScreen .contents .panel p {
    margin-top: 0px;
    margin-bottom: 0px;
}
.populatedSection .contentScreen .contents .highlighted {
    color: var(--accent);
    font-weight: 700;
}

.populatedSection .contentScreen .contents .panel img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
}
.populatedSection .contentScreen .contents .panel img[data-cover="0.5"] {
    height: auto;
    min-height: 0%;
    flex-basis: 50%;
}
.populatedSection .contentScreen .contents .panel img[data-cover="1"] {
    height: auto;
    min-height: 0%;
    flex-basis: 100%;
}
@media only screen and (max-width: 600px) {
    .populatedSection .contentScreen .contents {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: scroll;

        width: 100vw;
        max-width: 100vw;
        gap: 16px;
        row-gap: 16px;

        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .populatedSection .contentScreen .contents::-webkit-scrollbar {
        display: none;
    }
    .populatedSection .contentScreen .contents .panel:first-child {
        margin-left: 0px !important;
        margin-top: calc(12px + var(--header-height) + 32px);
    }
    .populatedSection .contentScreen .contents .spacer {
        min-width: 0px !important;
        width: 0px !important;
        min-height: 16px !important;
        height: 16px !important;
    }
    .populatedSection .contentScreen .contents .panel {
        display: flex;
        flex-direction: column;
        flex: 1 1 0%;
        min-width: 80vw;
        width: 80vw;
        max-width: 80vw;
        padding: 24px;
        gap: 8px;
        
        margin-top: 0px;
        height: calc(90vh - var(--header-height) - 104px);
        margin-bottom: 0px;
        
        background: rgba(30, 30, 30, 0.45);
        border-radius: 8px;
        box-shadow: 0 4px 30px rgba(5, 5, 5, 0.15);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    .populatedSection .contentScreen .contents .panel:nth-child(2) {
        height: calc(110vh - 104px);
    }
}

.populatedSection[data-type="lander"] .titleScreen .landing {
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
.populatedSection[data-type="lander"] .titleScreen .landing h1 {
    font-size: 72px;
    font-weight: 600;
    margin-bottom: 0;
}
.populatedSection[data-type="lander"] .titleScreen .landing h1 .logoEmbed {
    margin-bottom: -14px;
    margin-left: -49px;
    margin-right: -32px;
    height: 75px;
    width: 125px;
    transition: transform 0.3s ease-in-out;
}
.populatedSection[data-type="lander"] .titleScreen .landing h2 {
    font-size: 24px;
    font-weight: 400;
}
@media only screen and (max-width: 600px) {
    .populatedSection[data-type="lander"] .titleScreen .landing h1 {
        font-size: 40px;
        font-weight: 600;
        margin-bottom: 0;
    }
    .populatedSection[data-type="lander"] .titleScreen .landing h2 {
        font-size: 20px;
        font-weight: 400;
    }
}
.populatedSection[data-type="lander"] .titleScreen .landing .noscript {
    display: flex;
    width: 100% !important;
    justify-content: center;
    background: var(--accent);

    background: rgba(74, 219, 200, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(5, 5, 5, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.populatedSection[data-type="lander"] .titleScreen .landing .noscript>p {
    all: unset;
    text-align: center;

    font-weight: 600;

    margin-top: 8px;
    margin-bottom: 8px;
}
.populatedSection[data-type="lander"] .titleScreen .landing h1>span {
    color: var(--accent);
}
.populatedSection[data-type="lander"] .titleScreen .landing .loadingMessage,
.populatedSection[data-type="lander"] .titleScreen .landing .scrollMessage {
    transition-property: filter, opacity, transform;
    transition-timing-function: ease-in-out;
    transition-duration: 0.5s;
    margin: 0;
}
.populatedSection[data-type="lander"] .titleScreen .landing .loadingMessage {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0%);
    
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}
@keyframes animateTransitionInScrollMessage {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(-10%);
    }
    100% {
        opacity: 1 !important;
        filter: blur(0) !important;
        transform: translateY(0%) !important;
    }
}
.populatedSection[data-type="lander"] .titleScreen .landing .scrollMessage {
    margin-top: -20px;
    animation-name: animateTransitionInScrollMessage;
    animation-timing-function: ease-in-out;
    animation-duration: 0.5s;
}
.appearTransition {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0%) !important;
}
.disappearTransition {
    opacity: 0 !important;
    filter: blur(5px) !important;
    transform: translateY(-10%) !important;
}
.loader {
    all: unset;
    width: 16px;
    height: 16px;
    border: 2px solid var(--foreground);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;

    margin-bottom: -2px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
