@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,700;1,600&display=swap');
*{
  margin: 0;
  padding: 0;
 
}
:root{
  --darkText : hsl(229, 25%, 31%);
  --scoreText : hsl(229, 64%, 46%);
  --headerOutline: hsl(217, 16%, 45%);
}
body{
  font-family: 'Barlow Semi Condensed', sans-serif;
  background-image: linear-gradient(to right, hsl(214, 47%, 23%) , hsl(237, 49%, 15%));
 
}

.header{
  border: 0.5rem solid var(--headerOutline);
  border-radius: 1rem;
  margin-right: 10rem;
  margin-left: 10rem;
}
.header-img{
   padding: 2rem; 
}
.score{
  float: right;
  background-color: white;
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
  color:var(--scoreText) ;
  max-width: 120px;
}
.user-score{
  color: var(--darkText);
  font-size: 3.5rem;
}

.section{
  margin-top: 3rem;
}
.user-img{
  border-radius: 10rem;
  padding: 2rem;
  background-color: rgb(216, 216, 216);
  margin-top: 0.7rem;
  width: 145px;
  height:145px ;
}

.user-choice{
  font-size: 1.5rem;
  color:white;
  text-align: center;
  
 }
.computer-choice{
  font-size: 1.5rem;
  color:white;
  text-align: center;
}

.image-bg{
  position: relative;
  top: 10px;
  left: 10px;
  z-index: 1;
}
.hidden{
  display: none;
}

#rock{
  padding: 1.2rem;
  border-radius: 10rem;
  border-top: 1rem solid hsl(349, 71%, 52%);
  border-bottom:1rem solid hsl(349, 70%, 56%);
  border-right: 1rem solid hsl(349, 71%, 52%);
  border-left:1rem solid hsl(349, 70%, 56%);
  background-color: rgb(216, 216, 216);
  position:absolute;
  top: -45px;
  left: 90px;
  z-index: 2;
  width: 115px;
  height:115px ;
}
#spock{
  padding: 1.2rem;
  border-radius: 8rem;
  border-top: 1rem solid hsl(189, 59%, 53%);
  border-bottom:1rem solid hsl(189, 58%, 57%);
  border-right: 1rem solid hsl(189, 59%, 53%);
  border-left:1rem solid hsl(189, 58%, 57%);
  background-color: rgb(216, 216, 216);
  position:absolute;
  top: 56px;
  left: -30px;
  z-index: 2;
  width: 115px;
  height: 115px;

}
#lizard{
  padding: 1.2rem;
  border-radius: 8rem;
  border-top: 1rem solid hsl(261, 73%, 60%);
  border-bottom:1rem solid hsl(261, 72%, 63%);
  border-right: 1rem solid hsl(261, 73%, 60%);
  border-left:1rem solid hsl(261, 72%, 63%);
  background-color: rgb(216, 216, 216);
  position:absolute;
  bottom: -60px;
  left: 10px;
  z-index: 2;
  width: 115px;
  height:115px ;

}
#paper{
  padding: 1.2rem;
  border-radius: 10rem;
  border-top: 1rem solid hsl(230, 89%, 62%);
  border-bottom:1rem solid hsl(230, 89%, 65%);
  border-right:1rem solid hsl(230, 89%, 62%);
  border-left: 1rem solid hsl(230, 89%, 65%);
  background-color: rgb(216, 216, 216);
  position:absolute;
  top: 56px;
  right: -39px;
  z-index: 2;
  width: 115px;
  height:115px ;
}
#scissor{
  border-radius: 10rem;
  padding: 1.2rem;
  border-top:1rem solid hsl(39, 89%, 49%);
  border-bottom:1rem solid hsl(40, 84%, 53%) ;
  border-right: 1rem solid hsl(39, 89%, 49%) ;
  border-left: 1rem solid hsl(40, 84%, 53%) ;
  background-color: rgb(216, 216, 216);
  position:absolute;
  bottom: -60px;
  left: 170px;
  z-index: 2;
  width: 115px;
  height:115px ;
}
.rule-img{
   color: rgb(216, 216, 216);
   font-size: 1.5rem;
   padding: 0.5rem 2rem;
   border-radius: 1rem;
   border: 0.2rem solid rgb(216, 216, 216);
   float: right;
   margin-top: 5rem;
  }



.deco{
  display: table;
  background-color: rgb(245, 245, 245);
  padding: 2rem;
  color: var(--headerOutline);
  border-radius: 1rem;
  max-width: 210px;
}
.deco img{
  max-width: 250px;
}


.icon-close{
  display: inline-flex;
  position: absolute;
  font-size: 3.2rem;
  color: var(--headerOutline);
  margin:0.8rem;
  margin-left: 19rem;
  
  
}
.result{
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: white;
  margin:2rem 0 ;
}
.play-again{
  font-size: 1.5rem;
}
.play-again button{
  background-color: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: rgb(228, 39, 39);
}
.com-img {
    max-width: 150px;
    border-radius: 10rem;
    max-height: 160px;
    padding: 2rem;
    background-color: rgb(216, 216, 216);
    margin-top: 0.7rem;
    width: 143px;
    height:143px ;
}

@media screen and (max-width: 450px) {
  .header{
    margin-right: 0;
    margin-left: 0;
  }
  .header-img{
    padding: 1.5rem;
  }  
  .score {
    font-size: 1.2rem;
    max-width: 75px;
    min-height: 95px;
    padding: 0.5rem;
  }
  #header-img{
    max-width: 90px;
    max-height: 95px;
  }
  .user-score{
   font-size: 2rem;
  }
  .icon-close{
    margin-left:8rem;
  }
  .com-img{
    width: 130px;
    height:130px ;
    padding: 1.5rem;
  }
  .user-img{
    width: 130px;
    height:130px ;
    padding: 1.5rem;
  }
  .user-choice{
    font-size: 1.2rem;
    
   }
  .computer-choice{
    font-size: 1.2rem;
  }
} 

@media screen and (min-width: 450px) {
  .rule-img {
    margin-left:80rem;
  }
  .deco img{
    max-width: 380px;
  }
 
}
