#mainNavBar {
    background-color: #f1f1f1;
    border-bottom: 2px solid #ccc;
    padding: 0 15px;
    height: 40px;
}

#mainNavBar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: start;
}

#mainNavBar .tab {
    padding: 5px 10px;
    margin-right: 5px;
    background-color: #ddd;
    border: 1px solid #ccc;
    border-bottom: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#mainNavBar .tab a {
    text-decoration: none;
    color: #333;
    display: block;
}

#mainNavBar .tab:hover {
    background-color: #e7e7e7;
}

#mainNavBar .tab a:hover {
    text-decoration: none;
}

#mainNavBar .tab.active {
    background-color: white;
    border-top: 2px solid blue;
    position: relative;
    top: 2px;
}

#userInfo {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 10px;
    margin-right: 20px;
    color: white;
}

#userDisplay {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 16px;
}

#userDisplay a {
    background-color: #555;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

#userDisplay a:hover {
    background-color: #666;
}

#userEmail {
    color: #333;
}

footer {
    text-align: left;
    margin-top: 20px;
    margin-left: 5px;
    font-size: 0.8em;
    color: #666;
    padding-bottom: 20px;
}

body {
    margin: 0;
    padding: 0;
    /* Ensure the body height is 100% to cover the entire viewport */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#mainContent {
    flex: 1; /* Grow to fill available space */
}

#clocksContainer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw; /* Ensure it takes the full width of the viewport */
    height: 20px; /* Fixed height */
    background-color: #f1f1f1; /* Background color */
    text-align: center;
    border-top: 2px solid #ccc; /* Border at the top */
    z-index: 1000; /* Ensure it's above other content */
    display: flex;
    align-items: center;
    justify-content: center; /* Center items horizontally */
    padding: 0 15px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#clocksContainer > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

#localClock, #zuluClock {
    margin: 0 10px;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap; /* Prevent wrapping */
    color: #000; /* Highlight text color */
    border-radius: 5px; /* Optional: rounded corners */
    padding: 5px 10px; /* Add padding for better visibility */
}

#titleImage {
    display: block;
    margin-top: 15px;
    margin-bottom: 2px;
    width: 550px; /* Fixed width */
    height: 80px; /* Fixed height */
    max-width: 100%; /* Prevent it from exceeding the container's width */
    max-height: 100%; /* Prevent it from exceeding the container's height */
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    #clocksContainer {
        padding: 0 10px; /* Adjust padding for smaller screens */
    }

    #localClock, #zuluClock {
        margin: 0 5px; /* Adjust margin for smaller screens */
    }

    #titleImage {
        width: 100%; /* Ensure it scales down on smaller screens but keeps the aspect ratio */
        height: auto;
    }
}
