/* Import Google Font Griffy */
@import url('https://fonts.googleapis.com/css2?family=Griffy&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: blueviolet;
  font-family: 'Griffy', cursive;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-wrapper {
  flex: 1; 
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.container {
  width: 650px;
  background-color: rgba(152, 82, 218, 0.67);
  border-radius: 10px;
  padding: 25px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-title {
  font-size: 48px;
  color: rgb(221, 155, 218);
  font-weight: 400;
  text-align: center;
}

.subtitle {
  font-size: 24px;
  color: rgb(221, 155, 218);
  text-align: center;
  margin-top: 5px;
  font-weight: normal;
}


.weapon-box, .player-choices {
  width: 100%;
  margin-top: 30px;
}

.weapon-box h3, .player-choices h3 {
  font-size: 26px;
  color: rgb(221, 155, 218);
  text-align: center;
  margin-bottom: 15px;
}

.weapons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.weapons div {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: blueviolet;
  border: 2px solid rgb(221, 155, 218);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.weapons div img {
  width: 60px;
  height: 60px;
}

.player-choices {
  display: none;
  flex-direction: column;
  align-items: center;
}

.duel-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.player-choice, .computer-choice {
  width: 130px;
  height: 130px;
}

.player-choice img, .computer-choice img {
  width: 100%;
  height: 100%;
}

.player-choice {
  transform: rotateY(180deg); 
}

.player-choices.active .player-choice {
  animation: player 0.8s linear infinite;
}

.player-choices.active .computer-choice {
  animation: computer 0.8s linear infinite;
}

@keyframes player {
  0% { transform: rotateY(180deg) rotate(0deg); }
  50% { transform: rotateY(180deg) rotate(-50deg); }
  100% { transform: rotateY(180deg) rotate(0deg); }
}

@keyframes computer {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-50deg); }
  100% { transform: rotate(0deg); }
}

.result-box {
  display: none;
  text-align: center;
  margin-top: 20px;
  padding: 10px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid pink;
}

.result-box button {
  margin-top: 10px;
  padding: 5px 15px;
  border: none;
  background: pink;
  color: blueviolet;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.2s;
}

.result-box button:hover {
  background: hotpink;
  color: white;
}

.score-box {
  width: 300px;
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  color: rgb(221, 155, 218);
}

.score-box span {
  color: rgb(107, 32, 177);
}

footer {
  text-align: center;
  color: rgb(221, 155, 218);
  font-size: 14px;
  padding: 10px 0;
  font-family: Arial, Helvetica, sans-serif;
}
