/* Shared header/footer for the standalone NTL pages (station_details, station_inventory) */

@font-face {
    font-family: 'DIN';
    src: url('../fonts_monitoring/DINBold.eot');
    src: url('../fonts_monitoring/DINBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts_monitoring/DINBold.woff2') format('woff2'),
        url('../fonts_monitoring/DINBold.woff') format('woff'),
        url('../fonts_monitoring/DINBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DIN';
    src: url('../fonts_monitoring/DIN-Light.eot');
    src: url('../fonts_monitoring/DIN-Light.eot?#iefix') format('embedded-opentype'),
        url('../fonts_monitoring/DIN-Light.woff2') format('woff2'),
        url('../fonts_monitoring/DIN-Light.woff') format('woff'),
        url('../fonts_monitoring/DIN-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'DIN';
    src: url('../fonts_monitoring/DIN-Medium.eot');
    src: url('../fonts_monitoring/DIN-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts_monitoring/DIN-Medium.woff2') format('woff2'),
        url('../fonts_monitoring/DIN-Medium.woff') format('woff'),
        url('../fonts_monitoring/DIN-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* style.css pads the body for the old fixed header */
body {
    padding-top: 0 !important;
    margin: 0;
}

.nav-bar,
.nav-bar *,
.footer,
.footer *,
#info-popup,
#info-popup * {
    box-sizing: border-box;
}

.nav-bar,
.footer,
#info-popup {
    font-family: 'DIN';
    font-weight: 500;
    font-size: 18px;
    color: #262626;
    letter-spacing: 0.30px;
}

.nav-bar {
    position: sticky;
    background: #fff;
    width: 100%;
    left: 0;
    top: 0;
    margin: 0px;
    z-index: 9999;
}

.nav-bar .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.nav-bar .nav-item {
    padding: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-bar h1 {
    font-size: 1.75rem;
    margin: 0.67em 0;
    font-weight: bold;
}

.nav-bar .info-icon {
    width: 1.5rem;
}

.nav-bar #information {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.nav-bar .collapse-header {
    padding-right: 2px;
    position: sticky;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    background-color: #fffae6;
}

.nav-bar .collapse-header:hover {
    background-color: #f3eac2;
}

.nav-bar .arrow-img,
.footer .arrow-img {
    transition: transform 0.2s ease;
    float: right;
    margin-left: auto;
}

.nav-bar .header-logo {
    padding-left: 5px;
    max-width: none;
}

.nav-bar .hide {
    display: none;
}

.footer {
    position: sticky;
    background: #000000;
    width: 100%;
    left: 0;
    bottom: 0;
    margin: 0px;
    padding: 0px;
    z-index: 9999;
}

.footer .collapse-footer {
    padding-right: 2px;
    position: sticky;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    cursor: pointer;
}

.footer .collapse-footer :hover {
    background-color: grey;
}

.footer .footer-content {
    display: flex;
    justify-content: space-between;
    background: #000000;
    align-items: center;
    width: 100%;
    margin: 0px;
    padding: 0px 20px;
}

.footer .social-icons {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    margin-right: 20px;
}

.footer .social-icons a {
    color: white;
    text-decoration: none;
}

.footer .social-icons a svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.footer .hide-footer {
    display: none;
}

#info-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    flex-direction: column;
}

#info-popup #info-content {
    font-size: 1rem;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 1000px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

#info-popup .popup-container {
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

#info-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

#info-popup .popup-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

#info-popup .close-btn {
    float: right;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    font-size: 1.2em;
    border-radius: 3px;
    transition: color 0.2s ease, transform 0.2s ease;
}

#info-popup .close-btn:hover {
    color: #d00;
    transform: scale(1.1);
}

/* reset station_details' own .popup-content rules */
#info-popup .popup-content {
    display: block;
    width: auto;
    margin: 0;
    border: none;
    background: none;
    padding: 10px 0 0;
    overflow-y: auto;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    max-height: calc(80vh - 50px);
}

@media (min-width: 300px) and (max-width: 480px) {
    .nav-bar h1 { font-size: 0.7rem; }
    .nav-bar .info-icon { width: 0.525rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nav-bar h1 { font-size: 1rem; }
    .nav-bar .info-icon { width: 0.75rem; }
}

@media (min-width: 769px) and (max-width: 1920px) {
    .nav-bar h1 { font-size: 1rem; }
    .nav-bar .info-icon { width: 0.75rem; }
    .nav-bar .header-logo { width: 70%; }
    .footer .footer-logo { width: 12.5%; }
    .nav-bar .arrow-img,
    .footer .arrow-img {
        height: 15px;
        width: 15px;
    }
}

/* Portal look, same as the landing page */
.nav-content .header-logo { width: 200px; height: auto; max-width: 38vw; padding-left: 5px; }
.nav-content h1 { display: flex; align-items: center; white-space: nowrap; font-size: 1.75rem; }
.nav-content .info-icon { width: 1.5rem; }
.nav-content h1::before {
    content: '';
    display: inline-block;
    flex: 0 0 auto;
    width: 3px;
    height: 46px;
    background: #1a9de0;
    border-radius: 2px;
    margin: 0 16px;
}

#return-to-top {
    bottom: 50px;
}
