:root {
    --default-content-font: Hapna;
    --default-title-font: RDRLino;
    --content-font: var(--default-content-font), serif;
    --title-font: var(--default-title-font), serif;
    --button-font: RDRCatalogueBold, var(--content-font), serif;
    --ctrl-meta-key: 'Ctrl';

    --fsb-color: #f0f0f0;
    --fsb-background: transparent;
    --fsb-radius: 3px;
    --fsb-hover-color: #fff;
    --fsb-hover-background: rgba(255, 255, 255, .15);
    --fsb-arrow-size: .5em;
}

@font-face {
    font-family: Hapna;
    src: url(../fonts/hapna.woff2) format("woff2"), url(../fonts/hapna.woff) format("woff"), url(../fonts/hapna.ttf) format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: RDRLino;
    src: url(../fonts/RDRLino-Regular.woff2) format("woff2"), url(../fonts/RDRLino-Regular.woff) format("woff"), url(../fonts/RDRLino-Regular.ttf) format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: RDRCatalogueBold;
    src: url(../fonts/RDRCatalogueBold-Bold.woff2) format("woff2");
    font-style: normal;
    font-weight: 400;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 3px;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-size: 16px;
    font-family: var(--content-font);
    line-height: 1.42857143;
    text-rendering: optimizeLegibility;
    padding: 0 !important;
}

.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.42857143;
}

h1 {
    font-size: 14px;
}

h2 {
    font-size: 1.5em;
    margin: 0 0 5px;
    text-align: center;
}

h3 {
    text-align: center;
    font-size: 24px;
    margin: 0;
}

h4 {
    text-align: center;
    font-size: 20px;
    margin: 15px 0 0 0;
}

p {
    margin: 0 !important;
}

a {
    color: #337ab7;
    text-decoration: none;
}

input,
textarea,
select,
.btn {
    outline: none;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(../../assets/images/select_caret.png) no-repeat !important;
    background-size: 12px !important;
    background-position: calc(100% - 5px) center !important;
    background-repeat: no-repeat !important;
    background-color: #383838 !important;
}

.cycle-table {
    color: white;
    background: black;
}

.cycle-table td,
.cycle-table th {
    padding: 2px;
    border: 1px solid black;
}

#main-header {
    display: flex;
    margin: 0;
}

#main-header::after {
    clear: both;
}

#main-header-center {
    flex-grow: 1;
    height: 75px;
    background-image: url(../../assets/images/header_bg_center.png);
    background-repeat: repeat-x;
    background-size: auto 75px;
    padding: 6px 0;
}

#main-header-center>span {
    font-family: var(--title-font);
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

#main-header-left,
#main-header-right {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    height: 75px;
}

#sub-header {
    font-family: var(--title-font);
    font-weight: 400;
    font-size: 13px;
    color: #cacaca;
    padding-top: 2px;
}

#sub-header .cycle-date,
#sub-header .collectables-counter {
    position: relative;
    background-image: url(../../assets/images/divider_dark_vertical.png);
    background-position: right 5px center;
    background-repeat: no-repeat;
    padding: 2px 18px 0 0;
}

#sub-header .cycle-date:hover::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 18px;
    height: 2px;
    background-image: url(../images/wanted_location_divider.png);
    background-repeat: repeat-x;
    background-size: cover;
}

.header {
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
    position: relative;
    margin: 12px 0;
}

.header-title {
    -webkit-box-flex: 0;
    flex: 0 1 auto;
    line-height: normal;
    margin: 0 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.header-border {
    -webkit-box-flex: 1;
    flex: 1 0 auto;
    min-width: 12px;
    position: relative;
}

.header-border:after {
    background-image: url(../../assets/images/header_border_divider.png);
    background-repeat: repeat-x;
    background-size: auto 3px;
    top: 18px;
    content: " ";
    height: 3px;
    position: absolute;
    width: 100%;
    left: 0;
}

.menu-divider {
    height: 3px;
    border: none;
    background-image: url(../../assets/images/header_border_white.png);
    background-repeat: repeat-x;
    background-size: auto 3px;
    margin: 6px auto;
    opacity: 0.15;
}

.map-alert {
    background: darkred;
    color: #fff;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 1010;
    padding: 10px;
    text-align: center;
}

.map-cycle-alert,
.filter-alert {
    position: absolute;
    z-index: 990;
    text-align: center;
    cursor: pointer;
    background-image: url(../images/menu_highlight.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #fff;
    padding: 10px 25px;
    text-align: center;
}

.map-alert .close-button,
.map-cycle-alert .close-button,
.filter-alert .close-button {
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 27px;
    border: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

#map {
    z-index: 900;
    background: #d2b790;
    width: 100%;
    width: 100vw;
    height: 100%;
    font-family: var(--content-font);
    font-size: 13px;
    text-rendering: optimizeLegibility;
}

#map h1 {
    font-size: 15px;
    text-align: center;
}

.tool-type {
    margin-right: 5px;
}

.top-widget {
    z-index: 990;
    position: fixed;
    left: 40px;
    top: 3px;
    height: 34px;
    width: 130px;
    background-image: url(../../assets/images/timer_bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 5px 15px 5px 10px;
    color: #fff;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    transition: all 200ms ease-out;
}

.top-widget>* {
    display: inline-block;
    line-height: 18px;
}

.top-widget>p {
    margin-right: 2px !important;
    cursor: pointer;
}

#day-cycle {
    margin-top: -2px;
    width: 16px;
    height: 16px;
}

.white-line-divider {
    margin: 15px 0 2px 0;
    height: 10px;
    background-image: url(../../assets/images/header_border_divider.png);
    background-repeat: repeat-x;
    background-size: auto 3px;
}

.save-button,
.remove-button {
    text-align: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    margin-top: 8px;
}

.marker-popup-links {
    font-family: var(--button-font);
    font-size: 16px;
    letter-spacing: 0.075em;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    margin: 8px 0 !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

:lang(ja) .marker-popup-links,
:lang(ko) .marker-popup-links,
:lang(zh-Hans) .marker-popup-links,
:lang(zh-Hant) .marker-popup-links {
    font-size: 13px;
}

.marker-popup-links .popup-link-container {
    position: relative;
    padding: 0 10px;
}

.marker-popup-links .popup-link-container:not(:last-child)::after {
    position: absolute;
    right: 0;
    top: 50%;
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: url(../images/bullet_gray.png) no-repeat;
    background-size: contain;
    transform: translateY(-50%);
}

.marker-popup-links .popup-link-container a {
    padding-right: 4px;
}

.marker-popup-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.marker-popup-buttons small {
    font-size: 15px;
    line-height: 33px;
}

.marker-popup-pin-input-name,
.marker-popup-pin-input-desc {
    color: inherit;
    border: none;
    width: 100%;
    background-color: #222;
}

.marker-popup-pin-input-name {
    font-weight: inherit;
    text-align: center;
}

.marker-popup-pin-input-desc {
    resize: none;
}

.marker-popup-pin-input-divider {
    margin: 2px 0;
    border: none;
    border-top: solid 1px #b0b0b0;
}

.marker-popup-pin-label {
    margin-bottom: 2px;
}

.marker-popup-pin-input-shape,
.marker-popup-pin-input-icon {
    color: inherit;
    background: #eee;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    height: 100%;
    border-radius: 3px;
}

.links-container {
    position: relative;
    height: 44.45px;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin: 5px 0 15px 0;
}

.settings-container {
    padding: 0 10px;
    margin: 5px 0;
}

.search-icon {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: default;
    filter: brightness(0.75);
}

.input-search {
    background-color: #383838;
    border: none;
    padding: 5px 5px 5px 27px;
    color: #f0f0f0;
    font-size: 14px;
    width: 100%;
    border-radius: 3px;
}

.input-search-hotkeys {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: opacity .3s;
}

.hotkey {
    display: inline-block;
    color: rgba(123, 102, 175, .8);
    font-family: var(--title-font);
    font-size: 12px;
    font-weight: 700;
    margin-right: 2px;
    padding: 2px 4px;
    background-color: rgba(123, 102, 175, .2);
    border: 2px solid rgba(123, 102, 175, .8);
    border-radius: 3px;
}

.query-suggestions-hotkeys {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    padding: 8px;
    background-color: rgba(56, 56, 56, .8);
    border: 1px solid rgba(56, 56, 56, .8);
    border-radius: 3px;
    color: #eee;
    font-size: 13px;
    text-align: left;
    z-index: 1000;
    -webkit-backdrop-filter: blur(2px);
    -moz-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.query-suggestions-hotkeys .hotkey {
    font-size: 10px;
}

.query-suggestions-hotkeys.focused {
    display: inline-block;
    opacity: 1;
}

.input-search-hotkeys .hotkey:first-child:after {
    content: var(--ctrl-meta-key);
    letter-spacing: normal;
}

.input-with-suggestions {
    position: relative;
    width: 100%;
}

.query-suggestions {
    position: absolute;
    color: #eee;
    width: 100%;
    max-height: calc(10em + 20px);
    border: 1px solid rgba(56, 56, 56, .8);
    border-radius: 3px;
    background-color: rgba(56, 56, 56, .8);
    box-shadow: 0 2px 5px rgba(0,0,0, .4);
    overflow-y: auto;
    overflow: hidden;
    z-index: 1000;
    -webkit-backdrop-filter: blur(2px);
    -moz-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.query-suggestions:hover,
.query-suggestions.scroll-visible {
    overflow: auto;
}

.query-suggestions::-webkit-scrollbar {
    width: 5px;
  }
  
.query-suggestions::-webkit-scrollbar-track {
    background: rgba(56, 56, 56, .6); 
    border-radius: 3px;
}

.query-suggestions::-webkit-scrollbar-thumb {
    background: rgb(172, 169, 169, .4);
    border-radius: 3px;
}

.query-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 199, 199, .4);
}

.query-suggestion {
    font-size: 14px;
    padding: 8px;
    cursor: pointer;
}

.query-suggestion:hover, .query-suggestion.active {
    color: #fff;
    background-color: rgba(138, 136, 136, .8);
}

.input-file {
    background-image: url(../images/menu_highlight.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: none;
    padding: 6px 16px;
    color: #f0f0f0;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
}

.input-container {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.input-container .type-range {
    max-width: 150px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border-color: #383838;
    border-image-repeat: repeat;
    border-image-slice: 12;
    border-image-source: url(../images/border_single.png);
    border-style: solid;
    border-width: 6px;
    height: 12px;
    margin-top: 6px;
    padding: 0;
}

.input-container .fme-type-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: url(../images/sandglass.png) no-repeat center center;
    background-size: contain;
    transition: filter 100ms ease;
}

.input-container .fme-type-range::-webkit-slider-thumb:hover {
    filter: grayscale(100%) brightness(80%);
}
  
.input-container .fme-type-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    background: url(../images/sandglass.png) no-repeat center center;
    background-size: contain;
    transition: filter 100ms ease;
}

.input-container .fme-type-range::-moz-range-thumb:hover {
    filter: grayscale(100%) brightness(80%);
}
  
.input-container .fme-type-range::-ms-thumb {
    width: 16px;
    height: 16px;
    background: url(../images/sandglass.png) no-repeat center center;
    background-size: contain;
    transition: filter 100ms ease;
}

.input-container .fme-type-range::-ms-thumb:hover {
    filter: grayscale(100%) brightness(80%);
}

.input-container .zoom-wheel-type-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: url(../images/switch_bg_checked.png) no-repeat center center;
    background-size: contain;
    transition: filter 100ms ease;
}

.input-container .zoom-wheel-type-range::-webkit-slider-thumb:hover {
    filter: grayscale(100%) brightness(80%);
}

.input-container .zoom-wheel-type-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    background: url(../images/switch_bg_checked.png) no-repeat center center;
    background-size: contain;
    transition: filter 100ms ease;
}

.input-container .zoom-wheel-type-range::-moz-range-thumb:hover {
    filter: grayscale(100%) brightness(80%);
}

.input-container .zoom-wheel-type-range::-ms-thumb {
    width: 16px;
    height: 16px;
    background: url(../images/switch_bg_checked.png) no-repeat center center;
    background-size: contain;
    transition: filter 100ms ease;
}

.input-container .zoom-wheel-type-range::-ms-thumb:hover {
    filter: grayscale(100%) brightness(80%);
}

.input-container .type-range-tooltip {
    position: absolute;
    top: -35px;
    left: -50px;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.input-container .show-tooltip .type-range-tooltip {
    display: block;
    opacity: 1;
}

.input-container-noflex {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    margin: 5px 0;
    text-align: center;
}

.input-container-noflex .btn {
    margin: 6px 0;
}

.wide-select-menu {
    min-width: 150px;
    width: 150px;
}

.narrow-select-menu {
    min-width: 75px;
    width: 75px;
}

/* Override FancySelect styling */

.fsb-button {
    background-color: transparent;
    background: url('../images/drop_down.png') no-repeat center center;
    background-size: 100% 100%;
    padding-right: 30px;
    text-decoration: none;
}

.fsb-button:after, 
.fsb-button[aria-expanded=true]:after {
    content: '';
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    right: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    background: url('../images/select_caret.png') no-repeat center center;
    background-size: contain;
    border: none;
}

.fsb-button[aria-expanded=true]:after {
    transform: translateY(-50%) rotate(180deg);
}

.fsb-button:focus-visible, 
.fsb-button[aria-expanded=true]:focus-visible {
    outline: none;
    border: none;
}

.fsb-list {
    left: auto;
    right: 0;
    width: auto;
    min-width: 100%;
    background-color: transparent;
    background-image: url('../images/bgTextDark_2.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.fsb-resize {
    width: auto;
    padding-right: 14px;
    padding-right: calc(var(--fsb-arrow-padding)* 2 + var(--fsb-arrow-size) - var(--fsb-padding-right) + 24px);
}

.fsb-select {
    height: 26.563px;
    margin-left: 6px;
    font-size: 13px;
    border: none;
}

.wide-select-menu.fsb-original-select + .fsb-select {
    min-width: 125px;
    max-width: 150px;
}
.narrow-select-menu.fsb-original-select + .fsb-select {
    min-width: 75px;
    max-width: 100px;
}

@media (max-width: 768px) {
    .wide-select-menu.fsb-original-select + .fsb-select {
        min-width: 30vw;
        max-width: 70vw;
    }

    .narrow-select-menu.fsb-original-select + .fsb-select {
        min-width: 75px;
        width: 75px;
    }
}

.fsb-select:has(#fsb_0_label) {
    min-width: 60%;
}

.fsb-list,select[disabled]+.fsb-select .fsb-list {
    margin-top: 5px;
    margin-bottom: 5px;
    border: none;
}

.fsb-list::-webkit-scrollbar {
    width: 3px;
}

#fsb_0_label + .fsb-button svg,
#fsb_0_label ~ .fsb-list svg {
    width: 24px;
    height: 24px;
}

.input-text {
    background: #383838;
    border: none;
    padding: 4px 10px;
    color: #f0f0f0;
    font-size: 13px;
    height: 100%;
    border-radius: 3px;
    margin-left: 6px;
    text-overflow: ellipsis;
    cursor: pointer;
}

.input-text[type="number"] {
    background-color: transparent;
    background: url('../../assets/images/drop_down.png') no-repeat center center;
    background-size: 100% 100%;
}

#custom-markers-colors .input-container label {
    margin-top: 2px;
}

.input-pickr-wrapper {
    position: relative;
    margin: 2px 0;
    display: inline-block;
}

.input-pickr-wrapper::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml;utf8, <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 2 2\"><path fill=\"white\" d=\"M1,0H2V1H1V0ZM0,1H1V2H0V1Z\"/><path fill=\"gray\" d=\"M0,0H1V1H0V0ZM1,1H2V2H1V1Z\"/></svg>");
    background-size: .5em;
    border-radius: 3px;
    z-index: 1056;
}

input.input-text.pickr-custom-marker-color,
input.input-text.pickr-userpin {
    position: relative;
    margin-left: 0;
    color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    z-index: 1057;
}

input.input-text.pickr-custom-marker-color {
    width: 4vw;
}

input.input-text.pickr-userpin {
    width: 100%;
}

@media (max-width: 768px) {
    input.input-text.pickr-custom-marker-color {
        width: 10vw;
        margin-top: 0;
    }

    input.input-text.pickr-userpin {
        margin-top: 0;
    }
}

.pcr-app[data-theme=nano] {
    font-family: var(--content-font);
    width: 20em;
    background-color: #383838;
}

.pcr-app .pcr-swatches {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px; 
}

.pcr-app .pcr-swatches>button {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-size: cover;
}

.pcr-app .pcr-interaction input{
    font-size: 1em;
}

.pcr-app .pcr-interaction .pcr-result {
    font-size: 1em;
    font-family: var(--title-font);
}

.pcr-app[data-theme=nano] .pcr-selection .pcr-color-preview .pcr-current-color {
    width: 3em;
    height: 3em;
    border-radius: .2em;
}

.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-reset {
    width: 45%;
    height: 35px;
}

.pcr-app .pcr-interaction .pcr-save {
    margin-left: auto;
    background: #008800ce;
}

.pcr-app .pcr-interaction .pcr-save:hover {
    background: #00aa00ce;
}

.pcr-app .pcr-interaction .pcr-reset {
    color: #fff;
    background: #a50000ce;
}

.pcr-app .pcr-interaction .pcr-reset:hover {
    background: #bb0000ce;
}

@media (max-width: 768px) {
    .input-text.pickr-custom-marker-color {
        width: 13vw;
    }

    .pcr-app[data-theme=nano] {
        width: 100%;
    }

    .pcr-app .pcr-swatches {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 4px; 
    }
}

.leaflet-popup-content-wrapper {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.leaflet-popup-content-wrapper:not(:has(.marker-popup-pin-input-name)) {
    -webkit-mask-image: url(../images/mask_2.png);
    mask-image: url(../images/mask_2.png);
}

.leaflet-popup-content-wrapper:has(.marker-content-wrapper) {
    -webkit-mask-image: url(../images/mask_1.png);
    mask-image: url(../images/mask_1.png);
}

.leaflet-popup-content-wrapper .pcr-app {
    left: 0 !important;
    width: 100%;
}

.leaflet-popup-content-wrapper .pcr-interaction .pcr-save {
    width: 100%;
}

.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 14px;
    background-color: transparent;
    background: url('../images/close_button_popup.png') no-repeat center center;
    background-size: 100% 100%;
    border: none;
    filter: brightness(0.75);
}

.leaflet-container a.leaflet-popup-close-button:hover {
    filter: brightness(1);
}

.leaflet-popup-close-button span {
    display: none;
}

.input-container-noflex .input-text {
    margin-left: 0;
}

.input-text:disabled {
    cursor: not-allowed;
}

.input-text.input-cycle.random {
    margin-right: 47px;
}

.issues-container a {
    display: block;
    color: #eee;
    text-align: center;
}

.menu-toggle {
    width: 30px;
    height: 30px;
    background-image: url(../../assets/images/timer_bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: fixed;
    z-index: 1000;
    left: 5px;
    top: 5px;
    color: #eee;
    text-align: center;
    line-height: 1.85;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    cursor: pointer;
}

.menu-toggle img {
    width: 16px;
    height: 16px;
}

.menu-toggle .icon-collapse {
    position: absolute;
    top: 7px;
    left: 5px;
    display: none;
}

.menu-toggle .icon-expand {
    position: absolute;
    top: 6px;
    left: 8px;
}
  
.menu-toggle[data-menu-opened="true"] .icon-expand {
    display: none;
}
  
.menu-toggle[data-menu-opened="true"] .icon-collapse {
    display: block;
}

.side-menu {
    width: 100%;
    background: #000;
    box-shadow: 1px 0 2px 0 rgba(85, 85, 85, 0.85);
    position: fixed;
    top: -1800px;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    color: #eee;
    z-index: 1000;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.side-menu::-webkit-scrollbar {
    width: 6px;
}

.fsb-list::-webkit-scrollbar-thumb,
.side-menu::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: #aaa;
    background: url(../../assets/images/bgTextDark.png) repeat;
}

.side-menu::-webkit-scrollbar-track:hover {
    background: -webkit-linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../../assets/images/bgMain_slice.png) repeat;
}

.menu-opened {
    top: 0;
}

.side-menu,
.menu-toggle {
    transition: all 200ms ease-out;
}

.side-menu .menu-option {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    cursor: pointer;
    line-height: 36px;
}

.side-menu .disabled {
    opacity: .5;
}

.side-menu .disabled .menu-option-text,
.side-menu .disabled .collectible-text,
.side-menu .collectible-text .collectible.disabled {
    text-decoration: line-through;
}

.side-menu .weekly-item {
    color: greenyellow;
}

.side-menu .random-category {
    color: #fef390;
}

.side-menu .not-found {
    color: #f95050 !important;
}

.side-menu .menu-option .icon {
    width: 35px;
    margin: -4px 0 -3px 2px;
}

.side-menu .open-submenu {
    min-width: 42px;
    height: 38px;
    background: url(../images/arrow.png) center no-repeat;
    background-size: 21px 21px;
    margin: auto 0 auto 5px;
    padding: 0 5px 0 0;
    filter: brightness(0.825);
    transition: transform .2s ease-in-out;
}

.open-submenu.rotate {
    transform: rotate(180deg);
}

.side-menu .menu-hidden,
#weekly-container,
#utilities-container,
#customization-container,
#routes-container,
#import-export-container,
#debug-container,
#inventory-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease-out;
    margin: 0px -10px;
    padding: 0 10px;
}

.side-menu .menu-hidden.two-column .collectible-wrapper,
.side-menu .menu-hidden.two-column .animal-wrapper {
    width: calc(50% - 4px);
    display: inline-block;
}

.side-menu .menu-hidden.opened,
#weekly-container.opened,
#utilities-container.opened,
#customization-container.opened,
#routes-container.opened,
#import-export-container.opened,
#debug-container.opened,
#inventory-container.opened {
    max-height: 2000px;
    transition: max-height 400ms linear;
}

#customization-container.opened,
#routes-container.opened,
#inventory-container.opened {
    overflow: visible;
}

.side-menu .collection-value {
    position: relative;
    height: 34.45px;
    text-align: center;
    padding: 5px 0;
    display: flex;
    justify-content: space-around;
}

.side-menu .collection-value-bottom::after,
.side-menu .collection-value::before,
.side-menu .collection-value::after,
.links-container::before,
.links-container::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: url('../images/wanted_location_divider.png') repeat;
    background-size: contain;
}

.side-menu .collection-value::before,
.links-container::before {
    top: 0;
}

.side-menu .collection-value-bottom::after,
.side-menu .collection-value::after,
.links-container::after {
    bottom: 0;
}

.side-menu .collection-value-bottom {
    position: relative;
    height: 33.65px;
    text-align: center;
    padding: 5px 0;
    display: flex;
    justify-content: space-around;
}

.side-menu .weekly-item-listings .collection-value {
    margin-bottom: 6px;
}

.side-menu .collection-sell,
.disable-collected-items,
.collection-collect-all,
.collection-reset {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.side-menu .collectible-wrapper {
    position: relative;
    padding: 6px 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.side-menu .collectible-icon {
    float: left;
    height: 24px;
    margin-right: 6px;
}

.collectible-icon.random-spot {
    position: absolute;
    transform: scale(0.85, 0.85);
    left: 25px;
    bottom: 35%;
}

.side-menu .collectible-icon.random-encounter {
    width: 32px;
    height: auto;
    margin-top: 1px;
    margin-right: 6px;
    margin-bottom: -3px;
}

.side-menu .collectible-text {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.side-menu .collectible,
.input-container label,
.menu-option span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-menu .collectible,
.input-container label {
    line-height: 24px;
    width: 100%;
    text-align: left;
}

.same-cycle-warning-menu {
    margin-left: 4px;
    height: 20px;
    width: auto;
}

.nazar-error {
    margin-left: 4px;
    height: 16px;
    width: auto;
}

.lat-lng-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    margin: 0 calc(50% - 100px) 20px;
    z-index: 910;
    color: #dadada;
    background-color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 14px 8px;
    border-radius: 3px;
    display: none;
}

@media (max-width: 768px) {
    .lat-lng-container {
        max-width: 40%;
    }
}

.lat-lng-container div div {
    font-size: 14px;
    line-height: 2;
}

.lat-lng-container .lat-lng-value {
    color: #eee;
    margin-top: 4px;
    font-family: var(--title-font);
}

.lat-lng-container hr {
    height: 1px;
    margin: 5px 0;
    padding: 0;
}

.lat-lng-container .btn.btn-default {
    line-height: 1;
    width: 100%;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
}

.lat-lng-container .btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23eee'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
}

.lat-lng-container #lat-lng-container-close-button {
    position: absolute;
    top: 0;
    right: 4px;
    border: none;
    margin-top: 4px;
    padding: 0;
}

.help-button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    font-size: 14px;
}

.help-button a {
    color: #eee;
}

a.wiki-page {
    color: #fff;
    text-decoration: none;
}

a.wiki-page:hover {
    color: #fff;
}

a.wiki-page:visited {
    color: #fff;
    text-decoration: none;
}

.highlight-items {
    filter: drop-shadow(0 0 .5rem #cc0000) drop-shadow(0 0 .4rem #cc0000);
}

.highlight-low-amount-items-animated {
    animation: highlight-low-amount-items-animation 1s infinite alternate;
}

@keyframes highlight-low-amount-items-animation {
    from {
        opacity: 0.0;
    }

    to {
        opacity: var(--animation-target-opacity);
    }
}

.highlight-important-items-menu {
    text-decoration: underline;
    text-decoration-color: #cc0000;
    text-decoration-thickness: 2px;
}

.help-popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .2);
    z-index: 1010;
    padding: 5%;
    color: #eee;
    display: none;
}

.help-close {
    width: 15px;
    height: 15px;
    position: relative;
    right: calc(-100% + 20px);
    top: 20px;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    cursor: pointer;
}

.help-scroll {
    overflow-y: auto;
    height: 100%;
    padding: 10px;
}

.menu-option.clickable input {
    margin: auto 0 auto auto;
    max-width: 47px;
    min-width: 40px;
    height: 30px;
    padding: 0 0 0 8px;
}

.explain-text {
    text-align: center;
    margin-bottom: 12px !important;
    font-size: 14px;
}

.explain-text a {
    color: #fff !important;
    text-decoration: underline;
}

.no-margin-top {
    margin-top: 0 !important;
}

.counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 12px;
    white-space: nowrap;
    margin-left: 6px;
    padding: 3px 0;
}

.counter-number {
    margin: 0 6px;
    min-width: 12px;
    display: inline-block;
    text-align: center;
    font-size: 15px;
}

.counter-button {
    display: inline-block;
    height: 16px;
    width: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.counter-button.minus-circle {
    background-image: url(../images/minus-circle.svg);
}

.counter-button.plus-circle {
    background-image: url(../images/plus-circle.svg);
}

.counter-button:hover {
    filter: brightness(1.2);
}

.counter-button:active {
    filter: brightness(0.8);
}

.clickable {
    cursor: pointer;
}

.cycle-changer {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    display: flex;
    justify-content: center;
}

#cycle-changer-container {
    margin: 10px 0;
}

#cycle-changer-container .cycle-date {
    text-align: center;
    min-width: 170px;
    margin: 0 6px;
}

.cycle-icon {
    margin: auto 6px auto auto;
}

.cycle-icon.random {
    margin-right: 53px;
}

.marker-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-content-wrapper img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.marker-content-wrapper p {
    margin-bottom: 4px !important;
}

.marker-content-wrapper .primary-description {
    color: #fff;
}

.marker-content-wrapper .secondary-description:not([data-text^="map.egg_type"]),
.marker-content-wrapper .secondary-description:not([data-text^="map.flower_type"]) {
    font-size: 13px;
    font-style: italic;
    text-wrap: pretty;
    filter: brightness(0.75);
}

.marker-content-wrapper .secondary-description[data-text^="map.egg_type"],
.marker-content-wrapper .secondary-description[data-text^="map.flower_type"] {
    color: #fff;
    font-size: unset;
    font-style: unset;
    filter: brightness(2);
}

.marker-content-wrapper .unavailable-item {
    color: #ff1010 !important;
}

.marker-content-wrapper .weekly-item {
    color: #8bfd00 !important;
}

.marker-warning-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    border: 1px solid #f2cf20;
    border-radius: 8px;
    padding: 4px;
}

.marker-warning-wrapper .warning-icon {
    margin-right: 5px;
}

.disable-cycle-changer-arrow {
    opacity: .3;
    cursor: default !important;
}

.collection-collected {
    min-width: 3.4375rem;
}

/* Custom checkbox styling */

.input-checkbox-wrapper {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    margin-left: 6px;
}

.input-checkbox-wrapper .input-checkbox {
    display: none;
}

.input-checkbox-wrapper .input-checkbox-label {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url(../images/selection_boxes.png);
    background-position: left center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    cursor: pointer !important;
}

.input-checkbox-wrapper .input-checkbox:checked+.input-checkbox-label {
    background-position: right center;
}

.input-checkbox-wrapper .input-checkbox:disabled+.input-checkbox-label {
    cursor: not-allowed !important;
}

/* Custom action button styling */

.input-container,
.input-container label {
    cursor: pointer !important;
}

.input-container.disabled,
.input-container.disabled label {
    cursor: not-allowed !important;
    pointer-events: none;
}

.input-action {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    background-image: url(../images/action_indicator.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    margin-left: 6px;
}

.input-action.external {
    background-image: url(../images/action_indicator_external.png) !important;
}

.input-action-copy,
.input-action-clear {
    width: 30px;
    background-size: auto 20px;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 6px;
    cursor: pointer;
}

.input-action-copy {
    background-image: url(../images/action_indicator_copy.png);
    cursor: copy;
}

.input-action-clear {
    background-image: url(../images/action_indicator_clear.png);
    cursor: pointer;
}

.input-selection-arrow {
    cursor: pointer;
}

.input-selection-arrow img {
    height: 16px;
    width: auto;
}

a.no-style {
    color: #fff;
    text-decoration: none;
}

a.no-style:hover {
    color: #fff;
}

a.no-style:visited {
    color: #fff;
    text-decoration: none;
}

.leaflet-control-attribution {
    border-radius: 2px;
    background: #333 !important;
    color: #fff !important;
}

.leaflet-control-attribution a {
    color: #fff !important;
}

.leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale {
	font-size: 11px;
}

.text-danger {
    color: #f95050 !important;
}

.hidden {
    display: none !important;
}

#weekly-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

#weekly-container .blurred {
    filter: blur(2px);
}

#weekly-container .header, #weekly-container p {
    transition: filter 0.3s ease;
}

.weekly-item-listings p {
    text-align: center;
    font-size: 14px;
    margin: 0 12px 14px 12px !important;
}

.weekly-item-listing {
    cursor: default;
    display: flex;
    justify-content: space-between;
    padding: 2px 12px;
}

.weekly-item-listing .icon-wrapper {
    height: 28px;
    min-width: 28px;
    margin-right: 10px;
    text-align: center;
    float: left;
}

.weekly-item-listing .icon {
    height: 28px;
}

.weekly-item-listing span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.counter-number-weekly {
    margin-right: 25px;
}

/* Bootstrap modal styling */

.modal {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.modal-dialog {
    position: relative;
    background-color: #000;
}

.modal-dialog::after {
    border-color: #d80419;
    border-image-repeat: round;
    border-image-slice: 10 10 10 10 fill;
    border-image-source: url(../../assets/images/hover.png);
    border-style: solid;
    border-width: 10px;
    content: "";
    pointer-events: none;
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    z-index: 10;
}

.modal-content {
    border: none !important;
    background: transparent !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.modal-header,
.modal-body,
.modal-footer {
    text-align: center;
    border: none;
}

.modal-header,
.modal-footer {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
}

.modal-header::after,
.modal-footer::before {
    z-index: 0;
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    display: block;
}

.modal-header {
    padding-bottom: 10px;
    height: 54px;
}

.modal-footer {
    padding-top: 10px;
    height: 63.6px;
}

.modal-header::after {
    content: '';
    top: 44px;
    margin-top: 10px;
    background: url(../../assets/images/modal-title.png) !important;
    background-position: bottom center !important;
}

.modal-footer::before {
    content: '';
    bottom: 53.6px;
    margin-top: -20px;
    background: url(../../assets/images/modal-footer.png) !important;
    background-position: top center !important;
}

.modal-header,
.modal-body {
    color: #fff;
}

.modal h4 {
    font-family: var(--title-font);
    font-weight: normal;
    font-size: 24px;
    line-height: 1;
    text-rendering: optimizeLegibility;
}

.modal-body {
    padding: 40px;
    overflow-y: scroll;
}

.modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-body .settings-container {
    margin-top: 15px;
}

.modal-body #custom-markers-colors {
    font-size: 13px;
}

.modal-body #custom-markers-colors img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .modal-body #custom-markers-colors img {
        margin-top: 6px;
    }
}

.modal-actions .btn {
    margin: 5px;
}

@media (min-width: 769px) {
    .modal {
        text-align: center;
        padding: 0 !important;
        --bs-modal-width: 600px;
    }

    .modal:before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        margin-right: -4px;
    }

    .modal-body {
        font-size: 16px;
        max-height: 650px !important;
    }

    .modal-dialog {
        display: inline-block;
        text-align: left;
        vertical-align: middle;
    }

    .modal-sm {
        --bs-modal-width: 450px;
    }
}

#video-modal .modal-xl {
    width: 66.667%;
}

#video-modal .modal-body {
    padding: 20px 5px 10px 5px;
}

/* Fix buttons showing on top of sidebar on mobile menu */

.leaflet-top,
.leaflet-bottom {
    z-index: 910;
}

.leaflet-popup-content {
    font-size: 14px;
    margin: 8px;
    display: inline-grid;
}

.leaflet-popup-content>div.handover-wrapper-with-no-influence {
    display: inherit;
    /* fallback for Edge18 */
    display: contents;
}

.leaflet-popup-content ::-webkit-scrollbar-thumb {
    background: #000 !important;
}

@media (max-width: 768px) {
    .side-menu .menu-hidden .collectible-icon {
        margin-top: 7px;
    }

    .counter-button {
        height: 28px;
        width: 28px;
    }

    .side-menu .menu-hidden .collectible,
    .input-container label {
        line-height: 38px;
    }

    .input-checkbox-wrapper .input-checkbox+.input-checkbox-label,
    .input-text,
    .input-action {
        margin-top: 5px;
    }

    .map-cycle-alert,
    .filter-alert {
        left: 2px;
        right: 2px;
        bottom: 2px;
    }

    .input-search-hotkeys {
        display: none;
    }

    #video-modal .modal-xl {
        width: calc(100vw - 15px);
    }
}

@media (min-width: 769px) {
    .side-menu {
        width: 400px;
        left: -400px;
        top: 0;
    }

    .menu-opened {
        left: 0;
    }

    .top-widget-menu-opened {
        left: 405px;
    }

    .map-cycle-alert,
    .filter-alert {
        left: 50%;
        transform: translate(-50%, -50%);
        bottom: 0;
    }
}

/* Tutorial styling */

#top-sticky,
#bottom-sticky {
    position: relative;
    position: -webkit-sticky;
    position: sticky;
    z-index: 20;
    padding: 0 !important;
}

#top-sticky {
    top: 0;
}

#bottom-sticky {
    bottom: 0;
}

.sticky-container {
    background-color: #000;
    padding: 5px;
}

#top-sticky .sticky-container {
    padding-bottom: 0;
}

#bottom-sticky .sticky-container {
    padding-top: 0;
}

.scroller {
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
    display: -ms-flexbox !important;
    display: flex !important;
    overflow: hidden;
    line-height: 0;
    margin: 0 -10px;
}

.scroller-grow,
.scroller-stat {
    position: relative;
    width: 100%;
    min-height: 10px;
    line-height: 0;
}

.scroller-grow {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

.scroller-stat {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.scroller-grow img {
    width: 100%;
    height: 10px;
}

#help-container {
    min-height: 100px;
    background-image: url(../../assets/images/help_text_bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 15px 25px;
}

#back-to-top {
    position: fixed;
    display: none;
    z-index: 1000;
    left: 18em;
    bottom: 7em;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: url(../images/circle_white.png) no-repeat center center;
    background-size: 100% 100%;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(15px);
    transform: translateY(15px);
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
    cursor: pointer;
}

#back-to-top:hover {
    background-color: #ded2fc;
}

.side-menu.menu-opened #back-to-top {
    display: block;
}

#back-to-top img {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    filter: invert(100%) sepia(100%) saturate(10000%) hue-rotate(10deg);
    pointer-events: none;
}

#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
}

/* Pathfinder styling */

.pathfinder-control {
    padding: 5px;
    background: #333;
}

.pathfinder-btn {
    display: inline-block;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #eee;
}

.pathfinder-btn:disabled {
    color: rgb(160, 159, 159);
}

.pathfinder-btn-before {
    padding: 0;
    width: 30px;
    text-align: center;
}

.pathfinder-btn-after {
    padding: 0;
    width: 30px;
    text-align: center;
}

.pathfinder-btn>small {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
    left: 0.1em;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    text-rendering: optimizeLegibility;
}

/* Dark mode styling */

/* Override Bootstrap && Leaflet buttons color styling */

.btn {
    color: #eee;
    font-family: var(--button-font);
    font-size: 17px;
    letter-spacing: 0.075em;
    --bs-btn-bg: transparent;
    --bs-btn-hover-bg: transparent;
    --bs-btn-active-bg: transparent;
    text-transform: uppercase;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    border-color: transparent;
}

.btn-default {
    line-height: 0.2;
    min-width: 40%;
    padding: 0.75em 1.5em;
    border-image: url(../images/double_border_gray.png) 28 repeat;
    border-style: solid;
    border-width: 8px;
}

.btn-default:hover {
    color: #fff;
    filter: brightness(2);
}

.btn-default:active {
    color: #fff;
    filter: brightness(0.75);
}

.btn-light {
    line-height: 0.5;
    border: 3px solid transparent;
    transition: border-image 100ms ease;
}

.btn-light:hover {
    color: #fff;
    border-image: url(../images/border_single.png) 14 repeat;
    border-style: solid;
    border-width: 3px;
    filter: brightness(2);
}

.btn-light:active {
    color: #fff !important;
    filter: brightness(0.75);
}

.btn-info.save-button,
.btn-info.remove-button,
.btn-primary,
.btn-danger,
.btn-secondary,
.btn-success {
    line-height: 0;
    padding: 0.75em 0.75em;
    border-style: solid;
    border-width: 6px;
}

.btn-info.save-button,
.btn-info.remove-button,
.btn-primary {
    color: #12a4f3;
    border-image: url(../images/single_border_lightblue.png) 14 repeat;
}

.btn-danger {
    color: #990000;
    border-image: url(../images/single_hover.png) 14 repeat;
}

.btn-secondary {
    border-image: url(../images/single_border_lightgray.png) 14 repeat;
}

.btn-success {
    color: #16c368;
    border-image: url(../images/single_border_lightgreen.png) 14 repeat;
}

.btn-info.save-button:hover,
.btn-info.remove-button:hover,
.btn-primary:hover,
.btn-danger:hover,
.btn-secondary:hover,
.btn-success:hover {
    filter: brightness(1.25);
}

.btn-info.save-button:active,
.btn-info.remove-button:active,
.btn-primary:active,
.btn-danger:active,
.btn-secondary:active,
.btn-success:active,
.btn-info.remove-button.active {
    filter: brightness(0.75);
}

.btn-info.save-button:hover,
.btn-info.remove-button:hover,
.btn-primary:hover,
.btn-info.save-button:active,
.btn-info.remove-button:active,
.btn-primary:active {
    color: #12a4f3 !important;
}

.btn-danger:hover,
.btn-danger:active {
    color: #990000 !important;
}

.btn-secondary:hover,
.btn-secondary:active {
    color: #fff;
}

.btn-success:hover,
.btn-success:active {
    color: #16c368;
}

.btn.btn-success.count-up,
.btn.btn-danger.count-down {
    width: 36px;
    height: 36px;
    border: none;
}

.btn.btn-success.count-up {
    background: url(../images/inventory_plus.png) no-repeat center center;
    background-size: 100% 100%;
}

.btn.btn-danger.count-down {
    background: url(../images/inventory_minus.png) no-repeat center center;
    background-size: 100% 100%;
}

:lang(ja) .btn-info.remove-button,
:lang(ja) .btn-success,
:lang(ja) .btn-default,
:lang(ko) .btn-info.remove-button,
:lang(ko) .btn-success,
:lang(ko) .btn-default,
:lang(zh-Hans) .btn-info.remove-button,
:lang(zh-Hans) .btn-success,
:lang(zh-Hans) .btn-default,
:lang(zh-Hant) .btn-info.remove-button,
:lang(zh-Hant) .btn-success,
:lang(zh-Hant) .btn-default {
    font-size: 14px;
}

/* Override Bootstrap accordions styling */

.accordion {
    --bs-accordion-color: #dadada;
    --bs-accordion-bg: transparent;
    --bs-accordion-btn-color: #12a4f3;
    --bs-accordion-active-color: #12a4f3;
    --bs-accordion-border-width: none;
}

.accordion-button {
    font-family: var(--button-font);
    font-size: 16px;
    letter-spacing: 0.075em;
    height: 20px;
    padding: 2px 8px;
    margin-top: 10px;
    background-color: transparent;
    border: none;
    outline: none;
    text-transform: uppercase;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
}

.accordion-button::after {
    display: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 2px 8px;
}

.leaflet-popup-content-wrapper {
    background: #222;
    color: #dadada;
    padding: 10px 1px 1px 1px;
    border-radius: 0;
}

.leaflet-popup-content-wrapper h1 {
    font-family: var(--title-font);
    font-weight: 400 !important;
}

.leaflet-container a:visited,
.leaflet-container a {
    color: #3db2ff;
}

.leaflet-container a:hover {
    color: #3dc6fc;
}

.leaflet-bar a {
    background-color: #333;
}

.leaflet-bar a:hover {
    background-color: #444;
}

.leaflet-bar a,
.leaflet-bar a:hover {
    border-bottom: 1px solid #555;
    color: #d4d4d4;
}

.leaflet-bar a.leaflet-disabled {
    background-color: #555;
    color: #d4d4d4 !important;
}

/* Fix being able to select the overlays. */

.leaflet-overlay-pane,
.leaflet-control-layers {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.leaflet-control-layers {
    box-shadow: 0 1px 5px #111;
    background: #333;
    background: url(../images/bgTextDark_2.png);
}

.leaflet-control-layers label {
	font-size: inherit;
}

.leaflet-control-layers-toggle {
	background-image: url(../images/layers.png);
    background-size: 36px 36px;
}

.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(../images/layers-2x.png);
    background-size: 36px 36px;
}

.leaflet-control-layers-expanded {
    color: #d4d4d4;
    background: url(../images/bgTextDark_2.png) no-repeat center center;
    background-size: 100% 100%;
}

.leaflet-popup-tip {
    width: 42.5%;
    height: 42.5%;
    background: url(../images/tank_meter_marker.png) no-repeat;
    background-size: 100% 100%;
    padding: 0;
    margin: 0 0 0 11px;
    transform: none;
    box-shadow: none;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
    border: none;
    border-radius: 4px;
}

.leaflet-control-layers-base label {
    cursor: pointer;
}

/* Leaflet Layers Control styling */

.leaflet-control-layers-selector {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
  
.leaflet-control-layers-selector + span {
    position: relative;
    line-height: 16px;
    margin-top: 4px;
    padding-left: 25px;
    cursor: pointer;
    display: inline-block;
    outline: none;
    text-decoration: none;
}

.leaflet-control-layers-selector + span::before {
    opacity: .8;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-image: url(../images/pager.png);
    background-position: 0 0px,50%;
    background-repeat: no-repeat;
    background-size: 32px;
}
  
.leaflet-control-layers-selector:checked + span::before {
    background-image: url(../images/pager.png), url(../images/bullet.png);
    background-position: center, center;
    background-position: 0 0, 50%;
    background-size: 32px, 8px;
}

.leaflet-control-layers-selector + span:hover::before {
    opacity: 1;
}

.leaflet-control-layers-selector + span span:hover {
    color: #fff;
}

.leaflet-control-layers-selector + span span:focus-visible {
    outline: none;
}

.leaflet-control-layers-selector + span:visited,
.leaflet-control-layers-selector + span:active,
.leaflet-control-layers-selector + span span:visited,
.leaflet-control-layers-selector + span span:active {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .leaflet-control-layers-selector + span {
        margin-top: 18px;
    }
}

/* Leaflet Marker styling */

.leaflet-div-icon {
    width: 36px;
    height: 45px;
    background-color: transparent;
    border: none;
}

.leaflet-div-icon .overlay,
.leaflet-div-icon .icon,
.leaflet-div-icon .background,
.leaflet-div-icon .marker-contour,
.leaflet-div-icon .shadow {
    position: absolute;
    text-align: center;
}

.leaflet-div-icon .overlay {
    z-index: 5;
    width: 100%;
    height: auto;
}

.leaflet-container .leaflet-marker-pane img {
    width: auto;
}

.leaflet-container .leaflet-marker-pane img.overlay {
    width: 100%;
}

.leaflet-div-icon .icon {
    z-index: 4;
    width: 100% !important;
    height: auto;
}

.leaflet-div-icon .background {
    z-index: 3;
    width: 100%;
    height: 100%;
}

.leaflet-div-icon .marker-contour {
    z-index: 2;
    width: 130%;
    height: 130%;
    left: -15%;
    bottom: -15%;
}

.marker-contour {
    opacity: 0.0;
}

.leaflet-div-icon .shadow {
    z-index: 1;
    bottom: -2px;
    left: 9px;
    box-shadow: none !important;
}

/* Donate form */

.donate-form {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    background-image: url(../images/menu_donate.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 10px;
}

.donate-form .input-text {
    margin: auto 0 auto auto;
}

/* Freemode Events */

#fme-container {
    position: absolute;
    left: 5px;
    bottom: 5px;
    z-index: 990;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    transition: all 200ms ease-out;
}

#fme-container.fme-menu-opened {
    left: 405px;
    overflow: hidden;
}

#fme-container .fme-card {
    display: flex;
    align-items: center;
    background-image: url(../../assets/images/fme_background.png);
    background-size: 100% 100%;
    width: 432px;
    max-width: 432px;
    height: 96px;
    max-height: 96px;
    color: #fff;
}

#fme-container .fme-card .fme-image {
    margin-left: 16px;
    margin-right: 12px;
    height: 66px;
    width: 66px;
}

#fme-container .fme-card .fme-body {
    flex-grow: 1;
}

#fme-container .fme-card .fme-body .fme-title {
    font-family: var(--title-font);
    color: #7b66af;
    margin: 0;
    text-align: left;
    font-size: 21px;
    line-height: 1;
    font-weight: normal;
    margin-right: 35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-rendering: optimizeLegibility;
}

#fme-container .fme-card .fme-body .fme-text {
    text-align: left;
    font-size: 18px;
    margin: 0 !important;
    margin-right: 35px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#fme-container .fme-card #next-general-mobile,
#fme-container .fme-card #next-role-mobile {
    display: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#fme-container .fme-card .fme-body {
    display: block;
    overflow: hidden;
}

@media (max-width: 1024px) {
    #fme-container {
        bottom: 25px;
        right: 50px;
    }

    #fme-container .fme-card {
        padding: 10px 20px 10px 10px;
        height: auto;
        width: initial;
    }

    #fme-container .fme-card #next-general-mobile,
    #fme-container .fme-card #next-role-mobile {
        display: flex;
        overflow: hidden;
    }

    #fme-container .fme-card #next-general-mobile .next-title,
    #fme-container .fme-card #next-role-mobile .next-title {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    #fme-container .fme-card #next-general-mobile .next-time,
    #fme-container .fme-card #next-role-mobile .next-time {
        flex: 1;
        margin: 0 5px;
    }

    #fme-container .fme-card .fme-body {
        display: none;
    }

    #fme-container .fme-card .fme-image {
        width: 32px;
        height: auto;
        margin-left: 0;
        margin-right: 8px;
    }

    #fme-container.fme-menu-opened {
        left: 5px;
    }
}

@media (min-width: 769px) {

    .settings-container .input-container:not(.disabled):after,
    .side-menu .menu-option:after,
    .side-menu .collectible-wrapper:after {
        border-color: #d80419;
        border-image-repeat: round;
        border-image-slice: 10 10 10 10 fill;
        border-image-source: url(../../assets/images/hover.png);
        border-style: solid;
        border-width: 10px;
        content: "";
        opacity: 0;
        pointer-events: none;
        position: absolute;
        top: -5px;
        right: -7px;
        bottom: -5px;
        left: -7px;
        z-index: 10;
    }

    .side-menu .menu-option:after,
    .side-menu .collectible-wrapper:after {
        top: 1px;
        right: 0px;
        bottom: 1px;
        left: 2px;
    }

    .settings-container .input-container:not(.disabled):hover:after,
    .side-menu .menu-option:hover:after,
    .side-menu .collectible-wrapper:hover:after {
        opacity: 1;
    }
}

.loot-table-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 0 5px 5px 5px;
    border-radius: 5px;
}

.loot-table-title h4 {
    width: 100%;
    font-size: 24px;
    margin: 18px 0 12px 0;
}

.loot-table-title h5 {
    display: inline;
    font-size: 20px;
    margin: 8px 4px;
}

.loot-table-title h4,
.loot-table-title h5,
.loot-table-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loot-table-title h4 {
    text-align: center;
}

.loot-table-title h5 {
    text-align: left;
}

.loot-table-title h5.rate,
.loot-table-item span.rate {
    min-width: 50px;
    text-align: right;
}

.loot-table-title,
.loot-table-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.loot-table-item {
    padding: 0;
    line-height: 28px;
}

#legendary-accordion .accordion-item:first-child {
    filter: brightness(2);
}

#legendary-accordion .accordion-item:first-child .accordion-button,
#legendary-accordion .accordion-item:first-child .accordion-button:not(.collapsed) {
    color: #990000;
}

:lang(ja) #legendary-accordion .accordion-button,
:lang(ko) #legendary-accordion .accordion-button,
:lang(zh-Hans) #legendary-accordion .accordion-button,
:lang(zh-Hant) #legendary-accordion .accordion-button {
    font-size: 14px;
}

#legendary-accordion .accordion-item:first-child .accordion-body {
    padding-top: 10px;
}

.legendary-properties {
    line-height: 1.25em;
    margin: 10px 8px;
    width: 100%;
}

.legendary-properties p {
    max-width: 60%;
}

/*Legendary animals popup text color*/

.legendary-spawn-time,
.legendary-preferred-weather {
    color: #5de033;
}

.legendary-trader-materials,
.legendary-trader-pelt-materials {
    color: #ff8d33;
}

.legendary-trapper-value,
.legendary-trapper-pelt-value,
.legendary-trapper-part-value {
    color: #fdc607;
}

.legendary-sample-value {
    color: #70ae25;
}

.legendary-animal-popup-image {
    width: 90%;
    position: absolute;
    bottom: 16%;
    right: 0%;
    opacity: .7;
    margin: 0 -25%;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

button.reload-nazar {
    margin-top: 14px;
    width: 100%;
}
.chrome-store-button {
    justify-content: center;
    display: flex;
    padding: 12px 0 0 0;
}

/* Leaflet.ZoomEx */
@-moz-document url-prefix() {
    .leaflet-zoomex-out .fa,
    .leaflet-zoomex-out .fab,
    .leaflet-zoomex-out .far,
    .leaflet-zoomex-out .fas,
    .leaflet-zoomex-in .fa,
    .leaflet-zoomex-in .fab,
    .leaflet-zoomex-in .far,
    .leaflet-zoomex-in .fas {
        margin-top: .05rem;
        margin-bottom: -.05rem;
    }
}

.leaflet-zoomex {
    display: flex;
    align-items: center;
    /* to simplify the rules for adjusting positions with translate */
    box-sizing: border-box;
    padding: .375rem .375rem;
    background-color: rgba(255, 255, 255, .67);
    border: .125rem solid rgba(255, 255, 255, 1);
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, .33) 0 .125rem .375rem;
    opacity: .5;
    transition: opacity .2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -khtml-text-size-adjust: none;
    text-size-adjust: none;
}

.leaflet-zoomex:hover {
    opacity: 1;
}

.leaflet-zoomex-slider-container {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 .125rem;
}

.leaflet-zoomex-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: .75rem;
    padding: 0;
    margin: 0;
    border-radius: .75rem;
    background: rgba(var(--primary-rgb), .5) !important;
    outline: none;
    cursor: pointer;
}

.leaflet-zoomex-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    /* to make webkit and moz consistent */
    box-sizing: content-box;
    width: 1.125rem;
    height: 1.125rem;
    border: .1875rem solid rgba(255, 255, 255, 1);
    border-radius: .25rem;
    background: rgba(var(--primary-rgb), 1) !important;
    cursor: grab;
}

.leaflet-zoomex-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 .375rem rgba(var(--primary-rgb), .25);
}

.leaflet-zoomex-slider:focus-visible::-webkit-slider-thumb {
    border: .1875rem solid rgba(0, 0, 0, 1);
}

.leaflet-zoomex-slider::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    /* to make webkit and moz consistent */
    box-sizing: content-box;
    width: 1.125rem;
    height: 1.125rem;
    border: .1875rem solid rgba(255, 255, 255, 1);
    border-radius: .25rem;
    background: rgba(var(--primary-rgb), 1) !important;
    cursor: grab;
}

.leaflet-zoomex-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 .375rem rgba(var(--primary-rgb), .25);
}

.leaflet-zoomex-slider:focus-visible::-moz-range-thumb {
    border: .1875rem solid rgba(0, 0, 0, 1);
}

.leaflet-zoomex-out,
.leaflet-zoomex-in {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    width: 1.5rem;
    padding: 0;
    margin: 0;
    border: none;
    color: rgba(var(--primary-rgb), 1);
    background-color: transparent;
    cursor: pointer;
}

.leaflet-zoomex-out svg,
.leaflet-zoomex-in svg {
    fill: rgba(var(--primary-rgb), 1);
    width: 1.5rem;
    height: 1.5rem;
}

.leaflet-zoomex-rightbottom {
    position: absolute;
    margin: 0 !important;
    right: .5rem;
    bottom: 2.5rem;
    width: calc(var(--vh, 1vh) * 25);
    /* elem size: 25vh x 2.5rem  */
    transform: translateX(calc(50% - 2.5rem / 2)) translateY(calc(50% - var(--vh, 1vh) * 25 / 2)) rotate(-90deg);
    box-shadow: rgba(0, 0, 0, .33) -.125rem 0 .375rem;
}

.leaflet-zoomex-rightbottom .leaflet-zoomex-out,
.leaflet-zoomex-rightbottom .leaflet-zoomex-in {
    transform: rotate(90deg);
}

.menu-ad {
    display: none;
}

@media (min-width: 768px) {
  .menu-ad {
    display: block;
  }
}