html, body {
    padding: 0; margin: 0; height: 100%; overflow: hidden;
}

#vtour {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
}

#pano {
    z-index: 0; width: 100%; height: 100%;
}

#ui_stage {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    user-select: none;
    -webkit-user-select: none;
}

#ui_stage #ui_area_lt {
    position: absolute;
    left: 0px; top: 0px; width: 100%;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
}

#ui_stage #ui_area_rb {
    position: absolute;
    right: 0px; bottom: 0px; width: 100%;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
}

#ui_stage #ui_area_rt {
    position: absolute;
    right: 0px; top: 0px; width: 10px;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
}




#logo {
    position: absolute;
    right: 10px; top: 10px; width: 50px; height: auto;
    cursor: pointer;
}

#ui_stage #ui_prevnext_stage {
    position: absolute;
    right: 110px; bottom: 10px; width: 90px; height: 40px;
    z-index: 100;
}

.btn {
    position: absolute; cursor: pointer;
    width: 40px; height: 40px; border-radius: 20px; 
}

.btn svg .bg {
    fill: #ffffff;
}

.btn svg .icon {
    fill: #000000;
}

.btn svg .icon2 {
    fill: #000000;
}

@media (hover: hover) {
    .btn:hover svg .bg {
        fill: #000000;
    }

    .btn:hover svg .icon {
        fill: #ffffff;
    }

    .btn:hover svg .icon2 {
        fill: #ffffff;
    }
}

.btn.prev { left: 0; top: 50%; transform: translateY(-50%); }

.btn.next { right: 0; top: 50%; transform: translateY(-50%); }

.btn.info { right: 10px; bottom: 10px }

.btn.audio  { right: 60px; bottom: 10px }

.btn.audio svg path  {
    transition: opacity 0.3s;
}

.btn.audio svg #on  {
    opacity: 0;
}

.btn.audio.enabled svg #on  {
    opacity: 1;
}

.btn.audio.enabled svg #off  {
    opacity: 0;
}



#ui_group_title_m  {
    position: absolute;
    left: 10px; top: 10px; right: 80px; 
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px; font-weight: bold;
    color: #FFFFFF;
    display: none;
}

#ui_area_rb #ui_group_title  {
    position: absolute;
    right: 210px; bottom: 38px; width: auto; line-height: 20px; height: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px; font-weight: bold;
    color: #FFFFFF;
}

#ui_area_rb #ui_counter_stage  {
    position: absolute;
    right: 210px; bottom: 10px; width: auto; line-height: 26px; height: 26px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #FFFFFF;
}

#ui_area_rb #ui_dots_stage  {
    position: absolute;
    right: 210px; bottom: 10px; width: auto; height: 26px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#ui_area_rb #ui_counter_stage.hidden,
#ui_area_rb #ui_dots_stage.hidden  {
    opacity: 0;
    pointer-events: none;
}


#ui_dots_stage .dot {
    display: flex;
    cursor: pointer;
}

#ui_dots_stage .dot svg {
    pointer-events: none;
}

#ui_dots_stage .dot .dot_stroke {
    fill: #ffffffa2;
}

#ui_dots_stage .dot .dot_hover {
    transition: fill-opacity 0.3s, transform 0.2s;
    fill: #ffffff;
    fill-opacity: 0;
    transform-origin: center;
    transform: scale(0);
}

#ui_dots_stage .dot.active .dot_hover,
#ui_dots_stage .dot:hover .dot_hover {
    fill-opacity: 1;
    transform: scale(1);
}

#ui_dots_stage .dot .dot_check {
    transition: fill 0.3s, transform 0.2s;
    fill: #ffffff; stroke: #333333;
    transform-origin: center;
    transform: scale(0);
}

#ui_dots_stage .dot.visited .dot_check {
    transform: scale(1);
}

#ui_dots_stage .dot.active .dot_check,
#ui_dots_stage .dot:hover .dot_check {
    fill: #000000; stroke: #ffffff;
}

@media (max-width: 500px) {

    #ui_area_rt {
        display: none;
    }

    #ui_area_rb #ui_dots_stage {
        right: 10px; bottom: 100px; height: calc(100vh - 170px);
        flex-direction: column;
        justify-content: flex-end;
    }

    #ui_area_rb #ui_group_title  {
        display: none;
    } 

    #ui_group_title_m  {
        display: block;
    } 
}







#ui_stage #ui_description_stage {
    position: absolute;
    display: flex; flex-direction: column;
    right: 10px; bottom: 60px; width: 40vw; min-width: 250px; max-width: 500px; max-height: 30vh;
    background-color: rgba(0,0,0,0.0);
    border-radius: 5px;
    transition: background-color 0.3s, padding 0.3s;
    padding: 0; box-sizing: border-box;
}

#ui_stage #ui_description_stage .scrollarea > .scrollarea-track-v,
#ui_stage #ui_description_stage .scrollarea > .scrollarea-track-h {
    background: rgba(255,255,255,0.2);
}

#ui_stage #ui_description_stage .scrollarea > .scrollarea-track-v > .scrollarea-bar-v,
#ui_stage #ui_description_stage .scrollarea > .scrollarea-track-h > .scrollarea-bar-h {
    background: rgba(255,255,255,1);
}

@media (max-width: 500px) {
    #ui_stage #ui_description_stage {
        width: calc(100vw - 20px); min-width: auto; max-width: auto;
    }    
}

#ui_stage #ui_description_stage::before {
    content: ' ';
    position: absolute;
    right: 13px; top: 100%;
    width: 0; height: 0;
    border: 0 solid transparent;
    border-left-width: 6px;
    border-right-width: 6px;
    border-top: 8px solid rgba(255, 255, 255, 0.8); /* triangle */
    transform-origin: top;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s;
}

#ui_stage #ui_description_stage.open {
    background-color: rgba(255, 255, 255, 0.8);  /*background colour*/
    padding: 10px 0px 12px 15px;
}
#ui_stage #ui_description_stage.open::before {
    opacity: 1;
    transform: scale(1);

}

#ui_stage #ui_description_stage #ui_description_title {
    position: relative;
    width: 100%; transition: width 0.5s, color 0.3s;
    font-family: Arial, Helvetica, sans-serif; font-size: 24px; color: #ffffff;
    text-align: right;
    white-space: nowrap;
}
#ui_stage #ui_description_stage.open #ui_description_title {
    width: 0; color: #000000;
}

#ui_stage #ui_description_stage #ui_description_text {
    position: relative;
    height: 0px; margin-top: 0;
    transition: height 0.4s, margin-top 0.4s;
}

#ui_stage #ui_description_stage.open #ui_description_text {
    margin-top: 10px;
}

#ui_stage #ui_description_stage.open #ui_description_text > div:first-child {
    overflow: auto; max-height: 100%;
}

#ui_stage #ui_description_stage.open #ui_description_text > div:first-child > div {
    font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #000000;
    padding: 0 10px 0 0;
}

#ui_stage #ui_description_stage.open #ui_description_text > div:first-child > div p:first-child {
    margin-top: 0;
}

#ui_stage #ui_description_stage.open #ui_description_text > div:first-child > div p:last-child {
    margin-bottom: 0;
}

/* AUDIO */

#ui_stage #ui_description_stage #ui_audio_timeline {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 5px;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

#ui_stage #ui_description_stage.open #ui_audio_timeline.visible {
    opacity: 1;
}

#ui_stage #ui_audio_timeline > div {
    position: absolute;
    left: 0; top: 0; width: 0%; height: 5px;
    background: rgb(31,100,208);
    /* background: linear-gradient(180deg, rgba(31,100,208,1) 0%, rgba(255, 255, 255, 0) 100%); */
    transition: width 0.3s;
}





#ui_stage #ui_dot_title {
    position: absolute; 
    left: 0; bottom: 55px; transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    border-radius: 4px;
    transition: opacity 0.2s, left 0.3s;
    padding: 10px 15px; z-index: 500;
    font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #ffffff;
    opacity: 0;
    pointer-events: none;
}

#ui_stage #ui_dot_title::before {
    content: ' ';
    position: absolute;
    left: 50%; top: 100%; transform: translateX(-50%);
    width: 0; height: 0;
    border: 0 solid transparent;
    border-left-width: 6px;
    border-right-width: 6px;
    border-top: 8px solid rgba(0,0,0,0.7);
}

#ui_stage #ui_dot_title.visible {
    opacity: 1;
}


#ui_stage #ui_logo_hint {
    position: absolute; 
    right: 10px; top: 55px; 
    background-color: rgba(0,0,0,0.7);
    border-radius: 4px;
    transition: opacity 0.2s, left 0.3s;
    padding: 10px 15px; z-index: 500;
    font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #ffffff;white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

#ui_stage #ui_logo_hint::before {
    content: ' ';
    position: absolute;
    right: 20px; bottom: 100%;
    width: 0; height: 0;
    border: 0 solid transparent;
    border-left-width: 6px;
    border-right-width: 6px;
    border-bottom: 8px solid rgba(0,0,0,0.7);
}

@media (hover: hover) {
    #logo:hover ~ #ui_logo_hint {
        opacity: 1;
    }
}

.btn.guide_enter::before,
.btn.guide_exit::before {
    display: block; 
    position: absolute;
    right: 50px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px; color: #FFFFFF; white-space: nowrap;
    text-shadow: 0 0 3px rgba(0,0,0,0.9);
    height: 40px; line-height: 40px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (hover: hover) {
    .btn.guide_enter:hover:before,
    .btn.guide_exit:hover:before {
        opacity: 1;
    }
}

.btn.guide_enter::before {
    content: "Enter guided tour";
}

.btn.guide_exit::before {
    content: "Exit guided tour";
}
/* side triangle 
#ui_area_rt #ui_logo_hint {
    position: absolute; 
    right: 72px; top: 10px; 
    background-color: rgba(0,0,0,0.7);
    border-radius: 4px;
    transition: opacity 0.2s, left 0.3s;
    padding: 10px 15px; z-index: 500;
    font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

#ui_area_rt #ui_logo_hint::before {
    content: ' ';
    position: absolute;
    left: 100%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 8px;
    border-color: transparent transparent transparent rgba(0,0,0,0.7);
*/