/* Минимальные дополнительные стили для страницы Баккара */

.header-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.settings-button {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.2em;
    margin: 0;
}

.settings-button:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.bet-info {
    font-size: 1.4em; /* Увеличили размер текста вопроса */
    margin: 20px 0;
    padding: 20px;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
}

.answer {
    margin: 20px 0;
    padding: 20px;
    text-align: center;
    min-height: 80px; /* Фиксированная высота */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden; /* Скрываем но сохраняем место */
    opacity: 0; /* Для плавного появления */
    transition: opacity 0.3s ease;
    gap: 10px;
}

.answer.visible {
    visibility: visible;
    opacity: 1;
}

.answer-line {
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.answer-label {
    color: #28a745; /* Зелёный цвет для слов */
    font-weight: 600;
}

.answer-value {
    color: #030303; /* Чёрный цвет для цифр */
    font-weight: bold;
}

.answer-placeholder {
    min-height: 80px; /* Такая же высота как у ответа */
    margin: 20px 0;
    visibility: hidden; /* Невидимый но занимает место */
}

.button-container {
    margin-top: 20px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a5568;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-buttons .button {
    flex: 1;
    padding: 12px 20px;
}

.save-button {
    background: linear-gradient(145deg, #28a745, #218838);
}

.cancel-button {
    background: linear-gradient(145deg, #6c757d, #545b62);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .header-buttons {
        top: 15px;
        right: 15px;
    }
    
    .settings-button {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
    
    .bet-info {
        font-size: 1.3em;
        padding: 15px;
    }
    
    .answer {
        padding: 15px;
        min-height: 70px;
    }
    
    .answer-line {
        font-size: 1.1em;
    }
    
    .answer-placeholder {
        min-height: 70px;
    }
    
    .modal-content {
        padding: 25px 20px;
        margin: 20px;
    }
}
