* {
    font-family: "NSimsun", Arial, Helvetica, sans-serif;
}

body {
    position: relative;
    background-image: url("/campus/basic_layout/homebg.jpg");
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    height: 100%;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 100px;
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    background: gray;
}

*::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    border-radius: 0;
    background: rgba(0,0,0,0.1);
}

header {
    position: relative;
}

#map_background {
    position: relative;
    width: 78%;
    margin-left: 50px;
    margin-right: 50px;
}

#main {
    max-height: 80vh;
}

.search_side {
    position: relative;
    width: 22.2%;
    top: 5%;
    margin-left: 30px;
    z-index: 11;
    top: calc(46vh - 24vw);
}

#search_bar {
    padding-left: 14px;
    position: absolute;
    top: 22.8%;
    left: 18.4%;
    background: none;
    outline: none;
    border: none;
}

#search_bar::placeholder {
    color: black;
    font-weight: 500;
}

.map_side {
    position: absolute;
    width: 55.8%;
    max-width: 53%;
    left: 33%;
    margin-left: 10px;
    z-index: 12;
    margin-left: -20px;
    padding-top: 129px;
    top: calc(39vh - 22vw);
}

.phone_side {
    display: none;
}

#phone_bar {
    display: none;
}

.phone_dropdown {
    display: none;
}

.map_inside {
    position: relative;
}

.list_side {
    position: absolute;
    padding-top: 85px;
    width: 20%;
    height: 94%;
    right: 0.5%;
    top: calc(49vh - 26vw);
    z-index: 999;
}

.buildings_scale {
    transform: scale(1);
    z-index: 16;
    margin-left: 50px;
    margin-right: 50px;
}

.buildings_scale:hover {
    cursor: pointer;
}

/* Modal Start */
.modal {
    margin: auto;
    display: none;
    z-index: 1;
    overflow: auto;
    position: fixed;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
    z-index: 1005;
}

.modal_content {
    display: flex;
    align-items: center;
    position: absolute;
    width: 60%;
    height: 88%;
    top: 60px;
    left: 20%;
    background-image: url(/campus/basic_layout/modal_bg.png);
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19); 
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    z-index: 20;
}

#close {
    cursor: pointer;
    font-size: xx-large;
}

.img {
    position: absolute;
    width: 65%;
    border: 1px black solid;
    left: 10%;
    top: 5%;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:60px; opacity:1}
}
  
@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:60px; opacity:1}
}

.intro_header {
    position: absolute;
    width: 6%;
    height: 6%;
    top: 0.5%;
    right: 1.5%;
    text-align: center;
    z-index: 20;
}

.intro_brief {
    position: absolute;
    width: 6%;
    height: 100%;
    font-size: 35px;
    right: 10%;
    top: -2%;
    writing-mode: vertical-lr;
    text-align: center;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.intro_content {

    width: 63%;
    left: 12.8%;
    font-size: 130%;
    position: relative;
    height: 11vw;
    overflow-y: scroll;
    background-color: white;
    padding: 0px 11px;
    border-radius: 18px;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    margin-top: 0;
}

#carouselExampleIndicators {
    width: 80%;
    top: 5%;
    left: 2%;
}

.carousel-item {
    height: 25vw;
}

.carousel-item img {
    width: 100%;
    height: 100%;
}

.carousel-inner {
    border: 2px black solid;
    border-radius: 15px;
}
/* Modal End */

#result {
    border: 1px black solid;
    background-color: white;
    margin-top: 20px;
    overflow: auto;
    position: absolute;
    top: 31%;
    left: 19.8%;
    background: none;
    width: 57.7%;
    height: 45%;
    border: none;
    font-weight: bold;
}

#caption p {
    border: 1px black   solid;
    width: 90px;
    padding: 5px;
    background: white;
    font-size: larger;
}

.list_side ul li:hover {
    cursor: pointer;
}

#category_list {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 40%;
    top: 18%;
    width: 65%;
    font-size: 1.8rem;
    text-align: center;
    line-height: 3.5rem;
    z-index: 20;
    list-style: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

#category_list li:hover {
    color: rgb(197, 194, 194);
}

#clip {
    position: relative;
    right: 20%;
    top: 4%;
}

#basketball_field {
    transform: scale(1);
    position: absolute;
    height: 7%;
    width: 8%;
    left: 42.8%;
    top: 15.3%;
    z-index: 15;
}

.tooltip-inner {
    font-weight: bolder;
}

.modal-backdrop {
    z-index: 14;
}

#result li {
    list-style: none;
    cursor: pointer;
    padding: 5px 4px;
}

#result_ul {
    padding-left: 0px;
    font-size: 2.5vh;
    padding-top: 4px;
    padding-left: 2px;
    height: 100%;
}

#result_ul li:hover {
    color: white;
}

#paint_pen {
    right: -35px;
    top: 36%;
    z-index: 20;
    position: fixed;
    width: 9%;
}

.phone_list {
    cursor: pointer;
}

#magic_tree {
    position: relative;
    width: 130%;
}

#map_caption {
    position: absolute;
    top: 9.5%;
    left: 20%;
    font-weight: bolder;
    font-size: large;
}

#download {
    width: 47%;
    position: absolute;
    top: 81.2%;
    left: 11%;
    width: 42%;
    cursor: pointer;
}

#ground_bush {
    position: relative;
    width: 100%;
    right: 40%;
    z-index: 1951;
}

.category_img {
    position: absolute;
    width: 20%;
    z-index: 1952;
    cursor: pointer;
}

.hide67 {
    display: none;
}

.bush {
    position: absolute;
    width: 36%;
    z-index: 1952;
}

#touch_area {
    position: absolute;
    width: 61%;
    height: 87%;
    top: 7.3%;
    left: -19.3%;
}

.m_content {
    background-image: url('/campus/basic_layout/phone_search_bg.png');
    height: 65vh;
    min-height: 60vh;
}

#phone_search_bar {
    position: absolute;
    background: none;
    padding-left: 2vw;
    top: 23.9%;
    left: 34%;
    border: 1px black solid;
    border-radius: 20px;
    max-width: 170px;
}

#phone_search_bar:focus {
    outline: none;
    background: none;
}

#phone_search_result {
    border-radius: 10px;
    overflow: auto;
    list-style: none;
    width: 59%;
    position: absolute;
    font-weight: 900;
    padding: 8px;
    font-size: larger;

    left: 21.8%;
    top: 41%;
    height: 49%;
}


#phone_search_bg {
    position: absolute;
    width: 99%;
    left: 0.5%;
}

#brace {
    width: 90%;
    position: absolute;
    top: -8%;
    left: 2%;
}

.tolife {
    display: block;
}

.tolife_phone {
    display: none;
}


#carouselBorder {
    width: 77%;
    position: relative;
    top: 7%;
    left: 0;
    margin-bottom: 5vh;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
    display: block;
}

#m_left {
    position: relative;
    width: 100%;
}

#phone_search_bar::placeholder {
    padding-left: 2vw;
}


/* scroll resizing */
/* phone layout */
@media only screen and (max-width: 950px) and (orientation: portrait) {
    #header {
        position: fixed;
    }

    #main {
        height: 100%;
    }

    #caption {
        margin-left: 10px;
    }

    .list_side {
        display: none;
    }

    .map_side {
        width: 100%;
        left: 0;
        padding-top: 0px;
        margin: 0px;
        margin-top: 85px;
        height: calc(100vh - 85px);
        overflow: auto;
        top: 5%;
        max-width: none;
    }

    .map_inside {
        width: 230%;
    }

    .phone_side {
        display: block;
    }

    #phone_bar {
        display: block;
        position: fixed;
        left: 1.5%;
        top: 13%;
        z-index: 999;
        font-size: 2em;
    }

    #phone_search {
        display: block;
        position: fixed;
        left: 1.5%;
        top: 20%;
        z-index: 999;
        font-size: 2em;
    }

    #phone_magnify {
        display: block;
        position: fixed;
        left: 1.5%;
        top: 27%;
        z-index: 999;
        font-size: 2em;
    }

    #phone_download {
        display: block;
        position: fixed;
        left: 1.5%;
        top: 34%;
        z-index: 999;
        font-size: 1.8em;
    }

    .phone_dropdown {
        background: white;
        width: 60%;
        position: absolute;
        top: 82px;
        left: 20%;
        z-index: 999;
        border-radius: 15px;
        text-align: center;
        font-size: xx-large;
        padding: 15px;
    }

    #phone_bar:focus {
        outline: none;
    }

    #phone_search:focus {
        outline: none;
    }

    #phone_magnify:focus {
        outline: none;
    }

    .search_side {
        display: none;
    }
    
    .modal_content {
        top: 40px;
        left: 0;
        width: 100%;
        height: 85%;
    }

    .intro_brief {
        width: 70%;
        writing-mode: horizontal-tb;
        top: 4%;
        right: 17%;
        font-size: 26px;
    }

    .intro_header {
        top: 1.5%;
        right: 5.5%;
    }

    .intro_content {
        bottom: 12%;
        width: 90%;
        height: 28vw;
        left: 6%;
        font-size: 100%;
    }

    @-webkit-keyframes animatetop {
        from {top:-300px; opacity:0} 
        to {top:40px; opacity:1}
    }
    
    @keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:40px; opacity:1}
    }

    #carouselExampleIndicators {
        top: 15%;
        left: 4%;
        width: 92%;
    }

    .f {
        display: none;
    }

    .tolife {
        display: none;
    }

    .tolife_phone {
        display: block;
    }

    #carouselBorder {
        width: 100%;
        top: 17%;
        object-fit: contain;
        width: 95%;
    }

    .carousel-item {
        height: 52vw;
    }
}

