@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: local('Montserrat'), url('fonts/Montserrat-Regular.woff') format('woff');
}
/* medium not used to decrease download size */
/*@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: local('Montserrat'), url('fonts/Montserrat-Medium.woff') format('woff');
}*/
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: local('Montserrat'), url('fonts/Montserrat-Bold.woff') format('woff');
}

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #2C2B57;
}
#unity-container {
    width: 100%;
    height: 100%;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    background: white;
    /*background: #231F20;*/
}
#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Important to cover the canvas once it's loaded. */
    background: white;
}
.flex-center-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 80%;
}
#unity-progress-bar-empty {
    margin-top: 40px;
    margin-bottom: 10px;
    flex-shrink: 0;
	width: 80%;
	height: 20px;
	border-radius: 13px;
	background: #D9D9D9;
	border: 3px solid #D9D9D9;
	text-align: left;
}
#unity-progress-bar-full {
    width: 0%;
	height: 100%;
	border-radius: 13px;
	background-image: linear-gradient(270deg, #37C3F0 0%, #3661ED 100%);
	background-size: 80vw;
    transition: width 100ms;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}
.spinner {
    flex-shrink: 0;
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #2C2B57;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animation */
.appear {
    animation: appear 1s ease-out backwards;
}
.appear-delayed {
    animation: appear 1s ease-out 0.4s backwards;
}
.appear-delayed2 {
    animation: appear 1s ease-out 0.8s backwards;
}
@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

/* Transition */
.away {
    overflow: hidden;
}
.away-up, .away-down {
    /* See: https://cubic-bezier.com/ */
    transition: transform 800ms cubic-bezier(.5, 0, .91, .54);
}
.away-fade {
    transition: opacity 1s ease-out 500ms;
}

.away.away-up,
.away .away-up {
    transform: translateY(-100vh) scale(2);
}
.away.away-down,
.away .away-down {
    transform: translateY(100vh) scale(2);
}
.away.away-fade,
.away .away-fade {
    opacity: 0;
}


/* Project-specific */
.logo-top-left {
    position: absolute;
    top: 27px;
    left: 30px;
    height: 57px;
}
.logo-top-right {
    position: absolute;
    top: 27px;
    right: 30px;
    height: 57px;
}

.title-text {
    margin: 0.3em 0;
    max-width: 80%;
    font-size: 40px;
    font-weight: 700;
    line-height: 100%;
    cursor: default;
}
/*.title-text::before {
    content: '';
    display: inline-block;
    margin-right: 20px;
    width: 8px;
    height: 1em;
    border: 1px solid #707070;
    vertical-align: bottom;
    background: #02F5C9;
}*/

.subtitle-text {
    margin: 0.3em 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 100%;
    cursor: default;
}

.progress-subtext {
    margin-top: -5px;
    cursor: default;
}

.input-row {
    margin: 1.5em 0;
    height: 52px;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
}

.name-input {
    flex: 1 0 auto;
    padding: 16px;
    box-shadow: 0px 4px 8px #2C27380A;
    border: 1px solid #DBE2EA;
    border-radius: 5px;
}

.submit-button {
    margin-left: 8px;
    width: 145px;
    background: #37C3F0;
    box-shadow: 0px 2px 4px #2C273814;
    border: none;
    border-radius: 5px;
    outline: none;
    color: white;
    font-size: 16px;
    font-weight: 400; /* Regular instead of Medium to decrease download size */
    font-family: inherit;
}
.submit-button:hover {
    background: #2EA4D6;
}

.locale-input {
    position: relative;
    display: block;
    margin: 32px 0;
    padding: 0 40px;
    width: 536px;
    height: 76px;
    border-radius: 0;
    border: 1px solid white;
    background: #021236;
    color: white;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 25px;
    text-align: left;
}
.locale-input > * {
    position: relative;
    z-index: 1;
}
.locale-input img {
    vertical-align: middle;
    margin-right: 50px;
}
.locale-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #00ffb9 0%, #00e6dc 100%);
    opacity: 0;
    transition: opacity 300ms;
}
.locale-input:hover::before,
.locale-input:focus::before {
    opacity: 1;
}

.footer {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.footer span {
    cursor: default;
    font-size: 14px;
    margin-right: 20px;
}



#unity-container,
#loading-cover {
    display: none;
}
.mobile-fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 0 1em;
    text-align: center;
    background-color: #e2e2e2;
    color: #737373;
    line-height: 150%;
}
.mobile-fallback p {
    margin-top: 0;
}
.mobile-fallback .mobile-title-icon {
    position: absolute;
    top: 1em;
}
.mobile-fallback .mobile-fallback-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mobile-fallback .sketchfab-embed-wrapper {
    margin: 0 -1em 1em -1em;
}
.mobile-fallback .sketchfab-embed-wrapper iframe {
    margin: 0;
    width: 100vw;
    height: 55vmin;
}
.mobile-fallback .mobile-linkback a {
    display: block;
    line-height: 52px;
    padding: 0 20px;
    background: #37C3F0;
    box-shadow: 0px 2px 4px #2C273814;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

@media (any-pointer: fine) {
    .mobile-fallback {
        display: none;
    }
    #unity-container {
        display: block;
    }
    #loading-cover {
        display: flex;
    }
}

/* For landscape mode. */
@media (min-width: 800px) {
    .mobile-fallback .mobile-nosmartphone,
    .mobile-fallback .mobile-linkback {
        order: 1;
    }
}
