@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}
body{
    overflow: hidden;
}
/* display css */
section{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom,#f1f4f9,#dff1ff);
} 
section .color{
    position: absolute;
    filter: blur(150px);
}
section .color:nth-child(1){
    top: -350px;
    width: 600px;
    height: 600px;
    background: #ff359b;
}
section.color:nth-child(2){
    bottom: -150px;
    left: 100px;
    width: 500px;
    height:  500px;
    background: #fffd87;
}
section .color:nth-child(3){
    bottom: 50px;
    left: 100px;
    width: 300px;
    height: 300px;
    background: #00d2ff;
}
.box{
    position: relative;
}
.box .square{
    position: absolute;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
     border-radius: 10px;
     animation: animate 10s linear infinite;
     animation-delay: calc(-1s * var(--i));
}
@keyframes animate {
    0%,100%{
        transform: translateY(-40px);
    }
    50%{
        transform: translateY(40px);
    }
}
.box .square:nth-child(1){
    top: -50px;
    right: -60px;
    width: 100px;
    height: 100px;
}
.box .square:nth-child(2){
    top: 150px;
    left: -100px;
    width: 120px;
    height: 120px;
    z-index: 2;
}
.box .square:nth-child(3){
    bottom: 50px;
    right: -60px;
    width: 80px;
    height: 80px;
    z-index: 2;
}
.box .square:nth-child(4){
    bottom: -80px;
    left: 100px;
    width: 50px;
    height: 50px;
    
}
.box .square:nth-child(5){
    top: -80px;
    left: 140px;
    width: 60px;
    height: 60px;
    
}
 .container{
    position: relative;
    width: 400px;
    min-height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.form h2{
    position: relative;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 40px;
   
}
.form h2::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: #fff;
}
.btn{
    margin-top: 1rem;
    display: inline-block;
    font-size: 1.7rem;
    color: #fff;
    background: var(--black);
    border-radius: .5rem;
    cursor: pointer;
    padding: .8rem 3rem;
    text-decoration: none;
    font-size: 90%;
    display: flex;
    justify-content: center;
} 
 .btn:hover{
    background: var(--green);
    letter-spacing: .1rem;
}

:root{
    --green:#27ae60;
    --black:#192a56;
    --box-shadow: 0.5rem 1.5rem rgba(0,0,0,.1);
}
#btn{
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--black);
    border: none;
    color: #fff;
    margin-top: 10px;
    font-size: 25px;
    cursor: pointer;
    text-transform: uppercase;
}
#btn:hover{
    background: var(--green);
    letter-spacing: .1rem;
} 
 /* game css */
 #mycanvas{    background: #000;}
#controls{    position: relative ; bottom: 4px;}
#controls button{
    height: 30px;    
    font-size: 30px;
    line-height: 0px;
    color: #fff;
    width: 49.5%;
    cursor: pointer;
    background-color: #008000;
    border: 0;
}
#controls button:hover{    background-color: #003E00;    }
#controls button:last-child{ float: right;}
#board{
    height: 30px;
    width: 100%;
    font-size: 30px;
}
#board button{
    float: right;
    height: 30px;
    width: 30px;
}
.screen{
    position: absolute;
    font-size: 40px;
    color:#fff;
    top: 0px;
    left: 0px;
    height: 100%;
    width:100%;
    background-color: rgba(0,0,0,0.8);
}
.funkybutton{
    position: absolute;
    top: 48%;
    left: 10%;
    color:#fff;
    width: 80%;
    font-size: 40px;
    height: 50px;
    border-style: none;
    border-radius: 20px;
    cursor: pointer;
    background-color: #008000;
}
.funkybutton:hover{    background-color: #003E00;    }
#finalscore{    position: absolute;
    left: 10%;
    top: 20%;}
#Waitscreen{z-index: 10;}
#Waitscreen label{
    position: absolute;
    top:40%;
    left: 10%;
    color: #fff;
}