* {
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(235, 225, 225);
  font-family: sans-serif;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: blueviolet;
  width: 100%;
  height: 50px;
  box-shadow: 0 0.5px 4px rgb(32, 4, 39);

}

.nav h1 {
  color: white;
  font-size: 25px;
}

.game {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 92vh;
}

@keyframes dance {
  0% {
    transform: rotate(-0.8deg);
  }

  20% {
    transform: rotate(3deg);
  }

  40% {
    transform: rotate(-3deg);
  }

  60% {
    transform: rotate(3deg);
  }

  80% {
    transform: rotate(-3deg);
  }

  100% {
    transform: rotate(1deg);
  }
}

@keyframes userhand {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(-10deg);
  }

  20% {
    transform: rotate(10deg);
  }

  30% {
    transform: rotate(-5deg);
  }

  40% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(0deg);
  }

  60% {
    transform: rotate(-5deg);
  }

  70% {
    transform: rotate(5deg);
  }

  80% {
    transform: rotate(-10deg);
  }

  90% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes comhand {
  0% {
    transform: rotateY(180deg) rotate(0deg);
  }

  10% {
    transform: rotateY(180deg) rotate(-10deg);
  }

  20% {
    transform: rotateY(180deg) rotate(10deg);
  }

  30% {
    transform: rotateY(180deg) rotate(-5deg);
  }

  40% {
    transform: rotateY(180deg) rotate(5deg);
  }

  50% {
    transform: rotateY(180deg) rotate(0deg);
  }

  60% {
    transform: rotateY(180deg) rotate(-5deg);
  }

  70% {
    transform: rotateY(180deg) rotate(5deg);
  }

  80% {
    transform: rotateY(180deg) rotate(-10deg);
  }

  90% {
    transform: rotateY(180deg) rotate(10deg);
  }

  100% {
    transform: rotateY(180deg) rotate(0deg);
  }
}

.user-hand {
  animation: userhand 1.5s ease-in-out;
}

.com-hand {
  animation: comhand 1.5s ease-in-out;
}



.dance {
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: none;
  animation-play-state: running;
  animation-name: dance;
  animation-timeline: auto;
  animation-range-start: normal;
  animation-range-end: normal;
}

#status {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0f0;
  color: blueviolet;
}

#winmsg {
  font-size: 40px;
}

#status:hover {
  scale: 1.1;
  transition-duration: 0.4s;
}

.gamesection {
  background-color: #f0f0f0f0;
  width: 50%;
  height: 100%;
  border-left: 2px solid rgb(131, 103, 103);
  text-align: center;
}

.gamesection h3 {
  font-size: 23px;
  color: rgb(46, 36, 36);
  margin-top: 3px;
}

.gamesection h3:hover {
  text-decoration: underline;
}

.user-score {
  text-align: right;
  color: rgb(46, 36, 36);
  margin-right: 10px;
  position: relative;
  bottom: 20px;
  right: 0;
  font-size: 2.5rem;

}

.com-score {
  text-align: left;
  color: rgb(46, 36, 36);
  margin-left: 10px;
  position: relative;
  bottom: 20px;
  font-size: 2.5rem;
}

.choice {
  margin-top: 30px;
  padding: 2px;
  height: 200px;
  width: 230px;
}

#com-choice {
  transform: rotateY(180deg);
}

.pick {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 314px;
  height: 75px;
  background-color: #f0f0f0f0;
  position: absolute;
  bottom: 70px;
  background-color: transparent;

}

.room {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100px;
  height: 100px;
  background-color: transparent;
  cursor: pointer;
}

#pick-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}


.room:hover {
  background-color: rgba(138, 44, 226, 0.8);
  scale: 1.1;
  transition-duration: 100ms;
  border-radius: 5px;
}

@media screen and (max-width:440px) {


  #winmsg {
    font-size: 30px;
  }

  .pick {
    width: 219px;
  }

  .room,
  #pick-img {
    width: 70px;
    height: 70px;
  }


  .user-score,
  .com-score {
    text-align: center;
    bottom: 0;
  }

  .choice {
    height: 110px;
    width: 130px;
  }
}
