
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
}

.game-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

.piles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px;
}

.pile {
    background-color: #3498db;
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.pile:hover {
    background-color: #2980b9;
}

.players {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.player-panel {
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

#alice-panel.active, #bob-panel.active {
    background-color: #ecf0f1;
    border-radius: 8px;
    padding: 10px;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
    margin: 0 5px;
}

button:hover {
    background-color: #34495e;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#game-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    grid-column: span 2;
}

#game-info p {
    margin: 5px 0;
}

#current-move {
    font-weight: bold;
    color: #e74c3c;
}

.game-log {
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
}

.game-log h3 {
    margin-top: 0;
    text-align: center;
}

#log-list {
    list-style: none;
    padding: 0;
}

#log-list li {
    margin-bottom: 10px;
}

.documentation {
    margin-top: 30px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    grid-column: span 2;
}

.documentation h3 {
    margin-bottom: 10px;
}

.documentation p {
    margin: 10px 0;
    line-height: 1.5;
    text-align: left;
}

@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .game-log {
        margin-top: 20px;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }

    button {
        margin-bottom: 10px;
        width: 100%;
    }

    .players {
        flex-direction: column;
    }

    .player-panel {
        margin: 10px 0;
    }
}

