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

body {
    min-height: 100vh;
    background-color: #f0f0f0;
    background-image: url(img/bg.png);
    background-repeat: no-repeat;
    background-position:center;
    background-size:cover;
    
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    height: 100vh;
}

.game-info {
    width: 300px;
    flex-shrink: 0;
}

.players-panel {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.player {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.player:last-child {
    margin-bottom: 0;
}

.player-token {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 5px auto;
}

.dice-panel {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dice {
    width: 50px;
    height: 50px;
    background-color: white;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#rollDice {
    width: 100%;
    padding: 10px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#rollDice:hover {
    background-color: #219a52;
}

#rollDice:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.status-panel {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.status-panel p {
    margin-bottom: 10px;
    font-size: 14px;
}

#lastAction {
    font-weight: bold;
    color: #2c3e50;
}

.board {
    flex-grow: 1;
    height: 75%;
    background-color: #e6ffe6;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.board-row {
    display: flex;
    height: 80px;
}

.board-middle {
    display: flex;
    flex-grow: 1;
}

.board-row.left, .board-row.right {
    flex-direction: column;
    width: 110px;
    height: auto;
    display: flex;
    justify-content: space-evenly;
    

}

.board-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.board-center h1 {
    color: #2c3e50;
    font-size: 2.5em;
    text-align: center;
    transform: rotate(-45deg);
}

.cell {
    width: 110px;
    height: 80px;
    border: 1px solid #2c3e50;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
    font-size: 12px;
    position: relative;
    transition: background-color 0.3s;
}

.cell[id^="cell-"] {
    cursor: help;
}

/* Types de cases */
.cell[id="cell-0"] { /* Départ */
    background-color: #27ae60;
    color: white;
}

.cell[id$="0"], .cell[id$="10"], .cell[id$="20"], .cell[id$="30"] { /* Coins */
    background-color: #ecf0f1;
    font-weight: bold;
}

/* Cases spéciales */
.cell[id="cell-7"], .cell[id="cell-12"], .cell[id="cell-22"], .cell[id="cell-36"] { /* Chance */
    background-color: #f1c40f;
    color: #2c3e50;
}

.cell[id="cell-3"], .cell[id="cell-17"], .cell[id="cell-33"] { /* Bonus écolo */
    background-color: #2ecc71;
    color: white;
}

.cell[id="cell-5"], .cell[id="cell-38"] { /* Taxes */
    background-color: #e74c3c;
    color: white;
}

.cell[id="cell-6"], .cell[id="cell-15"], .cell[id="cell-25"], .cell[id="cell-35"] { /* Transport */
    background-color: #3498db;
    color: white;
}

.player-piece {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    border: 2px solid white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.player-piece:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1000px) {
    .main-container {
        flex-direction: column;
    }

    .game-info {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .board {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #2c3e50;
}

#modal-title {
    color: #2c3e50;
    margin-bottom: 15px;
}

#modal-description {
    color: #34495e;
    line-height: 1.5;
}

/* Улучшение стилей ячеек */
.cell:hover {
    background-color: rgba(44, 62, 80, 0.1);
    cursor: pointer;
}

/* Стили для модального окна результатов хода */
.turn-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.5s ease-out;
}

.turn-modal-content {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

.turn-result {
    font-size: 24px;
    margin-bottom: 20px;
}

.dice-result {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.big-dice {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.money-change {
    font-size: 32px;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.positive-money {
    color: #2ecc71;
}

.negative-money {
    color: #e74c3c;
}

.continue-button {
    background-color: white;
    color: #27ae60;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 