:root {
    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;

    /* color-scheme: light dark; */
    color: rgba(255, 255, 255, 0.87);
    background-color: #ffffff;

    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    --ui-bg: rgba(36, 36, 36, 0.7)
}
.layui-layer{
    box-shadow: none;
}
html,body{
    height: 100%;
    margin: 0;
    overflow: hidden;
}
#modal{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    transition: all .4s;
}

#showcase{
    width: 100%;
    height: 100%;
    display: block;
}
#menu{
    font-size: 0;
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
    transition: all .4s;
    z-index: 1;
}
body.blur #modal,body.blur #menu,body.blur #thumbs,body.blur #map{
    filter: blur(5px);
    pointer-events: none;
}
body.blur #modal{
    transform: scale(1.02);
}
body.blur #info{
    pointer-events: all;
}
#menu ul{
    display: inline-block;
    z-index: 10;
}
#menu ul:nth-child(1) li{
    margin-right: 2px;
}
#menu ul:nth-child(2) li{
    margin-left: 2px;
}
#menu li{
    display: inline-block;
    cursor: pointer;
    background-color: var(--ui-bg);
    position: relative;
    font-size: 12px;
    text-align: center;
    color: white;
    padding-bottom: 5px;
}
#menu li:hover>img{
    transform: scale(1.05);
}
#menu li img{
    padding: 5px 10px;
    width: 40px;
    transition: all .2s;
}

#menu li#btn-playend{
    display: none;
}
#menu li#btn-musicoff{
    display: none;
}
#menu #modes{
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    display: none;
}
#menu #modes li{
    margin: 0;
    margin-bottom: 2px;
}
/* #menu #btn-modes:hover  #modes{
    display: block;
} */
#btn-modes[mode="inside"] #modes li[mode="inside"]{
    display: none !important;

}
#btn-modes[mode="dollhouse"] #modes li[mode="dollhouse"]{
    display: none !important;

}
#btn-modes[mode="floorplan"] #modes li[mode="floorplan"]{
    display: none !important;

}

#menu #floors {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    min-width: 100%;
    display: none;
}
#floors li {
    display: block;
    margin: 0;
    margin-bottom: 2px;
    line-height: 40px;
}

#thumbs{
    position: fixed;
    bottom: 80px;
    background-color: var(--ui-bg);
    width: 100%;
    transition: all .4s;
}
#thumbs .swiper-slide{
    width: auto;
    font-size: 14px;
    position: relative;
    text-align: center;
    color: white;
    cursor: pointer;
}
#thumbs .swiper0{
    padding: 10px 0;
}
#thumbs .swiper-slide img{
    max-width: 120px;
    border-radius: 5px;
}
#ui.hide-thumbs #thumbs{
    bottom: -300px;
}
#thumbs.hide{
    bottom: -300px;
}
.block{
    display: block !important;
}

#backdrop{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
}
#info{
    position: fixed;
    top: 0;
    left: 0;
    font-size: 14px;
    color: white;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    user-select: none;
}

/* #info.show{
} */
#info-title{
    background: url(../icon/down.svg) no-repeat right center;
    background-size: 20px 20px;
    background-position-x: 96%;
    background-color: var(--ui-bg);
    padding: 4px 30px;
    border-radius: 15px;
    text-align: center;
    display: inline-block;
    user-select: none;
    cursor: pointer;
    max-width: 300px;
    font-weight: 100;
    font-size: 14px;
    pointer-events: all;
    margin-top: 30px;
}
#info-body{
    background-color: var(--ui-bg);
    overflow: hidden;
    border-radius: 15px;
    margin-top: 10px;
    display: none;
    text-align: left;
    box-sizing: border-box;
    text-align: justify;
    width: 90%;
    max-width: 900px;
    max-height: 600px;
    pointer-events: all;
    padding: 15px;
    box-sizing: border-box;
}
#info-text{
    height: 100%;
    overflow: hidden;
}
#info.show #info-body{
    display: block;
}
#info.show #info-title{
    background: url(../icon/up.svg) no-repeat right center;
    background-size: 20px 20px;
    background-position-x: 96%;
    background-color: var(--ui-bg);
}
#info-body .swiper1{
    width: 100%;
    height: 100%;
    position: relative;
}
#info-body .swiper1 h1{
    text-align: center;
    margin: 10px 0;
}
#info-body .swiper1 p{
    text-indent: 2em;
    line-height: 1.5em;
}
#info-body .swiper1 .swiper-scrollbar{
    transform: translateX(10px);

}
#info-body .swiper1 .swiper-scrollbar-drag{
    background-color: rgba(255, 255, 255, 0.733);

}

#works{
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: calc(100% - 80px);
    background-color: var(--ui-bg);
    color: white;
    display: flex;
    flex-direction: column;
    user-select: none;
    transform: translateX(400px);
    transition: all 0.4s;
}
#works.show{
    transform: translateX(0);
}
#works h2{
    padding-left: 10px;
    height: 90px;
    line-height: 80px;
    background:url(../icon/close-small.png) no-repeat right center;
    background-size: 45px 45px;
}
#works .swiper2{
    flex-grow: 1;
    overflow: hidden;
    box-sizing: border-box;
}
#works .swiper2 .swiper-slide{
    padding: 10px;
    height: auto;
}
#works .swiper2 .swiper-slide.active,
#works .swiper2 .swiper-slide:hover{
    background-color: black;
}

#map{
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: top right;
    transform: translate(-15px,15px);
    background-color: var(--ui-bg);
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
    display: none;
}
#map img{
    max-width: 300px;
}
#radar{
    padding: 4px;
    background-color: #0dd8c7;
    border-radius: 10px;
    transform: translate(-50%,-50%);
}
#map .map-point{
    display: none;
}
#map0-point-wrapper{
    transform-origin: center center;
    transform: scale(0.9) translateY(-1%);
}

#profile{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    left: -600px;
    transition: all 0.4s;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}
#close-profile{
    height: 80px;
    max-width: 600px;
    background:url(../icon/close-small.png) no-repeat right center;
    background-color: var(--ui-bg);
    background-size: 45px 45px;
    cursor: pointer;
}
#profile.show{
    left: 0;
    pointer-events:all;
}
#profile iframe{
    flex-grow: 1;
    width: 100%;
    max-width: 600px;
    border: 0;
    background-color: var(--ui-bg);
}





@media only screen and (max-width: 640px){
    #menu{
        align-items: flex-end;
        pointer-events: none;
        bottom: 140px;
    }
    #menu ul>li{
        display: block;
        margin: 0;
        pointer-events: all;
        margin-top: 2px;
        font-size: 12px;
    }
    #menu ul li img{
        width: 35px;
    }
    #works{
        width: 100%;
        height: 100%;
        z-index: 5;
    }
    #info{
        z-index: 4;
    }
    #profile{
        z-index: 4;
    }
    #thumbs{
        bottom: 0;
    }
    #thumbs img{
        width: 100px;
    }
    #ui.hide-thumbs #menu{
        bottom: 0;
    }
    #menu #modes{
        right: -2px;
        bottom: 0;
        transform: translate(100%, -100%);
    }
    #info-title{
        margin-top: 10px;
    }
    #map {
        top: 40px;
    }
    #map img{
        max-width: 200px;
    }
}