body {
    background: var(--background);
    color: #fff;
    font-family: Rubik, Roboto, Arial, Helvetica, sans-serif;
    text-align: center;
    margin: 0;
}

button {
    font-family: inherit;
}

body > .content {
    padding: 0.75em;
}

img.emoji {
    height: 1.25rem;
    position: relative;
    margin-right: 2px;
    vertical-align: text-top;
}

.chip img.emoji {
    height: 1rem;
}

a {
    color: #fff;
}

.title {
    background: var(--red);
    padding: 0.1em 1em;
    font-size: 1.75em;
    margin: 1em auto;
}

/* title wrapping breakpoint */
@media screen and (min-width: 580px) {
    .title {
        width: max-content;
    }
}

.footer {
    margin-top: 2em;
    margin-bottom: 10em;
    color: #aaa;
}

.result-count {
    display: flex;
    color: #aaa;
}

.icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin-top: 2em;
    margin-bottom: 2em;
}

.icons svg:hover {
    cursor: pointer;
    filter: drop-shadow(0px 0px 2px rgb(255 255 255 / 0.4));
}

.results {
    max-width: 1300px;
    margin: auto;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: var(--lightBackground);
    color: #fff;
    padding: 0.75em 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 1em;
}

:not(:hover) > img.site-logo {
    filter: brightness(7);
}

.nav-social-icons {
    display: none;
}

.nav-social-icons .share-label {
    display: block;
    width: 100%;
    margin-top: 1.5em;
}

.menu-label {
    display: none;
}

.hamburger {
    display: none;
}

.nav-close-button {
    display: none;
}

.sticky-header .button {
    min-height: 40px;
}

nav.show .button {
    min-height: unset;
}

nav a.button {
    position: relative;
    margin: 0 0.1em;
}

nav a.button.active:after {
    content: " ";
    width: 100%;
    height: 0.15em;
    background: var(--gray);
    position: absolute;
    bottom: 0;
    left: 0;
}

nav a.button:hover:after {
    content: " ";
    width: 100%;
    height: 0.15em;
    background: var(--lightGray);
    position: absolute;
    bottom: 0;
    left: 0;
}

.header-social-icons {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    position: relative;
}

.header-locale-select {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    position: relative;
}

.locale-menu-button {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.header-share-menu,
.header-locale-menu {
    display: none;
}

.header-share-menu.show,
.header-locale-menu.show {
    display: block;
    position: absolute;
    top: 2.5em;
    left: -0.5em;
    background: var(--lightBackground);
    padding: 0.5em;
}

.header-share-menu.show > div,
.header-locale-menu.show > div {
    gap: 0.2em;
}

.header-locale-menu.show {
    left: auto;
    right: -1em;
}

body[style*="direction: rtl"] .header-locale-menu.show {
    left: -1em;
    right: auto;
}

.header-locale-menu a {
    width: 100%;
    padding: 0.2em 0.5em;
    display: flex;
}

.header-locale-menu .link-section > a.active {
    background: var(--gray);
}

.header-locale-menu .locale-flag {
    display: flex;
    align-items: center;
}

/* breakpoint for switching the tabs and share icons to a hamburger menu */
@media (max-width: 1278px) {
    .header-right nav {
        display: none;
    }

    .hamburger {
        display: block;
        height: 100%;
    }

    .header-social-icons {
        display: none;
    }

    .nav-social-icons {
        display: block;
    }

    .sticky-header label {
        display: none;
    }

    .menu-label {
        display: block;
    }

    .nav-close-button {
        display: block;
        border: none;
        text-align: right;
    }

    .nav-close-button button {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.25em;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-close-button button:hover {
        background: var(--darkGray);
    }

    .header-right nav.show {
        display: flex;
        flex-direction: column;
        gap: 1em;
        position: absolute;
        top: 0;
        left: 0;
        background: var(--lightBackground);
        height: 100vh;
        padding: 1em;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }

    body[style*="direction: rtl"] .header-right nav.show {
        left: auto;
        right: 0;
    }
}

label {
    margin: 0 0.35em;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.7em;
    flex-wrap: wrap;
}

.header-right .button {
    padding: 0.5em 0.8em;
}

.header-site-heading {
    font-size: 1.2em;
    margin: 0;
    display: flex;
    gap: 0.35em;
    align-items: center;
}

@media (max-width: 600px) {
    .header-site-heading {
        font-size: 1.1em;
    }

    .header-right,
    .sticky-header {
        gap: 0.3em;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    grid-gap: 1em;
    width: calc(100% - 2em);
    margin: auto;
}

.gallery img:not(.emoji) {
    width: 100%;
    height: 132px;
    object-fit: cover;
    object-position: center;
    min-height: 122px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: 0.1s ease-in-out;
    position: relative;
}

.gallery img:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

a.glightbox {
    text-decoration: none;
    position: relative;
    transition: 0.2s ease-in-out;
}

a.glightbox:hover {
    filter: brightness(1.2);
}

.info-icon {
    position: absolute;
    top: 28px;
    right: 2px;
    z-index: 998;
}

a.glightbox > .status {
    text-decoration: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    line-height: 1.5em;
}

a.glightbox > .status.KIDNAPPED,
.desc-status.KIDNAPPED {
    background: var(--red);
}

a.glightbox > .status.RESCUED,
.desc-status.RESCUED {
    background: var(--blue);
}

a.glightbox > .status.MURDERED,
.desc-status.MURDERED {
    background: var(--black);
}

a.glightbox > .status.MURDERED.IN_CAPTIVITY {
    color: var(--red);
}

a.glightbox > .status.MURDERED.AT_HOME {
    color: var(--blue);
}

a.glightbox > .name {
    font-size: 0.8em;
    display: contents;
}

/* allow selecting text in the description */
.glightbox-container .gslide {
    -webkit-user-select: unset;
    -moz-user-select: unset;
    -ms-user-select: unset;
    user-select: unset;
}

.glightbox-clean .gslide-description {
    background: var(--background);
}

.glightbox-clean .description-left .gdesc-inner,
.glightbox-clean .description-right .gdesc-inner {
    height: calc(100% - 45px);
    width: calc(100% - 45px);
}

@media (min-width: 769px) {
    .gslide-description.description-left,
    .gslide-description.description-right {
        max-width: 400px;
    }
}

.glightbox-clean .gslide-desc {
    line-height: normal;
    color: white !important;
    font-family: Roboto, Arial, sans-serif;
}

.gslide-media.gslide-image > img {
    width: min(100vw, 800px);
}

.gslide-description.description-bottom {
    max-width: 100% !important;
    background: transparent;
}

/* fix alignment of the description on mobile */
.glightbox-mobile .glightbox-container .gslide-description {
    padding-left: 0;
    padding-bottom: 70px;
}

button.gbtn {
    transition: 0.2s ease-in;
}

/* hide the next and previous buttons when the window is less than 1200px wide */
@media screen and (max-width: 1200px) {
    button.gprev:not(:hover),
    button.gnext:not(:hover) {
        opacity: 0;
    }
}

span.chip {
    background: #333;
    padding: 0 0.65rem;
    border-radius: 999px;
    line-height: 1.75rem;
    text-wrap: nowrap;
}

.chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery img.loading {
    aspect-ratio: 16 / 9;
    color: transparent;
    background: linear-gradient(0.25turn, transparent, #3c3c3c, transparent), linear-gradient(#2c2c2c, #2c2c2c);
    background-repeat: no-repeat;
    background-position: -315px 0, 0 0;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        background-position: 315px 0, 0 0;
    }
}

.heading {
    max-width: 900px;
    margin: auto;
    padding: 0 1em;
}

.inner-section {
    margin: auto;
    padding: 0 1em;
    margin-bottom: 2em;
}

.totals {
    font-size: 120%;
    margin: 0 1em;
}

.controls {
    display: flex;
    gap: 1.5em;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    border: 1px solid #555;
    max-width: 1300px;
    padding: 2em 1em;
}

.filter {
    display: flex;
    gap: 0.25em;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.filter label {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .filter {
        width: 100%;
    }
}

select,
input[type="text"] {
    background: #444;
    color: white;
    padding: 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid #aaa;
    margin: 0 0.35rem;
    font-family: Roboto, Arial, sans-serif;
}

::placeholder {
    color: #aaa;
}

input#search {
    width: 110px;
    height: 17px;
}

.multiselect-dropdown {
    background-color: #444;
    border: 1px solid #aaa;
    color: white;
    padding: 0.3rem 0.4rem 0.3rem 0.8rem;
    border-radius: 0.25rem;
    margin: 0 0.35rem;
    font-family: Roboto, Arial, sans-serif;
    text-align: left;
    font-size: 0.9em;
    background-image: url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNiAxNic+PHBhdGggZmlsbD0nbm9uZScgc3Ryb2tlPScjYWFhJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnIHN0cm9rZS13aWR0aD0nMicgZD0nTTIgNWw2IDYgNi02Jy8+PC9zdmc+");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.multiselect-dropdown-list-wrapper {
    background: #444;
    z-index: 9999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.multiselect-dropdown-list > div {
    display: flex;
    align-items: center;
}

.multiselect-dropdown-list > div > label {
    display: inline-flex;
    font-size: 0.9em;
}

.multiselect-dropdown span.optext,
.multiselect-dropdown-list div:hover {
    background-color: #222;
}

#group {
    width: 180px;
}

/* style checkboxes to be bigger and dark background */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.5em;
    height: 1.5em;
    border-radius: 0.25em;
    background: #444;
    border: 1px solid #aaa;
    cursor: pointer;
    margin: 0 0.35rem;
}

/* style the checked state */
input[type="checkbox"]:checked {
    background: var(--blue);
}

/* CSS Checkmark in the checked state */
input[type="checkbox"]:checked::before {
    content: "\2713";
    display: block;
    text-align: center;
    line-height: 1.5em;
    color: #fff;
}

.link-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.link-section > a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35em;
    transition: 0.1s ease-in;
    background: var(--lightBackground);
    color: white;
}

.header .link-section > a {
    background: var(--darkGray);
}

.header .link-section > a:hover {
    background: var(--gray);
}

.external-sites > a {
    padding: 6px 8px;
}

.social-icons > a {
    padding: 8px;
}

.link-section > a:hover {
    background: #444;
}

.toast {
    position: fixed;
    bottom: 0;
    left: 0;
    background: var(--lightBackground);
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
    width: 100%;
    padding-top: 1em;
}

.toast-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: calc(100% - 2em);
}

.toast-body {
    padding: 1em;
    padding-top: 0;
}

.toast-title {
    font-weight: bold;
    padding: 1em;
    padding-top: 0;
}

.toast-close {
    cursor: pointer;
    position: absolute;
    top: 1em;
    right: 1em;
}

.toast-close:hover {
    color: #ccc;
}

.tab-content {
    display: none;
}

.tab-content.show {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 1em;
}

.tabs-flex {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    border-bottom: 1px solid #555;
    flex-wrap: wrap;
}

ul.tabs {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    align-self: start;
}

li.tab {
    background: transparent;
    padding: 0.75em 1em;
    cursor: pointer;
}

li.tab:hover {
    background: #fffc6338;
    border-bottom: 3px solid #fff5634d;
}

li.tab.active {
    border-bottom: 3px solid var(--yellow);
}

/* breakpoint for switching the tabs to a column */
@media screen and (max-width: 568px) {
    .tabs {
        flex-direction: column;
        margin-top: 0.5em;
        gap: 0.5em;
        width: 100%;
    }

    li.tab {
        border-bottom: 3px solid transparent;
        background: #fffc6318;
    }
}

.tabbed-area {
    border: 1px solid #555;
    max-width: 1300px;
    margin: 2em auto;
}

.force-ltr {
    direction: ltr;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25em;
}

/* tooltips */
[data-tooltip] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* tooltip bubble */
[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    transform: translateY(-2.45rem);
    height: auto;
    width: auto;
    background: #4a4a4afa;
    border-radius: 4px;
    color: white;
    line-height: 30px;
    font-size: 15px;
    padding: 0 12px;
    pointer-events: none;
    opacity: 0;
}

/* tooltip bottom triangle */
[data-tooltip]:after {
    content: "";
    position: absolute;
    transform: translateY(-1.35rem);
    border-style: solid;
    border-color: #4a4a4afa transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
}

/* show tooltip on hover */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    transition: 0.2s ease-in opacity;
    opacity: 1;
}

[data-tooltip]:disabled:before {
    content: "You must first input valid text.";
}

.charts {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4em;
    row-gap: 2em;
}

.charts h3 {
    margin-top: 0;
}

span.apexcharts-legend-marker {
    margin: 0.2em;
}

.button {
    text-decoration: none;
    background: var(--blue);
    color: var(--white);
    padding: 0.5em 1em;
    transition: 0.1s ease-in;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: var(--darkBlue);
}

.button.button-gray {
    background: var(--darkGray);
}

.button.button-gray:hover {
    background: var(--gray);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.map {
    color: black;
}

.map a {
    color: darkblue;
}

.gm-style-iw img.emoji {
    height: 1rem;
}

.counter {
    color: #ffffff;
    font-size: 0.85em;
    padding: 0.25em 0;
    margin-left: 0.5em;
    align-self: flex-end;
}

.counter-number {
    background: #d33e273b;
    box-shadow: 0 0 10px #6c0f0070;
    padding: 0.15em 0.75em;
}

.counter-mobile {
    display: none;
}

@media (max-width: 600px) {
    .counter-desktop {
        display: none;
    }

    .counter-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
