/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #6c757d;
    padding: 10px;
    color: white;
    text-align: center;
}

header nav ul {
    list-style-type: none;
    padding: 0;
}

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

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

footer {
    background-color: #343a40;
    color: white;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #ff5722;
    text-decoration: none;
    font-weight: bold;
}

footer h3 {
    margin-bottom: 5px;
}

footer .back-to-home {
    color: white;
    background-color: #007bff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* Home page and content styles */
.intro {
    text-align: center;
    margin-top: 50px;
}

.intro h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.buttons {
    margin-top: 30px;
}

.buttons .btn {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    margin: 5px;
}

.buttons .btn:hover {
    background-color: #218838;
}

/* Styling for the image subtitle */
.image-subtitle {
    margin-top: 100px;  /* More space between the sections */
    text-align: center;
}

.image-subtitle h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Flexbox container for the image and description */
.image-description {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-top: 30px;
    gap: 20px; /* Gap between image and description */
}

/* Styling for the image container */
.image-container {
    flex: 0 0 60%;  /* Image takes up 70% of the space */
}

.image-container {
    max-width: 90%;
    overflow: hidden;
}

.image-container img {
    width: 90%;
    height: auto;
    display: block;
}
/* Styling for the description container */
.description {
    flex: 0 0 30%;  /* Description takes up 30% of the space */
    text-align: left;
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-description {
        flex-direction: column;  /* Stack image and description vertically on smaller screens */
        text-align: left;
    }

    .image-container, .description {
        flex: 0 0 100%;  /* Make both sections take full width on small screens */
    }
}


/*Dataset*/

table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
}
.pagination {
    margin-top: 20px;
}

/* Main content */
.content {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Display specific styles */
h2, h3 {
    color: #333;
}

.seq-info, .idls-ddls {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Styling for the residues */
.residue {
    font-weight: bold;
    padding: 2px 6px;
    margin-right: 2px;
    border-radius: 5px;  /* Rounded corners for residues */
}

/* Highlighting modern color scheme */
.highlight1 {
    background-color: #FF6F61;  /* IDL - Coral */
    color: white;  /* White text for contrast */
}

.highlight2 {
    background-color: #00BFFF;  /* DDL - Sky Blue */
    color: white;  /* White text for contrast */
}

.highlight4 {
    background-color: #228B22;  /* Domain - Forest Green */
    color: white;  /* White text for contrast */
}

.highlight5 {
    background-color: #FFD700;  /* Termini - Golden Yellow */
    color: black;  /* Black text for contrast */
}

.default {
    color: #333333;  /* Default color for other residues */
    background-color: #f0f0f0;  /* Light grayish background for non-highlighted residues */
}

/* Color Legend Styling */
.color-legend {
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #ddd;
}


.color-legend h3 {
    color: #333;
    font-size: 1.1em; /* Slightly smaller font size for the heading */
}

.color-legend p {
    font-size: 0.9em;  /* Smaller font size for the paragraphs */
    color: #333;
}

.color-legend span {
    padding: 5px;
    border-radius: 4px;
    margin-right: 10px;
    color: white;
    font-size: 0.9em;  /* Smaller font size for the span */
}

.color-legend .highlight1 {
    background-color: #FF6F61;  /* Coral for IDLs */
}

.color-legend .highlight2 {
    background-color: #00BFFF;  /* Sky Blue for DDLs */
}

.color-legend .highlight4 {
    background-color: #228B22;  /* Forest Green for Domains */
}

.color-legend .highlight5 {
    background-color: #FFD700;  /* Golden Yellow for Termini */
}

/* Styling for lists of IDLs and DDLs */
.idls-ddls ul {
    list-style-type: none;
    padding: 0;
}

.idls-ddls li {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.idl strong {
    color: #FF6F61;
}
.ddl strong {
    color: #00BFFF
}

/* Styling for the IDLs and DDLs tables */
.idls-ddls table {
    width: 100%;
    border-collapse: collapse;
}

.idls-ddls th, .idls-ddls td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.idls-ddls th {
    background-color: #f2f2f2;
}

/* Download Page Styles */
.download-info {
    padding: 20px;
    border-radius: 10px;
}

.download-info h2 {
    color: #333;
    font-size: 2em;
}

.download-info h3 {
    color: #007bff;
    font-size: 1.5em;
    margin-top: 20px;
}

.download-info p {
    font-size: 1.1em;
    color: #555;
}

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

.download-info ul li {
    margin: 10px 0;
}

.download-info ul li a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1em;
}

.download-info ul li a:hover {
    text-decoration: underline;
}

.download-info .btn {
    background-color: #007bff;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 20px;
    display: inline-block;
}

.download-info .btn:hover {
    background-color: #0056b3;
}

/* Help Page Styles (same as download page) */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Citation Section */
.citation p {
    font-size: 1.2em;
    color: #555;
    margin-top: 10px;
}

.citation .btn {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    margin-top: 15px;
    display: inline-block;
}

.citation .btn:hover {
    background-color: #0056b3;
}

/* Contact Section */
.contact p {
    font-size: 1.1em;
    margin: 10px 0;
}

.contact a {
    color: #007bff;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* GitHub Section */
.github ul {
    list-style-type: none;
    padding: 0;
}

.github li {
    margin: 10px 0;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .help-info {
        padding: 20px;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1.4em;
    }
}