/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background-color: darkgray;
    margin: 0;
    /* For menu to stay the same.*/
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body takes at least the full viewport height */
}
/* Header Styles */
header {
    position: relative;
    text-align: center;
    max-height: 150px;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevents scrolling */
}

#fullscreen-video {
    position: fixed;
    left: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Places the video behind everything else */
}
#fullscreen-image {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1; /* Places the video behind everything else */
}
header, #layout-wrapper, footer {
    position: relative;
    z-index: 1; /* Ensures these elements stay above the video */
    /* Your existing styles */
}

#header-image {
    width: 100%; /* Adjust as needed */
    height: 150px;
}

#logo-overlay {
    position: absolute;
    /*top: 10px;/* /* Adjust as needed */
    left: 10px; /* Adjust as needed */
    bottom: 10px;
}

#company-logo {
    /*height: auto; *//* Adjust as needed */
    width: 100%;
    height: 120px;
}

#logo-overlay-umt {
    position: absolute;
    /*top: 10px;/* /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    bottom: 40px;
}

#company-logo-umt {
    /*height: auto; *//* Adjust as needed */
    width: 100%;
    height: 80px;
}
#layout-wrapper {
    flex-grow: 1;/* For menu to stay the same.*/
    display: flex;
}

/* Navigation Menu Styles */
#menu-button {
    display: none;
}
#main-nav {
    width: 160px; /* Adjust width as needed */
    min-width: 160px;
    background-color: rgba(0, 0, 0, 0.7); /* Dark grey with transparency */
    z-index: 1000; /* Ensures the menu is above other content */
}

#main-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#main-nav li {
    position: relative;
}

#main-nav a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

#main-nav .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #f71a1a;
    width: 150px;
    height: fit-content;
}

#main-nav li:hover > .submenu {
    display: block;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    #main-nav {
        display: none;
    }
    #company-logo-umt {
        display: none;
    }
    #fullscreen-video {
        display: none;
    }
    body, html {
        overflow: auto; /* Allows scrolling again */
    }
    /* Add more responsive styles as needed */
}

/* Body Content Styles */
#body-content {
    flex-grow: 1;
    display: flex; /* Use flexbox to center and contain the image */
}

#body-content img {
    max-width: 100%; /* Ensures the image is not wider than its container */
    max-height: 100%; /* Ensures the image is not taller than its container */
    height: auto; /* Maintain the aspect ratio of the image */
    overflow-y: auto;
}
#body-video {
    max-width: 100%; /* Responsive width */
    max-height: 100vh;
    min-width: 100%;
    min-height: 80vh;
    width: auto;
    height: auto; /* Maintain aspect ratio */
    /* Other styling as needed */
}
@media screen and (min-width: 768px) {
    #body-video {
        max-width: none; /* Removes max-width restriction on larger screens */
        max-height: none; /* Removes max-height restriction on larger screens */
    }
}

#big-content-area {
    display: flex;
    justify-content: space-between; /* This separates the text and the image */
    align-items: flex-start; /* This vertically centers the items in the container */
    padding-left: 20px;
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 75px;
}

#big-text-content {
    flex: 1; /* This allows the text container to grow and take up available space */
    overflow-y: auto; /* Adds a vertical scrollbar when content overflows */
    padding-right: 20px;
    padding-bottom: 100px;
    max-height: 65vh;
}

#big-image-content {
    flex: 1; /* This allows the image container to grow and take up available space */
}

#big-image-content img {
    /*width: 100%;*/ /* Makes the image responsive */
    height: auto; /* Maintains the aspect ratio */
}

#small-content-area {
    display: none;
}

#small-text-content, #small-image-content {
    display: none;
}
/* Footer Styles */
footer {
    width: 100%;
    background-color: white; /* Change as needed */
    color: rgb(10, 10, 10);
    text-align: center;
    padding: 10px;
    position:relative;
    bottom: 0px;
    z-index: 1004;
}

footer img {
    height: 50px; /* Adjust as needed */
    padding-left: 25px;
    padding-right: 25px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    #layout-wrapper {
        flex-direction: column;
    }
    /* Display the menu button on smaller screens */
    #menu-button {
        width: 160px; /* Adjust width as needed */
        display: block;
        background-color: rgba(0, 0, 0, 0.7); /* Dark grey with transparency */
        color: white; /* Example text color */
        padding: 10px;
        text-align: center;
        cursor: pointer;
        position: absolute;
        z-index: 1001; /* Higher than the menu and other content */
    }
    #main-nav {
        width: 160px; /* Adjust width as needed */
        display: block;
        background-color: rgba(0, 0, 0, 0.7); /* Dark grey with transparency */
        position:absolute;
        z-index: 1002;
    }

    #main-nav ul {
        display: none;
        width: 160px; /* Adjust width as needed */
    }

    #main-nav.active ul {
        display: block;
    }

    #main-nav li {
        text-align: left;
    }

    #main-nav .submenu {
        position: relative;
        left: 0;
        top: 0;
        width: 160px; /* Adjust width as needed */
    }
    #content-area {
        flex-direction: column; /* Stacks the items vertically */
    }

    #text-content, #image-content {
        flex: none; /* Resets the flex-grow behavior */
        width: 100%; /* Full width on smaller screens */
        padding-right: 0; /* Removes the right padding */
    }
    #small-content-area {
        display: block;
        flex-direction: column; /* Stacks the items vertically */
        overflow-y: auto;
    }

    #small-text-content, #small-image-content {
        display: block;
        text-align: center;
        flex: none; /* Resets the flex-grow behavior */
        width: 100%; /* Full width on smaller screens */
        padding-right: 0; /* Removes the right padding */
        padding-top: 45px;
        overflow-y: auto;
    }
    #big-content-area {
        display: none;
    }
    #big-text-content, #big-image-content {
        display: none;
    }
    #big-image-content img {
        display: none;
    }
    /* Footer Styles */
    footer {
        width: 100%;
        background-color: white; /* Change as needed */
        color: rgb(10, 10, 10);
        text-align: center;
        padding: 10px;
        position:relative;
        bottom: 0px;
        z-index: 1004;
    }
    footer img {
        height: 50px; /* Adjust as needed */
    }
}

