
body{
    font-family: "Poppins", sans-serif;
    z-index: 0;
    user-select: none;
}
img, a {
    -webkit-user-drag: none;
}

/*Start Game Btn*/

#startGame{
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.Btn{
    border-radius: 80px;
    border:none;
    background-color: #4E68A0;
    box-shadow: 0px 0px 30px 10px #FFF;
    color:white;
    font-family: "Poppins";
    font-size: 25px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    padding:20px;
    transition:0.5s;
}

.Btn:hover{
    box-shadow: 0px 0px 50px 20px #FFF;
    transition:0.5s;
    background-color: #577bca;
    padding:20px 30px 20px 30px;
}

/*Game UI*/
#bodySection{
    background-image: url("../asset/background.svg");
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

#gameUI{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

#infoSection{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#infoSection img{
    height: 30px;
}

.box{
    border-radius: 33px;
    background: #FFF;
    width:200px;
    padding:10px 20px 10px 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

#timer{
    color: #5B95CC;
    text-align: center;
    font-family: "Poppins";
    font-size: 25px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

#score{
    color: #418160;
    text-align: center;
    font-family: "Poppins";
    font-size: 25px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.gameTitle{
    color: #3D3960;
    text-align: center;
    font-family: "Poppins";
    font-size: 35px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

#winMsg{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:25px;
    border-radius: 50px;
    border: 20px #97A0C5;
    background: #E5F5FF;
    padding: 50px;
    max-width: 800px;
    min-width: 500px;
    position: fixed;          
    top: 50%;              
    left: 50%;                 
    transform: translate(-50%, -50%); 
    z-index: 10;

}



/*Whack A Mole Game*/

#whackAMole{
    display: flex;
    flex-direction: column;
    gap:1vw;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#Row1{
    display: flex;
    flex-direction: row;
    gap:5%;
}

#Row2{
    display: flex;
    flex-direction: row;
    gap:5%;
}

.whack {
    width: 200px;
    height: 200px;
    gap:20px
}

.dirt {
    position:relative;
    z-index: 2; 
    width: 100%;
    height: auto;
}


.mouse-container {
    position:relative;
    overflow: hidden;
    z-index: 0; 
    transform: translate(20%, -106%);
}

.mouse {
    width:60%; 
    height: auto; 
    transform: translateY(80%); 
}

.mouseAnimation{
    animation: mousePop 0.8s;
}

.mouseMenuAnimation{
    animation: mousePop 1s infinite;
}

.mouseHitAnimation{
    animation: mouseHit 0.5s;
}

@keyframes mousePop {
    0% {
        transform: translateY(80%); 
    }
    
    50% {
        transform: translateY(0);
      }

    100% {
        transform: translateY(80%); 
      }
}

@keyframes mouseHit {
    0% {
        transform: translateY(0%) rotate(15deg);
    }
    
    25% {
        transform: translateY(0%) rotate(-8deg);
    }

    50% {
        transform: translateY(0%) rotate(15deg);
    }
}

@media (max-height: 650px) {
    .whack {
        width: 100px; 
        height: 100px; 
    }
    .mouse-container {
        transform: translate(20%, -108%);
    }
    .mouse {
        width: 50%;
    }

    #startGameBtn {
        font-size: 15px;
        padding: 10px;
    }
    
    #winMsg {
        max-width: 700px;
        min-width: 400px;
    }

    .Btn {
        padding: 15px 25px;
    }

    .box {
        width: 150px;
        padding: 8px 16px;
    }

    #timer, #score {
        font-size: 20px;
    }
}

@media (max-height: 850px) {
    #whackAMole {
        top: 80%;
        gap:0.5vw;
    }
    
    .whack {
        width: 200px; 
        height: 200px; 
    }

    .mouse-container {
        transform: translate(20%, -108%);
    }

    .mouse {
        width: 50%;
    }

    #startGameBtn {
        font-size: 15px;
        padding: 10px;
    }
    
    #winMsg {
        max-width: 700px;
        min-width: 400px;
    }

    .Btn {
        padding: 15px 25px;
    }

    .box {
        width: 150px;
        padding: 8px 16px;
    }

    #timer, #score {
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    
    
    .whack {
        width: 100px;
        height: 100px;
        gap:10px
    }
    
    .mouse-container {
        transform: translate(20%, -109%);
    }

    .Btn{
        border-radius: 50px;
        font-size: 14px;
        padding:10px;
        box-shadow: 0px 0px 20px 5px #FFF;
    }
    .whack {
        width: 110px; 
        height: 110px; 
    }

    .box{
        border-radius: 33px;
        width:100px;
        padding:5px 10px 5px 10px;
        gap: 10px;
    }
    #timer{
        font-size: 13px;
    }
    
    #score{
        font-size:13px;
    }
} 