:root{
    --mv-highlight:#AAD349;
    --mv-disabled: #cccccc
}

#mv-button-container{
    .fa, .fa-solid{
        width: 20px;
    }

    .fa-vMiddle{
        vertical-align: middle !important;
    }

    .btn:hover{
        background-color: var(--bs-btn-bg)  ;
        border-color: transparent ;
    }

    .btn:disabled{
        opacity: 0.15;
    }

    .btn:has(.fa.fa-circle-question){
        color:var(--mv-highlight);
    }

    .btn:has(.fa.fa-circle-question):active, .btn:has(.fa.fa-circle-question):hover{
        background-color:var(--mv-highlight);
        color: #ffffff;
    }

    @media (hover: hover) {
        .btn:hover {
            background-color: var(--bs-btn-hover-bg);
            border-color: var(--bs-btn-hover-border-color);
        }
    }
}

.mv-layer-selector-container{
    z-index: 999;

    .mv-layer-selector{
        top: 0px;
        left: 50px;
        border-radius: 4px;
        border: solid 1px gray;
        margin: 0px;
        padding: 0px;
        background-color: #f8f8f8;
        overflow-y: scroll;

        .fa-eye{
            color: red;
        }

        li > button{
            border: none;
            background-color: transparent;
            cursor: pointer;
        }

        .disabled{
            color: var(--mv-disabled);
        }

        ul.disabled button{
            pointer-events: none;
        }

        ul.disabled > li > button > i{
            color:var(--mv-disabled);
            -webkit-text-stroke: 0px;
        }

        ul {
            list-style: none;
            padding-left: 1em;
        }
        ul > li{
            padding-top: 0.2em;
        }

        > ul{
            margin: 0;
            padding: 0;
            text-align: left;
        }

        span.model-part{
            padding-right:0.5em;
        }
    }
}

.mv-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0  !important;
    /* height: 100% !important;
    width: 100% !important; */
    height: 100vh !important;
    width: 100vw !important;
    z-index: 999;
}

.mv-hide-overflow {
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
}


.mv-hide {
    display: none !important;
}

.mv-loader {
    border: 5px solid #f3f3f3; /*Lightgrey*/
    border-top: 5px solid #3d3d3d; /*Grey*/
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    z-index: 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#mv-help-overlay{
    position:absolute;
    top: 0px;
    right: 0px;
    left: 0px;
    bottom:0px;
    z-index: 999;
    background-color: rgba(0,0,0,0.8);
    color: #f3f3f3;
    user-select: none;

    button.btn-close{
        font-size: xx-large;
        margin-right: 10px;
        margin-top: 10px;
        margin-left: -48px;
    }
}

.mv-poi-info {
    position: fixed;
    left: 3rem;
    right: 3rem;
    bottom: 2rem;
    background: rgba(255, 255, 255, .9);
    border-radius: var(--bs-border-radius);
    -webkit-border-radius: var(--bs-border-radius);
    -moz-border-radius: var(--bs-border-radius);
    -ms-border-radius: var(--bs-border-radius);
    -o-border-radius: var(--bs-border-radius);
    border-width: var(--bs-border-width);
    padding: 1rem;
    padding-left: 60px;
    padding-right: 60px;
    user-select: none;
    border-top: solid .25rem rgba(120, 190, 67, 1);
    box-shadow: rgba(0, 0, 0, .5) 0px 5px 15px;
    max-width: 800px;
    margin: auto;
    > h1 {
        color:  rgba(120, 190, 67, 1);
        font-size: 2rem;
    }

    > .btn-close {
        float: right;
        margin-right: -43px;
    }

    .mv-poi-nav-controls{
        text-align: center;

        .btn{
            color: rgba(120, 190, 67, 1);
            position: absolute;
            top:50%;
            transform: translateY(-50%);
        }
    
        .btn.next{
            right:0;
        }
    
        .btn.prev{
            left:0;
        }
    }
}

/* @media screen and (min-device-width: 320px) and (max-device-width: 480px), screen and (min-device-height: 320px) and (max-device-height: 480px) { */
@media (max-device-height: 480px), (max-device-width: 480px){
    .mv-poi-info {
        bottom: 0.25em;
        width: calc(100vw - 0.5em);
        left: 0.25em;
        p {
            font-size: 0.8em;
            line-height: 1em;
            margin-bottom: 0em;
        }
        h1 {
            font-size: 1.2em;
            line-height: 1em;
            padding-bottom: 0em;
        }
        .btn-close {
            margin-top: -12px;
        }
    }
}

div#mv-interaction-helper{
    position: fixed;
    top: calc(50%);
    left: 50%;
    margin: -128px;
    background-image: url(/img/hand_gesture_2.gif);
    width: 256px;
    height: 256px;
    background-size: contain;
}

.fade-in {
    opacity: 1;
    animation: fadeIn ease 1s;
    -webkit-animation: fadeIn ease 1s;
    -moz-animation: fadeIn ease 1s;
    -o-animation: fadeIn ease 1s;
    -ms-animation: fadeIn ease 1s;
}
@keyframes fadeIn {
    0% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}
  
@-moz-keyframes fadeIn {
    0% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}
  
@-webkit-keyframes fadeIn {
    0% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}
  
@-o-keyframes fadeIn {
    0% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}
  
@-ms-keyframes fadeIn {
    0% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}

.fade-out {
    opacity: 0;
    animation: fadeOut ease 1s;
    -webkit-animation: fadeOut ease 1s;
    -moz-animation: fadeOut ease 1s;
    -o-animation: fadeOut ease 1s;
    -ms-animation: fadeOut ease 1s;
}
@keyframes fadeOut {
    0% {
        opacity:1;
    }
    100% {
        opacity:0;
    }
}
  
@-moz-keyframes fadeOut {
    0% {
        opacity:1;
    }
    100% {
        opacity:0;
    }
}
  
@-webkit-keyframes fadeOut {
    0% {
        opacity:1;
    }
    100% {
        opacity:0;
    }
}
  
@-o-keyframes fadeOut {
    0% {
        opacity:1;
    }
    100% {
        opacity:0;
    }
}
  
@-ms-keyframes fadeOut {
    0% {
        opacity:1;
    }
    100% {
        opacity:0;
    }
}



/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 768px) {
    div.mv-animation-player{
        padding-left: 0.25em;
        padding-right: 1em;
    }
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 768px) {
    div.mv-animation-player{
        padding-left:3em;
        padding-right: 3em;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-height: 576px) {
    div.mv-animation-player{
        padding-bottom:0.25em;
    }
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-height: 576px) {
    div.mv-animation-player{
        padding-bottom: 1em;
    }
}


div.mv-animation-player{
    position: absolute;
    bottom: 0px;
    width: calc(100% - 90px);
    margin: auto;

    span.time-display{
        width: 120px;
        display: inline-block;
        text-align: center;
        font-size: .8em;
        color: rgba(0, 0, 0, 0.3);
    }

    select{
        width: calc(100% - 120px);
        float: right;
        background-color: transparent;
        border: none;
        color:rgba(0, 0, 0, .3);
        font-size: 0.8em;
        margin-top: 3px;
    }

    button{
        margin-right:.25em;
    }

    button:not(.disabled){
        background-color: var(--mv-highlight);
        color: white;
        border: none;
    }

    button.disabled{
        color: #dddddd;
        border: none;
    }

    button.play-back{
        transform: rotateZ(180deg);
        -webkit-transform: rotateZ(180deg);
        -moz-transform: rotateZ(180deg);
        -ms-transform: rotateZ(180deg);
        -o-transform: rotateZ(180deg);
    }

    input[type="range"]{        
        width: calc(100% - 120px);
        text-align: left;
        accent-color: var(--mv-highlight);
        height: 20px;
        transform: translateY(30%);
        border: none;
        cursor: ew-resize;
    }

}