html, body {
  overflow: hidden;
}
body {
  background: #000 url(../img/bg-game.jpg) no-repeat center center fixed;
  background-size: 100% 100%;
  position: relative;
}

.gamediv {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  position: fixed;
  margin-right: -50%;
  margin-bottom: -50%;
  top: 50%;
  left: 50%;
  background: black;
  border: 3px solid black;
  border-radius: 6px;
  box-shadow: 0 5px 40px #333;
  transform: translate(-50%, -50%);
}

.splash {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.splash .splash-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.splash img {
  width: 50%;
  min-width: 260px;
}

.splash .meter-text {
  color: aliceblue;
  margin-top: 20px;
  font-size: 20px;
}

.meter {
  position: relative;
  background: #f3efe6;
  overflow: hidden;
  width: 60%;
  border-radius: 10px;
  margin-top: 10px;
}

.meter span {
  display: block;
  background-color: #448910;
  width: 0%;
  height: 20px;
}

.progress {
  background-color: #e4c465;
  animation: progressBar 3s ease-in-out;
  animation-fill-mode: both;
}

@keyframes progressBar {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.content {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 10;
}

canvas {
  height: 100%;
}

iframe {
  height: 100%;
  display: none;
  position: absolute;
}

.sidebar {
  display: flex;
  position: fixed;
  flex-direction: column;
  right: 15px;
  bottom: 15px;
  display: none;
}

.sidebar img {
  width: 20vh;
  max-width: 160px;
  margin-top: 20px;
}

.btn-close-ingame {
  position: absolute;
  right: 10px;
  top: 10px;
  display: none;
}

.btn-close-ingame img {
  width: 36px;
}

.editbox-input {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 11;
  border: none;
  outline: none;
  padding: 0;
}

@media screen and ((orientation:portrait) or ((orientation:landscape) and (max-width:960px))) {
  .sidebar { display: none; }
}
@media screen and ((orientation:portrait) or ((orientation:landscape) and (max-width:800px))) {
  body {
    background: #000 url(../img/bg-game-pt.png) no-repeat center center fixed;
    background-size: 100% 100%;
    position: relative;
  }
}
