@font-face {
    font-family: "GTAPricedown";
    src: url("../fonts/gtaCash_PricedownGTA.ttf") format("ttf"),
        url("../fonts/gtaCash_PricedownGTA.woff") format("woff");
}

*,
*: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: "Arial Black";
    font-style: italic;
}

h1 {
    font-size: 14px;
}

h2 {
    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;
}

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: RDRLino, serif;
    font-weight: normal;
    font-size: 36px;
    line-height: 64px;
}

#main-header-left,
#main-header-right {
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ and Edge */
    height: 75px;
}

#sub-header {
    font-size: 14px;
    color: #cacaca;
}

.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;
}

.header-border {
    -webkit-box-flex: 1;
    flex: 1 0 auto;
    min-width: 40px;
    position: relative;
}

.map-alert {
    background: darkred;
    color: #fff;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 1010;
    padding: 10px;
    text-align: center;
}

.map-cycle-alert {
    background: #000;
    color: #fff;
    width: 50%;
    left: 25%;
    right: 25%;
    position: absolute;
    bottom: 20px;
    z-index: 1020;
    padding: 10px;
    text-align: center;
}

.map-alert .close-button,
.map-cycle-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: #C7DEE1;
    width: 100%;
    width: 100vw;
    height: 100%;
    font-family: "Arial Black";
    font-size: 13px;
}

#map h1 {
    font-size: 15px;
    text-align: center;
    font-family: 'Arial Black';
}

.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;
    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 {
    width: 16px;
    height: 16px;
    margin: auto 0 auto auto;
}

.counter-container {
    position: fixed;
    z-index: 1010;
    background: #111;
    border: 1px solid #888;
    color: #eee;
    left: 125px;
    top: 5px;
    width: 80px;
    height: 30px;
    transition: all 200ms ease-out;
    display: none;
}

.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;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ and Edge */
    margin-top: 8px;
}

.marker-popup-links {
    text-align: center;
    margin: 6px 0 !important;
}

.marker-popup-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.marker-popup-buttons small {
    font-size: 15px;
    line-height: 33px;
}

.marker-popup-pin-input-name,
.marker-popup-pin-input-desc {
    border: none;
    width: 100%;
    background-color: #222;
}

.marker-popup-pin-input-name {
    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-icon,
.marker-popup-pin-input-color {
    background: #eee;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    height: 100%;
    border-radius: 3px;
}

.pin-color.aquagreen {
    color: #00ffa2;
}

.pin-color.beige {
    color: #ffce70;
}

.pin-color.black {
    color: #292929;
}

.pin-color.blue {
    color: #31a6c7;
}

.pin-color.brown {
    color: #7c411f;
}

.pin-color.cadetblue {
    color: #416776;
}

.pin-color.darkblue {
    color: #0066a2;
}

.pin-color.darkgreen {
    color: #627134;
}

.pin-color.darkorange {
    color: #e27839;
}

.pin-color.darkpurple {
    color: #593769;
}

.pin-color.darkred {
    color: #a13235;
}

.pin-color.gray {
    color: #444444;
}

.pin-color.green {
    color: #70ae25;
}

.pin-color.lightblue {
    color: #88dbff;
}

.pin-color.lightgray {
    color: #5e5e5e;
}

.pin-color.lightgreen {
    color: #a3c62c;
}

.pin-color.lightorange {
    color: #ff8c7d;
}

.pin-color.lightred {
    color: #da4d6d;
}

.pin-color.orange {
    color: #ee9232;
}

.pin-color.pink {
    color: #c05b9f;
}

.pin-color.purple {
    color: #6b65a4;
}

.pin-color.red {
    color: #d43d29;
}

.pin-color.white {
    color: #ffffff;
}

.pin-color.yellow {
    color: #ffcc5c;
}

.links-container {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #b0b0b0;
    padding: 10px 0;
}

.links-container a {
    color: #eee;
    text-decoration: none;
}

.links-container a:focus {
    outline: none;
}

.settings-container {
    padding: 0 10px;
    margin: 5px 0;
}

.input-search {
    background-color: #383838;
    border: none;
    padding: 5px;
    color: #f0f0f0;
    font-size: 14px;
    width: 100%;
    border-radius: 3px;
}

.input-file {
    background-color: #000000b0;
    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;
    user-select: none;
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.input-container-noflex {
    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;
}

.btn-default {
    background-color: #383838;
    min-width: 40%;
    font-weight: 500;
    color: #fff;
    border: none;
}

.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-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-color: #000000b0;
    position: fixed;
    z-index: 1000;
    left: 5px;
    top: 5px;
    color: #eee;
    text-align: center;
    line-height: 1.85;
    user-select: none;
    cursor: pointer;
    font-style: normal;
}

.side-menu {
    width: 100%;
    background: #515065;
    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;
    scrollbar-width: thin;
    user-select: none;
}

.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;
    user-select: none;
    cursor: pointer;
    line-height: 42px;
}

.side-menu .menu-option.new::before {
    background: url(../images/star.png) no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 40px;
    top: 7px;
    content: '';
}

.side-menu .collectible-wrapper.new::before {
    background: url(../images/star.png) no-repeat;
    background-size: contain;
    width: 18px;
    height: 18px;
    position: absolute;
    right: 7px;
    top: 8px;
    content: '';
}

.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: 0 0 3px 2px;
}

.side-menu .open-submenu {
    min-width: 42px;
    height: 38px;
    background: url(../images/arrow.png) center no-repeat;
    margin: auto 0 auto 5px;
    padding: 0 5px 0 0;
}

.open-submenu.rotate {
    transform: rotate(180deg);
}

.side-menu .menu-hidden,
#weekly-container,
#dailies-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,
#dailies-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;
}

.side-menu .collection-value {
    text-align: center;
    border-top: 1px white solid;
    border-bottom: 1px white solid;
    padding: 5px 0;
    display: flex;
    justify-content: space-around;
}

.side-menu .collection-value-bottom {
    text-align: center;
    border-bottom: 1px white solid;
    padding: 5px 0;
    display: flex;
    justify-content: space-around;
}

.side-menu .weekly-item-listings .collection-value {
    margin-bottom: 6px;
}

.side-menu .collection-value a {
    color: #fff;
}

.side-menu .collection-sell,
.disable-collected-items,
.collection-collect-all,
.collection-reset {
    cursor: pointer;
    user-select: none;
}

.side-menu .collectible-wrapper {
    position: relative;
    padding: 6px 12px;
    cursor: pointer;
    user-select: none;
}

.side-menu .collectible-icon {
    float: left;
    height: 24px;
    margin-right: 6px;
    margin-top: 2px;
}

.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 {
    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;
}

.lat-lng-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 220px;
    margin: 0 calc(50% - 100px) 20px;
    z-index: 910;
    color: #fff;
    background-color: #333333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 14px 8px;
    border-radius: 3px;
    display: none;
}

.lat-lng-container #lat-lng-container-close-button {
    position: absolute;
    top: 0;
    right: 4px;
    font-size: 16px;
    border: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.help-button {
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ and Edge */
    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 0.5rem #cc0000) drop-shadow(0 0 0.4rem #cc0000);
}

.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-container {
    height: 100%;
    padding: 25px;
    background: #000;
    border: 1px solid #eee;
    box-shadow: 0 0 10px 0 black;
}

.help-close {
    width: 15px;
    height: 15px;
    position: relative;
    right: calc(-100% + 20px);
    top: 20px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ and Edge */
    cursor: pointer;
}

.help-scroll {
    overflow-y: auto;
    height: 100%;
    padding: 10px;
}

.menu-option.clickable input {
    margin: auto 10px auto auto;
    max-width: 50px;
    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 {
    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;
}

.counter-button {
    display: inline-block;
    padding: 3px;
    height: 20px;
    width: 20px;
    text-align: center;
    background-color: #333;
    color: #eee !important;
    border-radius: 50%;
}

.clickable {
    cursor: pointer;
}

.marker-content-wrapper {
    display: flex;
    align-items: center;
}

.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 {
    cursor: default !important;
    opacity: 0.3;
}

/* 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);
}

.input-action-clear {
    background-image: url(../images/action_indicator_clear.png);
}

.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 {
    background: #333 !important;
    color: #fff !important;
}

.leaflet-control-attribution a {
    color: #fff !important;
}

.text-danger {
    color: #ffb42b !important;
}

.hidden {
    display: none !important;
}

/* Bootstrap modal styling */

.modal {
    user-select: none;
}

.modal-dialog {
    position: relative;
    background-color: #000;
}

.modal-dialog::after {
    border-color: #ffb42b;
    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: 1;
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    display: block;
}

.modal-header {
    padding-bottom: 10px;
}

.modal-footer {
    padding-top: 10px;
}

.modal-header::after {
    margin-top: 10px;
}

.modal-footer::before {
    margin-top: -36px;
}

.modal-header,
.modal-body {
    color: #fff;
}

.modal h4 {
    font-weight: normal;
    font-size: 24px;
    line-height: 1;
}

.modal-body {
    padding: 40px;
    overflow-y: scroll;
}

.modal-body .settings-container {
    margin-top: 15px;
}

.modal-actions .btn {
    margin: 5px;
}

@media (min-width: 769px) {
    .modal {
        text-align: center;
        padding: 0 !important;
    }

    .modal:before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        margin-right: -4px;
    }

    .modal-body {
        max-height: 650px !important;
    }

    .modal-dialog {
        display: inline-block;
        text-align: left;
        vertical-align: middle;
    }

    .modal-sm {
        width: 450px;
    }
}

/* 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;
    font-family: Arial;
}

.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,
    .input-container label {
        line-height: 38px;
    }

    .input-checkbox-wrapper .input-checkbox+.input-checkbox-label,
    .input-text,
    .input-action {
        margin-top: 5px;
    }

    .daily-checkbox .input-checkbox+.input-checkbox-label {
        margin-top: 0;
    }

    .collectible-icon {
        margin-top: 7px !important;
    }

    .side-menu .collectible-wrapper.new::before {
        top: 16px;
        right: 0;
    }
}

@media (min-width: 769px) {
    .side-menu {
        width: 400px;
        left: -400px;
        top: 0;
    }

    .menu-opened {
        left: 0;
    }

    .timer-menu-opened {
        left: 410px;
    }

    .counter-menu-opened {
        left: 410px;
    }

    .top-widget-menu-opened {
        left: 405px;
    }
}

.logo {
    background: url(../images/logo.png) no-repeat;
    width: 390px;
    height: 80px;
    padding: 44px;
    margin-top: 5px;
    border-bottom: 2px solid white;
}

/* 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: #515065;
}

#top-sticky .sticky-container {
    padding-bottom: 0;
}

#bottom-sticky .sticky-container {
    padding-top: 0;
}

#help-container {
    min-height: 100px;
    background-color: #000000b0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 15px 25px;
}

/* Pathfinder styling */

.pathfinder-control {
    padding: 5px;
    background: #fff;
}

.pathfinder-btn {
    display: inline-block;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000;
}

.pathfinder-btn:disabled {
    color: #789;
}

.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;
}

/* Fix being able to select the overlays. */

.leaflet-overlay-pane {
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ and Edge */
}

/* 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-div-icon .icon {
    z-index: 4;
    width: 100%;
    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;
}

/* 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;
}

/* Dark mode styling */

.btn.btn-info.remove-button,
.save-button {
    background-color: #008fbece;
    border: 1px solid #15b4f3af;
}

.btn.btn-info.remove-button:hover,
.save-button:hover {
    background-color: #15b4f3af;
}

.remove-button,
.btn.btn-danger {
    background-color: #a50000ce;
    border: 1px solid #bb0000ce;
}

.remove-button:hover,
.btn.btn-danger:hover {
    background-color: #bb0000ce;
}

.btn.btn-success {
    background-color: #008800ce;
    border: 1px solid #00aa00ce;
}

.btn.btn-success:hover {
    background-color: #00aa00ce;
}

.leaflet-popup-content-wrapper {
    background: #222;
    color: #dadada;
}

.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 {
    user-select: none;
}

.leaflet-control-layers {
    box-shadow: 0 1px 5px #111;
    background: #333;
    user-select: none;
}

.leaflet-control-layers-expanded {
    color: #d4d4d4;
    background: #333;
}

.leaflet-control-zoom {
    background-color: #333;
    color: #d4d4d4;
}

.leaflet-control-zoom a {
    background-color: #333;
}

.leaflet-popup-tip {
    background: #222;
    color: #d4d4d4;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
    border: none;
    border-radius: 4px;
}

.leaflet-control-layers-base label {
    cursor: pointer;
}

/* 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-div-icon .icon {
    z-index: 4;
    width: 100%;
    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;
}

/* end dark mode styling */

button.full-popup-width {
    margin: 10px 0 5px 0;
    width: 100%;
}

#game-toggle {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-bottom: 1px solid #b0b0b0;
}
#game-toggle > div {
    cursor: pointer;
    text-decoration: underline;
}

#game-toggle > .disabled {
    opacity: .5;
    text-decoration: none;
}
.garage-progress ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.garage-progress li.delivered {
    opacity: .55;
    text-decoration: line-through;
}

.garage-progress li > span:first-child {
    display: inline-block;
    width: 18px;
}

.menu-ad {
    padding: 20px 10px;
}

.menu-ad-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

#menu-ad-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background-color: #000000b0;
    color: #eee;
    font: inherit;
    font-style: normal;
    text-align: center;
    line-height: 1.85;
    user-select: none;
    cursor: pointer;
}

body.save-drag-active::after {
    content: attr(data-save-drop-label);
    position: fixed;
    inset: 12px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed #eee;
    background: #000000b0;
    color: #fff;
    padding: 24px;
    font-size: 24px;
    text-align: center;
    pointer-events: none;
}
