body {
    background-image: url('../../img/bg-home.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

:root {
    --page-background-color: #D8EBE6;
    --clouds-z: 30;

    /* Use Resolution according to image size, for example 8k (7680 x 4320) */
    --map-w-size: 2356px;
    --map-h-size: 2160px;
    --default-font-weight: 400;

    /* Initial map position mobile */
    --map-px: -1010px;
    --map-py: -400px;

    --map-z: 0;
    --map-sec-z: 5;

    --minimap-var: 0.065;
}

.jt-content {
    position: relative;
    max-height: 100vh;
}

.jt-content>.jt-content-text {
    position: fixed;
    top: 30px;
    left: 5vw;
    width: 90vw;
    background-color: white;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
    padding-bottom: 4px;
    border-radius: 12px;
    z-index: 100;
    box-shadow: 2px 4px 15px 0px rgba(0, 0, 0, 0.20);
}

.jt-content>.jt-content-text h1 {
    font-size: 18px;
}

.jt-content>.jt-content-text hr {
    margin: 0;
}

.jt-content .jt-content-text-wrapper {
    overflow-y: auto;
    max-height: 70vh;
}

.jt-content>.jt-content-text button {
    padding-bottom: 0;
    padding-top: 8px;
    background: transparent;
    border: 0;
}

.jt-content>.jt-content-text button:active {
    border: none;
}

.jt-content>.jt-content-text button svg {
    transition: transform .3s ease;
}

.jt-content-text-description {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.jt-content-text .expanded .jt-content-text-description {
    grid-template-rows: 1fr;
}

.jt-content-text .expanded~div button svg {
    transform: rotate(540deg);
}

.jt-content-text-description>div {
    overflow: hidden;
}

.jt-content .jt-content-map {
    overflow: hidden;
}

.jt-map-container {
    position: relative;
    max-height: 100vh;
    width: 100vw;
}

.map-wrapper {
    width: var(--map-w-size);
    height: var(--map-h-size);
    position: relative;
    z-index: var(--map-z);
    will-change: transform;
    transform: translate(var(--map-px), var(--map-py));
    touch-action: none
}

.jt-map-container #map {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: url('../../img/map-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.jt-map-link {
    background-color: white;
    padding: 4px;
    padding-right: 14px;
    margin-left: 8px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    box-shadow: 2px 4px 15px 0px rgba(0, 0, 0, 0.20);
    color: var(--body-color);
    font-weight: 500;
    z-index: 30;
    text-decoration: none;
}

.map-wrapper .jt-map-link-container {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
}

.map-wrapper.dragging a {
    pointer-events: none;
}

.jt-flag-list {
    margin-top: 185px;
    max-height: 56vh;
    overflow-y: auto;
    position: relative;
    padding: 20px 10px;
    mask: linear-gradient(180deg,#0000,#000 10% 88%,#0000)
}

.jt-flag-list .jt-map-link-container {
    display: block;
    margin-bottom: 10px;
}

.jt-switch-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 74px;
}

.jt-switch-container .btn-group {
    border-radius: 10px;
    background: var(--page-background-color);
    gap: 2px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.12);
}

.jt-switch-container .btn-group-sm > .btn {
    --bs-btn-border-radius: 10px;
}

.jt-switch-container .btn-group label {
    opacity: .5;
    background-color: white;
    /* border-color: transparent; */
}

.jt-switch-container .btn-group input:checked + label {
    opacity: 1;
    background-color: white;
    /* border-color: transparent; */
}

#minimap {
    width: calc(var(--map-w-size) * var(--minimap-var));
    height: calc(var(--map-h-size) * var(--minimap-var));
    position: fixed;
    bottom: 50px;
    left: 50px;
    z-index: 2;
    background: url('../../img/map-mini.png') no-repeat;
    background-size: cover;
    pointer-events: none;
    /* transform: translateX(0); */
    transition: transform .4s ease-in-out;
    display: none;
    border-radius: 5px;
    border: 2px solid white;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.12);
}

#minimap-viewport {
    width: 35%;
    height: 35%;
    position: absolute;
    background-color: rgba(0, 0, 0, .5);
    border: 1px solid;
}

.jt-content-map.d-none + #minimap {
    transform: translateX(-200px);
}

.clouds {
    inset: 0;
    position: absolute;
    pointer-events: none;
    z-index: var(--clouds-z);
    top: 0;
}

.cloud {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.3;
}

.cloud-4x {
    animation: moveclouds 90s linear infinite;
}

.cloud-3x {
    animation: moveclouds 130s linear infinite;
}

.cloud-2x {
    animation: moveclouds 160s linear infinite;
}

.cloud-1x {
    animation: moveclouds 200s linear infinite;
}

@keyframes moveclouds {
    0% {
        transform: translateX(-300px);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    100% {
        transform: translateX(4200px)
    }
}


@media screen and (max-width: 768px) {
    :root {
        --minimap-var: 0.035;
    }
    
    #minimap {
        left: 16px;
        bottom: 77px;
        display: block;
    }
    body {
        background-image: url('../../img/bg-home-mobile.jpg');
    }
}

@media screen and (min-width: 768px) {
    :root {
        --map-px: -602px;
        --map-py: -30px;

        --minimap-var: 0.045;
    }

    #minimap {
        bottom: 112px;
    }

    .jt-content>.jt-content-text h1 {
        margin-bottom: 30px;
    }

    .jt-switch-container {
        position: absolute;
        left: 50%;
        bottom: 120px;
        transform: translateX(-50%);
    }

    .jt-flag-list {
        margin-top: 220px;
        max-height: 70vh;
        overflow-y: auto;
        mask: none;
        display: flex;
        flex-wrap: wrap;
    }

    .jt-flag-list .jt-map-link-container {
        margin-right: 12px;
        margin-bottom: 12px;
    }

    .jt-content>.jt-content-text h1 {
        font-size: 26px;
        margin-right: 80px;
    }
}

@media screen and (min-width: 1280px) {
    :root {
        --map-px: -240px;
        --map-py: -240px;
    }

    .jt-content {
        flex-direction: row;
        height: 100vh;
    }

    .jt-content>.jt-content-text {
        width: 420px;
        padding: 16px;
        border-radius: 20px;
        position: fixed;
        top: 42px;
        left: 27px;
        margin: 0 40px;
        background-color: white;
        padding: 16px;
        border-radius: 12px;
    }

    .jt-content>.jt-content-text h1 {
        font-size: 25px;
        margin-right: 0px;
    }

    .map-wrapper .jt-map-link-container .jt-map-link {
        opacity: 0;
        transform: translateY(20px);
        transition: all .2s ease-out;
    }

    .map-wrapper .jt-map-link-container:hover .jt-map-link {
        opacity: 1;
        transform: translateY(0px);
    }

    .jt-flag-list {
        display: none;
    }
    
    .jt-switch-container {
        display: none;
    }
    
}

@media screen and (min-width: 1680px) {
    :root {
        --map-px: -100px;
        --map-py: -200px;
    }

    .jt-content>.jt-content-text {
        width: 530px;
        top: 100px;
        left: 100px;
    }
}

@media screen and (min-height: 800px) {
    .jt-flag-list {
        max-height: 62vh;
    }
}