:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #ecf0f1;
    --text-color: #333;
    --button-bg-color: #f1c40f;
    --button-hover-color: #f39c12;
    --correct-color: #2ecc71;
    --wrong-color: #e74c3c;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.modal {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.listar {
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: white;
    border-radius: 5px;
    background-color: white;
    padding: 5px 20px 25px 20px;
    font-size: 20px;
    color: blue;
    height: 20px;
    position: absolute;
    top: 20px; /* Posiciona 10px do topo */
    left: 10px; /* Posiciona 10px da esquerda */
}
.modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal p {
    margin: 10px 0 5px;
}

input[type="text"], select {
    width: 90%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.hidden {
     display: none !important;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px;
    position: absolute;
    top: 10px;
}

#game-screen {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
}
h1{
    margin: -1px;
}
.player-info-top {
    display: flex;
    align-items: center;
    justify-content: center;
    
}

#player-flag {
    width: 40px;
    height: 25px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

#score {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin: -5px 0;
}

.nivel{
    margin: -15px 0;
    padding: 0;
}

.nivel{
    margin: -15px 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.2);
}

#flag-display-container {
    height: 100px;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#flag-display {
    max-width: 100%;
    max-height: 100%;
    border: 2px solid #ccc;
    border-radius: 5px;
}

#answer-options {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 5px;
}

.answer-btn {
    background-color: var(--button-bg-color);
    color: var(--secondary-color);
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: all 0.2s ease;
}

.answer-btn:hover:enabled {
    background-color: var(--button-hover-color);
    transform: translateY(-2px);
}

.feedback-correct {
    color: var(--correct-color);
    font-weight: bold;
}

.feedback-wrong {
    color: var(--wrong-color);
    font-weight: bold;
}

#rank-display {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 20px;
}

#rank-display h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

#high-scores-list {
    list-style: none;
    padding: 0;
}

#high-scores-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

.rank-flag {
    width: 20px;
    height: 15px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

/* Pequenas telas */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding-top: 20px;
    }
    .modal, #game-container, #rank-display {
        max-width: 100%;
    }
    #game-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
        max-width: 400px;
        position: absolute;
        top: 60px;
    }

}