/* background image */
body {
    background: url("/static/public/background.png") no-repeat center center;
    background-size: cover;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 1rem;   /* ~18px if your root is 16px */
    line-height: 1.6;      /* improves readability */
}

/* fixed header */
.main-header {
    position: fixed; top:0; left:0; right:0;
    box-sizing: border-box;
    background: #101725;
    padding: 0.5rem 1.5rem;
    color: white;
    z-index: 1000;
}

/* fixed footer */
.main-footer {
    position: fixed; bottom:0; left:0; right:0;
    box-sizing: border-box;
    background: #101725;
    padding: 0.5rem 1.5rem;
    color: white;
    text-align: center;
    z-index: 1000;
}

.main-footer a,
.main-footer a:visited {
    color: white;
    text-decoration: none;
}

.main-footer a:hover,
.main-footer a:focus {
    color: #ccc;
    }

.logo-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    height: 70px;
    width: auto;
}

.nav-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; gap: 2rem;
    align-items: center;
    color: white;
    font-size: 1.125rem;
    font-weight: bold;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-size: 1.125rem;
    font-weight: bold;
    transition: font-size 0.2s ease;
    display: inline-block;             /* needed so transform only affects the link */
}

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

.nav-menu a.active {
    transform: scale(1.1);             /* 110% size, centered */
}

.btn-submit {
    display: inline-block;
    padding: 1rem 2rem;       /* more click area */
    /*font-size: 0.5rem;*/       /* larger text */
    font-weight: bold;
    background-color: #0096c7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s;
    margin-bottom: 3rem;
}

.btn-submit:hover {
    background-color: #007fa1;
}

/* Desktop view (769px and up) */
@media (min-width: 769px) {
    .desktop-nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }
}

    /* Mobile view (768px and below) */
@media (max-width: 768px) {
    .logo-nav-wrapper {
        flex-wrap: wrap;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        margin-left: auto;
    }

    .mobile-nav {
        color: white;
        position: fixed;
        top: 70px;              /* match your header height */
        right: 0;
        width: 250px;           /* or 200px for thinner look */
        background: #101725;
        display: none;
        z-index: 9999;
        padding: 1rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.4);
        border-left: 1px solid #222;
        height: auto;           /* can be adjusted to full height if desired */
        border-radius: 0 0 0 10px;
    }

    .mobile-nav.show {
        display: block;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }

    .mobile-nav a {
        color: white;
        font-size: 1.125rem;
        text-decoration: none;
    }
}

.username {
    color: white;
    font-weight: 500;
    margin-left: 1rem;
}
  
.nav-menu .user-greeting {
    color: #bbbbbb;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: normal;
}

.nav-menu .logout-link {
    color: #bbbbbb;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: normal;
}

.nav-menu .logout-link:hover {
    color: #fff;
    text-decoration: underline;
}

.mobile-nav .user-greeting {
    color: #bbbbbb;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: normal;
}

.mobile-nav .logout-link {
    color: #bbbbbb;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: normal;
}

.mobile-nav .logout-link:hover {
    color: #fff;
    text-decoration: underline;
}

.icons-container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 8px;
  }
.icons-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;                   /* space between icon and text */
    padding: 6px 12px 6px 6px;           /* adjust as needed */
    text-decoration: none;
    background-color: #3f7593;
    color: #fff;
    border-radius: 4px;
    transition: opacity 0.3s;
    /* ── new width rules ── */
    flex: 0 0 200px;      /* 0 grow, 0 shrink, 160px basis */
    width: 200px;         /* you can omit if you only need min-width */
    white-space: normal;  /* allow wrapping */
    text-align: left;     /* or center if you prefer */
    box-sizing: border-box;
}
.icons-container a img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.icons-container a:hover {
    opacity: 0.7;
}
.icons-container .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
/* the magic: force a line‐break */
.flex-break {
    flex: 0 0 100%;   /* never grow/shrink, take full width */
    height: 0;        /* no visual height, just a wrap trigger */
    margin: 0;
    padding: 0;
    /* you could also hide it entirely if needed: */
    visibility: hidden;
}