body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: 100vh; /* Ensure body takes full viewport height */
}

#unity-container {
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    position: absolute;
    top: 0;
    left: 0;
}

#unity-container.unity-desktop {
    width: 600px; /* Set fixed width for desktop */
    height: 100%; /* Full height of the container */
}

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

#unity-canvas.unity-mobile {
    background: #000000;
    width: 100%; /* Fill container width */
    height: 100%; /* Fill container height */
    border: 1px solid #ccc;
    object-fit: cover; /* Ensure canvas scales correctly */
}
#unity-canvas {
    background: #000000;
    width: 600px; /* Fill container width */
    height: 100%; /* Fill container height */
    border: 1px solid #ccc;
    object-fit: cover; /* Ensure canvas scales correctly */
}
#unity-loading-bar {
    position: absolute;
    display: none; /* Hide loading bar by default */
}


#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-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    display: none;
}
#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}