@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700&family=Roboto:wght@400;700;900&display=swap');
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --light-blue:  hsl(230, 89%, 65%);
    --light-yellow:  hsl(40, 84%, 53%);
    --ligt-red: hsl(349, 70%, 56%);
    --light-gray: hsl(240, 1%, 63%);
    --light-navy: hsl(214, 43%, 35%);
    --mid-blue: hsl(229, 64%, 46%);
    --mid-gray: hsl(217, 16%, 45%);
    --dark-navy:  hsl(237, 49%, 15%);
    --dark-blue: hsl(231, 94%, 42%);
    --dark-gray: hsl(229, 25%, 31%);
    --dark-red:  hsl(349, 71%, 52%);
    --dark-yellow: hsl(39, 89%, 49%); 
    --light-purple: hsl(261, 72%, 63%);
    --dark-purple: hsl(261, 73%, 60%);
    --light-cyan: hsl(189, 58%, 57%);
    --dark-cyan: hsl(189, 59%, 53%);
}

body {
    font-family: 'Barlow Semi Condensed', sans-serif;
}

html {
    background-color: var(--dark-navy);
    background-image: radial-gradient(var(--light-navy), var(--dark-navy));    
}

.gameboard {
    display: none;
} 
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3em 0 0;
}
.header {
    display: flex;
    justify-content: space-between;
    width: 70%;
    max-width: 70rem;
    text-transform: uppercase;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.29);
    padding: 0.75em;
}
.title {
    fill: #FFF;
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.20));
}

.score-board {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 8rem;
    height: 8rem;
    padding: 2em;
    border-radius: 8px;
    background: linear-gradient(0deg, #F3F3F3 0%, #FFF 100%);
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.20);

}
.score-text{
    color: var(--mid-blue);
    font-weight: bold;
    text-align: center;
    font-size: 1.5rem;
}
.score-value {
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: bold;
}
.choices-icons {
    margin-top: 6rem;
    position: relative;
    
}
.rock {   
    background-color: #FFF;
    background-image: url(images/icon-rock.svg);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    padding: 4.5em;
    border: 20px solid var(--ligt-red);
    box-shadow: 0 6px 0 0 var(--dark-red), inset 0 6px 3px 0 var(--light-gray);
    cursor: pointer;
}
.r1 {
    padding: 3.5em;
    position: absolute;
    left: 50%;
    top: 75%;
    z-index: 1

}
.paper {
    background-image: url(images/icon-paper.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #FFF;
    border-radius: 50%;
    padding: 4.5em;
    border: 20px solid var(--light-blue);
    box-shadow: 0 6px 0 0 var(--dark-blue), inset 0 6px 3px 0 var(--light-gray);
    cursor: pointer;
}
.p1 {
    padding: 3.5em;
    position: absolute;
    right: -25%;
    top: 15%;
    z-index: 1
    
}
.scissors {
    background-image: url(images/icon-scissors.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #FFF;
    border-radius: 50%;
    padding: 4.5em;
    border: 20px solid var(--light-yellow);
    box-shadow: 0 6px 0 0 var(--dark-yellow), inset 0 6px 3px 0 var(--light-gray);
    cursor: pointer;
}
.s1 {
    position: absolute;
    top: -25%; 
    padding: 3.5em;
    left: 30%;
    z-index: 1;
}
.spock{
    background-image: url(images/icon-spock.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #FFF;
    border-radius: 50%;
    padding: 4.5em;
    border: 20px solid var(--light-cyan);
    box-shadow: 0 6px 0 0 var(--dark-cyan), inset 0 6px 3px 0 var(--light-gray);
    cursor: pointer;
}
.sp1{
    position: absolute;
    top: 10%; 
    padding: 3.5em;
    left: -25%;
    z-index: 1;
}
.lizard{
    background-image: url(images/icon-lizard.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #FFF;
    border-radius: 50%;
    padding: 4.5em;
    border: 20px solid var(--light-purple);
    box-shadow: 0 6px 0 0 var(--dark-purple), inset 0 6px 3px 0 var(--light-gray);
    cursor: pointer;
}
.l1{
    position: absolute;
    top: 75%; 
    padding: 3.5em;
    left: -15%;
    z-index: 1;
}
 .rule-text {
    border-radius: 0.45em;
    color: white; 
    position: fixed;
    bottom: 10px;
    right: 5rem;
    border: 2px solid var(--light-gray);
    padding: 0.25em 0.75em; 
    width: 140px;
    height: 40px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
   
} 
.rule-text:hover {
    cursor: pointer;
    background-color: #FFF;
    color: var(--dark-gray);
}
.rules {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 10rem;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: hsla(0, 0%, 0%, 0.8);
}
.modal {
    position: relative;
    background-color: hsl(0, 0%, 100%);
    margin: auto;
    width: 30%;
    max-width: 40rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid hsl(0, 0%, 53%);
    border-radius: 10px;
    animation-name: animateshow;
    animation-duration: 1s;
    animation-timing-function: ease-out;
}

.modal img {
    width: 100%;
    padding: 3em;
}
.modal span {
    color: var(--dark-gray);
    font-size: 3rem;
    font-weight: 700;
    margin-left: -10rem;
}

#close {
    color: hsl(0, 0%, 67%);
    float: right;
    font-size: 5rem;
    font-weight: bold;
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    background: none;
    border: none;
}

.pick-choice {
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 25rem;
    margin-top: 7rem;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: bold;
}
.display-status {
    width: 30%;
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 2rem;
    position: absolute;
    bottom: 10rem;
    left: 50%;
    translate: -50%;
}
.game-status{
    color: #FFF;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}
.won {
    text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.20);
    font-size: 3.5rem;
    font-weight: 700;
    display: none;
}
.lost {
    text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.20);
    font-size: 3.5rem;
    font-weight: 700;
    display: none;
}
.draw {
    text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.20);
    font-size: 3.5rem;
    font-weight: 700;
    display: none;

}
.next-round {
    border-radius: 8px;
    background: linear-gradient(0deg, #F3F3F3 0%, #FFF 100%);
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.20);
    width: 65%;
    height: 28%;
    text-align: center;
    cursor: pointer;
    padding: 0.75em;
    display: none;
}
#play-btn {
    cursor: pointer;
    border: none;
    background: none;
    color: var(--dark-gray);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}
#play-btn:hover {
    color: var(--dark-red);
}
.next-round:hover {
    cursor: pointer;
    color: var(--dark-red); 
    
}
.selected {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='252' height='248' viewBox='0 0 252 248' fill='none'%3E%3Cellipse opacity='0.05' cx='126' cy='124' rx='126' ry='124' fill='white' /%3E%3C/svg%3E");
    fill: #FFF;
    opacity: 0.05;
    width: 252px;
    height: 248px;
    flex-shrink: 0;
}
#mark {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
}


.attribution {
    font-size: 11px;
    text-align: center;
 }

.attribution a {
    color: hsl(228, 45%, 44%);
 }
   @media only screen and (481px <= width <= 768px) {
    .rock, .paper, .scissors, .spock, .lizard {
        padding: 4em;
    }
    .r1, .p1, .s1, .sp1, .l1 {
        padding: 3em;
    }
    .pentagon img {
        width: 277px;
        height: 277px;
    }
    .rule-text {
        right: 1rem;
    }
    .pick-choice {
        margin-top: 4rem;
    }
    .won, .lost, .draw {
        font-size: 3rem;
    }
    .display-status {
        gap: 1.75rem;
    } 
    .modal img {
        padding: 0;
    }
    .modal {
        width: 45%;
        padding: 1.5rem;
    }
    .modal span {
        font-size: 2.5rem;
        margin-left: -8rem;
    }
  }

 @media only screen and (280px <=width <=480px)  {
    .header {
        width: 90%;
        border-radius: 5px;
        padding: 0.51em;
        align-items: center;
    }        
    .title svg {
        width: 96px;
        height: 60px;
    }
    .score-board {
        padding: 1em;
        width: 5rem;
        height: 5rem;
    }
    .rock {
        padding: 3.5em;
        border: 15px solid var(--ligt-red);
    }
    .r1 {
        padding: 2.5em;
        top: 75%;
    }
    .paper {
        padding: 3.5em;
        border: 15px solid var(--light-blue);
    }
    .p1 {
        padding: 2.5em;
        right: -20%;
        top: 15%;
    }
    .scissors {
        padding: 3.5em;
        border: 15px solid var(--light-yellow);
    }
    .s1 {
        padding: 2.5em;
        left: 30%;
        top: -25%
    }
    .spock {
        padding: 3.5em;
        border: 15px solid var(--light-cyan);
    }
    .sp1{
        top: 10%;
        padding: 2.5em;
        left: -20%;
    }
    .lizard {
        padding: 3.5em;
        border: 15px solid var(--light-purple);
    }
    .l1{
        top: 75%;
        padding: 2.5em;
        left: -15%;
    }
    .pentagon img {
        width: 227px;
        height: 227px;
        stroke-width: 15px;
        stroke: #000;
    } 
    .choices-icons {
        margin-top: 5rem;
    }
    .rule-text {
        width: 100px;
        height: 35px;
        right: 7em;
        border-radius: 0.25em;
        position: absolute;
        left: 50%;
        translate: -50%;
    }
    .pick-choice {
        position: absolute;
        margin-top: 14rem;
        gap: 0.5em;
        left: 50%;
        translate: -50%;
        width: 100%;
    }
    .display-status {
        width: 65%;
        max-width: 70rem;
        /* margin: 15em auto 0px; */
        gap: 0.6rem;
        bottom: 5rem;
    }
    .next-round {
        border-radius: 4px;
        width: 65%;
        height: 18%;
        padding: 0.5em;
    }
    .won, .lost {
        font-size: 2rem;
    }
    #mark {
      justify-content: center;
      gap: 2rem;
      align-items: center;
      margin-top: 3.5rem;
    }
    #play-btn {
        font-size: 0.8rem;
    }
    .modal {
        width: 85%;
        padding: 1rem;
        border-radius: 7px;
    }
    .modal span {
        font-size: 2rem;
        margin-left: -5rem;
    }
    .modal img {
        padding: 1em;
    }
    #close {
        font-size: 4rem;
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
    }

    


    
}
 