body {
    font-family: 'Arial', sans-serif;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    gap: 0px;
    margin: 20px auto;
    width: 100%;
    max-width: 480px; /* 8 * 60px */
}

#game-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

#game-board.active .cell {
    background-color: attr(data-color);
}

.cell {
    aspect-ratio: 1 / 1;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    background-color: #ccc;
    transition: background-color 0.3s ease;
    position: relative;
}

.cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.cell.border-top::before { border-top-color: rgb(0, 0, 0); }
.cell.border-right::before { border-right-color: rgb(0, 0, 0); }
.cell.border-bottom::before { border-bottom-color: rgb(0, 0, 0); }
.cell.border-left::before { border-left-color: rgb(0, 0, 0); }

.queen::after {
    content: '♛';
}

#seed-display {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

#timer {
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
}

/* Add these new styles for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

#close-modal, #copy-result {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#copy-result {
    margin-right: 10px;
}

#button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#previous-game-button,
#start-button,
#next-game-button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 480px) {
    #game-board {
        max-width: 100%;
    }

    .cell {
        font-size: 6vw;
    }
}