/*general styling  */
body {
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: 'Comic Sans MS', Arial, sans-serif;
    background-color: #e1e8ef;
}

#start-screen, #end-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffafbd, #ffc3a0);
    color: #444;
    animation: fadeIn 1.5s ease-in-out;
}

button {
    background-color: #ff7f50;
    color: white;
    border-radius: 10px;
    font-size: 1.5rem;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

button:hover {
    background-color: #ff4500;

}

#img-Animation img {
    width: 150px;
    animation: bounce 1.5s infinite;
}

#result-message {
    font-size: 1.8rem;
    margin: 10px;
    color: #333;
}

@keyframes fadeIn {
    from {opacity:0;}
    to {opacity:1;}
}

@keyframes bounce{
    0%,100% {transform: translateY(0);}
    50% {transform: translateY(-10px);}
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width:100%;
    background-color: #333;
    color: #fff;
    margin: auto;
    border-radius: 15px; 
    box-shadow: 0 0 20px rgba(0, 0, 0,0.5);
    text-align: center;

}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 300px;
    gap: 15px  ;
    margin: 0px auto;
    margin-top: 20px;
    padding: 20px;
    position: relative;
}

.hole {
    width: 100px;
    height: 100px;
    background-color: #8b4513;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0px 5px 10px rgbs(0 ,0,0,0.5);
    
}
.mole{
    width: 100px;
    height: 100px;
    background: url(img.jpg) no-repeat center center / cover;
    /* background-size: cover; */
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    animation: popUp 1s ease-in-out forwards;
}

@keyframes popUp{
     0%{bottom: -80px;}
     50%{bottom: 0;}
     100%{bottom:0;}
}

#timer {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 10px;
    color: #d9534f;
    text-align: center;
    transition: transform 0.5s ease-in-out;
}

#timer:hover {
    transform: scale(1.2);
    color:#ff6347;

}
