body {
    margin: 0;
    padding: 0;
    font-family: "Yettel", sans-serif;
    color: #80919F;
    background-color: #FFFFFF;
}

/* Marker class for this page – no layout constraints */
.maintenance-page {
}

/* Navigation stays on top */
.navigation {
    width: 100%;
}

/* Footer – fixed to bottom on desktop, normal flow on small screens */
.maintenance-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Custom messages */
.maintenance-message {
    color: #002340;
    font-family: "Yettel", sans-serif;
    font-weight: 100;
}

.maintenance-error {
    color: red;
}

/* Yettel font */
@font-face {
    font-family: 'Yettel';
    src: url('../font/yettel/Desktop/Yettel-Regular.otf') format("opentype");
    src: url('../font/yettel/Desktop/Yettel-Regular.otf#iefix') format("embedded-opentype"),
    url('../font/yettel/Web/Yettel-Regular.woff') format('woff'),
    url('../font/yettel/Web/Yettel-Regular.woff2') format('woff2'),
    url('../font/yettel/Web/Yettel-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

a.selected {
    background-color: #00ace7;
    color: #fff;
}

a {
    color: black;
    margin-top: 26px;
    margin-left: 1px;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.6rem;
}

.btn.btn-primary-darkblue-2 {
    align-items: center;
    justify-content: center;

    min-width: 120px;
    width: 300px;
    min-height: 50px !important;

    border-radius: 24px;
    border: 0;

    background: #002340;
    color: white;

    font-family: "Yettel", sans-serif;
    font-size: 18px !important;
    display: inline-flex;
    text-align: center;
}

/* Main layout */
#main-container {
    background-color: #FFFFFF;
    /* no flex – height is auto, no extra scroll from layout */
}

#pagewrap-main {
    width: 100%;
}

#pagewrap {
    padding: 5px;
    width: 90%;
    max-width: 980px;
    margin: 0 auto;
}

#content {
    margin-top: 120px;
    text-align: center;
}

/* Logos */
.big-logo {
    background: url('../images/logo-big.png') no-repeat center center;
    background-size: contain;
    width: 290px;
    height: 130px;
    display: inline-block;
    margin-bottom: 35px;
}

.maintenance-logo {
    background: url('../images/maintenance.png') no-repeat center center;
    background-size: contain;
    width: 400px;
    height: 400px;
    display: inline-block;
    margin-bottom: 35px;
}

/* Heading */
#content h1 {
    color: #002340;
    font-size: 2.5rem;
    margin: 0;
    line-height: 4rem;
    border-left: none;
    border-right: none;
    font-weight: bold;
}

/* Subheading / general headings */
h2 {
    color: #002340;
    font-weight: normal !important;
}

/* Text block with message + button */
.narrow-text {
    max-width: 33vw;
    margin: 0 auto;
    text-align: center;
}

/* =========================
   RESPONSIVE ADJUSTMENTS (WIDTH)
   ========================= */

/* Tablets and small laptops */
@media (max-width: 992px) {
    #content {
        margin-top: 80px;
    }

    #content h1 {
        font-size: 2rem;
        line-height: 3rem;
        padding: 0 1rem;
    }

    .narrow-text {
        max-width: 50vw;
    }
}

/* Phones & small tablets (portrait) */
@media (max-width: 768px) {

    body {
        padding: 0;
    }

    #content {
        margin-top: 60px;
    }

    .maintenance-logo {
        width: 350px;
        height: 350px;
    }

    #content h1 {
        font-size: 1.6rem;
        line-height: 2.2rem;
        padding: 0 1rem;
    }

    .narrow-text {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .btn.btn-primary-darkblue-2 {
        width: 230px;
    }

    a {
        margin-top: 16px;
        margin-left: 0;
        font-size: 0.95rem;
    }

    /* Let footer scroll with content on small screens to avoid overlap */
    .maintenance-footer {
        margin-top: 40px;
    }
}

/* Very small phones */
@media (max-width: 480px) {

    #content {
        margin-top: 40px;
    }

    .maintenance-logo {
        width: 200px;
        height: 200px;
    }

    #content h1 {
        font-size: 1.4rem;
        line-height: 2rem;
        padding: 0 0.75rem;
    }

    .narrow-text {
        padding: 0 1rem;
    }

    a {
        font-size: 0.9rem;
    }
}

/* =========================
   NAVBAR OVERRIDES (MAINTENANCE ONLY)
   ========================= */

/* Same nav look on desktop + mobile for the maintenance page */
body.maintenance-page .navbar-nav {
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body.maintenance-page .navbar-nav > li > a {
    color: #002340 !important;
    padding-top: 3px !important;
    padding-bottom: 10px !important;
    height: 40px !important;
    line-height: 40px !important;     /* keeps text vertically centered */
    display: flex !important;
    align-items: center !important;
}

/* Keep all nav items visible on mobile for the maintenance page */
@media screen and (max-width: 980px) {
    body.maintenance-page .navbar-nav li,
    body.maintenance-page .navbar-nav li + li,
    body.maintenance-page .navbar-nav hr + li {
        display: inline-block !important;
        float: none !important;
    }
}

/* =========================
   RESPONSIVE ADJUSTMENTS (HEIGHT)
   ========================= */

/* Short-height screens (small laptops, 720p, etc.) */
@media screen and (max-height: 900px) {
    #content {
        margin-top: 60px !important;
    }

    .maintenance-logo {
        width: 280px !important;
        height: 280px !important;
        background-size: contain !important;
        margin-bottom: 20px !important;
    }

    #content h1 {
        font-size: 2rem !important;
        line-height: 2.4rem !important;
    }

    .narrow-text {
        max-width: 520px !important;
    }
}

/* Even smaller (height < 750px) */
@media screen and (max-height: 750px) {
    #content {
        margin-top: 30px !important;
    }

    .maintenance-logo {
        width: 220px !important;
        height: 220px !important;
        margin-bottom: 15px !important;
    }

    #content h1 {
        font-size: 1.7rem !important;
        line-height: 2rem !important;
    }

    .narrow-text {
        max-width: 70vw !important;
    }
}
