<style>

body {
    margin: 0;
    display: flex; /* Enable flexbox for side-by-side layout */
    width: 100%;
    background: white;
    text-align: left;
    font-family: 'helvetica', arial black;
    font-size: 1em;
    line-height: 1.5;
    color: rgb(19, 33, 139);
}

#left-container {
    width: 50vw;
    height: calc(100vh - 275px); /* Adjust for header and footer */
    /* border: ; */ /* Copy this to visualize: 2px solid blue */
    overflow: hidden; /* Keep this to crop overflowing image */
    box-sizing: border-box;
    position: fixed;
    top: 175px;
    left: 0; /* Position on the left */
    bottom: 100px;
    display: flex; /* Enable Flexbox for the container */
    justify-content: center; /* Center horizontally (optional) */
    align-items: center; /* Center vertically */
}

#Image1 {
    display: block;
    width: 100%; /* Make image take full width of container */
    height: 100%; /* Make image take full height of container */
    object-fit: cover; /* This is key: scales to fill, crops excess for "zoom" effect */
object-position: calc(50% - 150px) center; /* Shifts the image 100px to the left from its horizontal center */
}

#right-container {
    width: 50vw;
    height: calc(100vh - 275px); /* Adjust for header and footer */
    overflow-y: auto;
    box-sizing: border-box;
    position: fixed;
    top: 175px;
    right: 0; /* Position on the right */
    bottom: 100px;
    /* border: ; */ /* Copy this to visualize: 2px solid red */
    padding-left: 30px;
    padding-right: 30px;
}

#right-container p {
    text-align: left;
    font-family: 'helvetica';
    font-size: 1em;
    line-height: 1.5;
    color: rgb(19, 33, 139);
}


header {
    z-index: 9998; /* Set a high z-index value to ensure the footer stays on top */
    width: 100%;
    height: 150px;
    min-height: 150px;
    text-align: center;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 1); /* Add a text shadow with a glow effect */
    border: 0px solid black;
    font-family: 'helvetica', arial black;
    font-size: 3em;
    background-size:cover;
    background-image: url('../images/MarineHeader.jpg');
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
}

#GWLogo {
    width: 110px;
    height: 110px;
    border: 2px solid white;
    position: absolute;
    top: 11px;
    left: 11px;
    background-image: url('../images/GWLogo.jpg');
    background-size: cover;
    background-position: bottom right; /* Position the background image at the bottom right corner */
    z-index: 9999; /* Set a high z-index value to ensure the footer stays on top */
}

#Text1 {
    width: 40%;
    height: auto; /* Change height to auto to adjust according to content */
    text-align: center;
    padding: 20px;
    position: absolute;
    top: 18%; /* Adjust this value to control the distance below the navigation bar */
    left: 77%;
    transform: translateX(-50%);
    text-align: left;
    border: 0px solid black;
    font-family: 'helvetica', arial black;
    font-size: 1em;
    border: 0px dashed rgb(19, 33, 139);
    line-height: 1.5;
    color: rgb(19, 33, 139);
    z-index: 9998; /* Set a high z-index value to ensure the footer stays on top */

}

.middle-justified {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bold-text {
    font-weight: bold;
}


footer {
    width: 100%;
    text-align: left;
    border: 0px solid black;
    font-family: 'helvetica', arial black;
    font-size: 1em;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999; /* Set a high z-index value to ensure the footer stays on top */
    background-size: cover;
    background-image: url('../images/Footer.png');
    background-position: bottom right; /* Position the background image at the bottom right corner */
}

#LocationTag {
    width: 100%;
    text-align: center;
    color: white;
    font-family: 'helvetica', arial white;
    font-size: 1em;
    position: relative;
    top: 0px;
    right: 10px;
}

#ContactTag {
    width: 100%;
    text-align: center;
    color: white;
    font-family: 'helvetica', arial white;
    font-size: 1em;
    position: relative;
    top: 0px;
    left: 10px;
}

#TrmbLogo {
    width: 500px;
    height: 140px;
    transform: scale(0.35);
    border: 2px solid white;
    position: fixed;
    bottom: -35px;
    right: -150px;
    background-image: url('../images/TrmbLogo.jpg');
    background-size: cover;
    background-position: bottom right;
    z-index: 9999;
}

/* Media Query for Mobile Phones */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* Stack containers vertically on small screens */
    }

    #left-container,
    #right-container {
        position: static; /* Remove fixed positioning */
        width: 100%; /* Take full width */
        height: auto; /* Let content define height */
        padding: 20px; /* Add some padding */
        margin-top: 0; /* Remove top margin */
        margin-bottom: 0; /* Remove bottom margin */
    }

    #left-container {
        order: 1; /* Display image first */
        height: 50vh; /* Give it a reasonable height on mobile */
    }

    #right-container {
        order: 2; /* Display content second */
    }

    header, footer {
        position: static; /* Adjust header/footer for mobile flow */
        width: 100%;
        height: auto;
    }

    header p {
        font-size: 2em; /* Adjust header text size */
    }

    #GWLogo {
        position: static; /* Adjust logo position */
        margin: 10px auto;
    }

    #Text1 {
        position: static;
        width: 90%;
        left: auto;
        transform: none;
        margin: 0 auto;
    }
  
#TrmbLogo {
    width: 500px;
    height: 140px;
    transform: scale(0.35);
    border: 2px solid white;
    position: fixed;
    bottom: -35px;
    right: -150px;
    background-image: url('../images/TrmbLogo.jpg');
    background-size: cover;
    background-position: bottom right;
    z-index: 9999;
}

}

</style>