body {
    padding: 0;
    margin: 0
}

/* Make unity-container fill the viewport and center its content */
#unity-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#unity-canvas {
    width: 100%;
    height: auto;
    max-width: 960px;
    max-height: 600px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
}

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

#lotw-logo {
    width: 500px;
    height: 232px;
    background: url('lotw-tsp-logo.png') no-repeat center;
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

#progress-bar-empty {
    width: 260px;
    height: 14px;
    margin-top: 60px;
    margin-bottom: 50px;
    margin-left: 120px;
    z-index: 10;
    border: 1px solid #000000;
}

#progress-bar-full {
    width: 100%;
    height: 14px;
    z-index: 1;
    background: url('progress-bar-full-light.png') no-repeat center
}

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

.orientation-container {
    position: absolute;
    left: 50%;
    top: -5%;
}

.flame {
    width: 24px;
    height: 31px;
    background: url('flame.png') no-repeat center;
    background-size: contain;
    left: 0;
    transform: translate(-50%, 0);
    position: absolute;
    animation: flameAnimation 2.5s ease-in-out infinite;
}

@keyframes flameAnimation {
    0% {
        opacity: 0;
        transform: scale(0.8) translate(-50%, 0);
    }
    30% {
        opacity: 0.4;
        transform: scale(0.8) translate(-50%, 0);
    }
    60% {
        opacity: 1;
        transform: scale(1) translate(-50%, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translate(-50%, 0);
    }
}


.phone-icon {
    width: 300px;
    height: 300px;
    position: absolute;
    left: -150px;
    background: url('phone-icon.png') no-repeat center center;
    background-size: contain;
    animation: rotatePortraitToLandscape 2.5s ease-in-out infinite;
    transform-origin: center center;
    display: block;
    margin: auto;
}

@keyframes rotatePortraitToLandscape {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    30% {
        transform: rotate(0deg);
        opacity: 0.4;
    }
    60% {
        transform: rotate(-90deg);
        opacity: 1;
    }
    100% {
        transform: rotate(-90deg);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.instructions {
    margin-top: 380px;
    width: 300px;
    text-align: center;
    transform: translate(-50%, 0);
}

#orientation-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.5);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10000;
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

#orientation-warning > div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 90%;
    margin: auto;
}