/* ============================ Fonts ============================ */
/* TODO : Remove unused fonts */
/* Future Earth */
@font-face {
    font-family: Future-Earth;
    src: url(/res/fonts/Future-Earth.ttf);
}
/* CreatoDisplay Black */
@font-face {
    font-family: CreatoDisplay-Black;
    src: url(/res/fonts/creato_display/CreatoDisplay-Black.otf);
}
/* CreatoDisplay BlackItalic */
@font-face {
    font-family: CreatoDisplay-BlackItalic;
    src: url(/res/fonts/creato_display/CreatoDisplay-BlackItalic.otf);
}
/* CreatoDisplay Bold */
@font-face {
    font-family: CreatoDisplay-Bold;
    src: url(/res/fonts/creato_display/CreatoDisplay-Bold.otf);
}
/* CreatoDisplay BoldItalic */
@font-face {
    font-family: CreatoDisplay-BoldItalic;
    src: url(/res/fonts/creato_display/CreatoDisplay-BoldItalic.otf);
}
/* CreatoDisplay ExtraBold */
@font-face {
    font-family: CreatoDisplay-ExtraBold;
    src: url(/res/fonts/creato_display/CreatoDisplay-ExtraBold.otf);
}
/* CreatoDisplay ExtraBoldItalic */
@font-face {
    font-family: CreatoDisplay-ExtraBoldItalic;
    src: url(/res/fonts/creato_display/CreatoDisplay-ExtraBoldItalic.otf);
}
/* CreatoDisplay Light */
@font-face {
    font-family: CreatoDisplay-Light;
    src: url(/res/fonts/creato_display/CreatoDisplay-Light.otf);
}
/* CreatoDisplay LightItalic */
@font-face {
    font-family: CreatoDisplay-LightItalic;
    src: url(/res/fonts/creato_display/CreatoDisplay-LightItalic.otf);
}
/* CreatoDisplay Medium */
@font-face {
    font-family: CreatoDisplay-Medium;
    src: url(/res/fonts/creato_display/CreatoDisplay-Medium.otf);
}
/* CreatoDisplay MediumItalic */
@font-face {
    font-family: CreatoDisplay-MediumItalic;
    src: url(/res/fonts/creato_display/CreatoDisplay-MediumItalic.otf);
}
/* CreatoDisplay Regular */
@font-face {
    font-family: CreatoDisplay-Regular;
    src: url(/res/fonts/creato_display/CreatoDisplay-Regular.otf);
}
/* CreatoDisplay RegularItalic */
@font-face {
    font-family: CreatoDisplay-RegularItalic;
    src: url(/res/fonts/creato_display/CreatoDisplay-RegularItalic.otf);
}
/* CreatoDisplay Thin */
@font-face {
    font-family: CreatoDisplay-Thin;
    src: url(/res/fonts/creato_display/CreatoDisplay-Thin.otf);
}
/* CreatoDisplay ThinItalic */
@font-face {
    font-family: CreatoDisplay-ThinItalic;
    src: url(/res/fonts/creato_display/CreatoDisplay-ThinItalic.otf);
}
/* ============================ System ============================ */
:root {
    /* ======== Variables ======== */
    --font-size-smallest: 0.75rem;
    --font-size-smaller: 1.00rem;
    --font-size-small: 1.25rem;
    --font-size-medium-small: 1.75rem;
    --font-size-medium: 2.50rem;
    --font-size-medium-large: 3.25rem;
    --font-size-large: 3.75rem;
    --font-size-larger: 4.25rem;
    --font-size-largest: 4.75rem;
    /* ======== Colors ======== */
    --transparent: #00000000;
    --white: #F6F6F6FF;
    --lightest: #D9D9D9FF;
    --lighter: #C8C8C8FF;
    --light: #B2B2B2FF;
    --medium-light: #9F9F9FFF;
    --medium: #888888FF;
    --medium-dark: #6E6E6EFF;
    --dark: #5A5A5AFF;
    --darker: #3F3F3FFF;
    --darkest: #222222FF;
    --black: #141414FF;
    /* ======== Themes ======== */
    /* Simple */
    --simple-background: var(--white);
    --simple-card-background: var(--medium-light);
    --simple-font-color: var(--black);
    --simple-border-color: var(--darkest);
    --simple-button-color: var(--black);
    --simple-button-hover: var(--dark);
    --simple-button-active: var(--darker);
    --simple-button-text: var(--medium);
    --simple-scrollbar-width: 10px;
    --simple-scrollbar-track-color: var(--medium-light);
    --simple-scrollbar-thumb-color: var(--light);
    --simple-scrollbar-thumb-hover-color: var(--lighter);
    /* Simple Dark */
    --simple-dark-background: var(--black);
    --simple-dark-card-background: var(--medium-dark);
    --simple-dark-font-color: var(--white);
    --simple-dark-border-color: var(--lightest);
    --simple-dark-button-color: var(--white);
    --simple-dark-button-hover: var(--light);
    --simple-dark-button-active: var(--lighter);
    --simple-dark-button-text: var(--medium);
    --simple-dark-scrollbar-width: 10px;
    --simple-dark-scrollbar-track-color: var(--medium-dark);
    --simple-dark-scrollbar-thumb-color: var(--dark);
    --simple-dark-scrollbar-thumb-hover-color: var(--darker);
    /* System */
    --theme-background: var(--simple-dark-background);
    --theme-card-background: var(--simple-dark-card-background);
    --theme-font: CreatoDisplay-Black;
    --theme-font-color: var(--simple-dark-font-color);
    --theme-border-color: var(--simple-dark-border-color);
    --theme-button-color: var(--simple-dark-button-color);
    --theme-button-hover: var(--simple-dark-button-hover);
    --theme-button-active: var(--simple-dark-button-active);
    --theme-button-text: var(--simple-dark-button-text);
    --theme-scrollbar-width: var(--simple-dark-scrollbar-width);
    --theme-scrollbar-track-color: var(--simple-dark-scrollbar-track-color);
    --theme-scrollbar-thumb-color: var(--simple-dark-scrollbar-thumb-color);
    --theme-scrollbar-thumb-hover-color: var(--simple-dark-scrollbar-thumb-hover-color);
    /* ======== Page Statics ======== */
    --theme-navbar-height: 4.25rem;
}
html {
    min-height: 100vh;
}
body {
    width: 100vw;
    height: 100vh;
    margin: 0px;
    padding: 0px;
    padding-bottom: env(safe-area-inset-bottom);
    background-image: url(/res/images/sky_mix.png);
    background-size: cover;
    background-position: center;
    top: 0px;
    left: 0px;
    position: fixed;
}
/* Preload image resources */
body::after{
    position: absolute; width: 0; height: 0; overflow: hidden; z-index: -1;
    content: url(/res/images/sky_night.png) url(/res/images/sky_day.png);
}
@supports (height: 100dvh) {
    html, body {
        height: 100dvh;
        min-height: 100dvh;
        width: 100dvw;
        min-width: 100dvw;
    }
}
/* Typography */
* {
    font-family: var(--theme-font);
    color: var(--theme-font-color);
}
h1 {
    font-size: var(--font-size-largest);
    margin: 0px;
}
h2 {
    font-size: var(--font-size-larger);
    margin: 0px;
}
h3 {
    font-size: var(--font-size-large);
    margin: 0px;
}
h4 {
    font-size: var(--font-size-medium-large);
    margin: 0px;
}
h5 {
    font-size: var(--font-size-medium);
    margin: 0px;
}
h6 {
    font-size: var(--font-size-medium-small);
    margin: 0px;
}
p {
    font-size: var(--font-size-small);
    margin: 0px;
}
span {
    font-size: var(--font-size-smaller);
    margin: 0px;
}
a {
    text-decoration: none !important;
}
@media screen and (max-width: 768px) {
    :root {
        --font-size-smallest: 0.50rem;
        --font-size-smaller: 0.8125rem;
        --font-size-small: 1.125rem;
        --font-size-medium-small: 1.4375rem;
        --font-size-medium: 1.75rem;
        --font-size-medium-large: 2.0625rem;
        --font-size-large: 2.375rem;
        --font-size-larger: 2.6875rem;
        --font-size-largest: 3.0rem;
    }
}
/* Nav Bar */
#nav-bar {
    width: 100vw;
    height: var(--theme-navbar-height);
    background: var(--theme-background);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}
.nav-logo {
    height: 2.6rem;
    align-content: center;
    text-align: center;
    flex: 1;
}
#hide-nav-button {
    right: 22px;
    position: absolute;
    display: none;
}
.nav-list {
    display: flex;
    flex-direction: row;
    padding: 0px;
    margin: 0px;
    width: -webkit-fill-available;
    justify-content: space-around;
    flex: 4;
}
.nav-item {
    list-style: none;
}
.nav-icon {
    background-color: var(--theme-button-color);
    width: 2.6rem;
    height: 2.6rem;
    mask-size: 2.6rem !important;
}
.nav-icon:hover {
    background-color: var(--theme-button-hover);
}
.nav-icon:active {
    background-color: var(--theme-button-active);
}
/* Icons */
.h1-icon {
    width: var(--font-size-largest);
    height: var(--font-size-largest);
    mask-size: var(--font-size-largest) !important;
    background-color: var(--theme-font-color);
    display: inline-block;
    vertical-align: middle;
}
.camp-icon {
    -webkit-mask: url(/res/images/icons/camp.svg) no-repeat center;
    mask: url(/res/images/icons/camp.svg) no-repeat center;
}
.game-icon {
    -webkit-mask: url(/res/images/icons/controller.svg) no-repeat center;
    mask: url(/res/images/icons/controller.svg) no-repeat center;
}
.chart-icon {
    -webkit-mask: url(/res/images/icons/chart.svg) no-repeat center;
    mask: url(/res/images/icons/chart.svg) no-repeat center;
}
.community-icon {
    -webkit-mask: url(/res/images/icons/group.svg) no-repeat center;
    mask: url(/res/images/icons/group.svg) no-repeat center;
}
.support-icon {
    -webkit-mask: url(/res/images/icons/cog.svg) no-repeat center;
    mask: url(/res/images/icons/cog.svg) no-repeat center;
}
.membership-icon {
    -webkit-mask: url(/res/images/icons/user.svg) no-repeat center;
    mask: url(/res/images/icons/user.svg) no-repeat center;
}
.group-icon {
    -webkit-mask: url(/res/images/icons/group.svg) no-repeat center;
    mask: url(/res/images/icons/group.svg) no-repeat center;
}
.kickstarter-icon {
    -webkit-mask: url(/res/images/icons/kickstarter.svg) no-repeat center;
    mask: url(/res/images/icons/kickstarter.svg) no-repeat center;
}
@media screen and (max-width: 768px) {
    :root {
        --theme-navbar-height: 7.25rem;
    }
    #nav-bar {
        flex-direction: column;
    }
    .nav-logo {
        flex: 1;
        width: 100%;
    }
    #hide-nav-button {
        display: inline;
    }
    .nav-list {
        flex: 1;
        width: 100%;
    }
    .nav-item {
        text-align: center;
        text-align: -webkit-center;
        padding-block: 14px;
        border-left: 2px solid var(--theme-scrollbar-thumb-hover-color);
        border-bottom: 2px solid var(--theme-scrollbar-thumb-hover-color);
        flex: 1;
        background-color: var(--theme-background);
    }
    .nav-item:nth-child(1) {
        border-left: none;
    }
    .nav-hide {
        display: none;
    }
}
/* Parallax */
#content {
    width: 100%;
    height: calc(100% - var(--theme-navbar-height));
    position: static;
    overflow-x: hidden;
}
.parallax {
    width: 100%;
    min-height: 100%;
    position: relative;
}
.parallax-bg {
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-attachment: fixed;
}
.parallax-bg:nth-child(1) {
    background-image: url(/res/images/welcome.png);
    background-position-x: center;
    background-position-y: 15%;
    background-attachment: unset;
}
.parallax-bg:nth-child(1)::after {
    position: absolute; width: 0; height: 0; overflow: hidden; z-index: -1;
    content: url(/res/images/welcome.png);
}
.parallax-bg:nth-child(1) > img {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    height: 50vh;
}
.parallax-bg:nth-child(3) {
    background-image: url(/res/images/spaceship.png);
    background-position-x: 50%;
    background-position-y: 15%;
    background-attachment: unset;
}
.parallax-bg:nth-child(3)::after {
    position: absolute; width: 0; height: 0; overflow: hidden; z-index: -1;
    content: url(/res/images/spaceship.png);
}
.parallax-bg:nth-child(5) {
    background-image: url(/res/images/cerebrobot_games_body.png);
    background-position-x: 50%;
    background-position-y: 50%;
    background-attachment: unset;
    background-size: 50%;
}
.parallax-bg:nth-child(5)::after {
    position: absolute; width: 0; height: 0; overflow: hidden; z-index: -1;
    content: url(/res/images/cerebrobot_games_body.png);
}
.parallax-bg:nth-child(5) > div {
    background-image: url(/res/images/cerebrobot_games_head.png);
    background-position-x: 50%;
    background-position-y: 50%;
    background-attachment: unset;
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: 50%;
    background-repeat: no-repeat;
}
.parallax-bg:nth-child(5) > div::after {
    position: absolute; width: 0; height: 0; overflow: hidden; z-index: -1;
    content: url(/res/images/cerebrobot_games_head.png);
}
@media screen and (max-width: 768px) {
    .parallax-bg:nth-child(5) {
        background-size: contain;
    }
    .parallax-bg:nth-child(5) > div {
        background-size: contain;
    }
    
}
.parallax-tile {
    background: var(--theme-background);
    display: flex;
    flex-direction: row;
    align-items: center;
}
.parallax-tile>div {
    flex: 1;
    height: fit-content;
    padding-inline: 60px;
    padding-block: 20px;
    text-align: center;
    align-content: center;
}
@media screen and (max-width: 768px) {
    .parallax-tile {
        flex-direction: column;
    }
    .parallax-tile:nth-child(4n) {
        flex-direction: column-reverse;
    }
}
/* Effects */
.mirror-horizontal {
    transform: scale(-1, 1);
    display: inline-block;
}
.mirror-vertical {
    transform: scale(1, -1);
    display: inline-block;
}
/* Scrollbar */
::-webkit-scrollbar {
    width: var(--theme-scrollbar-width);
}
::-webkit-scrollbar-track {
    background: var(--theme-scrollbar-track-color);
}
::-webkit-scrollbar-thumb {
    background: var(--theme-scrollbar-thumb-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--theme-scrollbar-thumb-hover-color);
}
/* Inputs */
input {
    background-color: rgba(255, 255, 255, 0.4);
    width: 200px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-family: CreatoDisplay-Regular;
    font-size: var(--font-size-small);
    text-shadow: 0px 0px 3px black;
}
input:focus {
    background-color: rgba(238, 238, 238, 0.4);
    border: none;
    outline-width: 0;
}
/* Buttons */
.icon-button {
    color: var(--theme-button-color);
}
.icon-button:hover {
    color: var(--theme-button-hover);
    cursor: default;
}
.icon-button:active {
    color: var(--theme-button-active);
}
button {
    min-width: 100px;
    height: 60px;
    background-color: var(--theme-button-color);
    color: var(--theme-button-text);
    box-shadow: inset 0px 0px 12px 2px var(--theme-button-hover), 0px 0px 6px var(--theme-button-text);
    border-radius: 10px;
    border: none;
    font-size: var(--font-size-small);
    padding-inline: 20px;
}
button>span {
    color: var(--theme-button-text);
}
button:hover, button:disabled, button:disabled:active {
    background-color: var(--theme-button-hover);
    color: var(--theme-button-color);
}
button:hover>span, button:disabled>span {
    color: var(--theme-button-color);
}
button:active {
    background-color: var(--theme-button-active);
}
/* Glass */
.glass {
    background-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
/* Sliders */
.snap-slider {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    transform: 0.5s ease-in-out;
}
.snap-slider-box {
    width: 100%;
    height: 100%;
    position: relative;
}
/* Card */
.card {
    background-color: var(--theme-card-background);
    min-width: 400px;
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 32px;
    border-radius: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.card > .row > .icon-button {
    flex: 1;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 2.6rem;
    text-align: center;
}
@media screen and (max-width: 768px) {
    .card {
        min-width: 0px;
        width: calc(90% - 32px);
        padding: 24px 16px;
    }
    .card > .row {
        width: 90%;
        gap: 32px;
    }
    .card > .row > input {
        flex: 3;
        width: 100%;
    }
    .card > .row > label {
        flex: 1;
        width: 100%;
    }
    .card > .row > button {
        flex: 1;
        width: 100%;
    }
    .card > .row > .icon-button {
        flex: 1;
        width: 2.6rem;
        height: 2.6rem;
        font-size: 2.6rem;
    }
    .row:has(button) {
        justify-content: space-between;
    }
    .row:has(.icon-button) {
        flex-wrap: wrap;
    }
}
/* Tiles */
.tile-pane {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 22px;
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    padding: 22px;
    position: absolute;
}
.tile {
    width: 40%;
    border-radius: 14px;
}
.tile-head {
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}
#accounts-tile {}
#membership-tile {}
#settings-tile {}
#communication-tile {}
/* Popups */
.popup {
    background-color: var(--theme-card-background);
    min-width: 400px;
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 32px;
    border-radius: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.popup > h4 {
    color: var(--theme-font-color);
}
.popup > input {
    width: auto;
    font-size: var(--font-size-large);
    -moz-appearance: textfield;
}
.popup > input::-webkit-inner-spin-button,
.popup > input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Notifications */
.notification-container {
    width: calc(100vw - 4px);
    height: calc(100vh - 4px);
    position: fixed;
    top: 0px;
    left: 0px;
    pointer-events: none;
}
.notification-clear-button {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 50%;
    font-size: 1.5rem;
    pointer-events: all;
}
.notification-list {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
}
.notification-indicator {
    position: absolute;
    background-color: red;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    top: 0px;
    right: 0px;
}
.notification {
    width: calc(100% - 12px);
    height: fit-content;
    min-height: 80px;
    max-height: 20%;
    border-radius: 14px;
    position: relative;
    transition: opacity 0.55s;
    opacity: 1;
}
.notification > .notification-clear-button {
    border-radius: 50%;
    font-size: 1.4rem;
    pointer-events: all;
    position: absolute;
    top: 8px;
    right: 8px;
    text-shadow: 0px 1px 2px #434343;
}
.notification > div {
    width: calc(100% - 2.2rem - 22px - 1.4rem);
    height: 100%;
    left: calc(2.2rem + 14px);
    top: 0px;
    position: absolute;
    color: #5f5f5fff;
    mix-blend-mode: luminosity;
    text-align: center;
    align-content: center;
    pointer-events: all;
}
.notification-message {
    background-color: #a7f996ff;
    border: 3px solid #68a55b;
}
.notification-info {
    background-color: #44cdffff;
    border: 3px solid #2995bdff;
}
.notification-warning {
    background-color: #efaf62ff;
    border: 3px solid #ab7b41ff;
}
.notification-error {
    background-color: #ef7171ff;
    border: 3px solid #974545ff;
}
.notification-icon {
    font-size: 2.2rem;
    color: #777777ff;
    mix-blend-mode: luminosity;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
}
/* Layout */
.row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.col {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}