:root {
    --T1-color: rgba(254,96,6,0.80);
    --T2-color: rgba(6,159,254,0.80);
    --T3-color: rgba(255,119,112,0.80);
    --T4-color: rgba(83,166,15,0.80);
  }

@font-face {
    font-family: "CaviarDreams";
    src: url("../fonts/CaviarDreams.ttf");
}

html,body{
    position: fixed;
    margin:0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: "CaviarDreams";
}
.canvas-container
{
    position: absolute!important;
    top: 0;
}
#renderCanvas{
    position: absolute;
    max-width: 100vh;
    max-height: 100vh;
}
canvas {
    outline: none;
    border: none;
    width:100vh;
    height:100vh;
    z-index:0;
}
#UIcontainer{
    display: flex;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#leftpanel{
    width: 11vw;
    min-width: 100px;
    padding: 2vw;
}
#rightpanel{
    position: absolute;
    display: flex;
    right: 0;
    top: 0;
    width: auto;
    height: 100%;
    padding: 2vw;
}
#logodiv{
    top: 0%;
}
#logoimg{
    width: 100%;
}
#floorMenu{
    display: grid;
    width: fit-content;
    position: absolute;
    bottom: 0%;
    margin-bottom: 2vw;
    justify-content: center;
    font-weight: bold;
}
#floorMenuLabel{
    margin-bottom: 1vw;
    text-align: center;
}
#floorSelection{
    border: 2px solid gray;
    border-radius: 15px;
    background-color: white;
    overflow: hidden;
}
.floor{
    text-align: center;
    border-bottom: 1px solid gray;
    padding: 10px;
    pointer-events: auto;
    cursor: pointer;
}
.lastfloor{
    border: none;
}
.selFloor{
    background-color: rgb(210,34,55);
    color: white;
}
#ToolsDiv{
    border: 2px solid gray;
    border-radius: 15px;
    background-color: white;
    overflow: hidden;
    /* padding: 5px; */
    pointer-events: all;
    margin: auto;
}
.filter{
    width: 100%;
    /* display: inline-flex; */
    justify-content: center;
}
#filterTypo{
    display: inline-flex;
}
.typoBtn{
    margin: 5px;
    padding: 5px;
    border: 2px solid gray;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}
#T1{
    background-color: var(--T1-color);
}
#T2{
    background-color: var(--T2-color);
}
#T3{
    background-color: var(--T3-color);
}
#T4{
    background-color: var(--T4-color);
}
.inactive{
    background-color: rgba(0, 0, 0, 0.10) !important;
}
.filterTitle{
    text-align: center;
    font-weight: bold;
    margin: 10px;
}
#slider-range{
    width: 90%;
    margin: auto;
}
#sliderValue{
    display: inline-flex;
    justify-content: center;
    text-align: center;
}
#min{
    margin: 5px;
}
#max{
    margin: 5px;
}
#filterSurface{
    display: grid;
}
#filterOther{
    text-align: center;
    display: none;
}
.btnOther{
    margin: 5px;
    padding: 5px;
    border: 2px solid gray;
    border-radius: 10px;
    cursor: pointer;
}
.ui-widget-header{
    background: none;
    background-color: black;
}
.ui-corner-all{
    border-radius: 8px;
}
.ui-widget-content .ui-state-default{
    background: none;
    background-color: white;
    top: -0.4em;
}
.ui-widget-content{
    background: none;
    background-color: rgb(220, 220, 220);
    height: 0.5em;
}
.ui-slider-handle{
    cursor: pointer !important;
}
.tooltip{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-100% - 20px));
    background-color: white;
    width: fit-content;
    height: fit-content;
    text-align: center;
    border-radius: 15px;
    border: 2px solid gray;
    /* overflow: auto; */
    font-weight: bold;
}
.tooltip::after{
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -20px;
    border-width: 20px;
    border-style: solid;
    border-color: gray transparent transparent transparent;
}
.tooltipCat{
    padding: 10px;
    border-bottom: 1px solid gray;
    overflow: hidden;
}
#tooltipName{
    background-color: rgba(6,159,254,0.80);
    color: white;
    border-radius: 13px 13px 0 0;
}
.tooltipMedias{
    display: inline-flex;
    border-radius: 0 0 13px 13px;
    overflow: hidden;
    color: white;
}
#ttplan{
    padding: 10px;
    /* height: 50px; */
    background-color: rgba(6,159,254,0.80);
    cursor: pointer;
}
.hidden{
    display: none;
}
.optionActive{
    color: white;
    background-color: black;
    font-weight: bold;
}

#divMedia{
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(85, 85, 85, 0.7);
    z-index: 200;
}
#ctrlMedia{
    position: inherit;
    width: calc(100% - 4vw);
    height: fit-content;
    display: inline-flex;
    justify-content: space-between;
    padding-left: 2vw;
    padding-right: 2vw;
    padding-top: 10px;
}
#changeDiv{
    display: inline-flex;
}
#closeDiv{
    border: 2px solid white;
    border-radius: 10px;
    padding: 10px;
    background-color: black;
}
#closeDiv img{
    width: 30px;
    align-self: center;
}
#closeDiv:hover{
    cursor: pointer;
}
.changeBtn{
    width: fit-content;
    height: fit-content;
    padding: 10px;
    margin-right: 20px;
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    font-weight: normal;
    background-color: rgb(85, 85, 85);
}
.mediaBtnSelect{
    font-weight: bold !important;
    background-color: black;
}
.changeBtn:hover{
    cursor: pointer;
    background-color: black;
}
#showMedia{
    width: 100%;
    height: 100%;
}
#showMedia iframe{
    width: 100%;
    height: 100%;
}


@media screen and (orientation: portrait) {
    body{
        font-size: 12px;
    }
    #renderCanvas{
        max-width: 100vw;
        max-height: 100vw;
    }
    canvas {
        width:100vw;
        height:100vw;
    }
    #ToolsDiv{
        /* position: absolute; */
        margin-bottom: 2vw;
        margin-top: auto;
    }
    #rightpanel{
        height: calc(100% - 2vw);
    }
}

@media screen and (orientation: landscape) and (max-height: 420px) {
    body{
        font-size: 12px;
    }
    .tooltip::after{
        margin-left: -10px;
        border-width: 10px;
    }
    .tooltipCat{
        padding: 5px;
    }
    #ttplan{
        padding: 5px;
    }
    #tooltipEtage{
        display: none;
    }
    #tooltipTypo{
        display: none;
    }
}