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


/* Floating animation for background image */
@keyframes float {
    0% { background-position: 0px 0px; }
    50% { background-position: 100px 100px; }
    100% { background-position: 0px 0px; }
}

.game-title{
    padding: 6px;
    border-radius: 5px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    text-align: center;
    background-color: #202020;
    font-size: 2rem;
    flex-direction: column;
    background-image: url(./media/bomb.jpeg);
    animation: float 30s ease-in-out infinite; /* Applied the animation */
    transition: background-image 1s ease-in-out;
}    


#intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#intro p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#start-btn {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #4CAF50; /* Green button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#start-btn:hover {
    background-color: #45a049;
}

#game.hidden {
    display: none;
}

/* Below code cna be used for creating iphone like glassy Background in another projects too */

.grid{
    height: 80%;
    width: 600px;
    background: rgba(255, 255, 255, 0.1); /* Slightly white with opacity */
    border-radius: 15px;
    backdrop-filter: blur(10px); /* Creates the glassy effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    color: black;
}



table {
    border-collapse: collapse;
    margin: 0 auto;
    height: 100%;
    width: 100%;
}

td {
    width: 10%;
    height: 10%;
    border: 1px solid #999;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: #ddd;
}

td.revealed {
    background-color: #eee;
    cursor: default;
}

td.mine-blast {
    background-color: red;
    color: white;
}

td.mine {
    color: white;
}


.timer {
    padding: 5px;
    border-radius: 5px;
    background-color: white;
    box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
    font-size: 18px;
    margin-bottom: 10px;
}


/* i button */

.more-details {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s, transform 0.3s;
}

.more-details:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.more-details:active {
    background-color: #004494;
    transform: scale(0.9);
}



@media screen and (max-width: 600px) {

    .grid {
        height: 420px;
        width: 330px;
    }
    .container{
        font-size: 1rem;
    }

}
