@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    text-align: center;
    padding: 0;
    border: 0;
    margin: 0;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

canvas {
    width: 100%; 
    height: 100vh; 
}

.hidden {
    display: none!important;
}

#loader {
    width: 100vw;
    height: 100vh;
    background: #231f20;
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
}

.loader-img {
    width: 15%;
    display: block;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#loading-percentage {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 1px 1px #231f20;
}

@media (max-width: 600px) {
    .loader-img {
        width: 50%;
    }
}

.loading {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.progress {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    width: 400px;
    height: 50px;
    /* margin: 35px; */
    border-radius: 15px;
    outline: 10px solid #231f20;
    border: 2px solid white;
}

.error {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    width: 400px;
    height: 50px;
    border-radius: 15px;
    outline: 10px solid #231f20;
    border: 2px solid white;
    background-color: #e43434;
    cursor: pointer;
}

.error-text {
    color: white;
}

.error-message {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

@keyframes loading {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }

.bar {
    border-radius: 15px;
    width: 0%;
    height: 100%;
    transition: width;
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(.36,.55,.63,.48);
}

.shadow {
    /* 25 50 */
    box-shadow: 0px 45px 50px rgba(0, 0, 0, 0.25); 
}

.img-texture {
    background-color: #DFDBE5;
    background-image: url("./loader-texture.png");
    background-size: cover;
    /* overflow: hidden; */
    /* animation: loading 5s linear infinite; */
}

dialog {
    width: 90%; /* Adjust the width as needed */
    height: 90%;
    border-radius: 5px;
    overflow: hidden;
    border: 0px;
  }

dialog p {
    padding: 20px;
}

.close-button {
    position: absolute;
    width: 25px;
    top: 10px;
    right: 10px;
    cursor: pointer;
  }

  iframe {
    width: 100%;
    height: 100%;
  }