@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    position: relative; /* Add relative positioning to the body */
}

.alert-message {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 10px;
    /* Set a fixed position */
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    z-index: 999; /* Ensure the message appears above other content */
}

.game-over-message {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 10px;
    /* Set a fixed position */
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    z-index: 999; /* Ensure the message appears above other content */
}

.container {
    text-align: center;
    width: 324px;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-gap: 5px;
    background-color: #fff;
    border: 2px solid #333;
    padding: 5px;
    margin-bottom: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    cursor: pointer;
}

.cell:hover {
    background-color: #ddd;
}

.result {
    font-size: 24px;
    margin-bottom: 10px;
}

button {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #45a049;
}

input[type="text"] {
    padding: 10px;
    font-size: 18px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #45a049;
}