/* General Styling */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

/* Root Container */
#root {
    position: relative;
    height: 100%;
}

/* Logo Container */
#logoContainer {
    height: 50px;
    /* Set a fixed height for the logo container */
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#logoContainer img {
    height: 100%;
    /* Make the logo image fill the container's height */
    width: auto;
    /* Maintain the image aspect ratio */
}

/* Navigation */
nav {
    background-color: #0d47a1;
    position: fixed;
    top: 50px;
    /* Position the nav bar right below the logo container */
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: block;
    padding: 5px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Submenu Styling */
nav ul li ul {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background-color: #0d47a1;
    /* Match the nav color */
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

nav ul li:hover>ul {
    display: block;
}

nav ul li ul li {
    margin: 5px 0;
}

/* Content Section */
.background {
    background-image: url('../images/House.jpg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: center -50%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding-top: 140px;
    /* Increase this padding to start below the nav bar */
}

#content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 80%;
    padding: 50% 0;
    padding-bottom: 20px;
    font-size: 28pt;
}

#content div {
    margin: 20px auto;
    max-width: 80%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 5px;
    height: 500px;
    overflow-y: auto;
    color: white;
}

/* About Surgeon Content*/
#aboutSurgeon {
    height: fit-content;
}

#aboutSurgeon>div {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: 65%;
}

#aboutSurgeon img {
    max-height: 90%;
    margin: 0;
    padding: 0;
    padding-left: 2%;
    padding-right: 2%;
}

#aboutSurgeon>div p {
    font-size: medium;
    margin: 0;
    padding: 0;
    padding-left: 2%;
    padding-right: 2%;
}


/* Staff Content */
#staff>div {
    height: fit-content;
    width: 100%;
    padding: 0;
    display: flex;
    /* Enables flexbox layout */
    justify-content: space-around;
    /* Evenly space the images */
    align-items: center;
    /* Align images vertically within the container */
    flex-wrap: wrap;
    /* Allows wrapping if the container size is reduced */
    background-color: rgba(0, 0, 0, 0.001);
    /* Background color for better visibility */
    border-radius: 5px;
    color: white;
}





#staff>div>div {
    flex: 1;
    /* Equal flex space for each image container */
    max-width: 30%;
    max-height: fit-content;
    /* Ensure images fit comfortably within the container */
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#staff img {
    max-width: 100%;
    /* Ensure images resize to fit within the container */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 5px;
    /* Optional: Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Optional: Add shadow for aesthetics */
    margin: 0;
    padding: 0;
}

#staff p {
    margin: 0;
    padding: 0;
    padding-top: 1%;
    padding-bottom: 1%;
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    background: #f4f4f4;
    position: relative;
    z-index: 2;
    height: 254.8px;
    /* Total height of containers */
    /* Alternatively, you can directly set the height: 224.8px (124px + 50.4px + 50.4px) */
}

/* Inner Footer Containers */
#footer-container-1 {
    height: 124px;
    /* Fixed height */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
    background-color: #e8f0ff;
}

#footer-container-2 {
    height: 60.4px;
    /* Fixed height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #d0e4ff;
}

#footer-container-2>div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 50%;
}

#footer-container-2>div>p {
    padding-left: 1%;
    padding-right: 1%;
}

#footer-container-3 {
    height: 50.4px;
    /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #0d47a1;
    color: #fff;
}

#footer-container-3>p {
    padding-left: 1%;
    padding-right: 1%;
}