* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f9ff;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #1565c0;
    margin-bottom: 15px;
}

h2 {
    color: #1565c0;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.instructions {
    font-size: 1.5em;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 15px auto;
    width: fit-content;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.home-button {
    display: inline-block;
    margin: 10px;
    padding: 8px 16px;
    background-color: #1565c0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #0d47a1;
}

#game-container {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #e3f2fd;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

#start-screen, #game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.flag-preview {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background-color: #bbdefb;
    border-radius: 10px;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preview-flag {
    width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: 5px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.preview-flag:hover {
    transform: scale(1.1);
}

#game-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

#flag-display {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.flag-image {
    max-width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.flag-image:hover {
    transform: scale(1.05);
}

#options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    width: 100%;
}

.option-button {
    padding: 12px 20px;
    background-color: #1976d2;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 150px;
}

.option-button:hover {
    background-color: #0d47a1;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.option-button.correct {
    background-color: #2ecc71;
    animation: pulse 0.5s;
}

.option-button.incorrect {
    background-color: #e74c3c;
    animation: shake 0.5s;
}

.option-button:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#fact-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    width: 90%;
    min-height: 80px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: left;
}

#fact-container.visible {
    opacity: 1;
}

.capital-image {
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: block;
}

#next-button {
    padding: 12px 25px;
    background-color: #1565c0;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 15px 0;
}

#next-button:hover {
    background-color: #0d47a1;
}

button {
    padding: 12px 25px;
    margin: 15px 0;
    background-color: #1565c0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #0d47a1;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hidden {
    display: none !important;
}

.feedback-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.5em;
    font-weight: bold;
    z-index: 100;
    animation: fadeInOut 2s forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feedback-message.correct {
    background-color: #2ecc71;
    color: white;
}

.feedback-message.wrong {
    background-color: #e74c3c;
    color: white;
}

.bonus-time {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f39c12;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: bonusAnimation 2s forwards;
    z-index: 1000;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes bonusAnimation {
    0% { opacity: 0; transform: translateY(-20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

@media (max-width: 768px) {
    .instructions {
        font-size: 1.2em;
        min-width: 250px;
        padding: 8px;
    }
    
    #game-container {
        height: 500px;
    }
    
    #flag-display {
        height: 180px;
    }
    
    .option-button {
        font-size: 0.9em;
        padding: 10px 15px;
        min-width: 120px;
    }
    
    .preview-flag {
        width: 80px;
        height: 60px;
    }
} 