/* Reset some default styles */
* {
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Full-screen fixed background image */
.background img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* Header Styling (uses your existing structure) */
header {
    background: rgb(0, 0, 0);
    color: white;
    border-bottom: 1px solid white;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}


nav {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    


}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 10px 20px; /* gives them "button space" */
    border-radius: 0px;
    font-size: 20px;
    font-family: 'Orbitron', sans-serif;
    transition: background 0.3s, color 0.3s;
}



.nav-item:hover {
    background: white;
    color: black;
}



/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown toggle */
.dropdown-toggle {
    cursor: pointer;
    padding: 10px;
    display: block;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
    display: none;
    position: absolute;
    background: black;
    border: 1px solid white;
    min-width: 120px;
    z-index: 100;
}

/* Dropdown links */
.dropdown-menu a {
    color: white;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
}

/* Hover styles */
.dropdown-menu a:hover {
    background: #333;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}









/* Spacer Div */
.top-spacer {
    height: 200px;

}

.top-spacer h1 {
    justify-self: center;
    padding-top: 80px;
}

.title {
    max-width: 460px;
    height: auto;
    display: block;
    margin: 0 auto; /* centers it */
    margin-top: 45px;
    opacity: 0;
    transform: translateY(20px);  /* starts slightly shifted */
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.3s;          /* delay before it starts */
}
















.page-layout {
    display: flex;
    max-width: 100%;
    margin-top: 110px;
    opacity: 0;
    transform: translateY(20px);  /* starts slightly shifted */
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 1s;          /* delay before it starts */
}

/* Sidebar styling */
.sidebar-ad {
    width: 160px; /* Standard sidebar ad size */
    min-width: 140px;
    background-color: rgba(255, 255, 255, 0.08);
    border-right: 2px solid black;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

/* Ad inside the sidebar */
.ad-vertical {
    width: 100%;
    height: 600px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-align: center;
}


/* Main Content Wrapper */
.content-wrapper {
    flex: 1;
    padding: 20px;
    max-width: calc(100% - 200px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Vertical Flex Container */
.vertical-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top Section with Left & Right Columns */
.top-section {
    display: flex;
    flex-direction: column;
    background-color: #ffffff7c;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid black;
    
}

.top-flex-inner {
    display: flex;
    gap: 20px;
}

/* Left & Right Columns */
.left-column {
    flex: 3;
    
    background-color: rgba(159, 207, 255, 0.77);
    padding: 20px;
    border-radius: 6px;
    border: 4px solid black;
    
}

.right-column {
    flex: 1;
    background-color: rgba(57, 57, 57, 0.762);
    padding: 20px;
    border-radius: 6px;
    border: 4px solid black;
}

.pool-card-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    color: rgb(0, 0, 0);
    margin-top: 10px;
    font-size: 14px;

}

.pool-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: bold;
}

.pool-card button {
    padding: 5px;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    background-color: #2ecc71;
    font-weight: bold;
    color: black;
    border: 2px solid #1e8449;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.pool-card button:hover {
    background-color: #27ae60;
    text-shadow: -2px 2px 5px white;
}

.process-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
}

/* Bottom Section */
.bottom-section {
    background-color: rgba(255, 255, 255, 0.645);
    padding: 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-20px);  /* starts slightly shifted */
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1s;          /* delay before it starts */
}

/* Footer */
footer {
    margin-top: 40px;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    border-top: 1px solid white;
}


@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Top-level Tabs */
.top-tabs {
    display: flex;
    gap: 10px;
    padding-left: 15px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

.tab-button.active {
    background-color: #fff;
    font-weight: bold;
}

/* Nested Tabs */
.nested-tabs {
    display: flex;
    gap: 10px;

}

.nested-tab-button {
    padding: 8px 15px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.nested-tab-button.active {
    background-color: #fff;
    font-weight: bold;
}

/* Tab content containers */
.tab-content,
.nested-tab-content {
    display: none;

}

.tab-content.active,
.nested-tab-content.active {
    display: block;
}

.scrollable-info {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.test-input-form {
    display: flex;
    flex-direction: column;
    flex: 2;
    gap: 10px;
    padding: 15px;
    background-color: rgba(73, 73, 73, 0.762);
    border: 2px solid black;
    font-family: 'Orbitron', sans-serif;

}

.input-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-row label {
    flex: 0 0 160px; /* Fixed width for alignment */
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid white;
    color: white;
    text-shadow: -2px 2px 1px black;
}

.input-row input {
    flex: 1;
    padding: 5px;
    max-width: 300px;
}

.test-input-form label {
    display: block;
    margin: 10px 0;
    padding-left: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.test-input-form input {
    padding: 5px;
    width: 100%;
    max-width: 300px;
}








.input-wrapper {
    display: flex;
    gap: 20px;
}

/* Sidebar on the right of input form */
.input-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    border: 2px solid black;
    width: 250px;
}

/* Ad placeholder styling */
.ad-space {
    height: 200px;
    flex: 2;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px dashed #fff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
}

/* Button styling */
.process-button-wrapper {
    display: flex;
    justify-content: center;
}

.process-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    background-color: #2ecc71;
    font-weight: bold;
    color: black;
    border: 2px solid #1e8449;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.process-button:hover {
    background-color: #27ae60;
    text-shadow: -2px 2px 5px white;
}

.process-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
}


.special-conditions {
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: white;
    text-shadow: -2px 2px 5px black;
}

.special-conditions h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: rgba(159, 207, 255, 0.9);
    text-align: center;
    margin-bottom: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9em;
    user-select: none;
}

.checkbox-grid input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: rgba(159, 207, 255, 0.9);
}







/* Container for all info items */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 30px;
}

/* Each individual info item */
.info-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

/* Section title */
.info-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #222;
    text-shadow: -2px 2px 5px white;
}

/* Description text */
.info-description {
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.5;
    padding-left: 18px;
    
}

.guest-poolinfo-container {
    background: rgb(255 255 255 / 58%);
    padding: 22px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(6px);
    font-family: 'Orbitron', sans-serif;
}

.guest-poolinfo-container h2 {
    margin: 0;
    text-align: center;
    color: #003c6c;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.guest-poolinfo-container label {
    font-weight: 600;
    color: #003c6c;
}

.guest-poolinfo-container input,
.guest-poolinfo-container select {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 1rem;
}

.guest-note {
    text-align: center;
    font-size: 0.9rem;
    color: #444;
    margin-top: 8px;
}




.user-info-panel {
    display: flex;
    flex-direction: column;
    background-color: #ffffff20;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    color: white;
    text-shadow: -2px 2px 8px black;
    font-size: 14px;
}

.infoTab {
    background-color: rgba(255, 255, 255, 0.58);
}



.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: bold;
}

.value {
    font-style: italic;
}









.horizontal-ad-banner {
    width: 100%;
    height: 90px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    color: #666;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.chem-order-help {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.chem-order-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 2px solid black;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.78);
    color: #003c6c;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.chem-order-trigger:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(0,0,0,0.24);
}

.chem-order-text {
    line-height: 1.3;
}

.chem-order-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background-color: #2ecc71;
    color: black;
    border: 2px solid #1e8449;
    font-size: 1rem;
    font-weight: bold;
}

.chem-order-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1500;
    padding: 30px 16px;
}

.chem-order-modal.show {
    display: block;
}

.chem-order-modal-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid white;
    border-radius: 14px;
    padding: 24px 24px 18px;
    box-shadow: 0 0 24px rgba(0,0,0,0.45);
}

.chem-order-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: white;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.chem-order-title {
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: rgba(159, 207, 255, 0.95);
    font-size: 1.5rem;
}

.chem-order-note {
    margin: 0 auto 18px;
    max-width: 900px;
    text-align: center;
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.chem-order-image {
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
    background: white;
}

@media screen and (max-width: 700px) {
    .chem-order-help {
        margin-top: 14px;
    }

    .chem-order-trigger {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .chem-order-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.9rem;
    }

    .chem-order-modal {
        padding: 14px 8px;
    }

    .chem-order-modal-content {
        padding: 20px 12px 12px;
    }

    .chem-order-title {
        font-size: 1rem;
        padding-right: 24px;
    }

    .chem-order-note {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .chem-order-image {
        max-height: 65vh;
    }
}







.result-card-wrapper {
    position: relative;
    margin-bottom: 40px; /* space between each result */
    width: 100%;
}

.result-status {
    position: relative;
    padding: 10px 20px;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    z-index: 2;
    text-shadow: 1px 1px 1px black;
}

/* Example status classes (color-coded) */
.too-low {
    background-color: #00a2ff; 
    text-shadow: 1px 1px 1px black;
}

.little-low {
    background-color: #00e5ff; 
    text-shadow: 1px 1px 1px black;
}

.perfect {
    background-color: #15d700; 
    text-shadow: 1px 1px 1px black;
}

.slightly-high {
    background-color: #e7a700; 
    text-shadow: 1px 1px 1px black;
}

.slightly-off {
    background-color: #e7a700; 
    text-shadow: 1px 1px 1px black;
}

.too-high {
    background-color: #ff0000; 
    text-shadow: 1px 1px 1px black;
}

/* Recommendation card below the status */
.result-recommendation {
    position: relative;
    top: -5px;
    color: white;
    background-color: #3b3b3b;
    text-shadow: 2px 2px 1px black;
    padding: 20px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.result-recommendation h4 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 1px solid white;
}

.result-recommendation p {
    padding-top: 10px;
    font-size: 18px;
}









.test-history-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 10px;
}

.test-history-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 3px solid #000000;
    padding: 10px 0;
}

.test-history-row.header {
    font-weight: bold;
    border-bottom: 2px solid #444;
    background-color: #f5f5f5;
}

.history-cell {
    flex: 1 1 9%;
    padding: 5px;
    text-align: center;
    font-size: 1.2rem;
}

.report-button {
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

.report-button:hover {
    background-color: #2980b9;
}

.report-button:active {
    transform: scale(0.95);
}

.pagination button {
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
}

.pagination button:disabled {
  background-color: #ddd;
  cursor: default;
  font-weight: bold;
}


.how-to-test {
    display: flex;
    flex-direction: column;
    background-color: #ffffffcc;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid black;
}

.test-steps {
    border-bottom: 3px solid black;
    padding-bottom: 30px;
    padding-left: 6%;
    padding-right: 7%;
}

.test-step-p {
    font-size: 1.2rem;
    color: #000000;
    line-height: 1.5;
    padding-bottom: 30px;
    padding-left: 18px;
}

.drop-test-img {
    float: right; 
    width:270px; 
    padding-left: 30px;
}

.test-strip-img {
    float: left; 
    width:270px; 
    padding-right: 30px;
}

.digital-test-img {
    float: right; 
    width:270px; 
    padding-left: 30px;
}

.how-to-input-img {
    float:left; 
    width:400px; 
    padding-right: 30px;
}

.how-to-manage-img {
    float:right; 
    width:600px; 
    padding-left: 30px;
}

.how-to-conditions-img {
    float:right; 
    width:400px; 
    padding-left: 30px;
}

.how-to-view-img {
    float:right; 
    width:400px; 
    padding-left: 30px;
}








.ad-collage {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding: 10px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 10px;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
}

/* Common ad unit styling */
.ad-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #aaa;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

/* Individual ad sizes */
.ad-rectangle {
    height: 250px;
}

.ad-rectangle-large {
    height: 280px;
}

.ad-leaderboard {
    height: 90px;
    grid-column: span 2;
}

.ad-skyscraper {
    height: 600px;
}


.comparison-table {
    background: rgba(255,255,255,0.85);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(6px);
}

/* Title */
.compare-title {
    text-align: center;
    font-family: "Orbitron", sans-serif;
    color: rgba(159, 207, 255, 0.9);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Table layout */
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    padding: 12px;
    font-size: 1.2rem;
    font-family: "Orbitron", sans-serif;
    color: white;
}

.good-col {
    background: #2e86ff;   /* WaterFall blue */
}

.bad-col {
    background: #d64545;   /* red for contrast */
}

.comparison-table td {
    padding: 14px;
    border-bottom: 1px solid #cfd6df;
    color: #00334d;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

/* Last row has no border */
.comparison-table tr:last-child td {
    border-bottom: none;
}




/* ---------- Equipment Info Pages ---------- */

.equipment-page-container {
    display: flex;
    justify-content: flex-start;   /* keep everything aligned from the left */
    align-items: flex-start;
    gap: 10px;                     /* space between sidebar and main content */
    padding: 60px 1% 80px;
    color: white;
    font-family: 'Barlow Semi Condensed', sans-serif;
    max-width: 1300px;             /* keeps things centered within viewport */
}

/* Sidebar */
.equipment-sidebar {
    flex: 0 1 250px;
    background-color: rgba(57, 57, 57, 0.762);
    padding: 20px;
    border-radius: 10px;
    margin-right: 40px;
    margin-left: 55px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.equipment-sidebar h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: rgba(159, 207, 255, 0.9);
    margin-bottom: 15px;
    text-align: center;
}

.equipment-sidebar ul {
    list-style: none;
    padding: 0;
}

.equipment-sidebar li {
    margin-bottom: 10px;
}

.equipment-sidebar a {
    color: #ffffffcc;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.equipment-sidebar a:hover,
.equipment-sidebar a.active {
    background-color: rgba(159, 207, 255, 0.2);
    color: white;
}

/* Main content */
.equipment-content {
    flex: 1 1 700px;
    max-width: 900px;
}

.accordion-section {
    margin-bottom: 23px;
    border-bottom: 2px solid white;
    text-shadow: 2px 2px 2px black;
}

.accordion {
    margin-top: 40px;
}

.accordion-btn {
    width: 100%;
    font-weight: bold;
    background-color: rgb(0 0 0 / 70%);
    color: white;
    cursor: pointer;
    padding: 18px 20px;
    border: 2px solid black;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    font-family: 'Orbitron', sans-serif;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.accordion-btn:hover {
    background-color: rgba(14, 18, 22, 0.473);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(159, 207, 255, 0.4);
}

.accordion-btn.active {
    background-color: rgb(3 129 255 / 71%);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgb(0 0 0 / 89%);
    border-left: 3px solid rgba(159, 207, 255, 0.5);
    border-radius: 0 0 6px 6px;
    margin-bottom: 10px;
    padding: 0 35px;
    font-size: 1.3rem;
}

.accordion-panel p, .accordion-panel ul {
    margin: 15px 0;
    line-height: 1.7;
    color: #ffffffd9;
}

.pipe-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.95em;
}

.pipe-table th, .pipe-table td {
    border-bottom: 1px solid #ffffff4d;
    padding: 8px;
    text-align: center;
}

.pipe-table th {
    color: rgba(159, 207, 255, 0.9);
    font-weight: 600;
}




/* about */

.about-container {
    display: flex;
    justify-content: center;
    padding: 100px 20px 80px;
    color: white;
}

.about-panel {
    background-color: rgb(0 0 0 / 89%);
    border-radius: 15px;
    padding: 40px 60px;
    max-width: 900px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.about-logo {
    width: 160px;
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 8px rgba(159, 207, 255, 0.5));
}

.about-panel h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    color: rgba(159, 207, 255, 0.9);
}

.divider {
    border: none;
    border-bottom: 1px solid rgba(159, 207, 255, 0.3);
    margin: 15px auto 25px;
    width: 80%;
}

.about-content h2, .about-content h3 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: rgba(159, 207, 255, 0.85);
    margin-top: 25px;
}

.about-content p {
    padding-top: 23px;
    font-size: 20px;
    line-height: 1.7;
    color: #ffffffd9;
    margin-bottom: 15px;
}





.tier-features {
  list-style: none;      /* remove default bullets */
  padding: 0;            /* reset padding */
  margin: 0;             /* reset margin */
}

.tier-features li {
  position: relative;
  padding-left: 24px;    /* space for the check icon */
  margin-bottom: 8px;    /* space between items */
  font-size: 0.95em;
  color: #ffffff;        /* or whatever text color you use */
}

.tier-features li.tier-yes::before {
    content: "✔";
    color: #00d4ff; /* your aqua color */
    font-size: 1.1em;
}

/* Not included ✘ */
.tier-features li.tier-no::before {
    content: "✘";
    color: #ff4d4d; /* tasteful light red */
    font-size: 1.1em;
}






/* ---------- Mobile Nav ---------- */

.hamburger {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Mobile sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    transition: left 0.3s ease;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-family: 'Orbitron', sans-serif;
    padding-top: 14px;
}

.mobile-nav select {
    padding: 10px;
    font-size: 16px;
    margin-top: 5px;
}

.mobile-lang-label {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}

.mobile-nav hr {
    border: none;
    border-top: 1px solid #444;
    margin: 10px 0;
}

/* Open state */
.mobile-nav.open {
    left: 0;
}

/* Feedback Widget */
#feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 14px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    color: white;
    z-index: 999;
    max-width: 260px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

#feedback-widget button {
    margin-top: 8px;
    width: 100%;
    padding: 6px;
    font-family: 'Orbitron', sans-serif;
    background: #2ecc71;
    border: 2px solid #1e8449;
    cursor: pointer;
}

#feedback-widget button:hover {
    background: #27ae60;
}

/* Modal Overlay */
#feedback-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

/* Modal Box */
.feedback-modal-content {
    background: rgb(0 0 0 / 90%);
    border: 1px solid white;
    width: 90%;
    max-width: 420px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.feedback-modal-content textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 8px;
}

.feedback-modal-content button {
    width: 100%;
    padding: 8px;
    background: #2ecc71;
    border: 2px solid #1e8449;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
}

#feedback-close {
    float: right;
    cursor: pointer;
    font-size: 22px;
}

.feedback-note {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 8px;
}






















  /* login/register */


  .login-container {
    margin-top: 400px;
    width: 800px; /* Adjust width as needed */
    height: 400px; /* Adjust height as needed */
    background-color: #333333c8; /* Just for visualization */
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.489);
  }

  .signin {
    margin-top: 70px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 36px;
    font-family: 'Barlow Semi Condensed';
    font-weight: 400;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7);
  }

  .userinput {
    display: block;
    margin: 0 auto 20px; /* Center the input horizontally and add space between them */
    padding: 8px;
    border-radius: 10px;
  }

  .input-container {
    margin-top: 20px;
    text-align: center;
  }

  .enter {
    width: 150px;
    border: 2px solid #333;
    height: 30px;
    border-radius: 5px;
  }

.register {
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.register a:hover {
    cursor: pointer;
}

@media screen and (max-width: 1025px) {
    
    /* Stack columns */
    .top-flex-inner {
        flex-direction: column;
    }

    /* Make each section full-width */
    .left-column,
    .right-column {
        width: 100%;
    }

    /* Optional: prevent squeezing */
    .left-column {
        order: 1;
    }

    .right-column {
        order: 2;
    }

    .tab-button {
        font-size: xx-large;
    }

    .test-input-form label {
        font-size: 24px;
    }

    .pool-card {
        font-size: 12px;
    }

    .pool-card button {
        font-size: 12px;
    }

    .nested-tab-button {
        font-size: x-large;
    }

    .guest-poolinfo-container label {
        font-size: x-large;
    }

    .guest-poolinfo-container label {
        font-size: xx-large;
    }

    .checkbox-grid label {
        font-size: x-large;
    }

    .process-button {
        font-size: 32px;
    }

    .too-low, .little-low, .perfect, .slightly-high, .too-high {
        font-size: xx-large;
    }

    .checkbox-grid label {
        font-size: xx-large;
    }

    .result-recommendation p {
        font-size: 22px;
    }

    .history-cell {
        font-size: 0.6rem;
    }

    





    .equipment-page-container {
        flex-direction: column;
        align-items: center;
    }

    .equipment-sidebar {
        margin-right: 0;
        margin-bottom: 30px;
        width: 90%;
    }

    .equipment-content {
        width: 100%;
    }

    .equipment-sidebar h3 {
        font-size: xx-large;
    }

    .equipment-sidebar a {
        font-size: x-large;
    }






   
}



@media screen and (max-width: 830px) {
    .content-wrapper {
        max-width: calc(100% - 0px);
    }

    .sidebar-ad {
        display: none;
    }

    .nav-item {
        font-size: 14px;
        padding: 0px;
    }

    
}




@media screen and (max-width: 700px) {
    .content-wrapper {
        max-width: calc(100% - 0px);
    }

    .nav-item {
        font-size: 1px; /*temporary*/
        padding: 1px 20px;
    }

    .sidebar-ad {
        display: none;
    }

    .title {
        width: 150px;
        margin-top: 14px;
    }

    .top-spacer {
        height: 0px;
    }

    .top-tabs {
        padding-left: 3px;
    }

    .tab-button {
        font-size: 14px;
        border: solid 3px black;
        padding: 6px 12px;
    }

    .nested-tab-button {
        font-size: 12px;
    }

    .test-input-form label {
        font-size: 15px;
    }

    .nested-tabs-button {
        font-size: 16px;
    }

    .test-input-form {
        gap: 0px;
    }

    .test-input-form input {
        height: 20px;
        margin-left: 0px;
    }

    .input-row label {
        flex: 0 0 80px;
    }

    .input-sidebar {
        display: none;
    }

    .guest-poolinfo-container label {
        font-size: 20px;
    }

    .guest-poolinfo-container input {
            height: 32px;
    }

    .special-conditions h2 {
        font-size: 1.4em;
    }

    .checkbox-grid label {
        font-size: 0.8em;
    }

    .pool-card {
        font-size: 8px;
    }

    .pool-card button {
        font-size: 10px;
    }

    .process-button {
        font-size: 18px;
    }

    .history-cell {
        font-size: 4px;
    }

    .drop-test-img {
        width:155px; 
    }

    .test-strip-img {
        width: 165px;
    }

    .digital-test-img {
        width: 160px;
    }

    .how-to-input-img {
        width: 206px;
    }

    .how-to-manage-img {
        width: 296px;
    }

    .how-to-conditions-img {
        width: 252px;
    }

    .how-to-view-img {
        width: 284px;
    }



    .about-panel h1 {
        font-size: 1em;
    }

    .about-content h2, .about-content h3 {
        font-size: 16px;
        
    }

    .about-container {
        padding: 16px 20px 80px;
    }

    .tier-features li {
        font-size: 0.7em;

    }

    .equipment-sidebar {
        display: none;
    }

    .accordion-btn {
        padding: 5px 10px;
        font-size: 0.8em;
    }

    .accordion-panel {
        font-size: 0.7em;
    }

    .equipment-page-container {
        padding: 0px 1% 80px;
    }



    .login-container {
        margin-top: 195px;
        width: 250px;
        height: 200px;
    }

    .signin {
        margin-top: 10px;
        margin-bottom: 20px;
        font-size: 20px;
    }

    .userinput {
        height: 22px;
        width: 132px;
    }

    .enter {
        width: 150px;
        height: 30px;
    }

    .too-low, .little-low, .perfect, .slightly-high, .too-high {
        font-size: 18px;
    }
    
    .result-recommendation p {
        font-size: 14px;
    }

    #feedback-widget {
        top: 10px;
        bottom: auto;
        right: 10px;
        max-width: 160px;
        padding: 8px 10px;
        font-size: 0.7em;
        border-radius: 8px;
    }

    #feedback-widget .feedback-text {
        font-size: 10px;
    }

    #feedback-widget button {
        padding: 6px;
        font-size: 0.75em;
    }

    .feedback-modal-content {
        margin: 20% auto;
        width: 92%;
    }

    #feedback-toast {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.85);
        color: white;
        padding: 10px 18px;
        border-radius: 8px;
        font-family: 'Orbitron', sans-serif;
        font-size: 0.9em;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
        z-index: 2000;
    }

    #feedback-toast.show {
        opacity: 1;
    }












    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    header {
        justify-content: flex-start;
    }
}










@media (max-width: 800px) {
    .about-panel {
        padding: 25px;
    }
}