body {
    padding: 0;
    margin: 0
}

#unity-container {
    position: absolute;
    text-align: -webkit-center;
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-image: url("Bg_Capa-Desktop_FullHDWeb.jpg");
    background-repeat: no-repeat;
    opacity: 1;
    background-size: cover;
    background-position: center;
    text-align: -webkit-center;
    /* Centraliza a imagem */
}

#unity-container.unity-mobile {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("BackGroundMobileWeb.jpg");
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 10;
}

#unity-canvas {
    background: {
            {
                {
                BACKGROUND_COLOR
            }
        }
    }
}

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

#unity-logo {
    width: 154px;
    height: 130px;
    background: url('unity-logo-dark.png') no-repeat center
}


#unity-footer {
    position: relative
}

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

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

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

#unity-fullscreen-button {
    cursor: pointer;
    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
}

.lang-en,
.lang-pt,
.lang-es {
    display: none;
}

.lang-en.active {
    display: block;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: black;
    width: 100vw;
    height: 100vh;
}

#unity-container,
#unity-canvas,
.background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background {
    background-image: url("GameplayBackGround.jpg");
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    /* Centraliza a imagem */
    position: absolute;
    /* Garante sobreposição completa */
}

.backgroundDesktop {
    background-image: url("Cenario4_Soft.jpg");
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    /* Centraliza a imagem */
    position: absolute;
    /* Garante sobreposição completa */
}

#unity-loading-bar {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 0, 150, 0.4);
    display: none;
    z-index: 50;
}

#unity-progress-bar-empty {
    width: 100%;
    height: 100%;
    background: transparent;
    position: relative;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff0096, #ff66c4);
    border-radius: 10px 0 0 10px;
    /* só o canto esquerdo é arredondado */
    transition: width 0.4s ease-in-out;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#unity-progress-bar-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.24),
            transparent);
    animation: shimmer 2s infinite;
    border-radius: 10px 0 0 10px;
    z-index: 3;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

#carousel {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 50%;
    display: flex;
    z-index: 20;

}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    color: white;
    text-align: center;
    font-size: clamp(1.2rem, 1.8vw, 8rem);
}



/* Mobile override */
@media (hover: none) and (pointer: coarse) {
    #carousel {
        width: 80vw;
        height: calc(80vw * 9 / 9);
    }
}



#rodape {
    background-image: url("banana rodape.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    width: 100%;
    height: 10%;
    bottom: 0%;
    background-color: rgba(0, 0, 0, 0.2);
}
