/* CSS Code */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
    color: #fff;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    margin-bottom: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.3s ease;
}

.cell:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#reset {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #cf2516;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#reset:hover {
    background-color: #ff3b2f;
}

#status {
    margin-top: 20px;
    font-size: 1.2em;
    color: #fff;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 600px) {
    h1 {
        font-size: 2em; 
    }

    #board {
        grid-template-columns: repeat(3, 80px); 
        grid-template-rows: repeat(3, 80px);
        gap: 5px; 
    }

    .cell {
        width: 80px;
        height: 80px;
        font-size: 1.5em; 
    }

    #reset {
        padding: 8px 16px; 
        font-size: 0.9em;
    }

    #status {
        font-size: 1em; 
    }
}