/* - Scissors Gradient: hsl(39, 89%, 49%) to hsl(40, 84%, 53%)
- Paper Gradient: hsl(230, 89%, 62%) to hsl(230, 89%, 65%)
- Rock Gradient: hsl(349, 71%, 52%) to hsl(349, 70%, 56%)
- Lizard Gradient: hsl(261, 73%, 60%) to hsl(261, 72%, 63%)
- Cyan: hsl(189, 59%, 53%) to hsl(189, 58%, 57%) 


- Dark Text: hsl(229, 25%, 31%)
- Score Text: hsl(229, 64%, 46%)
- Header Outline: hsl(217, 16%, 45%)



- Radial Gradient: hsl(214, 47%, 23%) to hsl(237, 49%, 15%)
*/

:root {
  --primary-color: hsl(229, 64%, 46%);
  --primary-dark: hsl(229, 25%, 31%);
  --primary-light: hsl(217, 16%, 45%);
  --white-color: #fff;
  --paper-gradient: linear-gradient(
    to bottom,
    hsl(230, 89%, 62%) 0%,
    hsl(230, 89%, 65%) 100%
  );
  --rock-gradient: linear-gradient(
    to bottom,
    hsl(349, 71%, 52%),
    hsl(349, 70%, 56%)
  );
  --scissors-gradient: linear-gradient(
    to bottom,
    hsl(39, 89%, 49%),
    hsl(40, 84%, 53%)
  );
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}

body {
  height: 100vh;
  background: radial-gradient(
    farthest-corner at 800px 10px,
    hsl(214, 47%, 23%) 0%,
    hsl(237, 49%, 15%) 100%
  );
  background-repeat: no-repeat;
  font-family: "Barlow Semi Condensed";
}
.header {
  margin: 3rem auto;
  width: 50rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: 3px solid var(--primary-light);
  padding: 3rem;
  border-radius: 2rem;
}
.heading-1 {
  color: var(--white-color);
  font-size: 4rem;
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.score-box {
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: var(--white-color);
  border-radius: 0.5rem;
}
.score-title {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
}
.score {
  color: var(--primary-dark);
  font-size: 4rem;
}

.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}
.container {
  position: relative;
  height: 40rem;
  width: 50rem;
}

.btn-rules {
  align-self: flex-end;
  border: none;
  padding: 0.6rem 2rem;
  color: var(--white-color);
  border-radius: 0.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: var (var(--primary-color));
  outline: 2px solid var(--primary-light);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-rules:hover {
  color: var(--primary-light);
}
.icon-box {
  width: 15rem;
  height: 15rem;
  border-radius: 10rem;
  background-color: var(--white-color);
  position: relative;
  box-shadow: inset 0px 8px #ddd;
  position: absolute;
  cursor: pointer;
}

.icon {
  width: 8rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.icon-border-rock,
.icon-border-paper,
.icon-border-scissors {
  width: 20rem;
  height: 20rem;
  border-radius: 10rem;
  position: relative;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -100;
}

.icon-border-rock {
  background-color: hsl(349, 70%, 56%);
  box-shadow: inset 0px -8px hsl(349, 71%, 52%);
}
.icon-border-white {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15rem;
  height: 15rem;
  border-radius: 10rem;
  background-color: var(--white-color);
  box-shadow: inset 0px 8px #ddd;
}

.icon-border-paper {
  background-color: hsl(230, 89%, 65%);
  box-shadow: inset 0px -8px hsl(230, 89%, 62%);
}
.icon-border-scissors {
  background-color: hsl(40, 84%, 53%);
  box-shadow: inset 0px -8px hsl(39, 89%, 49%);
}

.icon-box-rock {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.icon-box-paper {
  top: 0;
  left: 0;
}
.icon-box-scissors {
  top: 0;
  right: 0;
}

.icon-triangle {
  z-index: -300;
  width: 30rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hidden {
  display: none !important;
}

.playing-container {
  position: relative;
  height: 40rem;
  width: 80rem;
  /* display: flex;
  flex-direction: column; */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  column-gap: 4rem;
  row-gap: 2rem;
  justify-items: center;
}

.heading-2 {
  color: var(--white-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 2rem;
}
.circle {
  width: 12rem;
  height: 12rem;
  background-color: hsl(237, 49%, 15%);
  border-radius: 20rem;
}
.choice {
  position: relative;
}

.choice .icon-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: scale(1.1) translate(-50%, -50%);
}

.game-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.heading-3 {
  color: var(--white-color);
  text-transform: uppercase;
  font-size: 2.6rem;
  letter-spacing: 2px;
}
.game-btn {
  width: 100%;
  border: none;
  background-color: var(--white-color);
  padding: 1.2rem;
  border-radius: 0.5rem;
  font-family: inherit;
  text-transform: uppercase;
  font-size: 1.8rem;
  color: hsl(237, 49%, 15%);
}

.winner {
  width: 50rem;
  height: 50rem;
  border-radius: 40rem;
  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  background-image: radial-gradient(
    circle,
    hsl(214, 47%, 23%),
    hsl(237, 49%, 15%) 80%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: -500;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.rules {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  padding: 3rem;
  position: relative;
  background-color: var(--white-color);
  width: 50%;
  height: auto;
  border-radius: 1rem;
  gap: 3rem;
}
.rules-title {
  font-size: 3.6rem;
  align-self: flex-start;
  color: var(--primary-dark);
}

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media (max-width: 56.25em) {
  html {
    font-size: 50%;
  }
  body {
    min-height: 100vh;
  }

  .heading-1 {
    font-size: 2.8rem;
  }
  .game-section {
    margin-top: 12rem;
  }
  .icon-box {
    height: 10rem;
  }
}
@media (max-width: 37.5em) {
  .header {
    width: 80vw;
  }
  .icon-box {
    height: 4rem;
    width: 4rem;
  }
  .icon-border-paper,
  .icon-border-rock,
  .icon-border-scissors {
    height: 15rem;
    width: 15rem;
  }
  .icon-border-white {
    height: 12rem;
    width: 12rem;
  }

  .icon-box-rock {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .icon-box-paper {
    top: 0;
    left: 20%;
  }
  .icon-box-scissors {
    top: 0;
    right: 20%;
  }
  .container {
    position: relative;
    height: 30rem;
    width: 100vw;
  }
  .playing-container {
    width: 100vw;
    height: 25rem;
  }
  .player-choice {
    grid-row: 1/2;
  }
  .computer-choice {
    grid-row: 1/2;
  }
  .game-box {
    top: 21rem;
  }
  .btn-rules {
    align-self: center;
    margin-top: 10rem;
  }
  .rules {
    width: 100%;
    height: 100%;
    gap: 5rem;
    align-content: center;
    padding-top: 15rem;
  }
  .rules-title {
    align-self: center;
  }
}
