/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(to right, #00c6ff, #0072ff); /* Gradient background */
}

.game-container {
    text-align: center;
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
}

.game-title {
    color: #fd6601;
    font-size: 2.5rem;
    margin-top: 17%;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'Merriweather', serif;
}


/* Button Container */
.button-container {
    margin-bottom: 1.5rem;
}

.game-button {
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    background: linear-gradient(145deg, #ff5874, #ff5e00); /* Gradient background */
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0.5rem;
}

.game-button:hover {
    background: linear-gradient(145deg, #ff3300, #ff5858);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Game Status */
.game-status {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f4f4f4;
    border-radius: 10px;
    color: #333;
    font-weight: bold;
}

/* Game Board */
.game-board {
    border-collapse: collapse;
    margin: 0 auto;
    border-radius: 10px;
}

.game-cell {
    width: 120px;
    height: 120px;
    border: 3px solid #4CAF50;
    font-size: 4rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f1f1f1;
    border-radius: 10px;
}

.game-cell:hover {
    background-color: #e1f7e1;
    transform: scale(1.1);
}

/* Reset Button */
.reset-button {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    background: linear-gradient(145deg, #ff5800, #ff2300);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reset-button:hover {
    background: linear-gradient(145deg, #ff2300, #ff5800);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark background */
    padding-top: 60px;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 60%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

/* Modal Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .game-button, .reset-button {
        width: 90%;
        font-size: 1.1rem;
    }

    .modal-content {
        width: 90%;
    }

    .game-title {
        font-size: 2rem;
    }

    .game-cell {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
}
