body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: center; /* Center the logo horizontally */
    align-items: center;    /* Center the logo vertically */
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 20px;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.navbar .navbar-brand .logo {
    max-height: 40px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-name {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
    word-wrap: break-word;
}

.project-description {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

.my-photo {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.algo-button {
    background-color: #007aff;
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1 1 auto;
    max-width: 200px;
}

.algo-button:hover {
    background-color: #005bb5;
}
.algorithm-container {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.algorithm-container .container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    margin: 2rem auto;
}

.algorithm-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.algorithm-container p {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.algorithm-container .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.algorithm-container .algo-button {
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin: 0.5rem;
}

.algorithm-container .algo-button:hover {
    background-color: #005bb5;
}

.algorithm-container .error-message {
    color: red;
    font-size: 0.875rem;
}

/* Scoped styles for the future feature page */
.future-feature-container {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.future-feature-container .container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.future-feature-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.future-feature-container p {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto; /* Pushes footer to the bottom of the page */
}

.footer-content p {
    margin: 0;
    padding: 5px 0;
    font-size: 14px;
    color: #ccc;
}

.footer-content p a {
    color: #007aff;
    text-decoration: none;
}

.footer-content p a:hover {
    color: #005bb5;
    text-decoration: underline;
}






/* Scoped styling specifically for algorithm result pages */
.algorithm-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f2f2f7;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
}

.algorithm-container h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 20px;
}

.algorithm-container p {
    font-size: 1rem;
    font-weight: 400;
    color: #3a3a3c;
    margin-bottom: 1rem;
}

.algorithm-container .algo-button {
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin: 0.5rem;
    transition: background-color 0.3s ease;
}

.algorithm-container .algo-button:hover {
    background-color: #005bb5;
}

/* Log content styling for result.html */
/* Log content styling for result.html */





/* Add other elements here that are specific to the result page */
/* Updated algorithm-container styling for a more breathable layout */
.algorithm-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: transparent; /* Remove background color to blend with the page */
    padding: 20px 0; /* Reduce padding to give more space */
    border-radius: 0; /* Remove border radius for a more open layout */
    box-shadow: none; /* Remove the box shadow to make the container less boxed in */
    width: 90%;
    max-width: 1200px; /* Make the container wider */
    margin: 0 auto; /* Center the container but allow it to stretch more */
    text-align: center; /* Center text for a more open feel */
}

/* Remove any extra padding from paragraphs */
.algorithm-container p {
    padding: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Keep the log styling but make it blend in more */




/* Consistent h2 styling */
.algorithm-container h2 {
    color: #1c1c1e; /* Subtle black for headers */
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* General styling for content sections */
.algorithm-container h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: #1c1c1e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.algorithm-container p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    color: #3a3a3c;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
}

.algorithm-container strong {
    color: #007aff; /* Apple-like blue color for emphasis */
}

.algorithm-container .algorithm-result {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #333;
    margin-top: 20px;
}

/* Subtle transition effects for hover states */
.algorithm-container p:hover {
    color: #007aff;
    transition: color 0.3s ease;
}

/* General styling for content sections */
.algorithm-container h1, .algorithm-container h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: #1c1c1e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.algorithm-container p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    color: #3a3a3c;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
}

.algorithm-container .algorithm-result {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #333;
    margin-top: 20px;
}

.algorithm-container .button-container {
    margin-top: 20px;
}

.algorithm-container .algo-button {
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.algorithm-container .algo-button:hover {
    background-color: #005bb5;
}

/* Log content styling for result.html */
.log-content {
    font-family: Menlo, Monaco, "Courier New", Courier, monospace;
    background-color: #ffffff; /* Light background for contrast */
    color: #333; /* Darker text for readability */
    border-left: 4px solid #007aff; /* Blue border for emphasis */
    line-height: 1.5;
    font-size: 14px;
    text-align: left !important; /* Force text alignment to the left */
    box-shadow: none; /* Remove shadow to keep it light */
    border-radius: 8px; /* Slightly rounded corners */
    padding: 0; /* Remove all padding to align text to the left */
    margin: 0; /* Ensure no margin adds space inside the content */
    white-space: pre; /* Preserve whitespace and prevent wrapping */
    overflow-x: auto; /* Enable horizontal scrolling for long lines */
}

#logsContainer {
    overflow-x: auto;
    background-color: transparent; /* Match the page background */
    padding: 0; /* Remove padding to align content to the left */
    border-radius: 0; /* Remove border radius */
    box-shadow: none; /* Remove shadow */
    margin: 0; /* Ensure no margin adds space inside the content */
    width: 100%; /* Full width to align content to the left */
    max-width: 100%; /* Ensure container takes up the full width */
    text-align: left !important; /* Force container text alignment to the left */
}


/* Consistent h2 styling */
.algorithm-container h2 {
    color: #1c1c1e; /* Subtle black for headers */
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Styling for the Instance Details section */
.instance-details {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9f9; /* Light background for contrast */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #333;
    margin-bottom: 20px;
    white-space: pre-wrap; /* Preserve line breaks and white space */
}

/* Paragraph styling inside Instance Details */
.instance-details p {
    margin: 10px 0;
    font-size: 1rem;
    color: #3a3a3c;
}




/* Styling for the form's select dropdowns */
.container .scroll-container select {
    -webkit-appearance: none; /* Remove default dropdown styling in WebKit browsers */
    -moz-appearance: none; /* Remove default dropdown styling in Firefox */
    appearance: none; /* Remove default dropdown styling in modern browsers */
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 12px 16px; /* Consistent padding */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: #333; /* Darker text for readability */
    margin-bottom: 15px; /* Space between elements */
    width: 100%; /* Full width */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    cursor: pointer; /* Pointer cursor on hover */
    position: relative;
}

/* Custom dropdown arrow */
.container .scroll-container select::after {
    content: '▾'; /* Unicode for down arrow */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Ensures the arrow doesn't block clicks */
    font-size: 14px;
    color: #333; /* Matches text color */
}

/* On focus (when the dropdown is selected) */
.container .scroll-container select:focus {
    outline: none; /* Removes the default focus outline */
    border-color: #007aff; /* Apple-like blue border on focus */
    box-shadow: 0 0 5px rgba(0, 122, 255, 0.5); /* Blue glow for focus */
}

/* Styling for the submit button */
.container button[type="submit"] {
    background-color: #007aff;
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.container button[type="submit"]:hover {
    background-color: #005bb5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.container button[type="submit"]:focus {
    outline: none; /* Removes the default focus outline */
    box-shadow: 0 0 5px rgba(0, 122, 255, 0.5); /* Blue glow for focus */
}

/* Scoped styling for the algorithm content */
.algorithm-page .algorithm-content {
    text-align: center;
    margin: 0 auto;
    padding: 40px 20px; /* Increased padding for more space */
}

/* Apple-like styling for the algorithm name */
.algorithm-page .algorithm-name {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 48px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px; /* Increased margin for breathing room */
    word-wrap: break-word;
    text-align: center;
}

/* Apple-like styling for the algorithm description */
.algorithm-page .algorithm-description {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 22px; /* Slightly increased font size */
    color: #666;
    margin-bottom: 40px; /* Increased margin for more space */
    max-width: 700px; /* Slightly increased max-width for better readability */
    line-height: 1.8; /* Increased line height for better readability */
    text-align: center;
    margin: 0 auto;
}

/* Additional styling for the button container */
.algorithm-page .button-container {
    margin-top: 40px; /* Added margin to give space between text and buttons */
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
}
