body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0; /* Removido o padding para evitar problemas de layout */
}

h1 {
    color: #333;
    position: relative;
    z-index: 10;
}

#timerDisplay {
    position: relative;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    z-index: 1000; /* Alto z-index para ficar acima do mapa */
    margin-top: 20px;
}

#map {
    height: 500px;
    width: 95vw;
    max-width: 900px;
    margin: 20px auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    z-index: 1; /* O mapa fica abaixo dos elementos de UI */
}


/* --- Adição de Media Queries para Otimização em Telas Menores --- */

@media (max-width: 768px) {
    #map {
        /* Reduz a altura do mapa para caber em telas menores, mantendo a proporção */
        height: 70vw; 
        margin: 10px auto;
    }
    
    #info {
        font-size: 1em; /* Reduz o tamanho da fonte para melhor leitura */
    }
}

@media (max-width: 480px) {
    #map {
        /* Reduz ainda mais a altura em dispositivos muito pequenos */
        height: 90vw;
    }

    #info {
        font-size: 0.9em;
    }
}

/* Estilo para os polígonos dos continentes */
/* .leaflet-interactive {
    fill: #3cda11;
    fill-opacity: 0.7;
    stroke: #ffffff;
    stroke-width: 2px;
} */

/* Estilo para o continente selecionado corretamente */
.selected-correctly {
    fill: #2ecc71 !important; /* Cor verde para acerto */
    stroke: #16a085 !important;
}

#info {
    font-size: 1.2em;
    color: #555;
    margin-top: 10px;
    position: relative;
    z-index: 1000; /* Alto z-index para ficar acima do mapa */
}

.correct-tooltip .leaflet-tooltip-pane {
    display: flex;
    justify-content: center;
    align-items: center;
}

.correct-tooltip .leaflet-tooltip-tip {
    border: none;
    background: transparent;
}

.correct-tooltip .leaflet-tooltip-content {
    background-color: transparent;
    color: #2ecc71; /* Cor verde para o texto */
    font-weight: bold;
    font-size: 14px;
    border: none;
    box-shadow: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding: 0;
}

.missing-country-tooltip .leaflet-tooltip-content {
    color: #e74c3c; /* Cor vermelha para o texto */
    font-weight: bold;
    font-size: 14px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding: 0;
}