html {
    width: 100dvw;
    height: 100dvh;
}

body {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#unity-container {
    transition: opacity .2s ease-out;
    position: absolute;
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#unity-container.unity-mobile {
    width: 100%;
    height: 100%;
}

#unity-canvas {
    background: #0000;
    width: 100%;
    height: 100%;
    z-index: -99;
}

#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;
}

#unity-footer {
    position: relative;
}

.unity-mobile #unity-footer {
    display: none;
}

#unity-webgl-logo {
    float: left;
    width: 204px;
    height: 38px;
    background: url('webgl-logo.png') no-repeat center;
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px;
}

#unity-fullscreen-button {
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}

#video-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

#webcam-video {
    width: 1px;
    position: absolute;
}

#errorDiv {
    display: none;
    background: #aaa;
}

#errorText {
    text-align: center;
    width: 60vw;
    color: white;
}

.ctaDiv {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    gap: 16px;
}

.gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, #0004, transparent);
}
