/* Updated fish.css */
/* Styles for the fish page */

.fish-categories {
    margin: 0 auto;
    max-width: 70rem;
}

.category {
    margin-bottom: 2rem;
}

.collapse-toggle {
    display: none;
}

label {
    cursor: pointer;
    display: block;
    padding: 0.5rem 1rem;
    background-color: #e0e0e0;
    border-radius: 5px;
    font-weight: 500;
    position: relative;
    font-size: 1.5rem;
    font-family: "Poppins", Lato, Calibri, sans-serif;
    text-align: center;
    transition: background-color 0.5s ease-in-out;
}

label::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.collapse-toggle:checked + label {
    background-color: #d0d0d0;
    border-radius: 5px 5px 0 0;
}

.collapse-toggle:checked + label::after {
    transform: translateY(-50%) rotate(180deg);
}

.collapse-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    background-color: #f9f9f9;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

.collapse-toggle:checked ~ .collapse-content {
    max-height: 150rem;
    opacity: 1;
    background-color: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.examples-container {
    padding: 2rem 1rem 1rem 1rem;
}

.fish-example {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.fish-example.image-left {
    flex-direction: row;
    gap: 5rem;
    transform: translateX(-50px);
}

.fish-example.image-right {
    flex-direction: row-reverse;
    gap: 5rem;
    transform: translateX(50px);
}

.fish-example.visible {
    opacity: 1;
    transform: translateX(0);
}

.fish-image-container {
    position: relative;
    display: inline-block;
}

.fish-image-container img {
    width: 500px;
    height: auto;
    margin: 0 1rem;
    border-radius: 5px;
}

.credit {
    position: absolute;
    bottom: 10px;
    right: 24px;
    color: #4c4c4c;
    font-size: 0.8rem;
    font-family: "Lato", Calibri, sans-serif;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 2px 5px;
    border-radius: 3px;
}

.fish-text {
    flex: 1;
    font-family: Lato, Calibri, sans-serif;
}

.fish-text h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: bold;
    font-family: "Poppins", Lato, Calibri, sans-serif;
}

.fish-text p {
    margin: 0;
    font-size: 1.2rem;
    font-family: "Lato", Calibri, sans-serif;
}

.fish-text p em {
    font-weight: bold;
    color: #d12121;
    font-style: normal;
}

.eel-regulation, .harmful-regulation {
    margin: 0;
    font-style: normal;
    font-size: 1.2rem;
    font-family: "Lato", Calibri, sans-serif;
    font-weight: bold;
    color: #d12121;
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
}

.eel-regulation:hover, .harmful-regulation:hover {
    color: #971010;
    cursor: pointer;
}

.poster-link {
    text-decoration: underline;
    color: darkgreen;
    transition: color 0.3s ease-in-out;
    font-style: italic;
}

.poster-link:hover {
    cursor: pointer;
    color: #034903;
}

.fish-text .scientific-name {
    font-style: italic;
    font-size: 1.4rem;
    font-weight: lighter;
    padding-bottom: 0.5rem;
}

.fish-example.image-left .fish-text {
    text-align: left;
}

.fish-example.image-right .fish-text {
    text-align: right;
}

@media (max-width: 1105px) {
    .fish-example.image-left,
    .fish-example.image-right {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .fish-image-container img {
        max-width: 450px;
    }
}

@media (max-width: 1000px) {
    .fish-image-container img {
        max-width: 400px;
    }

    .fish-text h3 {
        font-size: 1.3rem;
    }

    .fish-text p, .harmful-regulation, .eel-regulation {
        font-size: 1rem;
    }

    .fish-text .scientific-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .fish-categories {
        max-width: 100%;
    }

    label {
        font-size: 1.3rem;
        padding: 0.5rem 0.8rem;
    }

    label::after {
        right: 0.8rem;
    }

    .collapse-content {
        padding: 0 0.8rem;
    }

    .examples-container {
        padding: 1.5rem 0.8rem;
    }

    .fish-image-container img {
        max-width: 350px;
    }
}

@media (max-width: 823px) {
    .fish-categories {
        max-width: 100%;
    }

    label {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }

    label::after {
        right: 0.8rem;
    }

    .collapse-content {
        padding: 0 0.8rem;
    }

    .examples-container {
        padding: 1.3rem 0.6rem;
    }

    .fish-image-container img {
        max-width: 320px;
    }

    .fish-text h3 {
        font-size: 1.2rem;
    }

    .fish-text p, .harmful-regulation, .eel-regulation {
        font-size: .9rem;
    }

    .fish-text .scientific-name {
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .fish-example {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .fish-example.image-left,
    .fish-example.image-right {
        flex-direction: column;
        gap: 1rem;
    }

    .fish-image-container img {
        max-width: 300px;
        margin: 0;
    }

    .fish-text {
        text-align: center;
        max-width: 90%;
    }

    .fish-example.image-left .fish-text,
    .fish-example.image-right .fish-text {
        text-align: center;
    }

    .credit {
        right: 10px;
    }
}

@media (max-width: 500px) {
    label {
        font-size: 1.1rem;
        padding: 0.4rem 0.6rem;
    }

    label::after {
        right: 0.6rem;
    }
}

@media (max-width: 450px) {
    .collapse-content {
        padding: 0 0.6rem;
    }

    label {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
    }

    .examples-container {
        padding: 1rem 0.6rem;
    }

    .fish-image-container img {
        max-width: 250px;
    }

    .fish-text h3 {
        font-size: 1.2rem;
    }

    .fish-text p {
        font-size: 1rem;
    }

    .fish-text .scientific-name {
        font-size: 1.1rem;
    }

    .credit {
        font-size: 0.7rem;
        bottom: 5px;
        right: 5px;
        padding: 1px 3px;
    }
}

@media (max-width: 400px) {
    .fish-categories {
        max-width: 100%;
    }

    label {
        font-size: .9rem;
    }

    label::after {
        right: 0.5rem;
    }

    .collapse-content {
        padding: 0 0.5rem;
    }

    .examples-container {
        padding: 0.8rem 0.5rem;
    }

    .fish-example {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .fish-image-container img {
        max-width: 200px;
    }

    .fish-text {
        max-width: 95%;
    }

    .fish-text h3 {
        font-size: 1.1rem;
    }

    .fish-text p {
        font-size: 0.9rem;
    }

    .fish-text .scientific-name {
        font-size: 1rem;
    }

    .eel-regulation, .harmful-regulation {
        font-size: 0.9rem;
    }

    .credit {
        font-size: 0.6rem;
        bottom: 5px;
        right: 5px;
        padding: 1px 3px;
    }
}