* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  font-family: "Barlow Semi Condensed", sans-serif;
}

:root {
  --light-text: #ffff;
  --dark-text: hsl(229, 25%, 31%);
  --score-text: hsl(229, 64%, 46%);
  --header-outline: hsl(217, 16%, 45%);
  --from-rock: hsl(349, 71%, 52%);
  --to-rock: hsl(349, 70%, 56%);
  --from-paper: hsl(230, 89%, 62%);
  --to-paper: hsl(230, 89%, 65%);
  --from-scissor: hsl(39, 89%, 49%);
  --to-scissor: hsl(40, 84%, 53%);
  --shadow-light: #00000026;
  --shadow-dark: #0000004d;
  --bg-dark: rgba(12, 15, 32, 0.7);
}

.chosen{
  background-color: #fff !important;
  box-shadow: inset 0 0.5rem var(--shadow-light);
}

body {
  /* position: relative; */
  width: 100%;
  height: 100%;
  background-image: radial-gradient(at top, #FFC107, #FFC107);
  overflow: hidden;
}

.container {
  /* position: relative; */
  /* left: 50%; */
  /* transform: translateX(-50%); */
  padding: 1rem;
  height: 100%;
  width: 100%;
}

/* display flex */
.header {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 96vw;
  height: 150px;
  padding: 1rem 2rem;
  border-radius: 20px;
  margin: auto;
}

.score {
  height: 100%;
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: transparent;
  line-height: 1;
  border-radius: 10px;
}

.score__title {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.score__number {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 600;
}

.to__center{
  position: absolute;
  width: 100%;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* display grid */
.user__section{
  position: absolute;
  left: 0px;
  bottom: 10px;
  width: 100%;
}
.opponent__section{
  position: absolute;
  left: 0px;
  top: -35px;
  width: 100%;
}
.user_main{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.user{
  display: flex;
}
.user img{
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.user h5{
  font-size: 20px;
  color: #fff;
  padding-top: 11px;
  margin-left: 10px;
}
.opponent__section p{
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-top: 20px;
}
.main {
  display: none;
  justify-content: space-evenly;
  width: 100%;
  height: fit-content;
  padding-top: 2rem;
  place-items: center;
}
.main_opponent_last_chosen{
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  height: fit-content;
  margin-top: 15px;
  place-items: center;
}
.main_opponent_last_chosen p{
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}
.main::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 30%;
  left: 28%;
  background: url("/bg-triangle.svg") no-repeat;
  z-index: -1;
  display: none;
}

.main > button:hover {
  scale: 1.1;
  transition: scale 0.2s ease-in-out;
}

.timer_box{
  width: 50px;
  height: 50px;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
  display: flex;
  align-items: center;
  /* border: 4px solid #66fcf1; */
  width: 100%;
}
.timer_box h3{
  width: 100%;
}
.timer h5{
  text-align: center;
  color: #fff;
  margin-top: 10px;
  font-size: 18px;
}

.choice__paper,
.choice__scissor,
.choice__rock,
.choice__ {
  height: 50px;
  aspect-ratio: 1/1;
  border-radius: 100%;
  cursor: pointer;
  background: transparent;
}

.choice__{
  border: none;
}

.choice__paper p,
.choice__scissor p,
.choice__rock p{
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
  color: #fff;
}

.choice__paper {
  grid-area: "paper";
  border-radius: 100%;
  border: 0px solid var(--to-paper);
  /* box-shadow: -1px 0px var(--shadow-dark), -1px 0px var(--from-paper); */
  height: 67px;
}

.choice__rock {
  grid-area: rock;
  border-radius: 100%;
  border: 0px solid var(--to-rock);
  /* box-shadow: -1px 0px var(--shadow-dark), -1px 0px var(--from-rock); */
  height: 67px;
}

.choice__scissor {
  grid-area: "scissor";
  border-radius: 100%;
  border: 0px solid var(--to-scissor);
  /* box-shadow: -1px 0px var(--shadow-dark), -1px 0px var(--from-scissor); */
  height: 67px;
}

.choice__img {
  display: block;
  height: 50px;
  aspect-ratio: 1/1;
  margin: auto;
}

.choice {
  height: 100%;
  width: 100%;
  border-radius: 100%;
  display: flex;
}

.footer{
  position: fixed;
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  bottom: 3.5rem;
}

/* display ntg */
.rules__button {
  margin: 0 2rem;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background-color: transparent;
  font-weight: 600;
  letter-spacing: 0.3rem;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 15px;
  border: none;
  cursor: pointer;
}

.exit__btn{
  margin: 0 2rem;
  width: 150px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background-color: transparent;
  font-weight: 600;
  letter-spacing: 0.3rem;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 15px;
  border: 2px solid var(--header-outline);
  cursor: pointer;
}

.exit__btn:hover,
.exit__btn:active{
  border: 2px solid red;
  color: red;
}

.rules__button:hover,
.rules__button:active {
  border: 2px solid #fff;
}

.rules, .music {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.1s linear;
  background-color: var(--bg-dark);
  z-index: 9;
}

.rules__container, .music__container {
  height: auto;
  width: auto;
  background-color: #fff;
  border-radius: 10px;
}
.music__container{
  padding: 15px;
  padding-bottom: 40px;
}
.music__container .btn{
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  border: none;
}

.rules__header, .music__header {
  padding: 2rem;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.music__header{
  justify-content: center !important;
}

.rules__title, .music__title {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 800;
}
.music__title{
  margin-bottom: 10px;
}

.rules__img, .music__img {
  padding: 2rem;
}

.play-sound-true{
  height: 100px;
  background-color: transparent;
  border: none;
  width: 100%;
  margin-top: 40px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  position: absolute;
  bottom: 30%;
  left: 0%;
  display: none;
}

.show__rules_board {
  opacity: 1;
  pointer-events: inherit;
}

/* display grid*/
.result_main{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: #00000094;
  display: none;
  width: 100.06%;
  height: 100%;
}
.animation{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 998;
  background-color: #00000094;
  display: none;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
}
.animation img{
  width: 200px;
  height: 200px;
}

.result__board {
  /* position: absolute; */
  /* top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
  display: none;
  place-items: center;
  grid-template-columns: auto auto !important;
  height: fit-content;
  row-gap: 10px;
  max-width: 1000px;
  padding: 20px;
  margin: 2.5rem auto;
  width: 100%;
}

.your__result {
  grid-area: your-text;
  z-index: 1;
}

.opponents__result {
  grid-area: oppo-text;
  z-index: 1;
  font-size: 18px;
}

.your__choice {
  grid-area: your-choice;
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.oppo__choice {
  grid-area: oppo-choice;
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

/* Place holder for waiting  */
.waiting_to_chose {
  height: 12rem;
  aspect-ratio: 1/1;
  background-color: var(--bg-dark);
  border-radius: 50%;
}

/* Increase size after choosing */
.increase-size {
  scale: 1.5;
}

/*result grid after both players choice*/
.after-choosing {
  margin: 3rem auto;
}

/* display  grif*/
.results {
  grid-area: results;
  display: none;
  place-items: center;
  margin-top: 150px;
}
.results p{
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.results__heading {
  display: block;
  text-align: center;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  padding-bottom: 1.5rem;
  color: #fff;
}

.results__button {
  display: block;
  background-color: #fff;
  padding: 0.6rem 3.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  cursor: pointer;
  border: none;
}

.result__board > * {
  color: #fff;
  letter-spacing: 0.1rem;
  font-weight: 600;
}

.join, .end {
  display: flex;
  place-items: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: radial-gradient(at top, #FFC107, #FFC107);
}

.join__container, .end__container {
  height: auto;
  padding: 2rem;
  margin: auto;
  border-radius: 0.8rem;
  /* border: 2px solid var(--dark-text); */
}

.join__container h5, .end__container h5{
  font-size: 22px;
  color: #fff;
}

.join__options > * {
  display: block;
  margin: 2rem auto;
  padding: 0.8rem 3rem;
  width: 100%;
  background-color: #fff;
  border-radius: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-weight: 600;
  color: var(--score-text);
  border: none;
  cursor: pointer;
}

.winner {
  border-radius: 50%;
  animation: winnerAnimation 3s infinite linear alternate;
}

.back_to_leaderboard{
  background-color: #000;
  color: #fff;
  text-align: center;
  width: 100%;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px;
  border-radius: 5px;
  display: block;
  margin-top: 20px;
}

@keyframes winnerAnimation {
  0% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 0 20px #2b3956, 0 0 0 40px #263554, 0 0 0 60px #223351;
  }
  100% {
    box-shadow: none;
  }
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.none {
  display: none;
}

.block {
  display: block;
}

.loading span{
  font-size: 20px !important;
  color: #fff;
  border-radius: 50%;
}

.loading span::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}
