/* Responsive styles using media queries */

/* Medium screens (tablets) */
@media only screen and (max-width: 1199px) and (min-width: 768px) {
  .text {
    margin: 0 10rem;
  }

  .hero1 {
    right: 0;
  }

  .hero2 {
    left: 10rem;
  }

  .head-container {
    right: 3rem;
  }
}

/* Small screens (phones) */
@media only screen and (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
  
  html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
  }
  @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500&display=swap");

  .main-page {
    padding: 0;
  }
  /* display scores */
  .text {
    margin: 0px auto;
    justify-content: space-around;
    min-width: 300px;
  }

  .text-rps {
    padding-left: 0;
    padding-bottom: 20px;
  }
  .text-rps h1 {
    font-size: 1.5rem;
  }

  .text-score {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
  }

  .box {
    margin: 10px 0;
    padding: 5px;
    border-radius: 10px;
    max-width: 80px;
    max-height: 80px;
  }
  .box h2 {
    font-size: 1em;
  }

  /* first section of rps game */

  #hero1 {
    /* margin: 0 auto; */
    /* width: 100px; */
  }
  .playerchoice {
    background: none;
    border: none;
    cursor: pointer;
  }
  .playerchoice1 {
    position: absolute;
    top: 10rem;
    right: 15rem;
    background: none;
    border: none;
    z-index: 1;
  }
  .playerchoice2 {
    position: absolute;
    top: 19.8rem;
    right: 8.2rem;
    background: none;
    border: none;
    z-index: 1;
  }
  .playerchoice3 {
    position: absolute;
    top: 10rem;
    right: 2rem;
    background: none;
    border: none;
    z-index: 1;
  }
  .img-big {
    max-width: 100px;
  }
  .img-small {
    max-width: 35px;
  }

  .line3 {
    position: absolute;
    top: 15rem;
    right: 12.8rem;
  }

  .line2 {
    position: absolute;
    top: 15rem;
    right: 5.8rem;
  }

  .line1 {
    position: absolute;
    top: 12rem;
    right: 7.5rem;
  }

  /* SECOND SECTION OF RPS GAME */
  .result-div {
    display: flex;
    position: absolute;
    top: 8rem;
    left: 0rem;
    width: 400px;
  }
  .result-text {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0.5rem;
  }
  .result-text h1 {
    font-size: 1rem;
    padding-bottom: 5px;
  }
  .computer-pick .img-big {
    top: 1rem;
  }
  .computer-pick .img-small {
    top: 4rem;
    left: 3rem;
  }
  .main-result-text {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
  }
  .comain-result-text {
    font-size: 0.825rem;
  }
  .play-again {
    background-color: white;
    color: black;
    padding: 15px 45px;
    border-radius: 10px;
    border-style: none;
    text-decoration: none;
    list-style: none;
    max-width: 200px;
    letter-spacing: 3px;
    margin: 0 auto;
    cursor: pointer;
  }
  .play-again a {
    text-decoration: none;
  }
  .next {
    position: absolute;
    
    right: 12rem;
    font-size: 1.2em;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 5px 25px;
    border-radius: 10px;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
    letter-spacing: 5px;
  }
  .next a {
    text-decoration: none;
    color: white;
  }

  /* RULES SECTION */

  .head-container {
    position: fixed;
    top: 23rem;
    right: 6rem;
    z-index: 1000;
  }
  .container {
    width: 180px;
    height: 210px;
    border: 7px solid white;
    padding: 5px;
    border-radius: 10px;
    background: #004429;
    color: white;
    position: fixed;
    right: 20px;
    z-index: 1000;
    display: none;
  }
  .text1 ul li {
    font-size: 0.525rem;
    margin-top: 4px;
  }
  .text1 h1 {
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 1.225rem;
  }
  .toggleX {
    position: absolute;
    top: -30px;
    right: -30px;
  }
  .ellipse {
    position: relative;
    width: 50px;
  }
  .x {
    position: absolute;
    width: 20px;
    right: 15px;
    top: 12px;
    cursor: pointer;
  }
  .rulesButton {
    position: fixed;
    bottom: 20px;
    right: 40px;
    font-size: 1em;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 30px;
    border-radius: 10px;
    text-decoration: none;
    list-style: none;
    z-index: 1001;
    cursor: pointer;
    letter-spacing: 5px;
  }
  .rulesButton.hidden {
    display: block;
  }

  /* PULSE ANIMATION */

  .pulse {
    position: relative;
    width: 200px;
    height: 100px;
    background: #289a27;
    border-radius: 50%;
    top: 52px;
    left: -18px;
  }
  .pulse .you-pick .img-big {
    top: -62px;
  }
  .pulse .you-pick .img-small {
    top: -12px;
  }
  .pulse .computer-pick .img-big {
    top: -32px;
  }
  .pick1.pulse h2 {
    top: -50px;
    right: -35px;
  }
  .pick2.pulse h2 {
    top: -30px;
  }

  .pulse .img-small {
    top: 15px;
    left: 60px;
  }

  .pulse span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    opacity: 0.8;
    animation: pulseAnimate 2s ease-out infinite;
    animation-delay: calc(0.5s * var(--i));
  }

  @keyframes pulseAnimate {
    0% {
      opacity: 0.8;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(2);
    }
  }

  /* hurray page */
  .stars {
    width: 300px;
    height: auto;

    position: relative;
  }

  .trophy {
    width: 130px;

    position: absolute;
    top: 80px;
    right: 150px;
  }

  .game-won h1 {
    top: 35px;
    font-size: 3.5em; /* Adjust the font size */
    font-family: Roboto;
    font-weight: 500;
  }

  .game-won h2 {
    top: 40px;
    font-size: 2.5em; /* Adjust the font size */
    font-family: Roboto;
    color: white;
    font-weight: 500;
    position: relative;
    padding: 0 2px;
  }
  .rulesButton {
    position: fixed;
    bottom: 10px;
    right: 20px;
    font-size: 1em;
    padding: 5px 15px;
  }

}
