/* Layout base */
body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background-color: #111;
  color: #fff;
  text-align: center;
}

/* Unity canvas container */
#unity-container {
  margin-top: 20px;
  position: relative;
}

#unity-container.unity-desktop {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

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

#unity-canvas {
  background: #231F20;
}

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

/* Loading bar */
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

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

#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;
}

/* Footer with fullscreen button and message */
#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: none;
  margin: 15px auto;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #ccc;
}

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

/* Splash screen */
#splash-screen {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#splash-screen h1 {
  font-size: 2.5em;
  margin-bottom: 1em;
  color: #e0c67c;
}

#splash-screen button {
  margin: 10px;
  padding: 10px 20px;
  font-size: 1.2em;
  border: none;
  background-color: #e0c67c;
  color: #111;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#splash-screen button:hover {
  background-color: #d4b25f;
}

/* Orientation warning */
#orientation-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #111;
  color: #fff;
  z-index: 10000;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.5em;
  padding: 2em;
}

/* Top bar layout */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 20px auto 10px;
  padding: 0 10px;
  width: 100%;
}

.top-bar-title {
  font-size: 1.8em;
  color: #e0c67c;
  font-family: 'Georgia', serif;
}

.top-bar-button {
  background-color: #e0c67c;
  color: #111;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.top-bar-button:hover {
  background-color: #d4b25f;
}

#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }