*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body{
    height: 100%;
    width: 100%;
    background: linear-gradient(#5cbe0c 0%, #8eee40 20%, #5cbe0c 100%);
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    text-align: center;
    gap:60px;
}

/*header*/

.header{
    width:500px;
}
h1{
    font-family: "Peralta", serif;
    font-size: 45px;
    margin-bottom: 20px;
    text-shadow: white 0px 0px 5px, rgb(27, 122, 6) 0px 0px 10px;
    transition: font-size 0.3s ease;
}
h1:hover{
    font-size: 48px;
}
.game-desc{
    font-family: "Mouse Memoirs", sans-serif;
    font-size:25px;
    margin-bottom:30px;
}
#start-button,#pause-button{
    font-family: "Mouse Memoirs", sans-serif;
    font-size: 25px;
    background-color: #a8490e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid #481f05;
    margin:10px;

}

#start-button:hover,#pause-button:hover{
    background-color: #d06b0f;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}



/*game*/
.grid-container{
    margin-left:40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
    width: 400px;
    height: 400px;
}
.hole{
    background-color: #a5550a;
    border-radius: 50%;
    box-shadow: inset 0 10px 0 4px rgb(84, 32, 8),
                inset 15px 10px 15px rgba(0, 0, 0, 0.3),
                0px 0px 5px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hole .mole{
    width:73%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom:30px;
    animation: rise 0.3s ease-out;
    z-index:2;
}

@keyframes rise{
    0%{
        transform: translateX(-50%) translateY(100%);
    }
    100%{
        transform: translateX(-50%) translateY(0%);
    }
}

/* score board */
.score-board{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left:70px;
    width:330px;
    height: 220px;
    background-color: #eac19a;
    border: solid 23px rgb(108, 46, 7);
    border-radius: 10px;
    box-shadow: black 0px 0px 5px, rgb(84, 32, 8) 0px 0px 10px;
    font-family: "Peralta", serif;
    font-size: 30px;
    text-shadow: white 0px 0px 5px, rgb(157, 92, 13) 0px 0px 10px;
}

.cursor{
    display:none;
    height: 120px;
    width: 100px;
    position: absolute;
    top: 100px;
    left: 100px;
    background: url("hammer.png");
    background-size: 100% 100%;
    transform: translate(-20%, -20%);
    transition: trandsform 0.1s ease-in-out;
    pointer-events: none;
    z-index: 3;
}

.cursor.active{
    transform: translate(-20%, -20%) rotate(45deg);
    transition: transform 0.1s ease-in-out;
}