*{
    margin: 0;
    padding: 0%;
    box-sizing: border-box;
}

.firstframe{
height:100vh;
background-color: rgb(39,41,68);
font-family: sans-serif;
color: rgb(224, 224, 224);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: opacity 0.5s ease;
    padding: 80px;
}

.firstframe h1{
    font-size: 50px;
}

.firstframe img{
    height: 350px;
    width: 300px;
    margin-bottom: 20px;
}

.firstframe button{
    width: 150px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(224, 224, 224);
    font-size: 20px;
    background-color: rgb(45,117,96);
    border-radius: 3px ;
}


.secondframe{
    height:100vh;
    background-color: rgb(39,41,68);
    font-family: sans-serif;
    position: absolute;
    color: rgb(224, 224, 224);
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
   
    transform: translate(-50%,-50%);
    transition: opacity 0.5s ease 0.5s;
    width: 100%;
    padding: 80px;
    }



    .secondframe h1{
        font-size: 50px;
    }

    .toss{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        margin-bottom: 5px;
        margin-top: 20px;
        position: relative;
    }

    .toss h2{
        font-size: 40px;
        
    }

    .toss img{
        width: 200px;
        height: 200px;
        margin-left: 50px;
        margin-right: 50px;
       
    }

    .coins button{

    width: 130px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(224, 224, 224);
    font-size: 20px;
    background-color: rgb(45,117,96);
    border-radius: 3px ;
    margin: 20px;
    }

    .buttons button{

        width: 130px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(224, 224, 224);
    font-size: 20px;
    background-color: rgb(45,117,96);
    border-radius: 3px ;
    margin: 20px;
    }

.coins{
    margin-top: 10px;
    position: relative;
}


    .fadeOut{
        opacity: 0;
        pointer-events: none;
    }
    
    .fadeIn{
        opacity: 1;
        pointer-events: all;

    }

.img-container{
    animation-duration: 5s;
}
    .tails-img{
        position: relative; 
    }

    .heads-img{
        position: relative;
        
    }
    

    .toss-result{
        height:50vh;
        position: absolute;
        display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
   
        
         top: 50%;
    left: 50%;
    transition: opacity 0.5s ease 0.5s;
        transform: translate(-50%,-50%);
color: rgb(224, 224, 224);
    }

    .letplay
{
    width: 150px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(224, 224, 224);
    font-size: 20px;
    background-color: rgb(45,117,96);
    border-radius: 3px ;
    margin: 20px;
}



.thirdframe{
    height:100vh;
    background-color: rgb(39,41,68);
    font-family: sans-serif;
    position: absolute;
    color: rgb(224, 224, 224);
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transform: translate(-50%,-50%);
    transition: opacity 0.5s ease 0.5s;
    width: 100%;
    padding: 80px;
    padding-top: 0px;
    }

.thirdframe h1{
    font-size: 40px;
}

.Pruns{
    width: 80px;
    height: 60px;
    
    float: left;
    margin-right: 0px;
    display: flex;
    align-items: center;


}

.Pwickets{
    width: 90px;
    height: 60px;
    
    float: left;
    margin-left:10px;
    display: flex;
    align-items: center;


}
.Cruns{
    width: 80px;
    height: 60px;
    
    float: left;
    margin-left: 390px;
    margin-right: 0px;
    display: flex;
    align-items: center;

}
.scores h1{
    float: left;

}

.Cwickets{
    width: 90px;
    height: 60px;
    
    float: right;
    margin-left: 10px; 
    display: flex;
    align-items: center;

}
.play-title h1{
    float: left;
    font-size: 40px;
}
.co{

margin-left: 200px;

}
.pa{
 margin-right: 300px;
}

.images img{
    width: 250px;
    height:250px;
    margin-left: 50px;
    margin-right: 50px;
    float: left;
}

.com-box{
    box-shadow: 2px 2px 10px 10px #0d0121;
    width: 400px;
    margin: 0px;
    height: 100px;
    padding: 10px;
    padding-top: 20px;
    margin-top: 50px;
    float: left;text-align: center;
}
.run-but button{
    width: 130px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(224, 224, 224);
    font-size: 20px;
    background-color: rgb(45,117,96);
    border-radius: 3px ;
    margin: 20px;
}

.final{
    height:100vh;
    background-color: rgb(39,41,68);
    font-family: sans-serif;
    position: absolute;
    color: rgb(224, 224, 224);
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transform: translate(-50%,-50%);
    transition: opacity 0.5s ease 0.5s;
    width: 100%;
    padding: 80px;
    padding-top: 0px;
    }

    .final h1{
        font-size: 50px;
    }

    .final button{
    width: 160px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(224, 224, 224);
    font-size: 20px;
    background-color: rgb(45,117,96);
    border-radius: 3px ;
    margin: 20px;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 40px; /* Location of the box */
  left: 10%;
  top: 30%;
  color:rgb(224, 224, 224);
  text-align: center;
  width: 80%; /* Full width */
  height: 250px; /* Full height */
  overflow: auto; /* Enable scroll if needed */
 background-color: #141414; /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #141414;
  margin: auto;
  padding: 20px;
  width: 80%;
  
}

/* The Close Button */
.close {
  width: 160px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(224, 224, 224);
    font-size: 20px;
    background-color: rgb(45,117,96);
    border-radius: 3px ;
    margin: 20px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;

}

@keyframes shakePlayer {
    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);
    }
}

@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);
    }

}

.images{
    margin-top: 50px;
}