body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

#board {
    display: flex;
    flex-direction: column;
    background-color: #DEB887;
    padding: 20px;
    border: 2px solid #8B4513;
    border-radius: 5px;
    margin: 20px auto;
    width: fit-content;
}

.row {
    display: flex;
}

.intersection {
    width: 40px;
    height: 40px;
    position: relative;
    box-sizing: border-box;
}

.intersection::before,
.intersection::after {
    content: '';
    position: absolute;
    background-color: #000;
    z-index: 1;
}

.intersection::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.intersection::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.piece {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    top: 10%;
    left: 10%;
    z-index: 2;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.piece.black {
    background-color: #000;
}

.piece.white {
    background-color: #fff;
    border: 1px solid #999;
}

#settings-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.setting-item {
    margin: 10px 0;
}

.forbidden-rules {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

#apply-settings {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#apply-settings:hover {
    background-color: #45a049;
}

#win-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 24px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

#reset-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#reset-button:hover {
    background-color: #45a049;
}
