/* ========= FONT =========== */
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

/* ========= RESET =========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

a {
  cursor: url(../assets/img/cursor.png), auto;
  text-decoration: none;
  color: inherit;
}

button {
  outline: none;
  border: none;
  background: none;
  padding: 2rem;
}

/* ========= STYLE =========== */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  overflow: hidden;
  height: 100vh;
  background-image: url(../assets/img/background.png);
  cursor: url(../assets/img/cursor.png), auto;
}

.container {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  width: 100%;
  gap: 5rem;
}

.grid-container {
  background-image: url(../assets/img/board.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 5rem;
  display: grid;
  grid-template-columns: repeat(3, 5rem);
  grid-template-rows: repeat(3, 5rem);
  gap: 5rem;
}

.cell {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  width: 100px;
  height: 100px;
  border: 1px solid white;
  border-radius: 1rem;
}

.cell:hover {
  border: 2px solid white;
}

.score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 18%;
  background-image: url(../assets/img/score.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.player-round {
  font-size: 0.9rem;
  color: white;
  padding-bottom: 2rem;
  text-shadow: 0 0 0.9rem purple;
}

.info_score {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: white;
  text-shadow: 0 0 0.5rem purple;
}

.btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.play-btn {
  background-color: transparent;
  background-image: url(../assets/img/btn.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 3rem;
  width: 15%;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 0 0.9rem black;
}
.play-btn2 {
  background-color: transparent;
  background-image: url(../assets/img/btn.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 5rem;
  width: 15%;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 0 0.9rem black;
}

.style-btn {
  transition: all 0.3s ease-in-out;
}
.style-btn:hover {
  transform: scale(1.02);
}

.endgame {
  display: none;
  color: white;
  text-shadow: 0 0 0.5rem purple;
  font-size: 1.5rem;
}

.game-status {
  color: white;
  text-shadow: 0 0 0.5rem purple;
}

.anim-bg {
  content: url(../assets/img/rocks.png);
  position: absolute;
  left: 15%;
  top: 20%;
  animation: bounce 5s linear infinite;
  z-index: -1;
}

/* ========= ANIMATION =========== */
@keyframes bounce {
  0% {
    transform: translateY(15px);
  }
  50% {
    transform: translateY(35px);
  }
  100% {
    transform: translateY(15px);
  }
}

/* ========= MEDIA QUERIES =========== */
@media (max-width: 1295px) {
  body {
    justify-content: normal;
    padding-top: 1rem;
  }
  .logo_img {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: none;
  }
  .container {
    flex-direction: column;
    gap: 0;
  }

  .grid-container {
    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
    grid-template-columns: repeat(3, 5rem);
    grid-template-rows: repeat(3, 5rem);
    gap: 1rem;
    padding: 2rem;
  }

  .cell {
    width: 75px;
    height: 75px;
  }

  .score-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    justify-content: flex-start;
    margin-bottom: 1rem;
    padding: 4rem;
    gap: 1rem;
  }
  .game-status {
    font-size: 0.8rem;
  }
  .info_score {
    font-size: 1rem;
    color: white;
    display: flex;
    justify-content: center;
    margin-top: 0;
  }
  .player-round {
    text-align: center;
    padding-bottom: 1rem;
    font-size: 0.8rem;
  }
  .btn {
    flex-direction: row;
  }
  .play-btn {
    padding: 0.5rem;
    margin: 0;
    width: 100%;
    border: none;
    font-size: 1.2rem;
    color: white;
  }
  .play-btn2 {
    padding: 1.5rem;
    margin: 0;
    width: 100%;
    border: none;
    font-size: 1.2rem;
    color: white;
  }
  .endgame {
    font-size: 1.5rem;
    top: 90%;
    left: 45%;
  }
}

@media (max-width: 650px) {
  .logo_img {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 450px;
  }
}
@media (max-width: 475px) {
  .play-btn {
    padding: 1.1rem;
    margin: 0;
    width: 100%;
    border: none;
    font-size: 0.8rem;
    color: white;
  }
  .play-btn2 {
    padding: 2.4rem;
    margin: 0;
    width: 100%;
    border: none;
    font-size: 0.8rem;
    color: white;
  }
}
