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

section {
  height: 100vh;
  background-color: rgb(39, 41, 68);
  font-family: sans-serif;
}

.score, .hscore {
  color: rgb(224, 224, 224);
  height: 20vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.score h2 {
  font-size: 30px;
}
.score p {
  text-align: center;
  padding: 10px;
  font-size: 25px;
}
.score .gameOf h2{
  margin: auto;
  text-align: center;
  padding-bottom: 12px;
}
#reset{
  padding-top: 12px;
  margin: auto;
  border: none;
  background: none;
  height: 100%;
  color: rgb(224, 224, 224);
  text-align: center;
  display: flex;
  font-weight: 700;
  letter-spacing: 1;
  font-size: 35px;
  outline: none;
}
input{
  font-size: 25px;
  width: 100%;
  padding: 7px 7px 7px 20px;
  box-sizing: border-box; 
}
.intro {
  color: rgb(224, 224, 224);
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  transition: opacity 0.5s ease;
}

.intro h1 {
  font-size: 50px;
}

.intro .subtitle {
  font-size: 18px;
  color: rgb(180, 180, 180);
  margin: -20px 0 20px 0;
  font-style: italic;
}
.intro button,
.match button {
  width: 150px;
  height: 50px;
  background: none;
  border: none;
  color: rgb(224, 224, 224);
  font-size: 20px;
  background: rgb(45, 117, 96);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.intro button:hover,
.match button:hover {
  background: rgb(60, 140, 115);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 117, 96, 0.4);
}

.match .rock:hover { background: rgb(139, 69, 19); }
.match .paper:hover { background: rgb(70, 130, 180); }
.match .scissors:hover { background: rgb(220, 20, 60); }

.game-footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: rgb(180, 180, 180);
  font-size: 14px;
}

.game-footer a {
  color: rgb(45, 117, 96);
  text-decoration: none;
  transition: color 0.3s ease;
}

.game-footer a:hover {
  color: rgb(60, 140, 115);
  text-decoration: underline;
}

.match {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease 0.5s;
}
.winner {
  color: rgb(224, 224, 224);
  text-align: center;
  font-size: 50px;
}

.hands,
.options {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

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

div.fadeOut {
  opacity: 0;
  pointer-events: none;
}

div.fadeIn {
  opacity: 1;
  pointer-events: all;
}

@keyframes shakePlayer {
  0% {
    transform: rotateY(180deg) translateY(0px);
  }
  15% {
    transform: rotateY(180deg) translateY(-50px);
  }
  25% {
    transform: rotateY(180deg) translateY(0px);
  }
  35% {
    transform: rotateY(180deg) translateY(-50px);
  }
  50% {
    transform: rotateY(180deg) translateY(0px);
  }
  65% {
    transform: rotateY(180deg) translateY(-50px);
  }
  75% {
    transform: rotateY(180deg) translateY(0px);
  }
  85% {
    transform: rotateY(180deg) translateY(-50px);
  }
  100% {
    transform: rotateY(180deg) translateY(0px);
  }
}

@keyframes shakeComputer {
  0% {
    transform: translateY(0px);
  }
  15% {
    transform: translateY(-50px);
  }
  25% {
    transform: translateY(0px);
  }
  35% {
    transform: translateY(-50px);
  }
  50% {
    transform: translateY(0px);
  }
  65% {
    transform: translateY(-50px);
  }
  75% {
    transform: translateY(0px);
  }
  85% {
    transform: translateY(-50px);
  }
  100% {
    transform: translateY(0px);
  }
}
