/* General Styling */
body {
    background-color: #f4f4f4;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Navigation Menu */
.top-menu {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.top-menu ul li {
    margin: 0 20px;
}

.top-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.top-menu ul li a:hover {
    background-color: #0077b5;
    color: white;
}

/* Language Switcher Styling */
.language-switcher {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 5px ;
}

.language-switcher img {
    width: 30px; /* Adjust flag size */
    height: 20px;
    margin: 0 5px; /* Space between flags */
    cursor: pointer;
    border: 1px solid #ccc; /* Optional border */
    border-radius: 3px; /* Optional rounded corners */
}

/* Articles Section */
.container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
}

h1 {
    font-size: 35px;
    margin-bottom: 20px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.date {
    font-size: 16px;
    color: #666;
}

.title {
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: #0077b5;
    margin-top: 5px;
}

.title:hover {
    text-decoration: underline;
}

.coauthor {
    font-size: 16px;
    color: #444;
    margin-top: 5px;
    font-style: italic;
}

.menu-toggle {
    display:none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .profile-picture {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .top-menu {
        position: relative;
    }

    .top-menu ul {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .top-menu ul.show {
        display: flex; /* Show menu when active */
    }

    .top-menu li {
        text-align: center;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        padding: 10px;
    }
}
