@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
    background: #423c3e;
}

.absolute-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.hidden {
    display: none !important;
}

.standard-button {
    font-family: 'Open Sans', sans-serif;
    background: #b33d26;
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    padding: 14px 24px;
    font-size: 18px;
    outline: none;
    font-weight: bold;
    cursor: pointer;
}

.button-grey {
    background: #423c3e;
}

#startScreen {
    background-image: linear-gradient(to bottom, #231f20, #423c3e);
    z-index: 200;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.start-logo {
    width: 400px;
    max-width: 100%;
    height: auto;
    margin-bottom: 5vh;
}

.start-buttons button {
    margin: 5px;
}

#loginButton, #signOutButton {
    position: absolute;
    top: 15px;
    right: 15px;
}

#hostOptions, #userOptions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 500px;
    max-width: 100%
}

#hostOptions .start-buttons button, #userOptions .start-buttons button {
    margin: 0;
}

#hostBack, #userBack {
    position: fixed;
    top: 15px;
    left: 15px;
}

.screen-title {
    width: 100%;
    text-align: center;
    color: #ffffff;
    margin: -20px 0 10px 0;
}

.screen-title h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.screen-title p {
    font-size: 16px
}

.channel-options {
    margin-top: 30px;
    display: flex;
    align-items: center;
    color: #ffffff;
}
.channel-options input {
    margin: 0 5px 0 15px;
    color: #b33d26;
}

.channel-url {
    width: 100%;
    display: flex;
}
.channel-url input {
    font-family: 'Open Sans', sans-serif;
    background: rgba(255,255,255,0.1);
    border: 0;
    border-radius: 3px 0 0 3px;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    width: 480px;
    height: 48px;
    color: #ffffff;
    text-align: center;
}
.channel-url button {
    height: 48px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    padding: 12px 20px;
    font-size: 14px;
}
.channel-url button:disabled {
    opacity: 0.5;
}

.channel-start {
    display: flex;
    width: 100%;
}

#hostName, #userName {
    flex: 1;
}

.channel-start input {
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    border: 0;
    border-radius: 3px;
    padding: 14px 24px;
    font-size: 18px;
    outline: none;
    height: 55px;
}
.channel-start button {
    height: 55px;
    margin: 0 0 0 10px;
}

.instructions {
    margin: 30px 0 15px 0;
    color: #ffffff;
    width: 100%;
    text-align: left;
    opacity: 0.25;
}

.disabled {
    opacity: 0.25;
}

.highlighted {
    opacity: 1;
}

#sharedScreen {

}

#mainScreen {
    z-index: 100;
    display: flex;
    padding-top: 60px;
}

.top-bar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #231f20;
    display: flex;
    justify-content: space-between;
}

.logo {
    width: auto;
    height: 44px;
    margin: 8px;
}

#leaveButton {
    width: auto;
    height: 42px;
    margin: 9px;
    padding: 8px 14px;
    font-size: 16px;
}

.webgl-container {
    width: 82%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
}
.webgl-container img {
    max-width: 90%;
    height: auto;
}

.video-group {
    width: 18%;
    height: 100%;
    padding: 15px 2%;
    box-sizing: border-box;
    overflow: auto;
    background-image: url('/images/signode-texture.jpg');
    background-color: #e1dddb;
    background-size: auto;
    background-repeat: repeat;
}

.local-video {
    position: relative;
}

.player {
    width: 100%;
    padding-top: 75%;
    position: relative;
}

.player .deepar {
    width: 100%;
    height: auto;
    position: absolute !important;
    top: 0;
}

.player div:first-child {
    position: absolute !important;
    top: 0;
}

.player-name {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(255,255,255,0.5);
    text-align: center;
}


.mute-buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.mute-button {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background: #b33d26;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    cursor: pointer;
}
.feature-on img:nth-of-type(2) {
    display: none;
}
.feature-off img:nth-of-type(1) {
    display: none;
}


#videoOptions {
    position: absolute;
    z-index: 10;
    top: 40px;
    left: 40px;
    background: #dfdcdb;
    border: 2px solid #b33d27;
    border-radius: 5px;
    margin: auto;
}

#videoOptions div {
    background: url('/images/icon-circle.svg') 7px 50%/auto no-repeat;
    padding: 5px 15px 5px 30px;
    cursor: pointer;
}

#videoOptions div.selected {
    background: url('/images/icon-check-circle.svg') 7px 50%/auto no-repeat;
}

#videoOptions div:not(:last-child) {
    border-bottom: 1px solid #b8b5b5;
}





#remote-playerlist > div {
    margin: 15px 0;
    position: relative;
}

.screen-wrapper {
    width: 100%;
    height: 100%;
}

.screen-player {
    width: 100%;
    height: 100%;
}

.screen-player video {
    background: #423c3e;
    width: 100%;
    height: auto !important;
}

.screen-player > div {
    background: #423c3e !important;
}




.videos-bottom {
    flex-direction: column;
}
.videos-bottom .webgl-container {
    width: 100%;
    height: 80%;
}
.videos-bottom .video-group {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: center;
}




.videos-bottom .local-video {
    height: 100%;
}
.videos-bottom .player {
    width: fit-content;
    height: 100%;
    padding-top: 0;
}
.videos-bottom .player > div {
    width: fit-content;
}
.videos-bottom .player video {
    width: auto !important;
    height: 100% !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
}
.videos-bottom .player div:first-child {
    position: relative !important;
}

.videos-bottom #remote-playerlist {
    height: 100%;
    display: flex;
}
.videos-bottom #remote-playerlist > div {
    width: fit-content;
    height: 100%;
    margin: 0 15px;
}

.videos-bottom .screen-player video {
    background: #ffffff;
    width: auto !important;
    height: 100% !important;
    margin: auto;
    position: relative !important;
}



.popup-container {
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-popup {
    width: 90%;
    max-width: 640px;
    box-shadow: 0 4px 6px 0 rgba(0,0,0,0.2),5px 5px 10px 0 rgba(0,0,0,0.19);
    border-radius: 0;
    background-color: #231f20;
    padding: 50px;
    color: #ffffff;
    line-height: 24px;
    font-size: 16px;
}
.cookie-popup a {
    text-decoration: underline;
}

.buttons-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.buttons-container button:nth-of-type(1) {
    margin-right: 10px;
}
.buttons-container button:nth-of-type(2) {
    margin-left: 10px;
}

.small-text {
    font-size: 12px;
    margin-top: 20px;
}




#micSelect {
    margin: 20px 0 20px 0;
    color: #000000;
}




/* Unity WebGL styles */
#unity-container {
    position: relative;
}

/*
#unity-canvas {
    background: #423c3e;
    width: 1600px !important;
    height: auto !important;
    max-width: 85% !important;
    margin: auto;
}
 */

#unity-canvas {
    background: #423c3e;
    margin: auto;
    width: 1200px !important;
    max-width: 90% !important;
    aspect-ratio: 16 / 10;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
}

#unity-logo img {
    max-width: 80%;
}

#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid #b73d25;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #b73d25;
}

.light #unity-progress-bar-empty {
    border-color: black;
}

.light #unity-progress-bar-full {
    background: black;
}

#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 {
    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 white;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}










/* DeepAR styles */
canvas.deepar {
    border: 0 none;
    background-color: black;
    display: block;
    margin: auto;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

#initialisation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
}

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.6);
    text-align: center;
}

.loader {
    display: inline-block;
    position: relative;
    top: 42%;
    z-index: 1000;
    width: 90px;
    height: 90px;
    margin: auto;
    background-color: #00f;
    border-radius: 100%;
    -webkit-animation: sk-scaleout 1.5s infinite ease-in-out;
    animation: sk-scaleout 1.5s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
    0% { -webkit-transform: scale(0) }
    100% {
        -webkit-transform: scale(1.0);
        opacity: 0;
    }
}

@keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    } 100% {
          -webkit-transform: scale(1.0);
          transform: scale(1.0);
          opacity: 0;
      }
}