﻿body {
    font-family: 'Aptos', 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
}

.pest-page-header {
    margin-bottom: 40px;
}

.pest-header {
    margin-top: 15px;
    margin-bottom: 15px;
}

.pest-feature-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.pest-feature-detail-container {
    margin-left: 24px;
}

.pest-feature-header {
    line-height: 34px;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.pest-feature-detail {
    margin-bottom: 20px;
}

.pest-main-container {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
}

.pest-header-container {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
}

.pest-feature-image {
    min-width: 50%;
}

.pest-main-image img {
    aspect-ratio: 16/9;
    border-radius: 5px;
}

.pest-main-image img {
    width: 100%;
}

.pest-left-container {
    margin-right: 40px;
    min-width: 700px;
    max-width: 700px;
}

.pest-right-container {
    min-width: 400px;
    max-width: 400px;
}

.taxonomy-box {
    margin-bottom: 8px;
}

.taxonomy {
    border-top: solid thin #CCC;
    display: flex;
    padding-top: 5px;
    padding-bottom: 5px;
}

.taxonomy-label {
    font-weight: 600;
    width: 140px;
}

.taxonomy-name {
    font-style: italic;
}

.notify-box {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
}

.notify-button {
    background: var(--red-dark);
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    border-radius: 5px;
}

.bg-pest-green {
    background: var(--pest-green);
}

.bg-pest-dark-green {
    background: var(--pest-dark-green);
}

.bg-pest-green,
.bg-pest-dark-green {
    color: #fff;
    --svg-fill: #fff;
}

.btn-check:active + .btn-outline-primary, 
.btn-check:checked + .btn-outline-primary, 
.btn-outline-primary.active, 
.btn-outline-primary.dropdown-toggle.show, 
.btn-outline-primary:active, 
.btn-outline-primary:hover {
    background-color: var(--pest-green);
    border-color: var(--pest-green);
}

.btn-outline-primary {
    color: var(--pest-green);
    border-color: var(--pest-green);
    margin-right: 10px;
}

.btn-outline-primary .svg-img-white {
    filter: none;
}

.btn-outline-primary:hover .svg-img-white,
.btn-check:checked + .btn-outline-primary .svg-img-white {
    filter: invert(1); /* Inverts black to white */
}

.info-icon {
    margin-left: 3px;
    font-size: 20pt;
}

.pest-content-box {
    margin-top: 15px;
    margin-bottom: 20px;
}

.pest-content-box h3,
.pest-content-box h4 {
    margin-bottom: 4px;
}

.pest-content-box iframe {
    width: 100% !important;
}

.pest-content-box p {
    margin-bottom: 4px;
}

.accordion-link {
    --accordion-link-color: var(--pest-green);
    --accordion-link-hover: var(--pest-dark-green);
}

.accordion-main {
    margin-bottom: 0;
}

.pest-print-header {
    padding: 35px 55px;
    width: 100%;
}

.print-header-pest-logo {
    background: #fff;
    border-radius: 5px;
    padding: 7px;
    height: 30px;
    right: 200px;
}

.print-header-logo-container {
    margin-top: 5px;
    margin-right: 20px;
}

.print-header-pest-logo,
.print-header-white-logo {
    /* The only way to have logos appear on a printed page is to set a fixed position */
    /* Note: These settings only work when preparing to print a page. Print emulation has a different layout. */
    position: absolute;
    top: 55px;
}

.print-header-white-logo {
    right: 70px;
}

.print-header-pest-logo img {
    height: 16px;
}

.pest-print-footer {
    font-size: 8px;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 16px 60px;
}

.print-header-text {
    font-size: 20px !important;
    margin-bottom: 0;
}

.print-header-info {
    font-style: italic;
    font-size: 8px;
}

.print-image-box {
    margin-bottom: 20px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.print-image-box img {
    width: 100%;
    border-radius: 5px;
}

.print-caption {
    margin-top: 5px;
    font-size: 8px;
}

.print-report-info {
    margin-top: 20px;
}

.search-form {
    width: 100%;
}

@media (min-width: 1400px) {
    .pest-main-container {
        max-width: 90vw;
    }
}

@media (min-width: 700px) {
    .pest-left-container {
        min-width: 50%;
        max-width: 50%;
    }
}

@media (max-width: 500px) {
    .pest-main-container,
    .pest-feature-container {
        flex-direction: column;
    }

    .pest-feature-detail-container {
        margin-left: 0;
    }

    .pest-left-container, .pest-right-container {
        margin-right: 20px;
        min-width: 100%;
        max-width: 100%;
    }

    .print-caption {
        font-size: 8px;
    }
}

@media print {
    .pest-print-header,
    .pest-print-footer {
        /* Without this setting, the header and footer will have a white background when printing the page */
        -webkit-print-color-adjust: exact;
    }

    .pest-print-header {
        width: 100vh !important;
    }

    .pest-main-container {
        margin-top: 40px;
        margin-left: 60px
    }

    .pest-left-container {
        margin-right: 40px;
        min-width: 500px;
        max-width: 500px;
    }

    .pest-right-container {
        min-width: 450px;
        max-width: 450px;
    }
}