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

:root {
  font-size: 10px;
}

body {
  height: 100vh;
  background: radial-gradient(
    circle 125vh at top,
    hsl(214, 47%, 23%),
    hsl(237, 49%, 15%)
  );
  overflow: auto;
}

.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.header {
  width: 48%;
  display: flex;
  justify-content: space-between;
  padding: 2rem 3rem;
  border: 3px solid hsl(217, 16%, 45%);
  border-radius: 10px;
  margin-top: 3rem;
  z-index: 10;
}

.scorecounter {
  background-color: rgb(231, 232, 233);
  width: 22%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.score {
  font-size: 1.4rem;
  font-family: Arial, Helvetica, sans-serif;
  color: blue;
  font-weight: 700;
}

.scorenumber {
  font-size: 4.8rem;
  font-weight: 700;
  color: rgb(96, 110, 133);
}

.gameGridContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 11rem;
  margin-bottom: 1rem;
}

.shape {
  width: 6rem;
}

.handshape {
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  cursor: pointer;
}

.rock {
  border: 20px solid rgb(233, 45, 76);
  box-shadow: 0 8px #a90f2b, inset 0 8px #cad5d6;
  position: absolute;
  bottom: -17px;
}

.paper {
  border: 20px solid rgb(82, 85, 255);
  box-shadow: 0 8px #180d92, inset 0 8px #cad5d6;
  position: absolute;
  top: -73px;
  left: -61px;
}

.scissors {
  border: 20px solid rgb(233, 202, 45);
  box-shadow: 0 8px #a9920f, inset 0 8px #cad5d6;
  position: absolute;
  top: -73px;
  right: -61px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  padding: 0 4rem;
  font-size: 1.9rem;
  width: 100%;
  margin-bottom: 3rem;
}

.rules,
.mode {
  display: inline;
  border: 2px solid hsl(217, 16%, 45%);
  color: white;
  padding: 0.5rem 3rem;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.scalBtn:hover {
  transform: scale(1.1);
}

.modal {
  display: none;
  position: fixed;
  z-index: 11;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32%;
  background-color: white;
  border-radius: 2rem;
  padding: 3rem;
}

.rulesModal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.modal-header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.modal-body img {
  width: 100%;
}

h2 {
  font-size: 3rem;
}

.close {
  font-size: 5rem;
  font-weight: bold;
  cursor: pointer;
  color: #ced0d8;
}

.gameGridContainer.active {
  display: none;
}

.resultOfGame {
  display: none;
}

.youPicked,
.theHousePicked {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.theHousePicked {
  display: none;
}

.resultOfGame p {
  color: #cad5d6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
}

.you {
  background-color: white;
  width: 286px;
  height: 286px;
  border-radius: 50%;
  border: 20px solid rgb(82, 85, 255);
}

.computer {
  background-color: #041331;
  width: 284px;
  height: 284px;
  border-radius: 50%;
  border: 40px solid #041331;
}

.computer img {
  width: 60px;
}

.resultOfGame.click {
  display: flex;
  justify-content: space-between;
  padding: 5rem;
  gap: 120px;
}

.animationshowYou {
  animation-name: moveShowSelectYou;
  animation-duration: 1s;
}

.computer.animate {
  animation-name: opacity;
  animation-duration: 2s;
}

.result {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 10;
}

.result p {
  font-size: 5rem;
}

.animationResult {
  animation-name: showResult;
  animation-duration: 1s;
  animation-timing-function: ease-in;
}

.playAgain {
  padding: 1.8rem;
  width: 100%;
  border-radius: 1.2rem;
  font-weight: bold;
  margin-top: 2rem;
  cursor: pointer;
}

.playAgain:hover {
  color: #dd405d;
}
p {
  z-index: 10;
}
@keyframes moveModalOpen {
  from {
    top: 0;
  }

  to {
    top: 50%;
  }
}

@keyframes moveModalClose {
  from {
    top: 50%;
  }

  to {
    top: -50%;
  }
}

@keyframes moveShowSelectYou {
  from {
    width: 200px;
    height: 200px;
  }

  to {
    width: 286px;
    height: 286px;
  }
}

@keyframes showResult {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}
