@import url("https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap");
/* common styles */
html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  cursor: default;
}
body {
  margin: 0;
  padding: 0;
  background-color: #dee2e6;
  font-family: "Alfa Slab One", cursive;
}
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-self: center;
  align-items: center;
  padding: 3rem 0;
  box-sizing: border-box;
  gap: 1rem;
}
.hidden {
  display: none;
}
/* end of common styles */

/* section-1 style  */
.section-1 {
  width: 50%;
  display: flex;
  justify-content: space-between;
}
#icon {
  font-size: 10rem;
  cursor: pointer;
  color: #cb997e;
  transition: all 0.2s linear;
}
#icon:hover {
  transform: scale(1.2);
}
/* end of section-1 style  */

/* section-2  */
.section-2 {
  width: 50%;
  display: flex;
  justify-content: space-around;
}
.player {
  font-size: 4rem;
}
.player-name {
  text-transform: uppercase;
}
/* end of section-2  */

/* section-3 */
.section-3 {
  width: 50%;
  background-color: #a4bea4;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-around;
}
.game {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
#game-icon {
  font-size: 8rem;
  color: #cb997e;
}
/* end of section-3 */

/* winng window  */
.win-window,
.name-win {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1000;
  opacity: 0.8;
  background-color: white;
  top: 0;
  left: 0;
}
/* end of winng window  */

/* second window  */
.name-win {
  background-color: red;
  z-index: 10000;
  opacity: 1;
  background-color: transparent;
}
.name-win > span {
  text-transform: uppercase;
  font-size: 5rem;
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, 50%);
}
#cross {
  font-size: 5rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
  transition: all 0.2s linear;
}
#cross:hover {
  transform: scale(1.2);
}
/* end of second window  */

/* media query */
@media screen and (max-width: 1000px) {
  html {
    font-size: 40%;
  }
  .section-1,
  .section-2,
  .section-3 {
    width: 100%;
  }
  .section-2 {
    justify-content: space-between;
  }
}
/* end of media query */
