* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.messages {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.message {
  background-color: #cfc;
  width: 90%;
  margin: 10px auto;
  padding: 10px;
  border: solid 1px #8a8;
  border-radius: 10px;
  text-align: center;
  transition: all 1s;
  pointer-events: auto;
}

table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 10px;
}

th {
  padding: 10px;
  background: #e9faf9;
  border: solid 1px #778ca3;
}

td {
  padding: 10px;
  border: solid 1px #778ca3;
}

.contents {
  height: 100vh;
}

#game-frame {
  display: none;
  z-index: 10;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: #000;
  overflow: hidden;
}

#game-frame #unity-container {
  /*z-index: 11;*/
  position: fixed;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}

#game-frame #unity-container #unity-canvas {
  background: url('/img/background.png');
  background-size: cover, 196px;
  background-blend-mode: screen;
  width: 100%;
  height: 100%;
}

#game-frame #unity-container #unity-loading-bar {
  position: fixed;
  left: 50%;
  top: 78%;
  transform: translate(-50%, -50%);
  display: none;
}

#game-frame #unity-container #unity-progress-bar-back {
  width: 90vw;
  height: 8vw;
  background: url('/img/progress-bar-back.png');
  background-repeat: no-repeat;
}

#game-frame #unity-container #unity-progress-bar-front {
  position: relative;
  width: 0;
  height: 8vw;
  background: url('/img/progress-bar-front.png');
  background-repeat: no-repeat;
}

#game-frame #unity-container #unity-progress-bar-front::after {
  content: "";
  position: absolute;
  right: -15vw;
  top: 82%;
  transform: translateY(-50%);
  width: 30vw;
  height: 30vw;
  background: url('/img/progress-bar-point.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

#game-frame #unity-container #unity-loading-text {
  color: #fff;
  font-size: 20px;
  text-align: center;
}

#game-frame #unity-container #unity-logo {
  width: 45vw;
  height: calc(296 / 428 * 80vw);
  background: url('/img/load-logo.png');
  background-repeat: no-repeat;
  background-size: contain;
  margin: 20vw auto 0 auto;
}

#unity-container #permission-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  background: url('/img/dialog-background.png?v=01');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  width: calc(840 * 0.11vw);
  height: calc(760 * 0.11vw);
  padding: 20px 0px;
}

#unity-container #permission-dialog #permission-dialog-message {
  position: relative;
  left: 50%;
  top: 35%;
  background: url('/img/dialog-message.png?v=01');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  width: calc(822 * 0.11vw);
  height: calc(220 * 0.11vw);
  padding: 5% 5%;
  color: #fff;
  font-size: 100%;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
}

#permission-dialog-button {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translate(-50%, -50%);
}

#unity-container #permission-dialog #permission-dialog-button button {
  border: none;
  outline: none;
  background: url('/img/dialog-button.png?v=01');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: calc(580 * 0.11vw);
  height: calc(178 * 0.11vw);
  color: #fff;
  font-size: 150%;
}
