﻿@import url('https://fonts.googleapis.com/css2?family=League+Spartan&family=Montserrat&family=Inter:wght@400;500;600&display=swap');

* {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

html body {
    position: absolute;
    display: flex;
    flex-direction: column;
    zoom: revert;

    overflow: hidden;

    background-color: #5f5f5f;

    width: 100%;
    height: 100%;

    border: 0;
    margin: 0;
    padding: 0;

    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

b {
    font-family: 'Montserrat', sans-serif;
    font-weight: 650;
    font-size: 16px;
}

p {
    font-size: 13px;
}

input[type="text"] {
    /* enlarge by 16/12 = 133.33% */
    border-radius: 6.666666667px;
    font-size: 16px;
    line-height: 26.666666667px;
    padding: 6.666666667px;
    width: 133.333333333%;
    /* scale down by 12/16 = 75% */
    transform: scale(0.75);
    transform-origin: left top;
    /* remove extra white space */
    margin-bottom: -10px;
    margin-right: -33.333333333%;
}

strong {
    font-weight: bold;
}

.logo {
    mask-image: url("./logo.png");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.text_button {
    background-color: initial;
    display: flex;

    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(160, 160, 160);
    text-decoration: none;
    overflow: hidden;

    align-self: center;
    justify-content: center;
    align-items: center;

    margin: -10px;
    padding: 10px;

    cursor: pointer;
}

.outlined_button {
    background-color: initial;
    display: flex;
    border: 1px solid black;
    border-radius: 8px;

    font-size: 12px;
    overflow: hidden;
    padding: 10px 18px;
    color: black;
    text-decoration: none;

    align-self: stretch;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

.defined_button {
    align-self: stretch;
    justify-content: center;
    align-items: center;

    display: flex;
    border-width: 0;
    color: white;
    border-radius: 8px;
    font-size: 12px;
    overflow: hidden;
    padding: 10px 18px;
    background-color: #2b2869;

    text-decoration: none;
    cursor: pointer;
}

#envision-canvas {
    display: block;

    width: 100%;
    height: 100%;
}

/* Loading Screen */

.loading-screen {
    position: relative;
    pointer-events: none;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    opacity: 100%;
    z-index: 1;

    justify-content: center;
    align-items: center;
}

.loading-screen-fadein {
    -webkit-animation: loading-fadeIn 1s;
    -webkit-animation-fill-mode: forwards;

    animation: loading-fadeIn 1s;
    animation-fill-mode: forwards;
}

.loading-screen-fadeout {
    -webkit-animation: loading-fadeOut 0.5s;
    -webkit-animation-fill-mode: forwards;

    animation: loading-fadeOut 0.5s;
    animation-fill-mode: forwards;
}

.loading-dots {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;

    overflow: hidden;

    width: 56px;
    height: 200px;
    margin-top: 18px;
}

.loading-dot-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    width: 14px;
    height: 14px;
}

.loading-dot {
    border-radius: 50%;
    border-collapse: separate;

    width: 8px;
    height: 8px;

    background-color: grey;
}

.loading-dot-one {
    -webkit-animation: loadingDot 1.2s;
    -webkit-animation-iteration-count: infinite;

    animation: loadingDot 1.2s;
    animation-iteration-count: infinite;
}

.loading-dot-two {
    -webkit-animation: loadingDot 1.2s;
    -webkit-animation-delay: 0.4s;
    -webkit-animation-iteration-count: infinite;

    animation: loadingDot 1.2s;
    animation-delay: 0.4s;
    animation-iteration-count: infinite;
}

.loading-dot-three {
    -webkit-animation: loadingDot 1.2s;
    -webkit-animation-delay: 0.8s;
    -webkit-animation-iteration-count: infinite;

    animation: loadingDot 1.2s;
    animation-delay: 0.8s;
    animation-iteration-count: infinite;
}

.loading-text {
    display: flex;
    font-size: x-small;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;
    color: white;

    height: 25px;
}

@keyframes loading-fadeIn {
    0% {
        opacity: 0%;
    }

    100% {
        opacity: 100%;
    }
}

@keyframes loading-fadeOut {
    0% {
        opacity: 100%;
    }

    100% {
        opacity: 0%;
    }
}

@keyframes loadingDot {
    0% {
        width: 8px;
        height: 8px;
        background-color: grey;
    }

    20% {
        width: 8px;
        height: 8px;
        background-color: grey;
    }

    50% {
        width: 12px;
        height: 12px;
        background-color: white;
    }

    80% {
        width: 8px;
        height: 8px;
        background-color: grey;
    }

    100% {
        width: 8px;
        height: 8px;
        background-color: grey;
    }
}

/* Warning */

.warning-content {
    transition: opacity 2s;

    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;

    opacity: 0;
    z-index: 1;

    justify-content: center;
    align-items: center;
}

.warning-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 14px;
    padding: 0;
    background-color: white;
    border-collapse: separate;
    border-radius: 25px;
    overflow: hidden;
    max-width: 750px;
    min-height: 350px;
    max-height: 500px;
    box-shadow: 0 0 48px 8px rgba(0, 0, 0, 0.25);
}

.warning-badge__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px 24px;
    align-self: stretch;
}

.warning-badge__body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    flex-grow: 1;
}

@media screen and (min-width: 650px) {
    .warning-badge__icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 48px;

        background: #F1F3F4;

        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
    }
}

@media screen and (max-width: 650px) {
    .warning-badge__icon {
        display: none;
    }
}

.warning-badge__button-bar {
    display: flex;
    flex-direction: row;
    align-self: stretch;
    padding: 8px 0;
    align-items: center;
    gap: 10px;
}

.warning-badge__icon * {
    color: #474747;
    width: 96px;
    height: 96px;
}

.warning-badge__logo {
    background-color: #656565;
    margin: 12px 0 12px 2px;
    align-self: start;
    display: flex;
    min-width: 300px;

    /* -webkit-mask: url("./logo.png") no-repeat left; */
    mask-image: url("./logo.png");
    mask-repeat: no-repeat;
    mask-position: left;
    mask-size: contain;
}

/* Deeplink Banner */
.deeplink {
    display: none;
    position: relative;
    height: 88px;
    top: 0%;
    width: 100%;
}

.deeplink__center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;

    background-color: #dddce4;
    box-shadow: 0 0 48px 8px rgba(0, 0, 0, 0.25);
    border-collapse: separate;
    overflow: hidden;

    width: 100%;
    height: 100%;
}

.deeplink-badge {
    display: flex;
    flex-direction: row;
    align-items: flex-end;

    padding: 0;

    width: 100%;
    min-height: 80px;
    max-height: 120px;
}

.deeplink-badge__content {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    align-self: stretch;

    padding: 10px 16px;
    gap: 12px;
}

.deeplink-hide {
    display: flex;
    flex-direction: row;
    align-self: center;

    width: 18px;
    height: 24px;
}

.deeplink-badge__logo {
    display: flex;
    align-self: center;

    content: url("./icon.png");
    background-color: #a7a7a7;
    border-radius: 8px;

    width: 23%;
    max-width: 64px;
    aspect-ratio: 1;

    margin: 0px 6px 0px 0px;
}

.deeplink-badge__body {
    display: flex;
    align-self: center;
    align-items: baseline;
    flex-direction: column;

    width: 100%;

    margin: 0px 6px 0px 0px;
    gap: 2px;
}

.deeplink-badge__button-bar {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-self: center;
    font-size: small;

    width: 25%;
    max-width: 100px;

    margin: 0px 6px 0px 0px;
}

/* Core */

.webgl-content {
    display: none;
}

.webgl-content * {
    display: block;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}

.web-player-small {
    position: absolute;

    height: 70%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border: 0;

    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;

    margin: auto;
    pointer-events: none;
}

.web-player-large {
    position: absolute;

    height: 90%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border: 0;

    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    margin: auto;
    pointer-events: none;
}

.web-player-parent>* {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: all !important;
    background-color: transparent !important;
}

/*
    Foldout
*/

.foldout-button {
    text-decoration: none;
    color: white;

    border-radius: 12px;
    border: 1px solid #f1f3f4;

    display: flex;
    padding: 8px 0;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.information-foldout {
    position: absolute;
    width: 100%;
    height: 100%;

    pointer-events: none;
    display: flex;
    flex-direction: row;

    overflow: hidden;
}

.foldout {
    align-self: stretch;
    display: flex;
    flex-direction: column;

    width: 400px;

    background-color: rgba(50, 50, 50, 0.6);
    backdrop-filter: blur(8px);
    color: white;

    pointer-events: all;

    border-left: 1px solid #f1f3f4;

    transition: margin-right 0.5s ease-in-out;
    margin-right: -500px;
}

.foldout-show .foldout {
    margin-right: 0;
}

.foldout-click_out {
    pointer-events: none;
    transition: background-color 0.5s ease-in-out;

    display: flex;
    flex-grow: 1;
}

.foldout-show .foldout-click_out {
    pointer-events: all;
    /*background-color: rgba(50, 50, 50, 0.4);*/
}

.foldout-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 18px;
    gap: 10px;
}

.foldout-container {
    display: flex;
    flex-grow: 1;
    flex-direction: column;

    padding: 0 24px;
    gap: 8px;
}

.foldout-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    gap: 18px;
    font-size: 14px;
}

.foldout-content>div {
    display: flex;
    flex-direction: column;
    padding: 4px 8px;
    gap: 12px;
}

.foldout-version {
    font-size: 14px;
    color: #8d8d8d;
    opacity: 0.6;
}
