:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #ecf0f1;
    --text-color: #34495e;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}

header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin-top: 1rem;
}

nav ul li {
    display: inline;
    margin-right: 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

main {
    padding: 2rem 0;
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    margin-top: 0;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

form {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

input, select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

input[type="submit"]:hover {
    background-color: var(--secondary-color);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

table, th, td {
    border: 1px solid var(--border-color);
}

th, td {
    padding: 0.8rem;
    text-align: left;
    word-wrap: break-word;
    max-width: 300px; /* Adjust this value as needed */
}

th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:nth-child(even) {
    background-color: var(--light-gray);
}

@media (max-width: 768px) {
    th, td {
        font-size: 12px;
        padding: 0.5rem;
    }
}

.flash-message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: bold;
}

.flash-message.success {
    background-color: var(--success-color);
    color: #fff;
}

.flash-message.error {
    background-color: var(--error-color);
    color: #fff;
}

.results {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
}

.results h3 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.results ul {
    list-style-type: none;
    padding: 0;
}

.results li {
    margin-bottom: 12px;
    padding: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.results strong {
    color: var(--secondary-color);
    margin-right: 5px;
}

.save-data-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.save-data-container span {
    margin-right: 10px;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.intro-text {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.center-button {
    display: block;
    width: 200px;
    margin: 25px auto;
}

.about-section, .research-section, .limitations-section {
    margin: 25px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.about-section h3, .research-section h3, .limitations-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.team-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.team-member {
    width: 280px;
    text-align: center;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: auto; /* Makes the width dynamic */
    height: auto; /* Makes the height dynamic */
    max-width: 200px; /* Maintains the max width */
    max-height: 200px; /* Maintains the max height */
    border-radius: 50%; /* Keeps the circular shape */
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}
.team-member h3 {
    margin-top: 10px;
    font-size: 1.2em;
    color: var(--primary-color);
}

.team-member p {
    margin-top: 5px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .team-member {
        width: 100%;
    }
}

/* Loading bar styles */
#nprogress .bar {
    background: var(--primary-color) !important;
}

#nprogress .peg {
    box-shadow: 0 0 10px var(--primary-color), 0 0 5px var(--primary-color) !important;
}

#nprogress .spinner-icon {
    border-top-color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
}

.research-paper {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.research-paper h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.research-paper p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.research-poster {
    max-width: 100%;
    height: auto;
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    margin: 20px 0;
    transition: opacity 0.5s ease; /* Smooth transition */
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 20px; /* Space between button and image */
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}


.coming-soon {
    text-align: center;
    padding: 100px 20px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.coming-soon h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.coming-soon p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.coming-soon a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.coming-soon a:hover {
    color: var(--secondary-color);
}
