* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #8b5a2b;
}

.game-settings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

select, button {
    padding: 8px 16px;
    background-color: #8b5a2b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

select {
    background-color: white;
    color: #333;
    border: 1px solid #8b5a2b;
}

.player-turn {
    font-weight: bold;
    font-size: 1.2em;
}

.board {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    background-color: #8b5a2b;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.store {
    width: 100px;
    height: 220px;
    background-color: #a67c52;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.pits-container {
    flex-grow: 1;
    margin: 0 20px;
}

.pits {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
}

.pits-ai {
    flex-direction: row-reverse;
}

.pit {
    width: 80px;
    height: 80px;
    background-color: #a67c52;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pits-player .pit:hover {
    background-color: #c19a6b;
    transform: translateY(-5px);
}

.stones {
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.game-info {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-text h3 {
    margin-bottom: 10px;
    color: #8b5a2b;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.modal-content h2 {
    color: #8b5a2b;
    margin-bottom: 15px;
}

.modal-content button {
    margin-top: 20px;
}

.hidden {
    display: none;
}


@media (max-width: 768px) {
    .board {
        flex-direction: column;
        padding: 10px;
    }
    
    .store {
        width: 220px;
        height: 80px;
        margin: 10px 0;
    }
    
    .pits-container {
        margin: 10px 0;
        width: 100%;
    }
    
    .pit {
        width: 60px;
        height: 60px;
    }
}
