.custom-popup, .custom-popup .leaflet-popup-content-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: 0 0 !important
}

.custom-edit-popup textarea, .popup-description {
    white-space: pre-wrap;
    word-wrap: break-word
}

#map, .fullscreen-overlay {
    height: 100vh;
    position: fixed
}

#map, #sidebar, html {
    position: fixed
}

#checkbox-about-tab-span, #checkbox-markers-tab-span, #checkbox-version-tab-span {
    width: 50px !important;
    height: 50px !important;
    background-repeat: no-repeat;
    transition: transform .4s
}

#markers, #middle {
    margin: initial;
    -ms-overflow-style: none
}

#about a, #about p {
    text-decoration: none
}

#about, #markers, #version {
    overflow-y: scroll;
    will-change: scroll-position;
    scrollbar-width: none
}

#about, #markers, #middle, #version {
    scrollbar-width: none
}

#zoom-in, #zoom-out {
    background-size: 55% 55%;
    bottom: 30px
}

.btn::after, .btn::before {
    position: absolute;
    top: 50%;
    opacity: 0;
    transition: opacity .2s
}

#map {
    width: 100vw;
    background: #878787;
    z-index: 1
}

.custom-popup {
    min-width: 250px;
    max-width: 400px;
    margin: 0 !important
}

.custom-edit-popup {
    font-weight: 700;
    width: auto
}

    #markers li, .custom-edit-popup div {
        text-align: center
    }

    .custom-edit-popup textarea {
        resize: vertical;
        overflow-x: hidden;
        height: 50px
    }

    .custom-edit-popup button {
        display: block;
        width: 100%;
        margin: 0 auto
    }

.custom-popup .leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 12px !important
}

.custom-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2)
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.popup-title {
    width: 196px;
    word-wrap: break-word;
    font-weight: 700;
    font-size: 16px;
    margin-right: 10px;
    flex-grow: 1
}

.popup-buttons {
    display: flex;
    gap: 5px
}

.popup-button {
    background: 0 0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    padding: 2px
}

    .popup-button:hover {
        color: #000
    }

.popup-image-container {
    width: 100%;
    background-color: #f5f5f5;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px
}

.element, .element-label {
    overflow-wrap: break-word;
    white-space: normal
}

.popup-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover
}

    .popup-image:hover {
        cursor: zoom-in
    }

.popup-footer {
    font-size: 12px;
    color: #666;
    text-align: left;
    margin-top: 8px
}

.fullscreen-overlay {
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(0,0,0,.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out
}

#left, #sidebar, .btn {
    z-index: 2
}

.fullscreen-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,.5)
}

.level-timer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px
}

#left, #middle {
    flex-direction: column;
    border-right: 1px solid #000;
    background-repeat: repeat;
    background-position: center;
    background-size: contain
}

.time-display {
    font-size: large;
    font-family: monospace;
    min-width: 80px
}

.reset-timer-btn, .start-timer-btn {
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer
}

.category-label, .element-label {
    font-family: Ritalin;
    font-size: 20px;
    text-align: center
}

#zoom-in::after, #zoom-in::before, #zoom-out::after, #zoom-out::before, .leaflet-control-layers-list {
    display: none !important
}

#mainBtn:hover {
    cursor: pointer
}

.custom-file-upload {
    margin: 0 auto;
    font-weight: 400;
    border: 1px solid #000;
    appearance: auto;
    text-rendering: auto;
    color: buttontext;
    letter-spacing: normal;
    word-spacing: normal;
    line-height: normal;
    text-transform: none;
    text-indent: 0;
    text-shadow: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    background-color: buttonface;
    padding: 6px;
    cursor: pointer
}

.category-label, .element-label, .section-title {
    text-transform: uppercase
}

.img-preview {
    display: block;
    margin: 0 auto;
    width: 169px
}

#left, #sidebar, body {
    display: flex
}

html {
    width: 100dvw;
    height: 100dvh
}

body {
    font-family: Arial,sans-serif;
    margin: 0;
    padding: 0;
    background-color: gray;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

@font-face {
    font-family: Ritalin;
    src: url('/fonts/ritalin_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal
}

#sidebar {
    height: 100%;
    min-height: 100%;
    color: #a3a3a3;
    width: 0;
    min-width: 0
}

#left {
    background-image: url("/images/fon_element3.png")
}

    #left img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px
    }

.custom-checkbox-tab {
    display: flex;
    justify-content: center;
    align-items: center
}

    .activity, .craft, .custom-checkbox input, .custom-checkbox-tab input, .event, .introductory-work, .location, .my-markers, .other, .shop {
        display: none
    }

#checkbox-markers-tab-span {
    background-image: url('/images/mini_logo.png');
    background-position: center;
    background-size: contain
}

    #checkbox-about-tab-span:hover, #checkbox-markers-tab-span:hover, #checkbox-version-tab-span:hover {
        cursor: pointer;
        background-color: #000
    }

#checkbox-about-tab:checked + #checkbox-about-tab-span, #checkbox-markers-tab:checked + #checkbox-markers-tab-span, #checkbox-version-tab:checked + #checkbox-version-tab-span {
    background-color: #000
}

#checkbox-about-tab-span {
    background-image: url('/images/about.png');
    background-position: center;
    background-size: 60%
}

#checkbox-version-tab-span {
    background-image: url('/images/version.png');
    background-size: 60%;
    background-position: center
}

#middle {
    padding: 10px;
    display: flex;
    border-bottom: none;
    border-top: none;
    border-left: none;
    min-width: 276px;
    background-image: url("/images/fon2.png");
    transform: translate(0,0);
    transition: transform .4s
}

#markers {
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center
}

#logo {
    width: 230px;
    height: auto;
    margin: 0 auto
}

.category {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 5px 0
}

.category-label {
    flex-grow: 1;
    width: 166px
}

.element {
    display: none;
    align-items: center;
    gap: 10px;
    align-self: center;
    padding: 5px 0;
    width: 214px;
    margin: 0 auto
}

.element-label {
    width: min-content;
    flex-grow: 1;
    margin: 0
}

.arrow, .marker-preview {
    width: 30px;
    height: auto
}

.marker-preview {
    cursor: pointer
}

.checkbox-arrow-image, .checkbox-eye-image {
    height: 25px;
    width: 35px;
    margin-left: auto;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center
}

.custom-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box
}

.checkbox-eye-image {
    background-image: url('/images/hiden.png')
}

.custom-checkbox input:checked + .checkbox-eye-image {
    background-image: url('/images/hide.png')
}

.checkbox-arrow-image {
    background-image: url('/images/arrow.png');
    transition: transform .3s
}

.custom-checkbox input:checked + .checkbox-arrow-image {
    background-image: url('/images/arrow.png');
    transform: rotate(90deg)
}

#about {
    padding: 10px 15px;
    color: #fff
}

    #about a {
        color: #00bfff;
        outline: 0;
        font-weight: 500;
        transition: color .2s
    }

        #about a:hover {
            color: #5865f2
        }

    #about h2 {
        margin: 0 0 12px;
        border-bottom: 1px solid rgba(255,255,255,.15);
        padding-bottom: 6px
    }

    #about p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 12px
    }

    #about hr {
        border: none;
        border-top: 1px solid rgba(255,255,255,.2);
        margin: 15px 0
    }

    #about h3 {
        font-size: 16px;
        margin: 0 0 8px
    }

.thanks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px
}

    .thanks-list li {
        margin-bottom: 8px;
        padding-left: 10px;
        border-left: 3px solid rgba(255,255,255,.5)
    }

.sidebar-header {
    padding: 0 0 15px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 20px;
    color: #fff
}

.version-section {
    margin-bottom: 30px
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px
}

.version-item {
    position: relative;
    padding: 0 10px;
    margin-bottom: 15px;
    color: #fff
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px
}

.version-name {
    font-size: 16px;
    font-weight: 500;
    color: #fff
}

.version-date {
    font-size: 13px;
    color: #bdc3c7
}

.version-desc {
    font-size: 14px;
    color: #bdc3c7;
    line-height: 1.5
}

.content-area {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

    .content-area h2 {
        font-size: 28px;
        margin-bottom: 20px;
        color: #ecf0f1
    }

    .content-area p {
        max-width: 600px;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 25px;
        color: #bdc3c7
    }

@media (max-width:768px) {
    body {
        flex-direction: column
    }

    .sidebar {
        width: 100%;
        max-height: 40vh
    }
}

.btn {
    position: fixed;
    width: 35px;
    height: 35px;
    background-color: #fff;
    border: 2px solid gray;
    border-radius: 4px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center
}

    .btn:hover {
        background-color: #d3d3d3
    }

#full-screen-btn {
    background-image: url("/images/fullscreen.png");
    top: 10px;
    right: 30px
}

#create-user-marker {
    background-image: url("/images/local.png");
    background-size: 70% 70%;
    top: 60px;
    right: 30px;
    z-index: 3
}

#reolad-no-cache {
    background-image: url("/images/reload.png");
    background-size: 55% 55%;
    top: 110px;
    right: 30px
}

#zoom-out {
    background-image: url("/images/minus.png");
    right: 30px;
    border-left: 1px solid gray !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important
}

#zoom-in {
    background-image: url("/images/plus.png");
    right: 65px;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 1px solid gray !important
}

.btn::after {
    content: attr(data-tooltip);
    right: 115%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none
}

.btn::before {
    content: "";
    right: 110%;
    transform: translateY(-50%) rotate(180deg);
    border: 5px solid transparent;
    border-right-color: #000
}

.btn:hover::after, .btn:hover::before {
    opacity: 1
}
