@media screen and (pointer: coarse) and (max-device-width: 600px) {

    body{
        position: fixed;
        width: 100%;
        height: 100dvh;
        top: 0;
        left: 0;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .back-to-cheat-sheet{
        position: absolute;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin: 20px;
        color: #ffffff !important;
        opacity: 0.3;
        transition: opacity 0.2s ease-in-out;
        z-index: 50;
    }

    .back-to-cheat-sheet:hover{
        opacity: 1.0;
    }

    .back-to-cheat-sheet img{
        height: 70px;
        padding-right: 15px;
    }

    .back-to-cheat-sheet span{
        font-size: 35px;
    }

    .reload-data-button{
        display: none;
    }

    .reload-data-button:hover{
        opacity: 1.0;
    }

    .automation-progress{
        border: 5px solid #ff0000;
        border-radius: 50%;
    }

    .automation-completed{
        border:5px dotted #0000ff;
        border-radius: 50%;
    }

    .automation-selected{
        border: 5px solid #00ff00;
        border-radius: 50%;
    }

    .automation-final{
        filter: invert(1);
    }

    hr{
        border: 1px dashed rgba(204, 204, 204, 0.26);
        margin: 5px;
        width: 90%;
    }

    body{
        border: 0;
        margin: 0;
        overflow: hidden;
        background: #000;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    #incompatible{
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg,rgba(49, 50, 72, 1) 25%, rgba(64, 49, 72, 1) 75%);
        z-index: 30;
        display: flex;
        align-content: center;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        font-size: 60px;
    }

    .psv-loader {
        user-select: none;
        width: 300 !important;
        height: 300 !important;
    }

    .psv-loader-image{
        max-width: 200px !important;
        max-height: 200px !important;
    }

    .psv-virtual-tour-arrow{
        --arrow-opacity: 0; /* Default opacity */
        opacity: var(--arrow-opacity) !important;
        width: 60px !important;
        height: 60px !important;
    }

    #content{
        width: 100%;
        height: 100%;
        transition: width 0.2s ease-in-out;
    }

    #map-area{
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100dvh;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

    #legend-cover{
        position: absolute;
        top:0;
        left:0;
        background:#000;
        height:100%;
        width: 200px;
        z-index:10;
    }

    #map{
        position: relative;
        display: flex;
        width: 100%;
        height: 100dvh;
        transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    }

    #viewport{
        position: relative;
        overflow: hidden;
        width: 100%;
        height: 100dvh;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #map-env{
        position: relative;
    }

    .share_icon{
        position: absolute;
        z-index: 19;
        width: 75px;
        top: 20px;
        right: 20px;
        cursor: pointer;
        opacity: 0.6;
        z-index:50;
    }
    .share_icon:hover{
        opacity: 1.0;
    }

    .recenter_icon{
        position: absolute;
        z-index: 19;
        width: 75px;
        top: 20px;
        right: 130px;
        cursor: pointer;
        opacity: 0.5;
        z-index:50;
    }
    .recenter_icon:hover{
        opacity: 0.9;
    }

    .v360_close{
        position: absolute;
        z-index: 60;
        width: 60px;
        top: 20px;
        left: 20px;
        cursor: pointer;
        opacity: 0.5;
        filter: invert();
        box-shadow: #000;
    }
    .v360_close:hover{
        opacity: 1.0;
    }

    .v360_bright{
        position: absolute;
        z-index: 60;
        top: 50px;
        left: 97px;
        opacity: 0.5;
        box-shadow: #000;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    .v360_bright:hover{
        opacity: 1.0;
    }

    .v360_contrast{
        position: absolute;
        z-index: 60;
        top: 14px;
        left: 100px;
        opacity: 0.5;
        box-shadow: #000;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    .v360_contrast:hover{
        opacity: 1.0;
    }

    .v360_bright_icon{
        width: 40px;
        height: 40px;
    }

    .v360_contrast_icon{
        width: 34px;
        height: 34px;
    }

    .v360_slider {
        -webkit-appearance: none;
        appearance: none;
        width: 400px;
        height: 12px; /* Thin track */
        background: transparent;
        position: relative;
    }
    
    .v360_slider::-webkit-slider-runnable-track {
        height: 12px;
        background: linear-gradient(to right, white var(--progress), transparent var(--progress));
        border: 1px solid white; /* White outline */
        border-radius: 2px;
    }
    
    .v360_slider::-moz-range-track {
        height: 12px;
        background: linear-gradient(to right, white var(--progress), transparent var(--progress));
        border: 1px solid white;
        border-radius: 2px;
    }
    
    .v360_slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        background: white;
        border-radius: 50%;
        cursor: pointer;
        margin-top: -5px;
    }
    
    .v360_slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        background: white;
        border-radius: 50%;
        cursor: pointer;
    }

    .cursor1{
        width: 15px;
        height: 15px;
        border-left: 3px solid #ff0000;
        border-top: 3px solid  #ff0000;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 12;
        transition: transform 0.2s linear;
    }
    .cursor2{
        width: 15px;
        height: 15px;
        border-left: 3px solid #00ff00;
        border-top: 3px solid  #00ff00;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 12;
        transition: transform 0.2s linear;
    }
    .cursor3{
        width: 15px;
        height: 15px;
        border-left: 3px solid #0000ff;
        border-top: 3px solid  #0000ff;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 12;
        transition: transform 0.2s linear;
    }
    .cursor4{
        width: 15px;
        height: 15px;
        border-left: 3px solid #ca36dd;
        border-top: 3px solid  #ca36dd;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 12;
        transition: transform 0.2s linear;
    }
    #cur-map{
        position: relative;
        max-height: calc(100vh - 20px);
        max-width: 100%;
        z-index: 9;
        object-fit: contain;
    }
    #placed_circles{
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 11;
    }
    .circles{
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 13;
    }
    .transparent{
        opacity: 0.6;
    }

    #flash_message{
        color: #ccc;
        background-color: #000000dd;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 25;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 50px;
    }

    .dot-flashing {
        margin: 10px;
        align-self: center;
        position: relative;
        width: 10px;
        height: 10px;
        border-radius: 5px;
        background-color: #666;
        color: #666;
        animation: dotFlashing 1s infinite linear alternate;
        animation-delay: .5s;
    }

    .dot-flashing::before, .dot-flashing::after {
        content: '';
        display: inline-block;
        position: absolute;
        top: 0;
    }

    .dot-flashing::before {
        left: -15px;
        width: 10px;
        height: 10px;
        border-radius: 5px;
        background-color: #666;
        color: #666;
        animation: dotFlashing 1s infinite alternate;
        animation-delay: 0s;
    }

    .dot-flashing::after {
        left: 15px;
        width: 10px;
        height: 10px;
        border-radius: 5px;
        background-color: #666;
        color: #666;
        animation: dotFlashing 1s infinite alternate;
        animation-delay: 1s;
    }

    @keyframes dotFlashing {
        0% {
            background-color: #ccc;
        }
        50%,
        100% {
            background-color: #666;
        }
    }

    #v360-viewer{
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: -1;
    }

    #ruler{
        cursor: crosshair;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 15;
    }

    #start-ruler-dot{
        width: 10px;
        height: 10px;
        border: solid 1px black;
        border-radius: 50%;
        background: #60a5fa;
    }

    #touch-pad{
        cursor: crosshair;
        touch-action: none;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 16;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #overlay-spots{
        position:relative;
        transform-origin: 0px 0px;
    }

    .spot{
        height: 2vw;
        width: 2vw;
        min-height: 25px;
        min-width: 25px;
        max-height: 50px;
        max-width: 50px;
        border-radius: 50%;
        border: solid 1px #000;
        background-size: cover;
        transform: translate(-50%, -50%);
        cursor: pointer;
        opacity: 0.6;
        user-select: none;
        touch-action: none;
    }

    .spot-blank{
        height: 15px;
        width: 15px;
        border-radius: 50%;
        background-size: contain;
        cursor: pointer;
        user-select: none;
        touch-action: none;
    }

    .spot-co{
        height: 2vw;
        width: 2vw;
        min-height: 24px;
        min-width: 24px;
        max-height: 35px;
        max-width: 35px;
        background-size: contain;
        background-repeat: no-repeat;
        cursor: pointer;
        transform: translate(-50%, -50%);
        opacity: 0.8;
        user-select: none;
        touch-action: none;
    }

    .spot-icon{
        height: 25px;
        width: 25px;
        border-radius: 10%;
        background-size: contain;
        cursor: pointer;
        opacity: 0.6;
        user-select: none;
    }

    .spot:hover, .spot-blank:hover, .spot-icon:hover, .spot-co:hover{
        opacity: 1.0;
    }

    #spot-panel{
        position:absolute;
        top: 33dvh;
        left: 20px;
        width: calc(100% - 60px);
        background-color: #313248;
        box-shadow: 0 0 150px 100px #161615;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px;
        z-index: 100;
        border-radius: 20px;
    }

    #spot-panel-single{
        position:absolute;
        top: 20dvh;
        left: 20px;
        width: calc(100% - 60px);
        background-color: #313248;
        box-shadow: 0 0 150px 100px #161615;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px;
        z-index: 100;
        border-radius: 20px;
    }

    #spot-image, #spot-image-single{
        width: 100%;
    }

    #spot-open{
        position: absolute;
        filter: invert(1);
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 20px;
    }

    #spot-block{
        position: absolute;
        filter: invert(1);
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: calc(50% + 5px);
    }

    #spot-single-rating{
        position: absolute;
        height: 85px;
        bottom: 25px;
        left: 25px;
    }

    .center-dot{
        position: absolute;
        width: 3px;
        height: 3px;
        background-color: rgb(255,255,255);
        border: 1px solid rgb(0,0,0);
        border-radius: 50%;
        margin: 1px;
    }

    #circles1 .center-dot,
    #circles2 .center-dot,
    #circles3 .center-dot,
    #circles4 .center-dot,
    #circles1 .radius,
    #circles2 .radius,
    #circles3 .radius,
    #circles4 .radius,
    #circles1 .angle,
    #circles2 .angle,
    #circles3 .angle,
    #circles4 .angle,
    #circles1 .square,
    #circles2 .square,
    #circles3 .square,
    #circles4 .square {
        transition: transform 0.2s linear;
    }


    .angle{
        position: absolute;
        border-top-right-radius: 100%;
        padding: 0;
        margin: 0;
    }

    .angle-viz{
        position: absolute;
        border-top-right-radius: 100%;
        padding: 0;
        margin: 0;
    }

    .angle-label{
        position: absolute;
        top: -20px;
        left: 5px;
        transform: rotate(4deg);
        font-family: monospace;
        font-size: 12px;
        font-weight: 900;
        text-shadow:
            -1px -1px 1px #000,
            0px -1px 1px #000,
            1px -1px 1px #000,
            1px  0px 1px #000,
            1px  1px 1px #000,
            0px  1px 1px #000,
            -1px  1px 1px #000,
            -2px  0px 1px #000,
            -2px -2px 2px #000,
            0px -2px 2px #000,
            2px -2px 2px #000,
            2px  0px 2px #000,
            2px  2px 2px #000,
            0px  2px 2px #000,
            -2px  2px 2px #000,
            -2px  0px 2px #000;
    }

    .radius{
        position: absolute;
        top:0px;
        left:0px;
        border-radius:50%;
        font-family: monospace;
        font-size: 12px;
        font-weight: 900;
        text-shadow:
            -1px -1px 1px #000,
            0px -1px 1px #000,
            1px -1px 1px #000,
            1px  0px 1px #000,
            1px  1px 1px #000,
            0px  1px 1px #000,
            -1px  1px 1px #000,
            -2px  0px 1px #000,
            -2px -2px 2px #000,
            0px -2px 2px #000,
            2px -2px 2px #000,
            2px  0px 2px #000,
            2px  2px 2px #000,
            0px  2px 2px #000,
            -2px  2px 2px #000,
            -2px  0px 2px #000;
    }

    .square{
        position: absolute;
        top:0px;
        left:0px;
        opacity: 0.3;
    }

    .radius_label, .radius_label_in, .radius_label_alt, .radius_label_alt_in {
        border-radius:50%;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }


    .radius_label .char{
        position: absolute;
        offset-path: circle(calc(50% + 9px) at 50% 50%);
        offset-distance: calc(10px * var(--char-index) - 37.5% - (10px * var(--char-total) / 2));
    }
    .radius_label_in .char{
        position: absolute;
        offset-path: circle(calc(50% - 8px) at 50% 50%);
        offset-distance: calc(10px * var(--char-index) - 37.5% - (10px * var(--char-total) / 2));
    }

    .radius_label_alt .char{
        position: absolute;
        offset-path: circle(calc(50% + 10px) at 50% 50%);
        offset-distance: calc(10px * var(--char-index) + 12.5% - (10px * var(--char-total) / 2));
    }
    .radius_label_alt_in .char{
        position: absolute;
        offset-path: circle(calc(50% - 8px) at 50% 50%);
        offset-distance: calc(10px * var(--char-index) + 12.5% - (10px * var(--char-total) / 2));
    }

    .animate_label{
        animation: circlelabel 60s linear infinite forwards;
    }

    @keyframes circlelabel {
        0% {transform: rotate(0deg);}
        100% {transform: rotate(359deg);}
    }

    .radius_label,.radius_label_alt{
        z-index: 14;
    }

    .radius_label_ff{
        position: absolute;
        top: -18px;
        left: 50%;
        width: max-content;
        font-size: 16px;
    }

    .hide-back{
        background: none !important;
    }

    #menu{
        display: grid;
        user-select: none;
        touch-action: none;
        width: calc(100% - 120px);
        height: calc(100dvh - 40px);
        padding: 20px;
        grid-template-rows: 60px min-content auto 65px min-content 65px auto 90px 75px;
        background: linear-gradient(45deg,rgba(49, 50, 72, 1) 25%, rgba(64, 49, 72, 1) 75%);
        box-shadow: 5px 0px 10px 0px #000;
        z-index: 51;
        position: relative;
        left: 100%;
        transition: left 0.2s ease-in-out; 
    }

    .menu_tab{
        position: absolute;
        width: 80px;
        height: 80px;
        top: 15%;
        left: -79px;
        background: #3a3049;
        border: solid 4px #3a3049;
        border-radius: 15px 0px 0px 15px;
        cursor: pointer;
        color: #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 60px;
        font-family: monospace;
    }

    .menu_title{
        font-size: 50px;
        z-index: 2;
        display: flex;
        align-items: flex-end;
    }

    #legacy-maps{
        font-size: 35px !important;
    }

    #load-legacy{
        width: 30px;
        height: 30px;
        margin-left: 20px;
    }

    #map-type{
        border-radius: 5px;
        border: none;
        color: #FFF;
        background: rgba(0, 0, 0, 0.25);
        box-shadow: inset 0 0 10px #161615;
        height: 50px;
        font-size: 35px;
        padding: 0px 15px;
        padding-top: 8px;
        margin-bottom: 15px;
        font-family: 'Yahfie';
        float: right;
        cursor: pointer;
    }

    .range-header{
        font-family: "Yahfie";
        font-size: 40px;
        letter-spacing: 3.5;
        margin-left: 20px;
        text-align: left;
        display: flex;
        align-items: center;
        margin-top: 10px;
    }

    .range-container{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        margin-top: -5px;
        margin-bottom: 5px;
        margin-left: 10px;
    }

    .options {
        font-size: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 2;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 5px;
        padding: 6px 0px 10px 0px;
        height: auto;
    }

    #official, #unofficial, #cursed_objects, #panorama{
        width: 40px;
        height: 40px;
        margin-right: 10px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .tricheck {
        border: 0;
        background: none;
        position: relative;
        margin: 12px 0px 0px 0px;
        cursor: pointer;
        font-family: "Yahfie";
        letter-spacing: 3.5;
        font-size: 35px;
        display: grid;
        justify-content: start;
    }

    .checkbox{
        grid-column: 1;
        width: 30px;
        height: 30px;
        cursor: pointer;
        margin-right: 20px;
        margin-left: 14px;
        border-radius: 5px;
        border: solid 2px #ccc;
        display: flex;
        justify-content: center;
    }

    .neutral{}

    .neutral:hover{
        background-color: #ffffff60;
    }

    .label{
        grid-column: 2/6;
        text-align: left;
        padding-top: 2px;
        display: flex;
        align-items: center;
    }

    .color_code{
        width: 20px;
        height: 11px;
        border-radius: 25%;
        margin-right: 8px;
        margin-left: -6px;
    }

    .note{
        display: flex;
        font-size: 30px;
        color: #ccc;
        margin-left: 10px;
        align-items: flex-end;
        justify-content: flex-start;
    }

    .note_options{
        display: flex;
        font-size: 30px;
        color: #ccc;
        margin-left: 10px;
        align-items: center;
        justify-content: flex-start;
        margin-top: -7px;
    }

    .note_options input{
        padding: 0;
        margin: 0 12px;
        height: 35px;
        width: 35px;
    }

    .good{
        background-color: #ccc;
        border-color: #1d8100 !important;
    }

    .good .icon{
        display:inline-block;
        width: 30px;
        height: 40px;
        -ms-transform: rotate(45deg); /* IE 9 */
        -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
        transform: rotate(45deg);
    }

    .good .icon:before{
        content: "";
        position: absolute;
        width: 6px;
        height: 20px;
        background-color: #313248;
        left: 11px;
        top: 3px;
    }

    .good .icon:after{
        content: "";
        position: absolute;
        width: 10px;
        height: 6px;
        background-color: #313248;
        left: 6px;
        top: 20px;
    }

    .maps_button{
        background: none;
        cursor: pointer;
        color: #fff;
        position: relative;
        padding: 8px;
        border: none;
        border-bottom: dashed 1px #585858;
        text-align: left;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        font-size: 32px;
        font-family: "Yahfie";
        letter-spacing: 3.5px;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .maps_button:active,
    .maps_button:hover{
        background: none !important;
        color: #fff !important;
    }

    
    .maps_button:focus{
        background: #fff !important;
        color: #313248 !important;
    }

    .selected_map{
        background-color: #FFF;
        color: #313248;
        opacity: 1.0;
        font-weight: bolder;
    }

    #map_env{
        transform-origin: top left;
    }

    .maps_button:hover{
        background-color: #ffffff60;
    }

    .map_size{
        height: 30px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        font-family: monospace;
        border: solid 4px #ccc;
        margin-right: 20px;
        margin-left: 10px;
        border-radius: 5px;
        text-align: center;
    }

    .maps_button .s{
        background-color: #1d8100;
        color: #fff;
    }

    .maps_button .m{
        background-color: #d1cc00;
        color: #000;
    }

    .maps_button .l{
        background-color: #e90000;
        color: #fff;
    }

    .map_bottom_bar{
        position: absolute;
        bottom: 50;
        left: 0;
        width: calc(100% - 100px);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        color: #ccc;
        font-size: 30px;
        padding: 15px 30px;
        margin: 0px 20px;
        border-radius: 30px;
        background: #3a3049c9;
        z-index: 50;
    }

    .map_icons{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .icon_labels{
        padding-right: 10px !important;
        width: calc(50% - 65px);
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .icon_labels:hover,
    .icon_labels:focus,
    .icon_labels:active {
        background: none !important;
    }

    #show_spots{
        cursor: pointer;
    }

    .instructions{
        position: absolute;
        width: 100%;
        text-align: center;
        bottom: 10px;
        color: #ddd;
        font-size: 26px;
    }

    #clear{
        width: 100%;
        justify-self: center;
        font-size: 50px;
        color: #ccc;
        border: 2px solid #ccc;
        background: none;
        border-radius: 5px;
        margin: 5px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    #clear:hover{
        background-color: #ffffff60 !important;
    }

    #copyright{
        color: #858585;
        font-size: 18px;
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
}