@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
} 
nav{
  display: flex;
  height: 80px;
  width: 100%;
  background: #1b1b1b;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 0 100px;
  flex-wrap: wrap;
  box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.32),
  0 6px 16px 0 rgba(0, 0, 0, 0.24),
  0 6px 24px 0 rgba(0, 0, 0, 0.20),
  0 6px 32px 0 rgba(0, 0, 0, 0.14);
}
nav .logo{
  color: #fff;
  font-size: 35px;
  font-weight: 600;
}
nav ul{
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}
nav ul li{
  margin: 0 5px;
}
nav ul li a{
  color: #f2f2f2;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
nav ul li a.active,
nav ul li a:hover{
  color: #111;
  background: #fff;
}
nav .menu-btn i{
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: none;
}
sub{
    font-size: 40px;
    color: red;
  }
input[type="checkbox"]{
  display: none;
}
@media (max-width: 1000px){
  nav{
    padding: 0 40px 0 50px;
  }
}
@media (max-width: 850px) {
  nav .menu-btn i{
    display: block;
  }
  #click:checked ~ .menu-btn i:before{
    content: "\f00d";
  }
  nav ul{
    position: absolute;
    top: 80px;
    left: -100%;
    background: #111;
    height: 100vh;
    width: 100%;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    z-index: 2;
  }
  #click:checked ~ ul{
    left: 0;
  }
  nav ul li{
    width: 100%;
    margin: 40px 0;
  }
  nav ul li a{
    width: 100%;
    margin-left: -100%;
    display: block;
    font-size: 20px;
    transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  #click:checked ~ ul li a{
    margin-left: 0px;
  }
  nav ul li a.active,
  nav ul li a:hover{
    background: none;
    color: cyan;
  }
}
.content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: -1;
  width: 100%;
  padding: 0 30px;
  color: #1b1b1b;
}
.content div{
  font-size: 40px;
  font-weight: 700;
}
.bod {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: ;
    background: #5d3913;
}
section {
    background-color: #885824;
    width: min(90%, 31.25em);
    height: 600px;
    border-radius: 10px;
    padding: 20px 20px 0 20px;
    box-shadow: -30px 30px 20px rgba(0,0,0,0.5);
    position: relative;
}
.score{
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.score h2 {
    font-size: 30px;
    font-weight: normal;
}
.score p {
    text-align: center;
    padding: 10px;
    background-color: #6C3622;
    color: #fff;
    width: 50px;
    margin: 10px auto;
    font-size: 30px;
    font-weight: 600;
    border-radius: 50px;
}
.intro{
    color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    transition: opacity .5s ease;
    /* display: none; */
}
.intro h1 {
    font-size: 35px;
    text-align: center;
    font-weight: 600;
    line-height: 14rem;
}
.intro button {
    width: 30%;
    height: 50px;
    position: absolute;
    bottom: 18%;
    font-size: 25px;
    background-color: #6C3622;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    transition: .4s ease;
}
.intro button:hover {
    background-color: #fff;
    color: #6C3622;
}

.match {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .5s ease;
    /* display: none; */
}
.hands img {
    width: 170px;
    margin: 20% 0 10px 0;
}
.winner {
    color: #fff;
    font-size: 35px;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
}
.hands, .options {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.options button {
    width: 140px;
    height: 50px;
    font-size: 25px;
    background-color: #6C3622;
    margin: 5px;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    transition: .4s ease;
}
.options button:hover {
    background-color: #fff;
    color: #6C3622;
}
.player-hand {
    transform: rotateY(180deg);
}

div.unactive {
    opacity: 0;
    pointer-events: none;
}
div.active {
    opacity: 1;
    pointer-events: auto;
}


@keyframes shakePlayer {
    0%{
        transform: rotateY(180deg) translateY(0px);
    }
    15%{
        transform: rotateY(180deg) translateY(-50px);
    }
    25%{
        transform: rotateY(180deg) translateY(0px);
    }
    35%{
        transform: rotateY(180deg) translateY(-50px);
    }
    50%{
        transform: rotateY(180deg) translateY(0px);
    }
    65%{
        transform: rotateY(180deg) translateY(-50px);
    }
    75%{
        transform: rotateY(180deg) translateY(0px);
    }
    85%{
        transform: rotateY(180deg) translateY(-50px);
    }
    100%{
        transform: rotateY(180deg) translateY(0px);
    }
}

@keyframes shakeComputer {
    0%{
        transform: translateY(0px);
    }
    15%{
        transform: translateY(-50px);
    }
    25%{
        transform: translateY(0px);
    }
    35%{
        transform: translateY(-50px);
    }
    50%{
        transform: translateY(0px);
    }
    65%{
        transform: translateY(-50px);
    }
    75%{
        transform: translateY(0px);
    }
    85%{
        transform: translateY(-50px);
    }
    100%{
        transform: translateY(0px);
    }
}
@media screen and (max-width: 550px){
    section{
        width: 88%;
        padding: 20px 10px 0 10px;
    }
    .options button{
        width: 28%;
    }
    .intro h1{
        font-size: 30px;
    }
    .intro button{
        width: 40%;
    }
    .winner{
        font-size: 30px;
    }
}
@media screen and (max-width: 410px){
    section{
        width: 88%;
        padding: 20px 10px 0 10px;
    }
    .options button{
        width: 20%;
        font-size: 18px;
    }
    .intro h1{
        font-size: 22px;
    }
    .intro button{
        width: 50%;
    }
}
@media screen and (max-width: 310px){
    .intro h1{
        font-size: 18px;
    }
}