body {
    font-family: 'Roboto', sans-serif;
    background-color: #8CC461;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 800px;
    height: 158px;
    padding: 5px 20px;
    font-size: 20px;
    border-radius: 13px;
    border: 2px solid #FFFFFF;
    position: relative;
    margin: 50px auto;
}

.scoreboard h1 {
    font-size: 40px;
    color: white;
    font-weight: 600;
    max-width: 235px;
    word-wrap: break-word;
    letter-spacing: 2px;
}

.score-container {
    display: flex;
    gap: 50px; 
    justify-content: flex-end;
}

.score-container div {
    background-color: #FFFFFF;
    border-radius: 9px;
    height: 128px;
    width: 139px;
    font-size: 17px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #656565;
    font-weight: bold;
    box-sizing: border-box;
    padding-top: 5px;
}

#player-score, #computer-score {
    color: #252525;
    text-align: center;
    font-size: 68px;
    font-weight: bold;
}

#rules-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 5px 20px;
    font-size: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    border: 2px solid #FFFFFF;
    cursor: pointer;
    color: #FFFFFF;
    background-color: #8CC461;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 3000;
    background-color: transparent;
}

.choices button {
    font-size: 20px;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
}

#rules-popup {
  position: fixed;
  top: 260px;
  right: 70px;
  width: 267px;
  height: 330px;
  background-color: #004429;
  border: 7px solid #FFFFFF;
  border-radius: 15px;
  padding: 20px 20px 20px 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 5000;
}

.hidden {
  display: none !important;
}

.cross-symbol {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 50px;
  height: 50px;
  background-color: red;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 5px solid white;
}

.cross-symbol::before {
  content: "✕";
  font-size: 35px;
  font-weight: bolder;
  color: white;
}

.inner-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#game-rules-heading {
  text-align: center;
  font-size: 35px;
  color: #FFFFFF;
  font-weight: 500;
  margin: 0px auto 20px auto;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.rules-list .bullet {
  width: 10px;
  height: 10px;
  background-color: #FFD600;
  border-radius: 1px;
  margin-top: 6px;
  flex-shrink: 0;
}

.container {
  position: relative;
  width: 300px;
  height: 280px;
  margin-top: 25px;
}

#user-choice .circle,
#computer-choice .circle {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: auto;
}

.circle {
  background-color: white;
  width: 90px;
  height: 90px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  border: 12px solid;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.rock {
  top: 0;
  left: 0;
  border-color: #2479b0;
}

.scissors {
  top: 0;
  right: 0;
  border-color: #b429d0;
}

.paper {
  bottom: 0;
  left: 32%;
  border-color: #f4a325;
}

#next-btn {
    position: fixed;
    bottom: 20px;
    right: 150px;
    padding: 5px 20px;
    font-size: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    border: 2px solid #FFFFFF;
    cursor: pointer;
    color: #FFFFFF;
    background-color: #8CC461;
    font-weight: 600;
    letter-spacing: 2px;
}

.line {
  position: absolute;
  background-color: #333;
  transform-origin: top left;
}

.line1 {
  top: 40px;
  left: 70px;
  width: 133px;
  height: 12px;
  transform: rotate(0deg);
}

.line2 {
  top: 90px;
  left: 70px;
  width: 107px;
  height: 12px;
  transform: rotate(60deg);
}

.line3 {
  top: 90px;
  right: -40px;
  width: 107px;
  height: 12px;
  transform: rotate(120deg);
}

.result-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  color: white;
  height: 250px;
  gap: 60px;
}

.pick h3 {
  margin-bottom: 40px;
  font-size: 18px;
  letter-spacing: 1px;
}

.result-message {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;   
  text-align: center;
  gap: 20px;
  height: 250px;
  width: 183px;
  position: relative;
}

#result-text .main-result {
  font-size: xx-large;
  font-weight: bolder;
  color: white;
  margin: 0;
  letter-spacing: 4px;
}

#result-text .sub-result {
  font-size: larger;
  font-weight: bolder;
  color: white;
  margin: 0;
  letter-spacing: 2px;
}

#play-again-btn {
  padding: 10px 20px;
  font-size: 12px;
  background-color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #6B6B6B;
  letter-spacing: 1px;
}

.circle.winner::before,
.circle.winner::after,
.circle.winner span {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.circle.winner::before {
  top: -50px;
  left: -50px;
  width: 240px;
  height: 240px;
  background-color: rgba(46, 154, 37, 0.8);
}

.circle.winner::after {
  top: -75px;
  left: -75px;
  width: 290px;
  height: 290px;
  background-color: rgba(46, 154, 37, 0.5);
}

.circle.winner span {
  top: -100px;
  left: -100px;
  width: 340px;
  height: 340px;
  background-color: rgba(46, 154, 37, 0.3);
}

.circle.winner::before,
.circle.winner::after,
.circle.winner span {
  transition: all 2s ease-in-out;
}

#win-celebration {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.celebration-container {
  text-align: center;
  color: white;
}

.trophy {
  width: 150px;
  margin-bottom: 20px;
}

.stars-list {
  margin-bottom: 20px;
}

.stars {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  z-index: 0;
  opacity: 0.8;
}

.star {
  color: #fff;
  font-size: 24px;
  margin: 0 5px;
  opacity: 0.5;
  animation: twinkle 1s infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.3; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.2); }
}

.hurray-text {
  font-size: 70px;
  font-weight: 500;
  margin: 0px auto;
  letter-spacing: 5px;
}

.win-text {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0px auto 40px auto;
}

#play-again-final {
  padding: 10px 20px;
  font-size: 12px;
  background-color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #6B6B6B;
  letter-spacing: 1px;
}

.fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fireworks::before,
.fireworks::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    50vw 10vh #FFD700,
    20vw 20vh #FF6347,
    70vw 30vh #00FFFF,
    30vw 40vh #FF00FF,
    90vw 25vh #7CFC00,
    10vw 15vh #FFA500,
    80vw 35vh #FF69B4,
    60vw 45vh #1E90FF;
  animation: explode 2s ease-in-out infinite;
}

.fireworks::after {
  animation-delay: 1s;
}

@keyframes explode {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.2);
    opacity: 0;
  }
}
