/* General Body and Header Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header nav {
    background-color: #005f73;
    padding: 10px;
    text-align: center;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-right: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Section and Content Styles */
.jumbotron {
    padding: 2rem 1rem;
}
.container {
    padding-left: 15px;
    padding-right: 15px;
}
.row {
    margin-bottom: 30px;
}
.card {
    margin-bottom: 20px;
    min-height: 250px;
}
img.img-fluid {
    margin-top: 15px;
}
.footer-padding {
    padding-top: 20px;
}
.hero {
    text-align: center;
    padding: 50px;
    padding-bottom: 30px;
    background-color: #94d2bd;
}

section {
    padding: 20px;
}
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}
.content-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Workflow Container and SVG Styles */
.workflow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1800px; /* Ensure the diagram is visible */
    overflow-x: auto; /* Allow scrolling horizontally */
    padding: 20px;
}

svg {
    width: 80%;
    height: auto;
}

#flowchart {
    width: 100%;
    height: auto;        /* Makes sure the SVG adjusts to the modal size */
}

/* Thumbnail and Modal Styles */
.thumbnail {
    cursor: pointer;
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}
.thumbnail:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* Darkened background to help the SVG stand out */
}

.modal-content {
    overflow-y: auto;  /* Allows vertical scrolling if needed */
    overflow-x: hidden;  /* Prevents horizontal overflow */
    max-height: 90vh;    /* Restrict modal height */
    width: 90%;          /* Ensure it takes full modal width */
    margin: auto;
    display: block;
    background-color: white; /* Ensure background is always white */
    padding: 20px; /* Give some space inside the modal */
    border: 2px solid #ccc; /* Add subtle border for clarity */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5); /* Adds a shadow for better visual separation */
}

/* Close Button Styles */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #005f73;
    color: #fff;
}
