* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #0e0e0e;
    color: #fff;
}

.container {
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.board {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.row {
    display: flex;
}

.cell {
    width: 100px;
    height: 100px;
    border: 2px solid #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    background-color: #1e1e1e;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: #333;
}

.reset-btn {
    width: 50px;
    height: 50px;
    background-color: #00aaff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #0088cc;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

#popupMessage {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.analysis-popup {
    background-color: #ff5733;
    border: none;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.analysis-popup:hover {
    background-color: #e04e2d;
}

.restart-popup {
    background-color: #00aaff;
    border: none;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.restart-popup:hover {
    background-color: #0088cc;
}
