@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700");
@import url("https://fonts.googleapis.com/css?family=Source+Code+Pro:300,500");
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
* {
  margin: 0;
  padding: 0;
  max-width: 100%;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers everything vertically */
  align-items: center;
  height: 100vh; /* Ensures full viewport height */
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevents scrolling */
  background: #24272e;
  color: #fff;
  font-family: "Roboto", sans-serif;
}
code {
  font-family: "Source Code Pro", monospace;
  font-size: 12px;
}
a {
  font-family: "Source Code Pro", monospace;
  color: #ffcc99;
}
a:hover {
  color: #ffba76;
}
header {
  background: #fff;
  padding: 10px;
}
header h1 {
  color: #444;
  text-align: center;
  font-weight: 100;
}
.score-board {
  border: 3px solid #fff;
  width: 300px;
  margin: 40px auto;
  font-size: 40px;
  border-radius: 4px;
  text-align: center;
  padding: 15px 20px;
  position: relative;
}
.badge {
  background: #e2584d;
  text-transform: uppercase;
  font-size: 14px;
  padding: 10px 6px;
}
#user-label {
  position: absolute;
  top: 50%;
  left: -5%;
  transform: translate(-10%, -50%);
}
#computer-label {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translate(10%, -50%);
}
.result {
  font-weight: 300;
  text-align: center;
  font-size: 32px;
  line-height: 40px;
}
.result {
  line-height: 50px;
}
.choices {
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}
.choice {
  display: inline-block;
  border: 3px solid #fff;
  border-radius: 50%;
  padding: 10px;
  margin: auto 10px;
  transition: all 0.3s ease;
}
.choice img {
  filter: invert(100%);
}
#action-message {
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 40px 0;
}
.winningStyles {
  border: 3px solid #4dcc7d;
  background-color: #043507;
  box-shadow: 0 0 20px #043507;
}
.losingStyles {
  border: 3px solid #c52e2e;
  background-color: #2e0303;
  box-shadow: 0 0 20px #2e0303;
}
.drawStyles {
  border: 3px solid #444;
  background-color: #222;
  box-shadow: 0 0 20px #222;
}
sup {
  margin: 0;
  padding: 0;
}

.falling-effect {
  position: fixed;
  top: 0;
  font-size: 2rem;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
      transform: translateY(-10vh) rotate(0deg);
      opacity: 1;
  }
  100% {
      transform: translateY(100vh) rotate(360deg);
      opacity: 0;
  }
}
.end-game {
  position: fixed;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 1.5rem; /* Increased font size */
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 2px 2px 5px #000;
}

/* Add more spacing between text and button */
.restart-btn {
  display: block;
  margin: 10px auto; /* Adds spacing */
  padding: 15px 40px;
  font-size: 1.5rem;
  background-color: #ff5733;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 50px;
}

@media (max-width: 1024px) {
  header {
    background: #fff;
    padding: 10px;
  }
  header h1 {
    color: #444;
    text-align: center;
    font-weight: 100;
    font-size: 55px;
  }
  .score-board {
    width: 700px !important;
    font-size: 100px !important;
  }
  #user-label {
    position: absolute;
    font-size: 30px;
    top: 50%;
    left: -5%;
    transform: translate(-10%, -50%);
  }
  #computer-label {
    position: absolute;
    font-size: 30px;
    top: 50%;
    right: -5%;
    transform: translate(10%, -50%);
  }
  .result {
    font-weight: 300;
    text-align: center;
    font-size: 55px;
    line-height: 40px;
  }
  .result {
    line-height: 100px;
  }
  .choices {
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
  }
  .choice {
    display: inline-block;
    border: 3px solid #fff;
    border-radius: 50%;
    padding: 20px;
    margin: auto 10px;
    transition: all 0.3s ease;
  }
  .choice img {
    filter: invert(100%);
    width: 80px;
    height: 80px;
  }
  #action-message {
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px 0;
    font-size: 30px;
  }
  
  /* Add more spacing between text and button */
  .restart-btn {
    position: fixed;
    top:79%;
  }

}

/* Adjust for tablets & larger mobiles (768px) */
@media (max-width: 768px) {
  .score-board {
      width: 240px;
      font-size: 30px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
  }
}

/* Adjust for small mobile screens (480px and below) */
@media (max-width: 480px) {
  .score-board {
      width: 220px;
      font-size: 28px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
  }
}
