* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Стили флага */
.flag-container {
    margin: 30px 0;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#flag-image {
    max-width: 100%;
    max-height: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Сетка кнопок с ответами */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

button {
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: 0.2s;
}

.option-btn {
    padding: 15px;
    border: 2px solid #e1e4e8;
    background: #fff;
    color: #333;
}

.option-btn:hover {
    border-color: #009c3b; /* Зеленый цвет Бразилии */
    background: #f0fff4;
}

.primary-btn {
    padding: 15px 30px;
    background: #0055A4; /* Синий цвет Бразилии */
    color: white;
    border: none;
    margin-top: 20px;
    width: 100%;
}

.primary-btn:hover {
    background: #004080;
}

/* Историческая карточка */
.info-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr; /* На телефоне кнопки будут в один столбик */
    }
}

/* Сетка выбора штатов */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.state-card {
    cursor: pointer;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    padding: 15px 10px;
    background: #fff;
    transition: 0.2s;
}

.state-card:hover {
    border-color: #0055A4;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.state-card img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

.state-card span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
