body {
    width: 100%;
    height: 100%;
    margin: 0;
    color: black;
    font-family: Arial, sans-serif;
}

#mapid {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

div.alert-frame {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #1f1f1fe6;
    z-index: 10000;
}

div.alert-frame div.alert-message {
    position: fixed;
    inset: 0px;
    margin: auto;
    width: fit-content;
    max-width: 50%;
    height: fit-content;
    max-height: 50%;
    background-color: white;
    padding: 1em;
    border-radius: 10px;
    border: 2px solid #0078A8;
    z-index: 10000;
}

div.alert-message button {
    padding: 0 2em !important;
    font-size: inherit !important;
    float: right;
}

div.alert-message p {
    margin-top: 0.4em;
}

.elevation_shown {
    bottom: 160px !important;
}

.side_bar_shown {
    right: 500px !important;
}

#mapid_detailed_route {
    width: 100%;
    height: 300px;
}

#side_bar {
    position: absolute;
    right: 0;
    width: 500px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#side_bar_iframe {
    flex: 1;
    border: none;
}

#show_total_elevation {
    position: relative;
    top: 100%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 54px;
    height: 54px;
    z-index: 10000;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 26px 26px 0 0;
    text-align: center;
    cursor: pointer;
}

.vl {
    border-left: 1px solid #eee;
    /* height: 1.5em; */
    margin: 0 5px;
}

img.prevu {
    /* max-width: 200px; */
    /* max-height: 200px; */
    width: 200px;
    border-radius: 3px;
}

#track_description img.prevu {
    width: 320px;
    border-radius: 3px;
}

.marker-type {
    width: fit-content;
    min-height: 30px;
}

.point_name {
    display: flex;
    align-items: center;
    background-position-y: center;
    background-repeat: no-repeat;
    min-height: 20px;
    margin-right: 1em;
}

.desc-name {
    margin-right: 1em;
}

.desc-type {
    width: 40px;
    height: 40px;
    position: absolute;
}

.desc-track-content {
    margin-left: 45px;
    overflow: auto;
}

.desc-point-content {
    overflow: auto;
}

.desc-progress,
.point-progress {
    position: absolute;
    width: 0%;
    height: 5px;
    left: 0;
    top: 0;
    background-color: #2075c6;
}

.resizable .desc-progress,
.resizable .point-progress {
    bottom: 0;
    top: unset;
}

.total-elevation {
    position: absolute;
    width: 100%;
    height: 2em;
    left: 0;
    bottom: 0;
    background-color: transparent;
    cursor: crosshair;
    z-index: 10000;
    transition: height 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .total-elevation:hover {
        height: 8em;
    }
}

.total-elevation div.elevation-profile {
    display: inline-block;
    position: relative;
    width: 0%;
    height: 100%;
    background-color: transparent;
    overflow: hidden;
    isolation: isolate;
    /* margin: 0 -1px 0 0; */
}

.total-elevation div.elevation-profile .elevation-profile-base {
    opacity: 0.35;
    display: block;
}

.total-elevation div.elevation-profile .elevation-profile-passed-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.total-elevation div.elevation-profile .elevation-profile-passed {
    opacity: 1;
    display: block;
}

#dist_height {
    display: flex;
    gap: 1em;
    align-items: center;
    position: absolute;
    top: -52px;
    left: 0;
    width: fit-content;
    height: fit-content;
}

#cursor_line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed #999;
    z-index: -1;
}

.desc-desc {
    margin-top: 10px;
}

.desc-desc img {
    display: block;
    margin: 0 auto;
}

.desc-params {
    margin-top: 10px;
    margin-left: 45px;
}

.desc-actions {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #eee;
}

div#loading {
    position: absolute;
    width: 100px;
    height: 100px;
    z-index: 9999;
    top: 50%;
    left: 50%;
    margin: -50px 0 0 -50px;
    background-image: url(../images/loading.gif);
    background-size: 100px;
    background-repeat: no-repeat;
    border-radius: 100px;
    background-color: #393839;
    box-shadow: 0px 0px 20px 20px #393839;
    opacity: 0.9;
}

.track_desc {
    padding: 6px 8px;
    background: rgb(255, 255, 255);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

#main_regions_panel .info {
    border-bottom: 1px dashed #999;
}

.info {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.info::before {
    content: "";
    position: absolute;
    z-index: -1;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.resizable>div {
    border-radius: 0;
}

.unselectable {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Chrome/Safari/Opera */
    -khtml-user-select: none;
    /* Konqueror */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently not supported by any browser */
}

.legend {
    text-align: left;
    line-height: 18px;
    /* color: #333; */
    /* max-height: calc(100vh / 2 - 181px); */
    /* min-height: 31px; */
    overflow-y: auto;
    max-width: 20vw;
    min-width: 100px;
    padding-bottom: 6px;
}

.legend_item:hover {
    /*text-decoration: underline;*/
    cursor: pointer;
}

.legend_column {
    min-width: max-content;
    position: relative;
}

.legend_row {
    color: inherit;
    margin-top: 1px;
}

.legend_row:hover {
    background-color: #edededa1;
    border-radius: 5px;
}

.legend_desc {
    display: flex;
    justify-content: space-between;
}

.legend_icon {
    padding-right: 4px;
    display: inline-flex;
}

.legend_icon i {
    width: 18px;
    height: 3px;
    float: left;
    margin: 0;
    box-shadow: 0 0 1px 1px rgb(0, 0, 0);
}

.info_header.news:before {
    content: ' ';
    background-image: url(../images/bell.svg);
    background-size: 16px 16px;
    height: 16px;
    width: 16px;
    margin-right: 2px;
}

.info_header.prev-news {
    cursor: pointer;
}

.info_header.prev-news:before {
    content: ' ';
    background-image: url(../images/archive.svg);
    background-size: 16px 16px;
    height: 16px;
    width: 16px;
    margin-right: 4px;
}

.info_header,
.legend_header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 14px;
    text-transform: uppercase;
    padding-top: 4px;
}

.info_header a,
.legend_header a {
    margin-left: 4px;
}

.info_header img,
.legend_header img {
    position: relative;
    bottom: 2px;
}

.legend_header {
    border-top: 1px dashed #999;
    margin-top: 6px;
    padding-top: 10px;
}

.legend_header a.add-track {
    display: block;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    background-image: url(../images/add.svg);
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgb(0 0 0);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 0 !important;
    width: 22px;
    height: 22px;
    margin: 0;
}

.legend_space {
    flex: 1 0;
    height: 0.8em;
    margin: 0 .4em;
}

.legend_column .legend_space {
    border-bottom: 1px dashed #999;
}

.legend_len {
    white-space: nowrap;
}

.legend-item-name {
    display: inline-block;
    max-width: 10em;
    overflow: hidden;
    white-space: nowrap;
}

.show-legend {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    -webkit-mask-size: 12px 12px;
    mask-size: 12px 12px;
    -webkit-mask-image: url(../images/expand.svg);
    mask-image: url(../images/expand.svg);
    background-color: #999;
}

.show-legend:hover,
.show-legend:focus {
    background-color: #000;
}

.show-legend.to-top {
    transform: rotate(180deg);
}

.hide {
    display: none;
}

.zero-reduce {
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}

.dashed-line {
    height: 6px;
    margin-bottom: 6px;
    border-bottom: 1px dashed #999;
    flex: 1 0;
}

#underlegend[hidden] {
    display: none !important;
}

div.legend-row-menu {
    position: absolute;
    right: 0;
    margin-top: 2px;
    width: 40px;
    height: 14px;
    background-color: #ffffff;
    border-radius: 7px;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

div.legend-row-menu.hoverable {
    visibility: hidden;
}

@media (pointer: fine),
(pointer: none) {
    div.legend-row-menu.hoverable:hover {
        visibility: visible;
    }

    .legend_row:hover div.legend-row-menu.hoverable {
        visibility: visible;
    }
}

a.edit {
    -webkit-mask-image: url(../images/edit.svg);
    mask-image: url(../images/edit.svg);
}

a.add {
    -webkit-mask-image: url(../images/add.svg);
    mask-image: url(../images/add.svg);
}

a.delete {
    -webkit-mask-image: url(../images/delete.svg);
    mask-image: url(../images/delete.svg);
}

a.edit,
a.add,
a.delete {
    width: 14px;
    height: 14px;
    background-color: black;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 14px;
    mask-size: 14px;
    margin: 2px;
}

a.edit:hover,
a.add:hover,
a.delete:hover {
    background-color: #2a6496;
}

.add-to-route,
.edit-route,
.remove-from-route {
    visibility: hidden;
    position: absolute;
    right: 5px;
    top: 0;
    bottom: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    background-image: url(../images/add.svg);
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgb(0 0 0);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 0 !important;
    width: 22px;
    height: 22px;
    margin: auto;
    z-index: 10;
}

.edit-route {
    margin-top: 5px;
    background-image: url(../images/edit_simple.svg);
}

.remove-from-route {
    visibility: visible;
    background-image: url(../images/subscribe.svg);
}

.remove-from-route:hover {
    background-color: #0078A833;
    background-image: url(../images/unsubscribe.svg);
}

.add-to-route.active:hover {
    background-color: #0078A833;
    visibility: visible;
}

.edit-route:hover {
    background-color: #0078A833;
}

.track_item:hover .add-to-route.active {
    visibility: visible;
}

.add-to-route.active-m {
    visibility: visible;
}

.edit-route.active-m {
    visibility: visible;
}

.route_item:hover .edit-route.active {
    visibility: visible;
}

.year-item {
    text-transform: uppercase;
    color: #999;
    margin: 8px 0;
    display: flex;
}

.like-panel,
.participants-panel {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 2px;
    width: 70px;
    background-color: #ffffff;
}

.like {
    margin-right: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    background-color: black;
    -webkit-mask-image: url(../images/like.svg);
    mask-image: url(../images/like.svg);
}

.like:hover {
    background-color: red;
}

.like.liked {
    background-color: red;
}

.like.liked:hover {
    background-color: black;
}

.profile {
    margin-right: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    background-color: black;
    -webkit-mask-image: url(../images/profile.svg);
    mask-image: url(../images/profile.svg);
}

.profile:hover {
    background-color: #2a6496;
}

.participants {
    margin-right: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    background-color: black;
    -webkit-mask-image: url(../images/team.svg);
    mask-image: url(../images/team.svg);
}

.participants:hover {
    background-color: green;
}

.participants.participated {
    background-color: green;
}

.participants.participated:hover {
    background-color: black;
}

a.like-counter,
a.participants-counter,
a.add-participants {
    font-weight: bold;
    color: black;
}

.news-iconed-link {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    width: 100%;
    justify-content: center;
    font-size: 14px;
    height: 16px;
}

.news-iconed-link:hover {
    text-decoration: none;
}

.news-iconed-link:hover span {
    background-color: currentColor;
}

#show_make_route.opened {
    position: absolute;
    top: 0;
    right: 0;
    padding-top: 5px;
}

#distance_popup {
    position: fixed;
    z-index: 1000;
}

label {
    margin: 0;
    font: inherit;
}

a label:hover {
    cursor: pointer;
}

hr.user {
    margin-top: 5px;
    margin-bottom: 5px;
    border: 0;
    border-top: 1px solid #000;
}

#edit_track_description {
    width: 100%;
    overflow-x: auto;
}

.control_content {
    overflow-x: auto;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    margin: auto;
}

/* .leaflet-marker-draggable {
	cursor: move;
} */
.leaflet-control .control_content {
    max-width: 400px;
}

.info-header {
    cursor: pointer;
    flex: 1;
}

.info-header:hover {
    text-decoration: underline;
}

#track_elevation {
    height: 200px;
    width: 400px;
}

@media only screen and (max-width: 420px) {

    /*#track_info {
		width: calc(100% - 150px);
	}*/
    #track_info {
        width: 100%;
    }

    #track_description {
        width: 100%;
        min-width: 240px;
    }

    #track_elevation {
        width: 100%;
        min-width: 240px;
    }
}

@media only screen and (max-width: 500px) {
    #side_bar {
        left: 0px;
        width: 100%;
        min-width: 320px;
    }

    #track_description img.prevu {
        width: 100%;
    }

    .total-elevation {
        height: 10%;
    }

    .total-elevation.higher {
        height: 40%;
    }

    .leaflet-nextleft:has(.leaflet-routing-container) .leaflet-pm-toolbar {
        display: none;
    }

    .remove-from-route:hover {
        background-color: #0078A833;
        background-image: url(../images/subscribe.svg);
    }
}

#tiles_container .leaflet-control-layers-expanded {
    padding: 0;
    box-shadow: none !important;
}

.leaflet-popup-content {
    overflow-x: auto;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff99;
    box-shadow: 0px 0px 0px 20px #ffffff99;
}

.leaflet-popup-content-wrapper {
    background-size: cover;
    background-position: center center;
    background-color: #ffffff;
}

.leaflet-nextleft {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    left: 44px;
    padding-left: 10px;
    max-width: calc(100% - 170px);
}

.leaflet-nextleft .leaflet-control {
    display: inline-flex;
    float: initial;
    margin-right: 10px;
}

.leaflet-controls-raised {
    z-index: 2000 !important;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
}

.container-frame-controls {
    text-align: right;
    margin-left: 10px;
}

.container-frame-controls a {
    position: relative !important;
}

div.list-panel-header {
    display: flex;
    justify-content: space-between;
}

div.list-panel-header.expanded {
    padding-bottom: 10px;
}

.list-panel-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

li.country {
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

ul#countries_list li span:hover {
    text-decoration: underline;
    cursor: pointer;
}

ul#countries_list li:hover .leaflet-popup-close-button {
    position: relative;
    visibility: visible;
}

ul#countries_list li .leaflet-popup-close-button {
    visibility: hidden;
}

ul.regions_list li span:hover {
    cursor: pointer;
}

ul.regions_list li:hover {
    text-decoration: underline;
}

ul.regions_list li:hover .leaflet-popup-close-button {
    position: relative;
    visibility: visible;
}

ul.regions_list li .leaflet-popup-close-button {
    visibility: hidden;
    font: 16px / 14px Tahoma, Verdana, sans-serif;
    font-weight: bold;
    float: right;
    height: 1em;
}

ul {
    padding: 0 0 0 20px;
}

.count-regions {
    color: #999;
    font-weight: normal;
    text-transform: lowercase;
    font-size: 0.7em;
}

#main_regions_panel.rp-shown {
    padding-bottom: 2px;
}

.track_item {
    padding: 0 0 0 2px;
    position: relative;
}

.track_item span:hover {
    text-decoration: underline;
    cursor: pointer;
}

.route_item {
    position: relative;
    margin: 5px 0 5px 5px;
    border-left: 2px solid #999;
    padding-left: 10px;
    border-radius: 4px;
}

.track_item:hover,
.route_item:hover {
    background-color: #eee7;
}

.waiting-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #000;
    -webkit-mask-image: url("spinner-solid.svg");
    mask-image: url("spinner-solid.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    animation: waiting-spinner-spin 2s linear infinite;
}

@keyframes waiting-spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.desc-actions a {
    display: inline-block;
    font-size: smaller;
    text-transform: uppercase;
}

a.action-link {
    cursor: pointer;
}

.action-link::before {
    content: ' ';
    display: inline-block;
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
    height: 16px;
    width: 16px;
    vertical-align: sub;
    margin-right: 4px;
}

.legend_desc .action-link {
    margin-left: 5px;
}

.legend_desc .action-link::before {
    height: 20px;
    width: 20px;
}

.globe-link::before {
    background-image: url(../images/globe.svg);
}

.edit-link::before {
    background-image: url(../images/edit.svg);
}

.replace-link::before {
    background-image: url(../images/replace.svg);
}

.delete-link::before {
    background-image: url(../images/delete.svg);
}

.download-link::before {
    background-image: url(../images/download.svg);
}

.add-link::before {
    background-image: url(../images/add.svg);
}

.copy-link::before {
    background-image: url(../images/copy.svg);
}

.feed-link::before {
    background-image: url(../images/feed.svg);
}

.profile-link::before {
    background-image: url(../images/profile.svg);
}

.edit-profile-link::before {
    background-image: url(../images/edit_profile.svg);
}

.entrance-link::before {
    background-image: url(../images/entrance.svg);
}

.exit-link::before {
    background-image: url(../images/exit.svg);
}

.about-link::before {
    background-image: url(../images/about.svg);
}

.dist-link::before {
    background-image: url(../images/dist.svg);
}

.elev-link::before {
    background-image: url(../images/elev.svg);
}

.date-link::before {
    background-image: url(../images/date.svg);
}

.cardinal-directions-link::before {
    background-image: url(../images/cardinal-directions.svg);
}

.far-link::before {
    background-image: url(../images/far.svg);
}

.aim-link::before {
    background-image: url(../images/aim.svg);
}

.side-header-profile {
    background: url(users/avatars/default.svg) 50% 50% no-repeat;
    background-size: 40px auto;
    width: 40px;
    height: 40px;
    margin: 2px auto;
}

.side-bar-header {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.side-bar-header div.space {
    flex: 1;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-size: 12px;
}

.side-bar-header div.space a {
    text-align: center;
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
}

.side-bar-header div.header-button {
    border-radius: 3px;
}

.side-bar-header div.header-button:hover {
    background-color: #eee;
}

.side-bar-header div.header-button.hovered {
    background-color: #eee;
}

.close-button {
    cursor: pointer;
    padding: 4px;
    border: none;
    text-align: center;
    font: 24px/22px Tahoma, Verdana, sans-serif;
    color: #c3c3c3;
    text-decoration: none;
    font-weight: bold;
    background: transparent;
}

.close-button:hover {
    color: #999;
    text-decoration: none;
}

.side-bar-controls {
    text-align: right;
}

.bg {
    background: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95)), url(../images/back_pattern.svg);
    background-size: 140px;
}

blockquote {
    font-size: inherit;
}

.popup-button {
    margin-top: 4px;
    min-width: 100px;
}

.with-img {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.with-img::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 4px;
    background-color: currentColor;
    font-size: larger;
    background-size: 1em 1em;
    -webkit-mask-size: 1em 1em;
    mask-size: 1em 1em;
}

.with-img.upload-button::before {
    -webkit-mask-image: url(../images/upload.svg);
    mask-image: url(../images/upload.svg);
}

.with-img.add-button::before {
    -webkit-mask-image: url(../images/add.svg);
    mask-image: url(../images/add.svg);
}

.with-img.ok-button::before {
    -webkit-mask-image: url(../images/subscribe.svg);
    mask-image: url(../images/subscribe.svg);
}

.with-img.cancel-button::before {
    -webkit-mask-image: url(../images/unsubscribe.svg);
    mask-image: url(../images/unsubscribe.svg);
}

.with-img.save-button::before {
    -webkit-mask-image: url(../images/save.svg);
    mask-image: url(../images/save.svg);
}

.with-img.del-button::before {
    -webkit-mask-image: url(../images/delete.svg);
    mask-image: url(../images/delete.svg);
}

.with-img.back-button::before {
    -webkit-mask-image: url(../images/back.svg);
    mask-image: url(../images/back.svg);
}

.with-img.map-button::before {
    -webkit-mask-image: url(../images/globe.svg);
    mask-image: url(../images/globe.svg);
}

button.wide {
    width: 100%;
}

hr.thin {
    margin: 10px 0;
}

.tooltiptext {
    width: 120px;
    background-color: rgb(0, 120, 168);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1000;
    transition: opacity 0.3s;
}

.tooltiptext.right::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    margin-left: -10px;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent rgb(0, 120, 168) transparent transparent;
}

.tooltiptext.top::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgb(0, 120, 168) transparent transparent transparent;
}

.tooltiptext.news {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgb(0, 120, 168);
    color: black;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);

    max-width: 215px;
    width: max-content;
}

.tooltiptext.small-news {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    background-image: url(../images/bell.svg);
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgb(0 0 0);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); */
    padding: 0 !important;
    width: 22px;
    height: 22px;
    left: 4px !important;
    top: 4px !important;
}

.leaflet-bottom .tooltiptext.news {
    right: 105%;
    bottom: 0;
}

.leaflet-top .tooltiptext.news {
    right: 105%;
    top: 0;
}

.tooltiptext.news::after {
    content: "";
    position: absolute;
    right: -12px;
    /* left: 50%; */
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgb(0, 120, 168);
}

.leaflet-bottom .tooltiptext.news::after {
    top: calc(100% - 40px);
}

.leaflet-top .tooltiptext.news::after {
    top: 40px;
}

.user-news {
    max-height: 200px;
    overflow-y: auto;
}

.single-news {
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px dashed #999;
    display: inline-flex;
    width: 100%;
}

.single-news-content {
    flex: 1;
    text-align: left;
    align-self: center;
}

a.exit-on-transp {
    display: inline-block;
    top: 0;
    right: 0;
    border: none;
    text-align: center;
    width: 1em;
    height: 1em;
    font: 24px/22px Tahoma, Verdana, sans-serif;
    color: #999;
    text-decoration: none;
    font-weight: bold;
    background: transparent;
    cursor: pointer;
}

a.exit-on-transp:hover {
    color: #000;
}

.distance-text {
    font-family: monospace;
}

#owner {
    text-align: center;
}

.avatar {
    border-radius: 3px;
}

img.avatar:hover {
    -webkit-filter: drop-shadow(0 2px 0 #0078A877);
    filter: drop-shadow(0 2px 0 #0078A877);
}

img.avatar.big {
    width: 100px;
}

.smallest img.avatar.big {
    width: 40px;
}

button.whole-map {
    width: 100px;
}

button.whole-map label {
    font-size: larger;
}

.nickname {
    display: block;
}

.smallest .nickname {
    width: 40px;
    overflow: hidden;
}

#legend_panel.smallest div:not(#owner) {
    display: none;
}

img.visitor {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

select#years:hover {
    text-decoration: underline;
}

select#years {
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

a.delete-group {
    text-transform: uppercase;
    font-size: x-small;
}

button:not(.leaflet-control-geocoder button, .easy-button-button, .fancybox-button) {
    font-size: smaller;
    text-transform: uppercase;
    padding: 2px 4px;
    text-align: center;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    margin: 0 1px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #0078A8;
    border-radius: 3px;
    background-color: #0078A8;
    color: white;
}

button:not(.leaflet-control-geocoder button, .easy-button-button, .fancybox-button):hover {
    background-color: white;
    color: #0078A8;
    border: 2px solid #0078A8;
}

button:not(.leaflet-control-geocoder button, .easy-button-button, .fancybox-button):disabled {
    background-color: #858585;
    color: white;
    border: 2px solid #858585;
}

button.easy-button-button.leaflet-bar-part.interesting-action {
    border: 2px solid black;
    line-height: 26px;
}

button.easy-button-button.leaflet-bar-part.interesting-action.new-button {
    background: rgb(255 215 0 / 70%);
    box-shadow: 10px -16px 10px -12px rgb(237 20 61 / 70%) inset;
    animation: new-background 5s infinite alternate;
}

@keyframes new-background {
    50% {
        background: rgb(237 20 61 / 70%);
        box-shadow: 12px -12px 20px 0px rgb(0 101 255 / 70%) inset;
    }
}

button path {
    fill: currentColor;
}

.this-place {
    width: fit-content;
    margin-bottom: 4px !important;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.this-place img {
    border-radius: 50%;
    border: 2px solid currentColor;
    background-color: white;
    padding: 2px;
    width: 20px;
    height: 20px;
}

input[type="text"].title {
    font-weight: bold;
}

input:not(.leaflet-control-geocoder input),
select,
textarea,
.div-select .current {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: 0;
    border-bottom: 2px solid #0078A877;
    border-left: 2px solid #0078A877;
    border-radius: 3px;
}

input:not(.leaflet-control-geocoder input):hover,
input:not(.leaflet-control-geocoder input):focus,
select:hover,
select:focus,
textarea:hover,
textarea:focus,
.div-select .current:hover,
.div-select .current:focus {
    border-bottom: 2px solid #0078A8;
    border-left: 2px solid #0078A8;
}

p.header {
    color: gray;
    margin: 0;
    text-transform: uppercase;
}

.num_delim {
    font-size: 60% !important;
    vertical-align: top !important;
    line-height: 60%;
}

.track-text {
    display: inline-flex;
    align-items: baseline;
}

.track-list-item {
    display: inline-block;
}

.track-dates {
    display: block;
    font-size: smaller;
    color: #999;
    font-weight: normal;
}

div.drag-n-drop {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 10px;
    border: 2px dashed #0078A8;
    color: #0078A8;
    cursor: default;
    margin: 10px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    z-index: 1000;
}

div.drag-n-drop.hidden {
    display: none;
}

.div-select .drop-down {
    position: fixed;
    background-color: white;
    width: inherit;
    max-height: 140px;
    height: fit-content;
    border: 2px solid #0078A877;
    border-radius: 3px;
    overflow-y: auto;
    z-index: 10;
}

.div-select .drop-down>*:hover {
    background-color: #0078A833;
}

.div-select .drop-down>* {
    padding: 4px;
    cursor: pointer;
}

.div-select .current:after {
    content: '▼';
    padding-left: 4px;
}

.div-select .current {
    padding: 4px;
    display: flex;
    justify-content: space-between;
    cursor: default;
}

.div-select .current>* {
    width: 100%;
}

p.speed {
    font-size: larger;
    font-weight: bold;
    text-shadow: 1px 1px white, -1px 1px white, 1px -1px white, -1px -1px white;
    background-image: url(../images/speed.svg);
    background-size: 34px 34px;
    background-position: center;
    background-repeat: no-repeat;
    height: 30px;
    line-height: 1.3em;
    margin: 0;
}

button:has(p.speed) {
    padding: 0;
}