@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap);
.container.start .optionsBox,
.optionImg img,
.optionImg p {
  pointer-events: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}
body {
  height: 100vh;
  display: grid;
  place-content: center;
  background-color: #21d4fd;
  background-image: linear-gradient(19deg, #21d4fd 0, #b721ff 100%);
  background-repeat: no-repeat;
}
::selection {
  color: #fff;
  background-color: #7d2ae8;
}
.container {
  background-color: #fff;
  padding: 2rem 7rem;
  border-radius: 14px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
.resultImgs {
  display: flex;
  column-gap: 7rem;
}
.resultImgs img {
  width: 100px;
}
.userResult img {
  transform: rotate(90deg);
}
.cpuResult img {
  transform: rotate(-90deg) rotateY(180deg);
}
.resultText {
  text-align: center;
  font-size: 2rem;
  color: #7d2ae8;
  margin-top: 1.5rem;
}
.container.start .userResult {
  transform-origin: left;
  animation: 0.7s infinite userShake;
}
@keyframes userShake {
  50% {
    transform: rotate(10deg);
  }
}
.container.start .cpuResult {
  transform-origin: right;
  animation: 0.7s infinite cpuShake;
}
@keyframes cpuShake {
  50% {
    transform: rotate(-10deg);
  }
}
.optionsBox img {
  width: 50px;
}
.optionsBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
}
.optionImg {
  display: flex;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.optionImg:active,
.optionImg:hover {
  opacity: 1;
}
.optionImg p {
  color: #7d2ae8;
  font-size: 1.235rem;
  margin-top: 1rem;
}
@media only screen and (max-width: 546px) {
  .container {
    padding: 2rem 3rem;
  }
  .resultImgs {
    justify-content: center;
    column-gap: 6.5rem;
  }
  .resultImgs img {
    width: 70px;
  }
  .optionsBox {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
  }
  .optionsBox img {
    width: 35px;
  }
  .optionImg {
    margin-top: 1rem;
  }
}
@media only screen and (max-width: 375px) {
  .container {
    padding: 2rem 2.5rem;
  }
  .resultImgs {
    column-gap: 5.4rem;
  }
  .optionsBox img {
    width: 30px;
  }
}
@media only screen and (max-width: 330px) {
  .container {
    padding: 1.5rem 2rem;
  }
  .resultImgs {
    column-gap: 4.5rem;
  }
  .resultImgs img {
    width: 60px;
  }
  .optionsBox img {
    width: 30px;
  }
}
