/* Normalizing CSS */

*, *:before, *:after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #36307B;
}

h1 {
    margin-block-start: 0;
    margin-block-end: 0;
}

form {
    margin: 0;
}

/* Custom CSS */

.nav-bar {
    overflow: hidden;
    background-color: #00adfe;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    color: #FFF;
    padding: 1rem;
}

.audio-recorder {
    margin-top: 5rem;
    justify-content: center;
}

.record-button {
    height: 250px;
    width: 250px;
    border-radius: 50%;
    background-color: #ffe98f;
    color: white;
    margin: 2rem auto auto auto;
    position: relative;
    font-size: 100px;
    text-align: center;
    display: block;
}

.record-button i {
    padding-top: 75px;
}

.speech-box {
    width: 300px;
    margin: auto auto 10px auto;
    background: #88D3F2;
    padding: 20px;
    text-align: center;
    font-weight: 900;
    color: #fff;
    font-family: arial;
    position: relative;
    border-radius: 1rem;
}

.sb:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #88D3F2;
    border-bottom: 10px solid transparent;
    right: 46%;
    bottom: -20px;
}

.speech-results {
    margin-top: 2rem;
    position: relative;
    display: block;
    text-align: center;
}

#unity-container {
    width: 100vw;
    height: 100vh;
}

.unity-desktop {
    width: 100vw;
    height: 100vh;
    min-width: 1000px;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    background: url('progress-bar-empty-dark.png') no-repeat center
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-full-dark.png') no-repeat center
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* handle mobile dialog */

canvas+* {
    z-index: 2;
}

.progress {
    margin: 1.5em;
    border: 1px solid #444;
    width: 50vw;
    display: none;
}

.progress .full {
    margin: 2px;
    background: #444;
    height: 1em;
    transform-origin: top left;
}

#loader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.spinner, .spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}

.spinner {
    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 #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#appAudioContainer {
    background: white;
    display: block;
    margin: 10vh auto;
    width: 400px;
    padding: 15px 15px 15px 15px;
    border-radius: 20px;
}

#appAudioContainer #closeBtn {
    margin-top: 10px;
    display: block;
    width: 100%;
    height: 35px;
    text-align: center;
    border: 0;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    background-color: #ca300d;
}

#appVideoContainer {
    background: white;
    display: block;
    margin: 10vh auto;
    width: 400px;
    padding: 15px 15px 15px 15px;
    border-radius: 20px;
}

#appVideoContainer #closeBtn {
    margin-top: 10px;
    display: block;
    width: 100%;
    height: 35px;
    text-align: center;
    border: 0;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    background-color: #ca300d;
}

#appVideo {
    border-radius: 15px;
    display: block;
    margin: auto;
}

#timer {
    color: grey;
    font-family: arial;
    margin: 1rem;
    text-align: center;
}

#flashacademy-logo {
    width: 47px;
    height: 68px;
    position: absolute;
    left: 50%;
    top: 40%;
    display: block;
    transform: translate(-50%, -50%);
}
