/* Breadcrumbs */
#breadcrumbs a {
    text-decoration: none;
}
#breadcrumbs a:hover {
    text-decoration: underline;
}

/* Title on page */
#titleOnAPage {
    text-align: center;
    position: relative;
    left: 30%;
    top: 5px;
    width: 20%;
    min-width: 100px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1.2em;
    line-height: 200%;
}

/* Text on page */
#textOnPage {
    color: #767171;
    position: relative;
    left: 30%;
    top: 0px;
    width: 60%;
    min-width: 600px;
    padding-top: 5px;
    padding-right: 10px;
    padding-bottom: 5px;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1.2em;
    line-height: 200%;
}

#textWideOnPage {
    color: #767171;
    position: relative;
    left: 30%;
    top: 0px;
    width: 60%;
    min-width: 700px;
    padding-top: 5px;
    padding-right: 10px;
    padding-bottom: 5px;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1.2em;
    line-height: 200%;
}

#text100Percentpage {
    color: #767171;
    position: relative;
    left: 0%;
    top: 0px;
    width: 100%;
    min-width: 700px;
    padding-top: 5px;
    padding-right: 10px;
    padding-bottom: 5px;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1.2em;
    line-height: 200%;
}

#textProjects {
    box-shadow: 10px 10px 10px #E8DFDF;
    position: relative;
    left: 50%;
    top: 0px;
    width: 40%;
    min-width: 600px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1.2em;
    line-height: 200%;
}

#news {
    box-shadow: 10px 10px 10px #f0fae3;
    position: fixed;
    float: right;
    left: 5%;
    top: 40%;
    width: 15%;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1.1em;
    line-height: 200%;
    overflow-y: scroll;
    bottom: 0;
}

#ProjectDescription {
    box-shadow: 10px 10px 10px #E8DFDF;
    position: fixed;
    overflow: auto;
    float: right;
    left: 5%;
    top: 25%;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 30%;
    padding-top: 5px;
    padding-bottom: 5px;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1.1em;
    line-height: 80%;
}

/* Banner */
img {
    max-width: 100%;
    height: auto;
}

/* Header images */
header img {
    width: 10%;
    height: auto;
}

/* Version text */
.version-text {
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 20px;
    color: #333333;
}

/* Navigation menu */
.flatMenu.theme1 {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    background-color: #f7f7fc;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #11123A;
    text-decoration: none;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 1em;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Dropdown menu */
.drop-down {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
}

.nav-links li:hover .drop-down {
    display: block;
}

.drop-down ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.drop-down a {
    display: block;
    padding: 5px 10px;
}

/* Search bar styling */
.flatMenu.theme1 .nav-search-bar {
    display: block;
    margin-left: 20px;
}

.nav-search-bar form {
    display: flex;
    align-items: center;
}

.nav-search-bar input[type="search"] {
    width: 200px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
}

.nav-search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    color: #11123A;
}

/* Hide mobile search bar by default */
li.nav-search-bar {
    display: none;
}

/* Mobile trigger (hamburger menu) */
.mobile-trigger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    margin-right: 20px;
}

/* Footer */
#footer {
    position: static;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #f7f7fc;
    color: #a2a4ba;
    text-align: center;
    padding: 10px 0;
}

.highlighted {
    background-color: yellow;
    font-weight: bold;
}

/* Font face */
@font-face {
    font-family: 'SEGOEUIL';
    src: url('/fonts/segoeUiLight/SEGOEUIL.eot');
    src: local('SEGOEUIL'), url('/fonts/segoeUiLight/SEGOEUIL.woff') format('woff'), url('/fonts/segoeUiLight/SEGOEUIL.ttf') format('truetype');
}

/* Body */
body {
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

a:link {
    color: #11123A;
    text-decoration: none;
}

a:visited {
    color: #2C2D57;
    text-decoration: none;
}

a:hover {
    color: #00c;
    text-decoration: underline;
}

a:active {
    color: #ccc;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header img {
        width: 15%; /* Slightly smaller than 20% */
        min-width: 60px; /* Reasonable minimum */
    }

    .version-text {
        font-size: 0.9em; /* Smaller for mobile */
    }

    /* Mobile search bar */
    .flatMenu.theme1 .nav-search-bar {
        width: 100%;
    }

    .flatMenu.theme1 .nav-search-bar input[type="search"] {
        width: 100%;
        padding: 6px; /* More comfortable padding */
        font-size: 0.9em; /* Slightly smaller font */
    }

    li.nav-search-bar {
        display: block;
        width: 100%;
    }

    li.nav-search-bar input[type="search"] {
        width: 100%;
        padding: 6px;
        font-size: 0.9em;
    }

    /* Mobile menu */
    .flatMenu.theme1 {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 10px; /* Reduce padding for mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px; /* Smaller gap for mobile */
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-trigger {
        display: block;
    }

    .drop-down {
        position: static; /* Prevent overlap */
        width: 100%; /* Full width for dropdown */
        box-shadow: none; /* Cleaner look */
        background-color: #f7f7fc; /* Match menu background */
    }

    #titleOnAPage,
    #textOnPage,
    #textWideOnPage,
    #text100Percentpage,
    #textProjects {
        position: static; /* Remove relative positioning */
        left: 0;
        width: 95%; /* Use nearly full width */
        min-width: 0; /* Remove large min-widths */
        margin: 10px auto; /* Center with margin */
        padding: 10px; /* Consistent padding */
        font-size: 1em; /* Slightly smaller font for mobile */
        line-height: 1.6; /* More readable line height */
    }

    #news,
    #ProjectDescription {
        position: static; /* Remove fixed positioning */
        width: 95%; /* Full width minus small margin */
        min-width: 0; /* Allow scaling */
        margin: 10px auto; /* Center */
        padding: 10px;
        overflow-y: auto; /* Only show scrollbar if needed */
        box-shadow: none; /* Remove box-shadow for cleaner mobile look */
        max-height: 50vh; /* Limit height to avoid excessive scrolling */
    }

    #ProjectDescription {
        line-height: 1.4; /* Fix cramped text */
    }
}

@media (max-width: 480px) {
    header img {
        width: 12%; /* Further reduce image size */
        min-width: 50px;
    }

    .version-text {
        font-size: 0.8em; /* Smaller for tiny screens */
    }

    li.nav-search-bar input[type="search"] {
        width: 100%;
        padding: 5px;
        font-size: 0.85em; /* Smaller input text */
    }

    #titleOnAPage,
    #textOnPage,
    #textWideOnPage,
    #text100Percentpage,
    #textProjects {
        font-size: 0.9em; /* Further reduce font size */
        padding: 8px;
    }

    #news,
    #ProjectDescription {
        font-size: 0.85em; /* Smaller text for readability */
        padding: 8px;
    }
}