#unity-container { position: absolute; z-index: 10; }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #183a50 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
  margin: 0;
  background-color: #183a50; /* Цвет фона */
  font-family: sans-serif;
}

#wake-ui {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 6px;
  color: white;
  text-shadow: 0 0 2px black;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9;
  margin-top: 40px;
  transition: opacity 1s ease, transform 1s ease;
  display: none;
}

.unity-mobile #wake-ui { display: flex; }

#wake-ui.fade-out {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

#wake-ui button {
  padding: 40px 40px;
  border: none;
  border-radius: 4px;
  font-size: 28px;
  background: #222;
  color: white;
  cursor: pointer;
  margin-bottom: 5px;
}

#wake-ui button:hover {
  background: #444;
}

#wake-ui p {
  margin: 0;
  font-size: 28px;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 32px;
  display: none;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 100%;
  background: url('slider-1.png') no-repeat center;
  background-size: cover;
  overflow: hidden;
  position: relative;
  /*z-index: 3;*/
}

#unity-progress-bar-full { 
  width: 0%; 
  height: 100%;
  background: url('slider-2.png') no-repeat center;
  background-size: 100% 100%;
  position: absolute;
  top: 0;
  left: 0;
  /*z-index: 2;*/
}

#unity-progress-percent {
  text-align: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-top: 8px;
  text-shadow: 0 0 5px black;
}

#unity-footer { position: relative }

.unity-mobile #unity-fullscreen-button { display: none }

#unity-fullscreen-button { 
  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 
}
