﻿body {
    background-color: white;
    color: darkblue;
    font-family: "Segoe UI", Arial, sans-serif;
}

.dark-mode {
    background-color: #8a8a8a;
    color: white;
}

.heading-color {
    color: #133eaf;
}

.large_size {
    transform: scale(1.25);
    transform-origin: top left;
}

footer {
    font-size: 14px;
    width: 90%;
    margin: 1rem auto 0 auto; /* space above footer and center */
    text-align: center;
}

    footer a.footer {
        text-decoration: none;
    }

        footer a.footer:hover {
            text-decoration: underline;
        }

.footer {
    color: black !important;
}

    .footer.dark {
        color: white !important;
    }

.container {
    /* width: 90vw;*/
    margin: 0 auto;
    width: 95%;
    padding: 0;
}

.body-content {
    padding-top: 4rem; /* space between navbar and content */
}

/* ===============================
       NAVBAR
    ==================================*/
.navbar {
    display: flex;
    align-items: center; /* ensures vertical centering */
    justify-content: space-between; /* left-right spread */
    box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08);
    margin-bottom: 1rem; /* space below menu */
    padding: 0.5rem 1rem; /* ensure some top-bottom padding */
}

    .navbar img {
        width: 48px;
        height: auto;
        object-fit: contain;
        vertical-align: middle; /* helps vertical alignment */
    }

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

    .navbar-nav > li > a {
        padding: 1rem !important;
        font-size: 20px;
        text-decoration: none; /* no underline */
        color: #000000; /* black text */
        transition: color 0.25s ease, background-color 0.25s ease;
        border-radius: 0.3rem; /* subtle rounding for background effect if applied */
    }

        .navbar-nav > li > a:hover,
        .navbar-nav > li > a:focus,
        .navbar-nav > li > a:active {
            color: #0a2abb; /* subtle blue text */
            background-color: rgba(10, 42, 187, 0.05); /* very light blue shading */
            text-decoration: none; /* no underline */
        }

#welcome, #accessibility {
    margin-left: -10px;
    margin-right: -10px;
}

#accessibility {
    margin: 0; /* remove extra offsets */
}

/* ===============================
       SUBMENU 
    ==================================*/
.submenu {
    display: none;
    position: absolute;
    background-color: white;
    padding: 0;
    list-style: none;
    border-radius: 0.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

    #welcome:hover .submenu,
    #access:hover .submenu,
    .submenu:hover {
        display: block !important;
    }

    .submenu li a {
        padding: 10px 20px;
        display: block;
        text-decoration: none;
        color: #0033cc;
        font-size: 14px;
        white-space: nowrap;
        transition: background 0.15s;
    }

        .submenu li a:hover {
            background-color: #f0f4ff;
        }

#access .submenu li a {
    font-size: 12px;
    width: 70px;
}

/* ===============================
       TOP IMAGE CARD
    ==================================*/
.header-img {
    position: relative;
    background-color: #f9f9f9;
    border-radius: 0.6rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 0;
}

    .header-img img.image1 {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 0.6rem 0.6rem 0 0;
    }

.text-on-img {
    position: absolute;
    width: 86%;
    padding: 0 2rem;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: white;
}

.text-bottom-img {
    position: absolute;
    bottom: 7px;
    left: 2rem;
}

.icons-on-img-right {
    display: flex;
    flex-direction: column;
    color: #0a044a;
    position: absolute;
    font-weight: 400;
    font-size: 2vw;
    right: 2vw;
    top: 2vw;
}

.icons-on-img-center {
    display: none;
    position: absolute;
    flex-direction: column;
    color: #133eaf;
    font-weight: bold;
    font-size: 2.8vw;
    left: 18vw;
    top: 40%;
}

/* ===============================
       RULER
    ==================================*/
.ruler {
    position: fixed;
    top: 20%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

    .ruler.mode1 {
        opacity: 1;
    }

.ruler-line {
    position: absolute;
    height: 4rem;
    width: 100vw;
    pointer-events: none;
    border-bottom-style: solid;
    border-bottom-color: blue;
    border-top-style: solid;
    border-top-color: coral;
}
