@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;
}

nav a {
    display: inline-block;
    color: #f9f9f9;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 600;
}

main {
    flex: 1;
}

footer {
    background-color: #222;
    color: #f9f9f9;
    border-radius: 15px 15px 0 0;
}

footer a {
    color: inherit;
    text-decoration: none;
}

.table-container {
    overflow-x: auto;
    margin: 0 10px;
    border: 1px solid #444;
    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 #666;
    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: #111;
    border: 1px solid #555;
    border-radius: 15px;
    font-weight: 600;
}

.reset-button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    background-color: #c62828;
    color: #ffffff;
    border: 1px solid #000;
    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 #444;
    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 #444;
}

.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;
}

.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 #000;
}

.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: 2px solid #4CAF50;
    outline-offset: 2px;
    border-radius: 15px;
}

nav a:hover {
    background-color: #e5e5e5;
    color: black;
    border-radius: 15px;
}

.header-lang svg:hover,
.header-social svg:hover {
    color: #000000;
}

.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: #ffffff;
    text-decoration: underline;
}

.collapsible-header a:hover {
    background-color: #4CAF50;
    color: #ffffff;
}

.reset-button:hover {
    background-color: #b71c1c;
}

@media (max-width: 768px) {
    /* Firefox specific */
	@supports (-moz-appearance: none) {
		.collapsible-header a {
			margin-right: 16px;
		}
	}
	
	.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 #444;
        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 #000;
    }

    .collapsible-header td:nth-child(1),
    .collapsible-header td:nth-child(4),
    .collapsible-header td:nth-child(7) {
        border-right: unset;
    }
	
	.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: #111;
    }
}