/** MAIN **/
.screen_home,
.screen_game,
.screen_info {
  display: flex;
  width: 80%;
  margin: auto;
  min-height: 80vh;
  align-items: center;
  flex: 1;
  background-color: rgb(242, 250, 253);
}
button {
  outline: none;
  border: none;
  background-color: rgb(242, 250, 253);
  cursor: pointer;
}
.title {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: 80%;
  top: 10%;
  align-items: center;
  padding: 2% 5% 0% 5%;
}
.title h1 {
  font-size: 50px;
  font-weight: 500;
  color: #3b5885;
}
.harmony {
  font-size: 60px;
}
.logo {
  width: 100px;
  height: 70px;
}
.exit {
  position: absolute;
  right: 1%;
  width: 10%;
}
.exit img {
  width: 40%;
}
.players {
  align-items: center;
  width: 80%;
  margin: 0% 0% 20% 0%;
}
.players > h2 {
  margin-bottom: 20px;
  padding-left: 8%;
}
.pick {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-items: center;
  justify-content: center;
  width: 80%;
}
.avatar {
  display: flex;
}
.left,
.right {
  border: none;
  background-color: rgb(242, 250, 253);
  outline: none;
  cursor: pointer;
}
.left img,
.right img {
  width: 30%;
}
.avatar-img {
  width: 20%;
}
.controls {
  position: absolute;
  bottom: 10%;
  align-items: center;
  justify-content: center;
}
.info img,
.next img {
  width: 50%;
}
.info,
.next {
  width: 10%;
}

/******************

    GAME SCREEN

*******************/
.control-panel {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: 80%;
  top: 10%;
}
.play,
.loop,
.cancel {
  padding-top: 5%;
  background-color: rgb(242, 250, 253);
  border: none;
}
.play img,
.loop img,
.cancel img {
  width: 15%;
}
.game-ctn {
  display: grid;
  grid-template-columns: repeat(2, auto);
  background-color: lavender;
  border: 2px solid black;
  width: 90%;
  height: 55vh;
  margin-left: 5%;
}
.pos-1 {
  position: absolute;
  top: 35%;
  left: 25%;
}
.pos-2 {
  position: absolute;
  top: 35%;
  right: 25%;
}
.first {
  border: 2px solid black;
}
.second {
  border: 2px solid black;
}
.avatars {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, auto);
  width: 80%;
  bottom: 10%;
}
.avatars img {
  width: 15%;
  margin-left: 45%;
  padding-bottom: 2px;
}
.hide {
  display: none;
}
.popup h2,
h3 {
  color: coral;
  font-size: 100%;
}
.popup h2 {
  position: absolute;
  top: 30%;
  left: 23%;
}
.popup h3 {
  position: absolute;
  top: 50%;
  left: 20%;
}
.popup-close img {
  position: absolute;
  width: 5%;
  right: 5%;
}
.black_overlay {
  display: none;
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 1001;
  -moz-opacity: 0.8;
  opacity: 0.8;
  filter: alpha(opacity=80);
}
.white_content {
  display: none;
  position: absolute;
  top: 40%;
  left: 35%;
  width: 30%;
  height: 20%;
  padding: 16px;
  border: 16px solid rgb(53, 216, 3);
  background-color: white;
  z-index: 1002;
  overflow: auto;
}

.white_content_2 {
  display: none;
  position: absolute;
  top: 40%;
  left: 35%;
  width: 30%;
  height: 20%;
  padding: 16px;
  border: 16px solid rgb(226, 40, 7);
  background-color: white;
  z-index: 1002;
  overflow: auto;
}

/******************

    INFO SCREEN

*******************/
.game-info {
  align-items: center;
  position: absolute;
  width: 30%;
  margin-left: 25%;
}
.cancel-info {
  margin-top: 5%;
  width: 100%;
  border: none;
  background-color: rgb(242, 250, 253);
}
.cancel-info img {
  width: 15%;
}

/******************

    ROTATE SCREEN

*******************/
.faded_overlay {
  display: none;
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 1001;
  -moz-opacity: 0.8;
  opacity: 0.8;
  filter: alpha(opacity=80);
}
.light_content {
  display: none;
  position: absolute;
  align-items: center;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  padding: 16px;
  z-index: 1002;
  opacity: 0.8;
  background-color: white;
  border-radius: 20px;
  overflow: auto;
}
.light_content img {
  position: absolute;
  top: 35%;
  left: 35%;
  width: 30%;
}

/* only when orientation is in portrait mode */
@media all and (orientation: portrait) {
  .faded_overlay,
  .light_content {
    display: block;
  }
}

/******************

      RESPONSIVE

*******************/
@media screen and (max-width: 1024px) {
  .back_1,
  .back_2,
  .back_0 {
    display: none;
  }
  .pos-1 {
    left: 20%;
  }
  .pos-2 {
    right: 20%;
  }
}

@media screen and (max-width: 825px) {
  .screen_home,
  .screen_game,
  .screen_info {
    width: 100%;
    height: 100%;
    min-height: 100vh;
  }
  header {
    display: none;
  }
  .back_1,
  .back_2,
  .back_3,
  .back_4,
  .back_0 {
    display: none;
  }
  .title {
    width: 100%;
    top: 0%;
  }
  .logo {
    width: 50px;
    height: 35px;
  }
  .title h1 {
    font-size: 30px;
  }
  .players {
    width: 100%;
    position: absolute;
    top: 25%;
    left: 10%;
  }
  .players h2 {
    font-size: 20px;
  }
  .controls {
    bottom: 2%;
  }
  .control-panel {
    width: 100%;
    top: 0%;
  }
  .avatars {
    width: 95%;
    bottom: 0%;
    padding-top: 20px;
  }
  .avatars img {
    width: 10%;
  }
  .pos-1 {
    left: 15%;
  }
  .pos-2 {
    right: 15%;
  }
  .game-info {
    width: 80%;
    top: 0%;
  }
  .game-info h1 {
    font-size: 16px;
  }
  .game-info h2 {
    font-size: 12px;
  }
  .game-info p {
    font-size: 10px;
  }
  .cancel-info {
    width: 30%;
    position: absolute;
    left: 10%;
  }
  .avatar-img {
    width: 20%;
    height: 50px;
  }
  .popup h2,
  .popup h3 {
    font-size: 10px;
    left: 10%;
  }
  .popup h2 {
    top: 20%;
  }
  .popup h3 {
    top: 60%;
  }
}

@media screen and (max-height: 500px) {
  .pos-1 {
    top: 25%;
  }
  .pos-2 {
    top: 25%;
  }
}
