/* General body styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0fdf4; /* light green background */
}

/* ---------------- HOME PAGE ---------------- */

/* Header banner of the home page */
.home-banner {
    background-color: #69b578;
    padding: 20px;
    text-align: center;
    color: white;
}

/* Main title styling */
.home-title-box {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

/* DNA icon next to the title */
.home-dna-icon {
    vertical-align: middle;
    margin-right: 10px;
}

/* Navigation bar strip below the banner */
.home-nav-strip {
    background-color: #9bd6a3;
    padding: 25px 0;
    text-align: center;
}

/* Container for the navigation buttons */
.home-nav-buttons {
    display: inline-block;
}

/* Navigation button style */
.home-nav-button {
    background-color: #69b578;
    color: white;
    padding: 12px 24px;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #69b578;
    font-size: 16px;
}

/* Hover effect for navigation buttons */
.home-nav-button:hover {
    background-color: #57a36e;
}

/* Container holding the image and description */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

/* Image section */
.home-image-box {
    text-align: center;
    margin-bottom: 20px;
}

/* Image appearance */
.home-image {
    width: 350px;
    border-radius: 10px;
    border: 3px solid #9bd6a3;
}

/* Description box styling */
.home-desc-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 70%;
    text-align: justify;
    font-size: 16px;
    border: 1px solid #ccc;
}

/* Emphasized text inside description */
.home-desc-box p strong {
    color: #2e7d32;
    font-weight: bold;
}

/* Spacing and line-height for description text */
.home-desc-box p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Button to go to query page */
.home-start-button {
    display: inline-block;
    background-color: #69b578;
    color: white;
    padding: 12px 24px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* Hover effect for start button */
.home-start-button:hover {
    background-color: #57a36e;
}

/* Footer at bottom of home page */
.home-footer {
    background-color: #69b578;
    color: white;
    text-align: center;
    padding: 15px 30px;
    font-size: 14px;
}

/* Links inside the footer */
.footer-link {
    color: #1e5631;
    text-decoration: underline;
    margin-left: 10px;
}

/* ---------------- QUERY PAGE ---------------- */

/* Header banner for query page */
.query-banner {
    background-color: #69b578;
    padding: 20px;
    text-align: center;
    color: white;
}

/* Query page title */
.query-title-box {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

/* Icon next to title */
.query-dna-icon {
    vertical-align: middle;
    margin-right: 10px;
}

/* Navigation strip on query page */
.query-nav-strip {
    background-color: #9bd6a3;
    padding: 25px 0;
    text-align: center;
}

/* Container for nav buttons */
.query-nav-buttons {
    display: inline-block;
}

/* Navigation button styling */
.query-nav-button {
    background-color: #69b578;
    color: white;
    padding: 12px 24px;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #69b578;
    font-size: 16px;
}

/* Hover effect for nav button */
.query-nav-button:hover {
    background-color: #57a36e;
}

/* Main form container */
.query-container {
    background-color: white;
    padding: 30px;
    width: 70%;
    margin: 30px auto;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* Labels above form inputs */
.query-container label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
    color: #2e7d32;
    font-size: 16px;
}

/* Styling for textarea, input, and select fields */
.query-container textarea,
.query-container input[type="text"],
.query-container select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #aaa;
}

/* File input spacing */
.query-container input[type="file"] {
    margin-top: 10px;
}

/* Submit and Reset buttons */
.query-container input[type="submit"],
.query-container input[type="reset"] {
    background-color: #69b578;
    color: white;
    padding: 12px 20px;
    margin: 20px 10px 0 0;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

/* Hover effect for submit/reset buttons */
.query-container input[type="submit"]:hover,
.query-container input[type="reset"]:hover {
    background-color: #57a36e;
}

/* Footer styling for query page */
.query-footer {
    background-color: #69b578;
    color: white;
    text-align: center;
    padding: 15px 30px;
    font-size: 14px;
}

/* ---------------- RESULTS PAGE ---------------- */

/* Header banner for results */
.results-banner {
    background-color: #69b578;
    padding: 20px;
    text-align: center;
    color: white;
}

/* Title box in results page */
.results-title-box {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

/* DNA icon next to title */
.results-dna-icon {
    vertical-align: middle;
    margin-right: 10px;
}

/* Navigation strip for results page */
.results-nav-strip {
    background-color: #9bd6a3;
    padding: 25px 0;
    text-align: center;
}

.results-nav-buttons {
    display: inline-block;
}

.results-nav-button {
    background-color: #69b578;
    color: white;
    padding: 12px 24px;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #69b578;
    font-size: 16px;
}

.results-nav-button:hover {
    background-color: #57a36e;
}

/* Main results container */
.results-container {
    background-color: white;
    padding: 30px;
    width: 80%;
    margin: 30px auto;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* Box showing number of results */
.results-count-box {
    background-color: #e1f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #2e7d32;
    text-align: center;
}

/* Total results text */
.results-count {
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

/* Section headings */
.section-header {
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 22px;
}

/* Header color for perfect palindromes */
.perfect-header {
    color: #2e7d32;
    border-bottom: 2px solid #2e7d32;
}

/* Header color for spacer palindromes */
.spacer-header {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
}

/* Container for each result item */
.results-box {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 20px; 
}

/* Box style for perfect results */
.perfect-box {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
}

/* Box style for spacer results */
.spacer-box {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
}

/* Label text in result */
.label {
    font-weight: bold;
    color: #333;
}

/* DNA sequence styling */
.perfect-sequence,
.spacer-sequence {
    font-weight: normal;
    font-family: monospace;
    font-size: 20px;
    color: #000000;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Optional extra styling for result info */
.perfect-type,
.spacer-type,
.perfect-position,
.spacer-position {
    font-weight: normal;
}

/* Export button styling */
.results-export-button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 28px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

/* Hover effect for export button */
.results-export-button:hover {
    background-color: #45a049;
}

/* Footer for results page */
.results-footer {
    background-color: #69b578;
    color: white;
    text-align: center;
    padding: 15px 30px;
    font-size: 14px;
}
