:root {
    --T1-color: rgba(254,96,6,0.80);
    --T2-color: rgba(6,159,254,0.80);
    --T3-color: rgba(83,166,15,0.80);
    --T4-color: rgba(184,115,217,0.80);

    --logo-bg: #233645;
    --main-color: #233645;
    --table-color1: rgba(6, 73, 81, 0.1);
    --table-color2: rgba(6, 73, 81, 0.2);
    --actionMenuSize: 210px;
    --invertIconColor: invert(100%);
  }

@font-face {
    font-family: "CaviarDreams";
    src: url("../fonts/CaviarDreams.ttf");
}

body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "CaviarDreams";
    overflow: hidden;
}
.mainContainer{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.background{
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}
.foreground{
    pointer-events: none;
    z-index: 10;
}
.logoDiv{
    background-color: var(--logo-bg);
    position: fixed;
    width: fit-content;
    height: fit-content;
    top: 0;
    left: 0;
    border-radius: 0 0 100% 0;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: auto;
    z-index: 11;
}
#logo{
    width: 120px;
    height: auto;
    margin-bottom: 40px;
    margin-right: 40px;
}
.titleDiv{
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: fit-content;
    padding-right: 20px;
    pointer-events: auto;
    text-align: end;
    z-index: 11;
}
h1{
    color: var(--main-color);
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 5px white;
;
}
.floorContainer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: fit-content;
    height: fit-content;
    pointer-events: auto;
    z-index: 13;
}
.floorMenu{
    display: grid;
    justify-items: center;
    margin: 20px;
    width: fit-content;
    height: fit-content;
}
.floorSubMenu{
    background-color: lightgray;
    border-radius: 20px 20px 20px 20px;
    border: 1px solid gray;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    justify-items: center;
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 10px;
    display: inherit;
}
.floorMenuLabel{
    background-color: var(--main-color);
    width: 100%;
    padding: 12px;
    text-align: center;
    color: white;
}
.floorList{
    justify-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    display: inherit;
}
.floorListElem{
    list-style: none;
    padding: 6px;
    border-top: 1px solid gray;
    width: 100%;
    text-align: center;
    cursor: pointer;
}
.selectedFloor{
    color: var(--main-color);
    background-color: white;
    font-weight: bold;
}
.floorControl{
    border-radius: 50%;
    border: 1px solid gray;
    background-color: var(--main-color);
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.floorControl img{
    width: 15px;
    height: 15px;
}
#floorDown{
    rotate: 180deg;
}
.controlContainer{
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content:space-evenly;
    pointer-events: auto;
    z-index: 12;
    user-select: none;
}
.controlBtn{
    margin: 20px;
    background-color: var(--main-color);
    border: 1px solid gray;
    border-radius: 50%;
    box-sizing: border-box;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.controlBtn img{
    width: 15px;
    height: 15px;
}
.controlLots{
    border-radius: 10px !important;
    padding: 2px 10px !important;
}
.controlLots p{
    margin: 0;
    color: white;
    line-height: inherit;
}
.controlLotsImg{
    width: 35px !important;
    height: 35px !important;
    margin-left: 10px;
}
#rotateLeft{
    rotate: 270deg;
}
#rotateRight{
    rotate: 90deg;
}
.menuContainer{
    background-color: var(--main-color);
    border-radius: 100% 0 0 0;
    position: fixed;
    bottom: 0;
    right: 0;
    width: var(--actionMenuSize);
    height: var(--actionMenuSize);
    box-sizing: border-box;
    pointer-events: auto;
    aspect-ratio: 1;
    z-index: 13;
    display: none;
}
.actionBtn{
    position: absolute;
    display: flex;
    width: fit-content;
    height: fit-content;
    align-items: center;
    justify-items: center;
    padding: 10px;
    border: 1px solid gray;
    border-radius: 50%;
    background-color: var(--main-color);
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    bottom: 20px;
    right: 20px;
    cursor: pointer;
}
.actionIcon{
    width: 25px;
    height: 25px;
    margin: 0;
}
#renderCanvas{
    position: absolute;
    z-index: 1;
    outline: none;
    max-height: 100%;
    max-width: 100%;
}
#Canvas{
    position: absolute;
    outline: none;
}

.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: 20px;
    border: 1px solid gray;
    font-weight: bold;
    z-index: 2;
}
.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: 18px 18px 0 0;
}
.tooltipMedias{
    display: inline-flex;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    color: white;
}
#ttplan{
    padding: 10px;
    /* height: 50px; */
    background-color: rgba(6,159,254,0.80);
    cursor: pointer;
}

#rightpanel{
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: fit-content;
    height: fit-content;
    padding: 20px;
    z-index: 14;
}
#ToolsDiv{
    border: 1px solid gray;
    border-radius: 20px;
    background-color: var(--main-color);
    color: white;
    overflow: hidden;
    padding: 20px;
    pointer-events: all;
    margin: auto;
}
.closeToolsContainer{
    display: flex;
    justify-content: end;
}
.closeTools{
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.filter{
    width: 100%;
    justify-content: center;
}
#filterTypo{
    display: inline-flex;
}
.typoBtn{
    margin: 5px;
    padding: 5px;
    width: fit-content;
    /* height: 25px; */
    border: 1px solid gray;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    justify-content: center;
    align-content: center;
    text-align: center;
}
#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: 10px;
}
#max{
    margin: 10px;
    margin-top: 20px;
}
#filterSurface{
    display: grid;
}
#filterOther{
    text-align: center;
}
.btnOther{
    margin: 5px;
    padding: 5px;
    border: 2px solid gray;
    border-radius: 10px;
    cursor: pointer;
}
.optionActive{
    color: var(--main-color) !important;
    background-color: white !important;
    font-weight: bold !important;
}
.iconActive{
    filter: var(--invertIconColor);
}
.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;
}
.accessories{
    overflow: hidden;
    z-index: 20;
    pointer-events: none;
}
.mediaContainer{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto;
}
.planContainer{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto;
}
.visiblePlan{
    top: 0%;
}
.MenuMedias{
    display: flex;
    width: 100%;
    height: fit-content;
    justify-content: center;
    z-index: 21;
    position: relative;
}
.btnMedia{
    margin-left: 10px;
    margin-right: 10px;
    border: 1px solid gray;
    border-radius: 12px;
    padding: 5px 10px 5px 10px;
    color: white;
    background-color: var(--main-color);
    cursor: pointer;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}
.btnMedia{
    margin-left: 10px;
    margin-right: 10px;
    border: 1px solid gray;
    border-radius: 12px;
    padding: 5px 10px 5px 10px;
    color: white;
    background-color: var(--main-color);
    cursor: pointer;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}
.divIframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}
.iframeMedias{
    width: 100%;
    height: 100%;
}
#closeMedia{
    position: absolute;
    top: 0;
    right: 0;
    width: fit-content;
    z-index: 22;
    background-color: var(--main-color);
    border: 1px solid gray;
    cursor: pointer;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 10px;
    margin: 20px;
}
#closePlan{
    position: absolute;
    top: 0;
    right: 0;
    width: fit-content;
    z-index: 22;
    background-color: var(--main-color);
    border: 1px solid gray;
    cursor: pointer;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 10px;
    margin: 20px;
}

.searchContainer{
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    pointer-events: auto;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
.searchBloc{
    background-color: white;
    width: fit-content;
    height: fit-content;
    display: block;
    border: 1px solid gray;
    border-radius: 20px;
    overflow: hidden;
    max-height: 90%;
    max-width: 90%;
}
.searchTitle{
    background-color: var(--main-color);
    padding-left: 20px;
    padding-right: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.searchParamContainer{
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
    justify-items: center;
}
.searchParam{
    display: flex;
}
#searchTypo{
    pointer-events: none;
}
.searchTypoBtn{
    pointer-events: auto;
}
#searchFloors{
    gap: 10px;
}
#searchSurfMin{
    display: block;
}
#searchSurfMax{
    display: block;
}
.listeLots{
    display: block;
    margin: 0;
    padding: 0;
    border-top: 1px solid gray;
    width: 100%;
    /* overflow: scroll; */
}
table{
    border-collapse: collapse;
}
th{
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}
tr{
    display: block;
    width: 100%;
}
td{
    border: 1px solid gray;
    padding: 5px;
    text-align: center;
    width: auto;
}
thead{
    display: block;
    background-color: var(--main-color);
    color: white;
    /* width: 100%; */
}
tbody{
    display: block;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}
.searchPlanBtn{
    cursor: pointer;
    text-decoration: underline;
}
.itemPaire{
    background-color: var(--table-color1);
}
.itemImpaire{
    background-color: var(--table-color2);
}

#searchT1{
    background-color: var(--T1-color);
}
#searchT2{
    background-color: var(--T2-color);
}
#searchT3{
    background-color: var(--T3-color);
}
#searchT4{
    background-color: var(--T4-color);
}
.searchFloorBtn{
    background-color: white;
    padding: 5px;
    /* height: 25px; */
    width: fit-content;
    border: 1px solid gray;
    border-radius: 10px;
    cursor: pointer;
    justify-content: center;
    align-content: center;
    text-align: center;
}
.activeFloorFilter{
    color: white;
    background-color: var(--main-color);
}

.helpContainer{
    z-index: 1000;
    width: fit-content;
    height: fit-content;
    max-height: 100%;
    position: absolute;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%,-50%);
    justify-items: center;
    background-color: white;
    border-radius: 20px;
    border: 1px solid var(--main-color);
    display: none;
}
.d-flex{
    display: flex;
}
.instructions{
    width: fit-content;
    height: fit-content;
    justify-items: center;
    position: relative;
    padding: 20px;
    margin: 10px;
}
.helpok{
    background-color: var(--main-color);
    color: white;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}
.helpok:hover{
    background-color: white;
    color: var(--main-color);
    border: 1px solid var(--main-color);
}
.helpok p{
    margin: 0;
}


@media (orientation: portrait) or (max-height: 680px) {
    .controlContainer{
        right: 0 !important;
        left: auto;
        transform: none;
    }
    .floorListElem{
        display: none;
    }
    .selectedFloor{
        display: block;
    }
    .floorSubMenu{
        font-size: 0.8em;
    }
    .instructions{
        padding: 10px !important;
        margin: 5px !important;
    }
    .m-mobile{
        margin: 5px;
    }
    p{
        margin: 2px;
        font-size: 8px;
    }
    .floorImg{
        max-height: 150px;
    }
    .helpContainer{
        top: 0;
        transform: translate(-50%,0);
    }
}