@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    font-family: 'Roboto', sans-serif;
    background-color: #8CC461;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

.header {
    border: 2px solid white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20%;
    width: 70%;
    border-radius: 2rem;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
}

.title {
    padding: 20px;
    width: 40%;
    height: 100%;
}

.title span {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 2.4rem;
    letter-spacing: 0.059em;
    text-align: left;
    color: #FFFFFF;
    text-transform: uppercase;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap; 
}

.score {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    width: 40%;
    height: 100%;
    margin-left: 4rem;
}

.score div {
    border-radius: 1rem;
    background-color: white;
    text-align: center;
    width: 46%;
    height: 100%;
    gap: 2rem;
    overflow: hidden; 
}

.score span {
    display: block;
    color: #656565;
    padding: 0.1rem;
    box-sizing: border-box;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}

#computer-score, #human-score {
    color: #252525;
    line-height: 3rem;
    font-size: 2.2rem;
}

.game {
    height: 400px;
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    position: absolute;
    top: 200px;
}

.triangle {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-30%);
}

.rr, .pp, .ss {
    width: 100px;
    height: 100px;
    background-color: blue;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.r, .p, .s {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lh img {
    transform: translate(1px, 1px) rotate(0deg);
    height: 30px;
}

.lf img {
    transform: translate(-360px, 99px) rotate(-100deg);
    height: 100px;
    width: 300px;
}

.lr img {
    transform: translate(-520px, 100px) rotate(-80deg);
    height: 100px;
    width: 300px;
}

.rr {
    transform: translate(240px, -20px);
    z-index: 1;
    background-color: #0074B6;
}

.ss {
    transform: translate(300px, -20px);
    z-index: 1;
    background-color: #BD00FF;
}

.pp {
    transform: translate(260px, 210px);
    z-index: 1;
    background-color: #FFA943;
}

.choice {
    width: auto;
}

.rules {
    position: absolute;
    top: 2%;
    right: 5%;
  
 
}

#rules-button {
    background-color: #8CC461;
    color: white;
    width: 90px;
    height: 40px;
    font-size: 20px;
    border: 1px solid white;
    border-radius: 10px;
    text-transform:uppercase;
    position: absolute;
    top: 88%;
    right: 10%;
    font-weight:700;
    cursor: pointer;
    
}

#close-rules {
    background-color: #FF0000;
    color: white;
    font-size: 50px;
    font-weight: 800;
    width: 80px;
    height: 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 40px;
    position: absolute;
    top: -60px;
    right: -20px;
}

.ihidden{
    display: none;
}

#rules-popup {
    width: 300px;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #004429;
    color: white;
    padding: 18px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(140%, -25%);
    z-index: 1000;
}

#rules-popup.hidden {
    display: none;
}

#rules-popup h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 15px;
}

#rules-popup li {
    margin-bottom: 15px;
}

ul {
    list-style-type: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
}

li {
    position: relative;
    padding-left: 20px; /* Space for the custom bullet */
}

li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 10px; /* Custom width */
    height: 10px; /* Custom height */
    background-color: #FFD600; /* Bullet color */
}

.hidden {
    display: none;
}

.ldiv1 {
    width: 300px;
    height: 300px;
    background-color: #2E9A25;
    border-radius: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ldiv2 {
    width: 270px;
    height: 270px;
    background-color: #1DA82B;
    border-radius: 130px;
}

.ldiv3 {
    width: 250px;
    height: 250px;
    background-color: #3B6720;
    border-radius: 125px;
}

.ldiv4 {
    width: 230px;
    height: 230px;
    background-color: #466330;
    border-radius: 115px;
}

.ldiv5 {
    width: 210px;
    height: 210px;
    background-color: #345B25;
    border-radius: 105px;
}

.ldiv6 {
    width: 190px;
    height: 190px;
    background-color: #BD00FF;
    border-radius: 95px;
}

.ldiv7 {
    width: 160px;
    height: 160px;
    background-color: white;
    border-radius: 85px;
}

.ldiv1 div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rdiv1 {
    width: 210px;
    height: 210px;
    background-color: #89C15E;
    border-radius: 105px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rdiv2 {
    width: 190px;
    height: 190px;
    background-color: #FFA943;
    border-radius: 95px;
    display: flex;
    justify-content: center;
    align-items: center;
  

}

.rdiv3 {
    width: 160px;
    height: 160px;
    background-color: white;
    border-radius: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdiv1 {
    width: 210px;
    height: 210px;
    background-color: rgb(0,120,0);
    border-radius: 105px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdiv2 {
    width: 190px;
    height: 190px;
    background-color: rgb(110,120,0);
    border-radius: 95px;
}

.pdiv3 {
    width: 160px;
    height: 160px;
    background-color: white;
    border-radius: 85px;
}

.rounded-div {
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rock-color {
    background: #DC2E4E;
}

.paper-color {
    background: #4664F4;
}

.scissors-color {
    background: #ECA81E;
}




.loose-div{
    display:flex;
    flex-direction: row;
    flex-direction: row-reverse;
    position: absolute;
    justify-content: center;
    align-items: center;
    left: 25%;
    top: 30%;
}

.windiv{
    display:flex;
    flex-direction: row;
    position: absolute;
    justify-content: center;
    align-items: center;
    left: 25%;
    top: 30%;

}

.drawdiv{
    display:flex;
    flex-direction: row;
    position: absolute;
    justify-content: center;
    align-items: center;
    left: 25%;
    top: 30%;

}

.drawdiv .ldiv6 ,
.drawdiv .rdiv2{
    background-color: #0074B6;
}


.drawdiv .ldiv1, 
.drawdiv .ldiv2, 
.drawdiv .ldiv3, 
.drawdiv .ldiv4, 
.drawdiv .ldiv5 {
    background-color: #89C15E;
}


.inner-message span{
    display: block;
    width: 100%;
    font-size: 30px;
    text-transform: uppercase;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
   
}

.inner-message{
    width: 250px;
    padding: 30px;

}

#next{
        display: inline-block; 
        visibility: visible;  
    background-color: #8CC461;
    color: white;
    width: 90px;
    height: 40px;
    font-size: 20px;
    border: 1px solid white;
    border-radius: 10px;
    text-transform:uppercase;
    position: absolute;
    top: 300px;
    right: 30px;
    font-weight:700;
    cursor: pointer;
    z-index: 999; 
}
#replay-button{
    height: 40px;
    width: 160px;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 20px;
    color: #6B6B6B;
    border: none;
    position: relative;
    top: 150px;
    left: 20px;
}

#replay-button-lose{
    height: 40px;
    width: 160px;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 20px;
    color: #6B6B6B;
    border: none;
    position: relative;
    top: 100px;
    left: 20px;
}

#replay-button-draw{
    height: 40px;
    width: 160px;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 20px;
    color: #6B6B6B;
    border: none;
    position: relative;
    top: 100px;
    left: 20px;
}


#replay-button-win{
    height: 40px;
    width: 160px;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 20px;
    color: #6B6B6B;
    border: none;
    position: relative;
    top: 100px;
    left: 20px;
}


#pc-picked-lose {
    position: fixed;
    top: 37%;
    right:34.5%;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    z-index: 100000000;
    font-size: 25px;
}

#you-picked-lose {
    position: fixed;
    top: 37%;
    left:31.5%;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    z-index: 100000000;
    font-size: 25px;
    text-transform: uppercase;
}

#pc-picked-win {
    position: fixed;
    top: 37%;
    right:32.5%;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    z-index: 100000000;
    font-size: 25px;
    text-transform: uppercase;
}

#you-picked-win {
    position: fixed;
    top: 37%;
    left:33%;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    z-index: 100000000;
    font-size: 25px;
    text-transform: uppercase;
}

#pc-picked-draw {
    position: fixed;
    top: 37%;
    right:32.5%;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    z-index: 100000000;
    font-size: 25px;
    text-transform: uppercase;
}

#you-picked-draw {
    position: fixed;
    top: 37%;
    left:33.2%;
    color: #FFFFFF;
    border: none;
    padding: 10px;
    z-index: 100000000;
    font-size: 25px;
    text-transform: uppercase;
}