/* Общие стили */
.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    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);
    z-index: 100;
}

.back-arrow {
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: bold;
}

/* Контент */
.content {
    margin: 60px 0 30px 0;
}

.roulette-info {
    margin-bottom: 30px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.roulette-red {
    color: #dc3545;
    font-weight: bold;
}

.image-container {
    margin: 20px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ответ */
.answer {
    font-size: 1.2em;
    margin: 20px 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.answer.show {
    opacity: 1;
}

.answer-line {
    margin: 5px 0;
}

.answer-green {
    color: #28a745;
    font-weight: bold;
}

.answer-black {
    color: #030303;
    font-weight: bold;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .roulette-info {
        font-size: 1.2em;
        margin-bottom: 20px;
    }
    
    .answer {
        font-size: 1.1em;
    }
    
    .back-button {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Новые стили для разделения строк */
.roulette-line {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
}

.bet-line {
    font-size: 1.2em;
    font-weight: bold;
}

/* Кнопка настроек */
.settings-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    color: #2c3e50;
}

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

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

.modal-overlay.show {
    display: flex;
}

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

.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Радио-кнопки */
.radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1.1em;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input:checked + .radio-custom {
    background: #3498db;
    border-color: #3498db;
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label:hover .radio-custom {
    border-color: #2980b9;
}

/* Кнопка закрытия */
.modal-close-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close-btn:hover {
    background: #2980b9;
}

/* Мобильная адаптация для модалки */
@media (max-width: 480px) {
    .settings-button {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .radio-label {
        font-size: 1em;
    }
}
