.navbar-nav {
    display: flex;
    flex-direction: row;
    /* Ensure the direction is set to row */
    align-items: center;
    /* Center items vertically */
    justify-content: flex-end;
    /* Align items to the end of the container */
}

.nav-item {
    margin: 0 10px;
    /* Add some horizontal margin between items */
}

.nav-link img {
    width: 30px;
    /* Set a fixed width for flags */
    height: auto;
    /* Maintain aspect ratio */
}

/* Ensure icons and switch are not too close to each other */
.fa-sun,
.fa-moon {
    margin: 0 8px;
}

/* Adjust the size of the switch and icons on smaller screens */
@media (max-width: 768px) {
    .nav-link img {
        width: 20px;
        /* Smaller flags */
    }

    .fa-sun,
    .fa-moon {
        font-size: 0.8rem;
        /* Smaller icons */
    }

    .form-switch .form-check-input {
        /* Scale down the switch if necessary */
        width: calc(1.75em + 0.75rem);
        height: calc(1em + 0.375rem);
    }
}