/* body, html {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #010101;
} */

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

/* #unity-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: black;
} */

#unity-container {
    position: absolute;
    top: env(safe-area-inset-top);
    bottom: env(safe-area-inset-bottom);
    left: env(safe-area-inset-left);
    right: env(safe-area-inset-right);
    width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #000000;
    position: relative;
}

html {
    padding: 0;
}

#unity-container {
    position: relative;
}


#unity-logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("bg_v1.1.png");
}

#unity-logo #logo {
    max-width: 95%;
    max-height: 60vh;
    display: none;
}

#bg2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

#pepenade {
    position: absolute;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 30vw;
    height: 45vh;
    object-fit: contain;
    object-position: center;
}

#char1, #char2 {
    position: absolute;
    z-index: 3;
    max-height: 100px;
    object-fit: contain;
}

#char1 {
    top: 5vh;
    left: 2vw;
}

#char2 {
    top: 5vh;
    right: 2vw;
}

@media all and (max-width: 900px) {
    #bg2 {
        height: 70vh;
    }
}

@media all and (max-width: 400px) {
    #bg2 {
        height: 65vh;
    }

    #char1, #char2 {
        max-height: 50px;
    }
}


@media all and (max-width: 900px) {
    #pepenade {
        width: 60vw;
        height: 50vh;
    }
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    bottom: 15%;
    transform: translate(-50%);
    display: block;
    z-index: 2;
}

#unity-progress-bar-empty {
    width: 150px;
    height: 20px;
    background-color: #2a1a40;
    padding: 4px;
    box-sizing: border-box;
    margin: 0 auto;
    text-transform: uppercase;
}

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

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

#loading-text {
    font-family: Blackhood, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-align: center;
    letter-spacing: 3px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

@font-face {
    font-family: "Blackhood";
    src: url("./fonts/Blackhood.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
