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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

.header {
    text-align: center;
    padding: 15px 0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 8px 0;
}

.country-select {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 15px auto;
    display: block;
    padding: 10px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

.country-select:focus {
    outline: none;
    border-color: #4CAF50;
}

.recommendation {
    font-size: 15px;
    margin: 15px 0;
    padding: 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .indices-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .section {
        min-height: 150px;
    }
}

.indices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin: 20px 0;
}

.section {
    padding: 15px;
    border-radius: 8px;
    border: 3px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.section:hover {
    border-color: rgba(0,0,0,0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.section h2 {
    font-size: 17px;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.bg-green h2, .bg-red h2 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.bg-grey h2 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.section p {
    font-size: 13px;
    margin: 6px 0;
    line-height: 1.5;
}

.section .explanation {
    font-size: 11px;
    color: #666666;
    font-style: italic;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.hidden {
    display: none;
}

/* Color classes for header background */
.bg-green {
    background-color: #4CAF50;
    color: white;
}

.bg-greenyellow {
    background-color: greenyellow;
    color: black;
}

.bg-yellow {
    background-color: #ffd700;
    color: black;
}

.bg-orange {
    background-color: #ff9800;
    color: black;
}

.bg-red {
    background-color: #f44336;
    color: white;
}

.bg-grey {
    background-color: #999;
    color: white;
}

.bg-white {
    background-color: white;
    color: black;
}
