/* General Styles */
body {
    background-color: #121212; /* Dark background */
    color: #ffffff; /* Light text color */
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Mode Selection Modal */
#mode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark modal background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it appears on top */
}

.mode-content {
    background-color: #1f1f1f; /* Darker modal content */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.mode-content h2 {
    color: #ffffff; /* White color for the heading */
}

.mode-content button {
    background-color: #6200ea; /* Purple button */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ffffff; /* White text color */
    transition: background-color 0.3s ease;
}

.mode-content button:hover {
    background-color: #3700b3; /* Darker purple on hover */
}

/* Game Board */
#game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
}

/* Cells */
.cell {
    width: 100px;
    height: 100px;
    background-color: #1f1f1f; /* Darker cell background */
    border: 2px solid #ffffff; /* White border */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #ffffff; /* White text color */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cell:hover {
    background-color: #303030; /* Slightly lighter background on hover */
}

/* Modal for displaying results */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it appears on top */
}

.result-content {
    background-color: #1f1f1f; /* Darker modal content */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    animation: scaleIn 0.3s ease forwards;
}

.result-content h2 {
    font-size: 2rem;
    color: #ffffff; /* White color for the result message */
    margin-bottom: 20px;
}

.result-content button {
    background-color: #6200ea; /* Purple button */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ffffff; /* White text color */
    transition: background-color 0.3s ease;
}

.result-content button:hover {
    background-color: #3700b3; /* Darker purple on hover */
}

/* Animation for result modal */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}