/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
}

.modal-content h2 {
    margin-top: 0;
}

.flags {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.flags button {
    background: none;
    border: none;
    text-align: center;
    cursor: pointer;
    margin: 10px;
}

.flags img {
    width: 120px; /* Adjusted size for responsiveness */
    height: auto;
    margin-bottom: 10px;
}

/* Header Styles */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

/* Section Styles */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

section p {
    font-size: 1rem;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
    position: absolute;
    bottom: 0px;
    width: 100%;
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .flags img {
        width: 100px; /* Smaller flags for smaller screens */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    section {
        padding: 15px;
    }

    .modal-content {
        padding: 15px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    footer {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .flags img {
        width: 80px; /* Even smaller flags for very small screens */
    }

    header h1 {
        font-size: 1.4rem;
    }

    section {
        padding: 10px;
    }

    footer {
        font-size: 0.8rem;
    }
}