/* GENERAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100dvh;
  background-color: #e7e7e7;
  color: #333;
}

hr {
  border: none;
  height: 0.2rem;
  width: 50rem;
  background-color: #333;
}

img {
  display: block;
  max-width: 100%;
}

/* GAME CONTAINER */
.game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
  padding: 30px 0;
}

/* CHOICES */
.choices {
  display: flex;
  gap: 1.3rem;
}

.button-choice {
  background-color: transparent;
  border: 1px solid #333;
  border-radius: 50%;
  width: 8rem;
  height: 8rem;
  font-size: 2.5rem;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
}

/* RESULT CARD */
.result-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  width: 250px;
  border-radius: 1rem;
  font-size: 1.2rem;
  font-family: sans-serif;
  font-weight: bold;
}

.result-card.hidden,
.choices-screen.hidden,
.reset-button.hidden,
.score-screen.hidden {
  display: none;
}

.result-card.win {
  background-color: #d5ffd8;
  border: 2px solid #27ae60;
  color: #27ae60;
}

.result-card.lose {
  background-color: #ffebee;
  border: 2px solid #ff3b3b;
  color: #ff3b3b;
}

.result-card.tie {
  background-color: #fff8e1;
  border: 2px solid #ffd446;
  color: #ffae00;
}

.result-image {
  width: 4.2rem;
  height: 4.2rem;
}

/* CHOICES SCREEN */
.choices-screen {
  display: flex;
  justify-content: space-between;
  background-color: #ddd;
  padding: 20px 40px;
  width: 400px;
  border-radius: 1rem;
}

.choices-screen-profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.profile-picture {
  border-radius: 50%;
  width: 8rem;
  height: 8rem;
}

.player-choice,
.computer-choice {
  font-size: 2.3rem;
}

/* SCORE SCREEN */
.score-screen {
  display: flex;
  flex-direction: column;
  background-color: #dddddd;
  gap: 1.3rem;
  padding: 20px 40px;
  width: 400px;
  border-radius: 1rem;
}

.score-match {
  display: flex;
  justify-content: space-between;
}

.win-count,
.lose-count,
.tie-count {
  font-weight: bold;
}

.win-title,
.lose-title,
.tie-title {
  font-weight: bold;
}

.win-title {
  color: #27ae60;
}

.lose-title {
  color: #ff3b3b;
}

.tie-title {
  color: #dda900;
}

/* RESET BUTTON */
.reset-button {
  background-color: transparent;
  border-radius: 1rem;
  padding: 20px 10px;
  border: 1px solid #333;
  width: 200px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
}

.button-choice:active,
.reset-button:active {
  transform: scale(0.92);
  transition: transform 0.1s ease;
  box-shadow: 0 0 15px rgba(106, 13, 173, 0.6);
  background-image: linear-gradient(135deg, #ffae00 0%, #6a0dad 100%);
  color: #fff;
}

/* MEDIA QUERY */

@media (max-width: 820px) {
  hr {
    width: 40rem;
  }
}

@media (max-width: 660px) {
  hr {
    width: 25rem;
  }
}

@media (max-width: 430px) {
  body {
    padding-top: 20px;
  }

  hr {
    width: 20rem;
  }

  .title-game {
    font-size: 1.4rem;
  }

  .choices {
    gap: 0.5rem;
  }

  .button-choice {
    width: 6.5rem;
    height: 6.5rem;
    font-size: 2rem;
  }

  .choices-screen {
    justify-content: center;
    gap: 5rem;
    padding: 20px 20px;
    width: 330px;
  }

  .profile-picture {
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
  }

  .player-choice,
  .computer-choice {
    font-size: 2rem;
  }

  .score-screen {
    width: 330px;
    padding: 20px 20px;
  }

  .reset-button {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 350px) {
  hr {
    width: 18rem;
  }

  .title-game {
    font-size: 1.3rem;
  }

  .choices {
    gap: 0.3rem;
  }

  .button-choice {
    width: 6.2rem;
    height: 6.2rem;
    font-size: 1.8rem;
  }

  .choices-screen {
    justify-content: center;
    gap: 5rem;
    padding: 20px 20px;
    width: 310px;
  }

  .choices-screen-profile h3 {
    font-size: 1rem;
  }

  .profile-picture {
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
  }

  .player-choice,
  .computer-choice {
    font-size: 1.5rem;
  }

  .score-screen {
    width: 310px;
    padding: 20px 20px;
  }

  .result-image {
    width: 3.3rem;
    height: 3.3rem;
  }

  .reset-button {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
}

@media (hover: hover) {
  .button-choice:hover {
    background-image: linear-gradient(135deg, #ffae00 0%, #6a0dad 100%);
    background-color: #6a0dad;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.6);
    transform: scale(1.02);
  }

  .reset-button:hover {
    background-image: linear-gradient(135deg, #ffae00 0%, #6a0dad 100%);
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.6);
    transform: scale(1.02);
    color: #fff;
  }

  /* PARA ACTIVE TER MAIS ESPECIFICIDADE E FUNCIONAR NO DESKTOP */
  .button-choice:active,
  .reset-button:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.6);
    background-image: linear-gradient(135deg, #ffae00 0%, #6a0dad 100%);
    color: #fff;
  }
}
