/* Styles for the regulation templates */

.regulation-content {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: "Lato", Calibri, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333333;
}

.local-depositaries-list, .eel-regulation-list {
    list-style: none;
    padding-left: 4rem;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.local-depositaries-list li, .eel-regulation-list li {
    position: relative;
    margin-bottom: 0.5rem;
}

.local-depositaries-list li::before, .eel-regulation-list li::before {
    content: '\25B6';
    color: darkgreen;
    position: absolute;
    left: -2rem;
    font-size: 1rem;
    top: 0.3em;
}

.regulation-list, .carp-list {
    list-style: none;
    padding-left: 3rem;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.carp-list {
    padding-left: 1.5rem;
    margin: 0 0 1rem 0;
}

.regulation-list > li {
    position: relative;
    margin-bottom: 0.5rem;
}

.regulation-list > li::before {
    content: '\25CF';
    color: darkgreen;
    position: absolute;
    left: -1.2rem;
    font-size: 0.9rem;
    top: 0.1rem;
}

.regulation-list ul, .carp-list ul {
    list-style: none;
    padding-left: 2rem;
    margin: 0.5rem 0;
}

.regulation-list ul li, .carp-list ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.regulation-list ul li::before, .carp-list ul li::before {
    content: '\25B6';
    color: darkgreen;
    position: absolute;
    left: -1.2rem;
    font-size: 0.8rem;
    top: 0.3rem;
}

.number-sup {
    font-size: 0.9rem;
}

.number-sup-table {
    font-size: 0.6rem;
}

.permit-link, .eel-link, .harmful-species-link, .regulation-precision a {
    color: darkgreen;
    text-decoration: underline;
    font-style: normal;
}

.permit-link:hover, .eel-link:hover, .harmful-species-link:hover, .regulation-precision a:hover {
    color: #034903;
    cursor: pointer;
}

.permit-title, .carp-title {
    font-weight: bold;
    font-size: 1.2rem;
    font-family: "Lato", Calibri, sans-serif;
    margin: 0;
}

.regulation-precision {
    font-size: 1.2rem;
    margin: 2rem 0;
}

.regulation-precision p {
    margin: 0.2rem;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(11, 26, 43, 0.06);
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

tbody tr {
    border-bottom: 1px solid rgba(0, 100, 0, 0.4);
}

tbody tr:last-child {
    border-bottom: none;
}

.type {
    font-weight: 600;
    width: 20%;
}

.price {
    font-weight: 700;
    text-align: center;
    width: 20%;
}

.features {
    font-size: 0.8rem;
    width: 60%;
}

.features ul {
    list-style-type: none;
    padding-left: 1rem;
    margin: 0;
    width: 100%;
}

.features ul li {
    margin-bottom: 0.2rem;
    position: relative;
    padding-left: 1rem;
    word-wrap: break-word;
}

.features ul li::before {
    content: "\25B6";
    font-size: 0.6rem;
    color: #034903;
    position: absolute;
    left: 0;
    top: 0.15rem;
}

.note, .size-note {
    margin-top: 0.75rem;
    color: grey;
    font-size: 0.8rem;
}

.size-regulation-container {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: "Lato", Calibri, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333333;
}

.size-regulation-container p {
    margin: 0.2rem 0;
}

.size-note {
    text-align: right;
    padding-bottom: 0.5rem;
}

.regulation-table {
    margin: 1rem 0 0.5rem 0;
    border: none;
}

.regulation-table th {
    background-color: rgba(0, 100, 0, 0.1);
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    border-right: 1px solid rgba(0, 100, 0, 0.4);
    border-bottom: 2px solid rgba(0, 100, 0, 0.4);
}

.regulation-table th:last-child {
    border-right: none;
}

.regulation-table td {
    padding: 0.75rem;
    border-right: 1px solid rgba(0, 100, 0, 0.4);
    text-align: center;
}

.regulation-table td:last-child {
    border-right: none;
    border-left: 1px solid rgba(0, 100, 0, 0.4);
}

.regulation-table th:nth-child(1),
.regulation-table td:nth-child(1) {
    width: 20%;
}

.regulation-table th:nth-child(2),
.regulation-table td:nth-child(2) {
    width: 25%;
}

.regulation-table th:nth-child(3),
.regulation-table td:nth-child(3) {
    width: 55%;
}

.eel-redirection {
    color: darkgreen;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.eel-redirection:hover {
    color: #034903;
    cursor: pointer;
    text-decoration: underline;
}

.icon {
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
}

.material-icons.warning-icon {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-bottom: 0.2rem;
}

.bait-regulation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bait-regulation-container img {
    border-radius: 10px;
    width: 700px;
    height: auto;
}

.bait-regulation-title {
    text-align: left;
    font-size: 1.3rem;
    font-weight: bolder;
}

.reserves-text {
    margin-top: 0.2rem;
    text-align: justify;
}

.reserves-text em {
    font-style: normal;
    font-weight: bold;
}

.map-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.geopeche-map {
    display: block;
    width: 100%;
    max-width: 800px;
    height: 700px;
}

.warning-geopeche {
    color: #d12121;
    width: 100%;
    max-width: 800px;
    align-self: center;
    margin-top: 0.5rem;
}

.geopeche-link {
    text-decoration: underline;
    color: #d12121;
    transition: color 0.3s ease-in-out;
}

.geopeche-link:hover {
    color: #971010;
    cursor: pointer;
}

.fd-link {
    color: #333333;
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
}

.fd-link:hover {
    color: #121212;
    cursor: pointer;
}

@media (max-width: 1030px) {
    .bait-regulation-container img {
        width: 600px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .regulation-content, .regulation-precision {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .regulation-list, .carp-list {
        padding-left: 1rem;
        font-size: 1rem;
    }

    .regulation-list > li::before, .carpe-list > li::before {
        font-size: 0.8rem;
        left: -1rem;
        top: 0.1rem;
    }

    .regulation-list ul, .carp-list ul {
        padding-left: 1.5rem;
    }

    .regulation-list ul li::before, .carpe-list ul li::before {
        font-size: 0.7rem;
        left: -1rem;
        top: 0.3rem;
    }

    .number-sup {
        font-size: 0.8rem;
    }

    .permit-title, .bait-regulation-title, .carp-title {
        font-size: 1.1rem;
    }

    .bait-regulation-title {
        margin-bottom: .5rem;
    }

    .local-depositaries-list, .depositaries-list, .eel-regulation-list {
        padding-left: 3rem;
        font-size: 1rem;
    }

    .local-depositaries-list li::before, .eel-regulation-list li::before {
        font-size: 0.9rem;
        left: -1.2rem;
        top: 0.3em;
    }

    .depositaries-list li::before {
        font-size: 0.8rem;
        left: -1rem;
    }

    .card {
        padding: 0.75rem;
    }

    table {
        font-size: 0.85rem;
    }

    tbody td {
        padding: 0.5rem;
    }

    .icon {
        width: 1rem;
        height: 1rem;
        margin-right: 0.4rem;
    }

    .material-icons.warning-icon {
        font-size: 1rem;
        margin-right: 0.4rem;
    }

    .size-regulation-container p {
        font-size: 1.1rem;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        hyphens: auto;
    }

    .main-content .note, .main-content .size-note {
        font-size: 0.75rem;
    }

    .bait-regulation-container img {
        width: 500px;
        height: auto;
    }

    .geopeche-map {
        height: 450px;
    }

    .warning-geopeche {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .regulation-content, .regulation-precision {
        font-size: .95rem;
        padding: 0 0.5rem;
    }

    .regulation-list, .carp-list {
        padding-left: 0.8rem;
        font-size: 0.9rem;
    }

    .regulation-list > li::before, .carp-list > li::before {
        font-size: 0.7rem;
        left: -0.8rem;
        top: 0.1rem;
    }

    .regulation-list ul, .carp-list ul {
        padding-left: 1.2rem;
    }

    .regulation-list ul li::before, .carp-list ul li::before {
        font-size: 0.6rem;
        left: -0.8rem;
        top: 0.3rem;
    }

    .number-sup {
        font-size: 0.6rem;
    }

    .number-sup-table {
        font-size: 0.5rem;
    }

    .geopeche-map {
        height: 350px;
    }

    .permit-title, .bait-regulation-title, .carp-title {
        font-size: 1rem;
    }

    .local-depositaries-list, .depositaries-list, .eel-regulation-list {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }

    .local-depositaries-list li::before, .eel-regulation-list li::before {
        font-size: 0.9rem;
        left: -1.2rem;
        top: 0.3em;
    }

    .eel-regulation-list li::before {
        top: 0.1em;
    }

    .depositaries-list li::before {
        font-size: 0.7rem;
        left: -0.8rem;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tbody tr {
        margin-bottom: 0.75rem;
        background: #fff;
        border-radius: 8px;
        padding: 0.5rem;
        border-bottom: none;
    }

    td {
        display: block;
        padding: 0.5rem;
        border-bottom: 1px solid rgba(0, 100, 0, 0.4);
        width: 100%;
        box-sizing: border-box;
    }

    td:last-child {
        border-bottom: none;
    }

    .type, .price, .features {
        width: 100%;
    }

    .type {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .price {
        font-size: 0.9rem;
        text-align: left;
    }

    .features {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .features ul {
        padding-left: 0.5rem;
        width: 100%;
    }

    .features ul li {
        font-size: 0.8rem;
    }

    .note {
        font-size: 0.75rem;
    }

    .regulation-table th:nth-child(1),
    .regulation-table td:nth-child(1),
    .regulation-table th:nth-child(2),
    .regulation-table td:nth-child(2),
    .regulation-table th:nth-child(3),
    .regulation-table td:nth-child(3) {
        width: 100%;
    }

    .regulation-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
    }

    .regulation-table td {
        border-right: none;
    }

    .regulation-table td:last-child {
        border-left: none;
    }

    .icon {
        width: 0.9rem;
        height: 0.9rem;
        margin-right: 0.3rem;
    }

    .material-icons.warning-icon {
        font-size: 0.9rem;
        margin-right: 0.3rem;
    }

    .size-regulation-container p {
        font-size: 1rem;
    }

    .bait-regulation-container img {
        width: 400px;
        height: auto;
    }
}

@media (max-width: 530px) {
    .bait-regulation-container img {
        width: 350px;
        height: auto;
    }

    .size-regulation-container p {
        font-size: 0.8rem;
    }
}

@media (max-width: 460px) {
    .bait-regulation-container img {
        width: 300px;
        height: auto;
    }

    .regulation-content {
        font-size: .9rem;
    }

    .reserves-text {
        font-size: .9rem;
    }

    .warning-geopeche {
        font-size: .9rem;
    }

    #intro-reserves {
        font-size: .9rem;
    }

    .geopeche-map {
        height: 300px;
    }
}

@media (max-width: 400px) {
    .bait-regulation-container img {
        width: 250px;
        height: auto;
    }
}

@media (max-width: 360px) {
    .geopeche-map {
        height: 250px;
    }
}


@media (max-width: 460px) {
    .eel-regulation-list li::before {
        font-size: 0.8rem;
        left: -1rem;
        top: 0.2em;
    }
}

@media (max-width: 400px) {
    .eel-regulation-list li::before {
        font-size: 0.75rem;
        left: -0.9rem;
    }
}
