:root {
    color-scheme: only light;
}

html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #0b1327;
    width: 100%;
    height: 100vh; /* Fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-attachment: scroll;
    background-position: center center;
}

#app {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 100%;
    height: 100vh; /* Fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100);
}

.preloader, .preloader2 {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10;
    transform-origin: center center;
    width: 1000px;
    height: 1000px;
}

.preloader2 {
    width: 2000px;
    height: 2000px;
    visibility: hidden;
}

.preloader_inner {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0%);
    height: 100%;
    aspect-ratio: 1000 / 1000;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader_inner2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#gamification_logo {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
}

.logo {
    width: 640px;
    height: 280px;
    margin-bottom: 90px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    opacity: 0;
    transition: opacity 0.7s;
}


.splashTopSpacer {
    display: none;
    flex: 0 0 auto;
    width: 100%;
    height: 327px;
    pointer-events: none;
}

.preloader2:not(.gamification-enabled) .splashTopSpacer {
    display: block;
}


.progress_bar {
    background-color: #09394b;
    border-radius: 18px;
    width: 66%;
    height: 36px;
}

.progress_bar2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 1221px;
    height: 263px;
    margin-top: 50px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.bar {
    width: 0;
    height: 32px;
    margin: 1px;
    border-radius: 16px;
    min-width: 32px;
    background-image: url("./assets/images/preloader_bg.webp");
    background-color: #b3fbff;
    border: 1px solid #09394b;
}

.bar2 {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 50%;
    overflow: hidden;
    margin-left: 29px;
    width: 0;
    height: 193px;
}

.bar2Tip {
    position: absolute;
    left: calc(29px + var(--bar2-width, 0%));
    top: 50%;
    z-index: 1;
    width: 174px;
    height: 193px;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    pointer-events: none;
}

#lil_gui {
    top: 0px;
    left: 0px;
}

.bar2Holder {
    position: relative;
    padding: 0;
    width: 1163px;
    height: 192px;
}

.spines {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
}

.preloader2.gamification-landscape .spines {
    align-items: flex-start;
    justify-content: flex-start;
}

.preloader2.gamification-landscape #spineBlock2 {
    min-width: 0;
}

.preloader2.gamification-portrait .spines {
    justify-content: flex-start;
}

.spine {
    padding: 0;
    width: 100%;
    height: 100%;
    margin-bottom: -60px;
}

.splash {
    padding: 0;
    width: 100%;
    height: 100%;
    margin-bottom: -60px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.spineText {
    margin-top: 20px;
    padding: 0;
    font-family: GrandstanderCustom;
    color: white;
    font-size: 55px;
    text-shadow: -2px -2px 0 black,
    2px -2px 0 black,
    -2px 2px 0 black,
    2px 2px 0 black;
}

#splash1 {
    margin-bottom: 0;
}

#description1Text {
    margin-top: 20px;
    padding: 0;
    font-family: AlexandriaExtraBold;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    paint-order: stroke fill;
}

.soundToggle {
    filter: drop-shadow(1px 1px white) drop-shadow(-1px -1px white) drop-shadow(-1px 1px white) drop-shadow(1px -1px white);
}

.spineBlock {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

.preloader2.gamification-enabled #spineBlock1 {
    justify-content: flex-start;
    gap: 24px;
}

.preloader2.gamification-enabled #spineBlock1 #splash1 {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
}

.preloader2.gamification-landscape #spineBlock1 {
    align-items: stretch;
    gap: 16px;
}

.preloader2.gamification-landscape #spineBlock1 #splash1 {
    width: 82%;
    align-self: center;
}

.preloader2.gamification-enabled #description1Text {
    flex: 0 0 auto;
}

.preloader2.gamification-landscape #description1Text {
    margin-top: 0;
}

.preloader2.gamification-portrait #gamification_logo {
    align-self: flex-start;
}

#spineBlock2 {
    align-items: stretch;
    justify-content: flex-start;
}

#splash2 {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin-bottom: 0;
    background-size: contain;
    background-position: center center;
}

.blinking_text {
    text-shadow: -2px -2px 0 black,
    2px -2px 0 black,
    -2px 2px 0 black,
    2px 2px 0 black;
    height: 113px;
    margin-top: 200px;
    font-family: GrandstanderCustom;
    font-size: 80px;
    color: white;
    animation: smoothBlink 2s infinite alternate;
}

@keyframes smoothBlink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.gamification {
    --gamification-width: 1424px;
    position: relative;
    width: var(--gamification-width);
    height: calc(var(--gamification-width) * 0.1580056);
    display: flex;
    align-items: center;
}

.gamificationBg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: 100% 100%;
}

.gamificationCopy {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: calc(var(--gamification-width) * 0.007);
    width: 60%;
    margin-left: calc(var(--gamification-width) * -0.0351124);
    padding-top: calc(var(--gamification-width) * 0.028);
    box-sizing: border-box;
    white-space: nowrap;
}

#portalRewards {
    font-size: calc(var(--gamification-width) * 0.0386236);
}

#available {
    font-size: calc(var(--gamification-width) * 0.0632022);
}

.spinny {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: calc(var(--gamification-width) * 0.2015449);
    height: calc(var(--gamification-width) * 0.2120787);
    margin-left: calc(var(--gamification-width) * 0.0702247);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.soundBtn {
    position: fixed;
    z-index: 100;
    top: 3vmin;
    right: 3vmin;
    width: 7vmin;
    height: 7vmin;
    min-width: 40px;
    min-height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.preloader-demo-mode:not([hidden]) ~ #preloader2 #gamification_logo {
  display: none;
}

.preloader-demo-mode:not([hidden]) {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: calc(40px + env(safe-area-inset-bottom));
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 208, 0, 0.27);
  color: #ffd000;
  font-family: "NotoSansCustom", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.255px;
  pointer-events: none;
}
