@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;400&display=swap');

body,
* {
  padding: 0;
  margin: 0;
  max-width: 100vw;
}

.banner {
  z-index: 3;
  position: fixed;
  width: 100%;
  bottom: 0;
  height: 5%;
  display: flex;
  justify-content: center;
}

.header-card {
  z-index: 3;
  position: fixed;
  display: flex;
  width: 100%;
  bottom: 0;
  height: 5%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  align-items: center;
  justify-content: center;
}

.reward-ads {
  z-index: 3;
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: rgb(255, 255, 255);
  align-items: center;
  justify-content: center;
}

.reward-ads2 {
  z-index: 3;
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  background: #0f8fec;
  color: rgb(255, 255, 255);
  align-items: center;
  justify-content: center;
}

#unity-container {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: black;
}

#unity-canvas {
  position: absolute;
}

#unity-canvas.landscape {
  aspect-ratio: 16/9;
  height: 100% !important;
  width: 100% !important;
  justify-content: center;
  align-items: center;
  background-color: black;
}

#unity-canvas.portrait {
  aspect-ratio: 9/16;
  position: fixed;
  top: 0;
  height: 100% !important;
  width: auto !important;
}

#unity-canvas.portrait.fullscreen {
  aspect-ratio: 9/16;
  height: 100% !important;
  width: auto !important;
}

#fullscreen {
  z-index: 2;
  display: none;
}

#fullscreen.show {
  padding: 40px;
  display: flex;
  width: auto;
  top: 50%;
  transform: translate(0%, -50%);
  height: 100vh;
  position: fixed;
  background-color: hsla(0, 0%, 0%, 0.499);
  align-items: center;
  justify-content: center;
}

#fullscreen-content {
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  padding: 80px;
  height: 20%;
  width: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#fullscreen p {
  font-size: 20px;
  width: 100%;
  text-align: center;
  color: black;
  margin: 10px 0 0 0;
  font-family: 'Nunito';
  font-weight: 400;
}

#fullscreen #fullbutton {
  margin: 10px;
  padding: 20px;
  border: 2px solid black;
  color: white;
  background-color: #0f8fec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  box-shadow: 0 12px 10px 1px rgba(0, 0, 0, 0.466);
}

#fullbutton h1 {
  pointer-events: none;
  font-size: 20px;
  font-family: 'Nunito';
}

#unity-loading-bar {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#unity-logo {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

#unity-logo img {
  width: 15%;
  padding: 50px;
  animation: rotate 1.0s ease-in-out;
  animation-iteration-count: infinite;
}

#unity-progress-bar-empty {
  position: relative;
  border: 2px solid white;
  border-radius: 20px;
  width: 25%;
  transform: translate(0%, -100%);
  height: 20px;
  overflow: hidden;
}

#unity-progress-bar-full {
  position: absolute;
  width: 0%;
  height: 100%;
  background-color: #0f8fec;
}

@keyframes rotate {
  0% {
    transform: translate(0);
  }

  50% {
    transform: translate(0,20px);
  }
  100% {
    transform: translate(0);
  }
}

@media only screen and (max-width: 600px) {

  body #unity-canvas.landscape {
    aspect-ratio: 9/16;
    height: 50% !important;
    width: 100% !important;
    justify-content: center;
    align-items: center;
    background-color: black;
  }

  body #unity-canvas.portrait {
    aspect-ratio: 9/16;
    height: 100% !important;
    width: 100% !important;
  }

  body #unity-logo img {
    width: 30%;
  }

  body #unity-progress-bar-empty {
    position: relative;
    border: 2px solid white;
    border-radius: 20px;
    width: 60%;
    height: 20px;
    transform: translate(0%, -70%);
    overflow: hidden;
  }

  body #fullscreen-content {
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    padding: 20px;
    height: 20%;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }


  body #fullscreen p {
    font-size: 20px;
    width: 100%;
    text-align: center;
    color: black;
    margin: 5px;
    font-family: 'Nunito';
    font-weight: 400;
  }

  body #fullscreen #fullbutton {
    margin: 10px;
    padding: 20px;
    border: 2px solid black;
    color: white;
    background-color: #0f8fec;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
  }

  body #fullbutton h1 {
    pointer-events: none;
    font-size: 20px;
    font-family: 'Nunito';
  }
}
