@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('nunito-v31-latin-regular.woff2') format('woff2');
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 360px;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #e5e5e5;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    color: #222;
}

header {
    position: relative;
    background-color: #4CAF50;
    color: #ffffff;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    line-height: 1.1;
}

.header-lang,
.header-social {
    position: absolute;
    top: 5px;
}

.header-lang {
    right: 5px;
}

.header-social {
    left: 5px;
}

header svg {
    max-width: 60px;
    height: auto;
    color: #ffffff;
}

.header-text {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.sub-header-text {
    font-size: 1rem;
    margin: 0;
}

nav {
    background-color: #222;
    border-radius: 0 0 15px 15px;
    height: 42px;
    overflow: hidden;
    border-bottom: 1px solid #222;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

nav a {
    display: inline-block;
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 600;
}

main {
    flex: 1;
}

footer {
    background-color: #222;
    color: #ffffff;
    border-radius: 15px 15px 0 0;
    border-top: 1px solid #222;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

.table-container {
    overflow-x: auto;
    margin: 0 10px;
    border: 1px solid #222;
    border-radius: 15px;
    background-color: #ffffff;
}

table {
    border-collapse: collapse;
    width: 100%;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
}

th, td {
    padding: 8px;
    text-align: left;
    color: #222;
}

th {
    background-color: #e0e0e0;
    cursor: pointer;
    font-weight: 700;
}

.nested-table th {
  cursor: unset;
}

.search-container {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin: 10px 10px;
    border-radius: 15px;
}

.search-container input {
    height: 36px;
    padding: 0.5rem;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
    border: 1px solid #222;
    border-radius: 15px;
    background-color: #fcfcfc;
    color: #222;
}

.search-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 7px 7px;
    cursor: pointer;
    background-color: #e0e0e0;
    color: #222;
    border: 1px solid #222;
    border-radius: 15px;
    font-weight: 600;
}

.reset-button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    background-color: #c62828;
    color: #ffffff;
    border: 1px solid #222;
    border-radius: 15px;
    margin-bottom: 10px;
    font-weight: 600;
    transform: translateX(3px);
}

input[type='radio'] {
    accent-color: #4CAF50;
}

.side-nav {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 210px;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.25);
    -ms-overflow-style: none;
    scrollbar-width: none;
    border: 1px solid #222;
    border-radius: 15px 0 0 15px;
}

.side-nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-grow: 1;
}

.side-nav-header {
    display: flex;
    justify-content: center;
}

.side-nav-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

.longline {
    width: 100%;
    margin: 5px 0 20px;
}

.shortline {
    width: 110px;
    margin: 0 auto;
    transform: translateX(3px);
}

hr {
    border: none;
    border-top: 1px solid #222;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group-headline {
    font-weight: bold;
    color: #111;
    transform: translateX(3px);
}

.filter-group label {
    display: block;
    margin: 5px 0;
}

.collapsible-header svg {
    height: 14.5px;
}

.collapsible-header a {
    background-color: transparent;
    border-radius: 15px;
    height: 17px;
    color: #222;
}

.collapsible-content {
    display: none;
}

.collapsible-content table {
    border-collapse: collapse;
    width: 100%;
    border: none;
    border-radius: unset;
}

.collapsible-content th,
.collapsible-content td {
    padding: 0;
    text-align: center;
}

.alt-row {
    background-color: #f0f0f0;
}

.collapsible-header td:nth-child(1),
.collapsible-header td:nth-child(4),
.collapsible-header td:nth-child(7),
th:nth-child(1),
th:nth-child(4),
th:nth-child(7) {
    border-right: 1px solid #222;
}

.nested-table th:nth-child(1),
.nested-table td:nth-child(1),
.nested-table th:nth-child(4),
.nested-table td:nth-child(4) {
    border-right: none;
}

td:nth-child(3),
td:nth-child(6),
td:nth-child(9),
th:nth-child(3),
th:nth-child(6),
th:nth-child(9) {
    white-space: nowrap;
}

input[type="text"]:focus,
nav a:focus,
main a:focus,
button:focus,
textarea:focus,
select:focus {
    outline: 1px solid #4CAF50;
    outline-offset: 1px;
    border-radius: 15px;
}

nav a:hover {
    background-color: #e5e5e5;
    color: black;
    border-radius: 15px;
}

.header-lang svg:hover,
.header-social svg:hover {
    color: #111111;
}

.search-container a:hover {
    background-color: #4CAF50;
    color: #ffffff;
    border-color: #4CAF50;
}

tr:not(:has(th)):hover {
    background-color: #4CAF50;
    color: #ffffff;
}

tr:not(:has(th)):hover a {
    background-color: #ffffff;
    color: #222;
    text-decoration: underline;
}

.collapsible-header a:hover {
    background-color: #4CAF50;
    color: #222;
}

.reset-button:hover {
    background-color: #b71c1c;
}

body.dark-mode {
    background-color: #121212;
    color: #e7e7e7;
}

body.dark-mode header {
    background-color: #2e7d32;
    color: #e7e7e7;
}

body.dark-mode header svg {
    color: #e7e7e7;
}

body.dark-mode nav {
    background-color: #111;
    border-bottom: 1px solid #2e7d32;
    border-left: 1px solid #2e7d32;
    border-right: 1px solid #2e7d32;
}

body.dark-mode nav a {
    color: #e7e7e7;
}

body.dark-mode nav a:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark-mode footer {
    background-color: #111;
    color: #e7e7e7;
    border-top: 1px solid #2e7d32;
    border-right: 1px solid #2e7d32;
    border-left: 1px solid #2e7d32;
}

body.dark-mode footer a {
    color: #e7e7e7;
}

body.dark-mode .table-container {
    background-color: #161616;
    border-color: #555;
}

body.dark-mode table {
    background-color: #161616;
}

body.dark-mode th,
body.dark-mode td {
    color: #e7e7e7;
}

body.dark-mode th {
    background-color: #242424;
}

body.dark-mode tr {
    background-color: #161616;
    border-color: #555;
}

body.dark-mode .collapsible-header td:nth-child(1),
body.dark-mode .collapsible-header td:nth-child(4),
body.dark-mode .collapsible-header td:nth-child(7),
body.dark-mode th:nth-child(1),
body.dark-mode th:nth-child(4),
body.dark-mode th:nth-child(7) {
  border-right: 1px solid #555;
}

body.dark-mode .nested-table th:nth-child(1),
body.dark-mode .nested-table td:nth-child(1),
body.dark-mode .nested-table th:nth-child(4),
body.dark-mode .nested-table td:nth-child(4) {
  border-right: none;
}

body.dark-mode .alt-row {
    background-color: #1f1f1f;
}

body.dark-mode .search-container input {
    background-color: #1a1a1a;
    border-color: #666;
    color: #e7e7e7;
}

body.dark-mode .search-container a {
    background-color: #242424;
    border-color: #666;
    color: #e7e7e7;
}

body.dark-mode .search-container a:hover {
    background-color: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff;
}

body.dark-mode .side-nav {
    background-color: #161616;
    border-color: #555;
}

body.dark-mode .side-nav-header h3,
body.dark-mode .side-nav-header h2,
body.dark-mode .filter-group-headline {
    color: #e7e7e7;
}

body.dark-mode hr {
    border-top-color: #555;
}

body.dark-mode tr:not(:has(th)):hover {
    background-color: #2e7d32;
    color: #ffffff;
}

body.dark-mode tr:not(:has(th)):hover a {
    background-color: #ffffff;
    color: #111;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode nav a:focus,
body.dark-mode main a:focus,
body.dark-mode button:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    outline: 1px solid #2e7d32;
}

body.dark-mode .collapsible-header a:hover {
    background-color: #2e7d32;
}

body.dark-mode input[type="radio"] {
  accent-color: #2e7d32;
}

body.dark-mode .collapsible-header a {
    color: #e7e7e7;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

body.dark-mode p,
body.dark-mode li {
    color: #e7e7e7;
}

body.dark-mode main a {
    color: #81c784;
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: visible;
        white-space: unset;
        border: unset;
    }

    table {
        display: grid;
        border: none;
        background-color: transparent;
    }

    tbody {
        display: grid;
        width: 100%;
        background-color: #e5e5e5;
        border-radius: 15px;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 10px;
        border: 1px solid #222;
        border-radius: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        background-color: #ffffff;
    }

    td:nth-child(1),
    td:nth-child(4),
    td:nth-child(7) {
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .collapsible-header td:nth-child(1),
    .collapsible-header td:nth-child(4),
    .collapsible-header td:nth-child(7) {
        border-right: none;
    }

    body.dark-mode .collapsible-header td:nth-child(1),
    body.dark-mode .collapsible-header td:nth-child(4),
    body.dark-mode .collapsible-header td:nth-child(7) {
        border-right: none;
    }

    .collapsible-header td::before {
        min-width: 120px;
    }

    .collapsible-content td {
        border-bottom: none;
    }

    .nested-table td {
        padding: 0 4px;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    td {
        display: flex;
        justify-content: space-between;
        text-align: left;
        border: none;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #222;
    }

    body.dark-mode tbody {
        background-color: #121212;
    }

    body.dark-mode td::before {
        color: #e7e7e7;
    }

    body.dark-mode td:nth-child(1),
    body.dark-mode td:nth-child(4),
    body.dark-mode td:nth-child(7) {
        border-bottom: 1px solid #555;
    }

    body.dark-mode .collapsible-content td {
        border-bottom: none;
    }

    body.dark-mode .collapsible-content table {
        border-radius: 15px;
    }
}