/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 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;
    margin-bottom: 15px;
}

.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;
}

/* 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;
    
}




.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;
}

.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);
}







.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;
}





.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;
}





/* ---------- 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;
}

@media (max-width: 1000px) {
    .equipment-page-container {
        flex-direction: column;
        align-items: center;
    }

    .equipment-sidebar {
        margin-right: 0;
        margin-bottom: 30px;
        width: 90%;
    }

    .equipment-content {
        width: 100%;
    }
}








/* 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 {
    font-family: 'Orbitron', sans-serif;
    color: rgba(159, 207, 255, 0.85);
    margin-top: 25px;
}

.about-content p {
    line-height: 1.7;
    color: #ffffffd9;
    margin-bottom: 15px;
}

@media (max-width: 800px) {
    .about-panel {
        padding: 25px;
    }
}
