@media (max-width: 768px) {

    canvas{
        aspect-ratio: 918 / 1188;
        width: 100%;
        height: auto;
    }

    .container-pc{
        padding: 4rem 0 0 0 !important;
        height: 100vh !important;
        width: 100vw !important;
    }

    #pdf-container{
        height: 90% !important;
    }

    .back img,
    .back span{
        position: absolute;
        left: 10px;
    }
}

@media (min-width: 768px) {

    canvas{
        aspect-ratio: 918 / 1188;
        width: 100%;
        height: auto;
    }

    #pdf-container{
        border: 1px solid black;
        height: 95% !important;
    }
}
/* ===================GLOBAL=================== */
body {
    overflow-y: scroll;
}

body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.btn-back{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #CECECE;
    border: 1px solid #CECECE;
    margin-bottom: 0;
    margin-left: 0;
    z-index: 2;
}

.flexible-btn-back {
    height: 60px;
    width: 90%;
    max-width: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #CECECE;
    border: 1px solid #CECECE;
    margin-top: 8px;
    margin-right: 0px !important;
    z-index: 100000;
}

.hidden {
    transform: translateY(100px);
    opacity: 0;
}

.mw25{
    max-width: 80vw !important;
}

.white { color:#ffff !important;}

.dark-gray {color: #333333 !important;}

.container-pc{
    padding: 4rem 1.25rem !important;
    height: 100vh;
    width: 70vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.index-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    top: -20px;
}

.arrow-btn{
    position: absolute;
    left: 10px;
}

.arrow-btn-right{
    position: absolute;
    right: 10px;
}

.container-csm{
    min-height: calc(100vh - 112px - 56px - 57px)
}

/* ===================GLOBAL=================== */

/* ===================TOP=================== */
.alert{
    background-color: #ff5858;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    max-height: 7rem;
    border: 1px solid #ccc;
    position: relative;
    top: 3.5rem;
    width: 100%;
    z-index: 2;
    scrollbar-width: none !important;
}

#alert-list{
    max-height: 7rem;
}

.three-dots {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.three-dots-90vw { max-width: 90vw; }
.three-dots-200 { max-width: 200px; }
.three-dots-350 { max-width: 350px; }
.three-dots-300 { max-width: 300px; height: 25px; }

/* ===================TOP=================== */

/* ===================INDEX=================== */
.menu-item{
    border: 2px solid #FF5857;
    height: 90px;
    border-radius: 10px;
    display: flex;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
    background: #ffff;
    cursor: pointer;
}

.line-red{
    background-color: #FF5857;
    width: 1px;
    height: 80%;
    position: relative;
    top: 10%;
}

.line-book{
    background-color: #FF5857;
    width: 2px;
    height: 20%;
    position: relative;
    top: 1%;
    left: -22px;
}

.icon-item{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-item{
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    left: 5%;
}

.notification{
    background: #ffff;
    filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.16 ));
    border-radius: 10px;
    padding: 10px 10px 0px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.btn-notification{
    padding: 0px !important;
    filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.16 ));
}

.container_list_news{
    height: 140px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.container_list_news::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.recommendation {
    background-color: #ff5857;
}

.warning {
    background-color: #333333;
}

.jalert-black {
    background-color: rgb(12, 0, 12);
}

.jalert-purple {
    background-color: rgb(180, 0, 104);
}

.jalert-yellow {
    color: #000 !important;
    background-color: rgb(250, 245, 0);
}

.jalert-red {
    background-color: rgb(255, 40, 0);
}

.recommendation, .jalert-black, .jalert-purple, .jalert-yellow, .jalert-red, .warning {
    display: inline-block;
    text-align: center;
    line-height: 48px;
    height: 48px;
    padding: 0 16px;
}

#warning-body {
    white-space: pre-line;
}

#warning-label{
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: auto;
    padding: 0 10px 0 10px;
}

#warning-label::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* ===================INDEX=================== */

/* ===================DISASTER_HISTORY=================== */

.content-history{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.content-history-details{
    width: 100vw;
    height: 100vh;
}

.title-history{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.floating-div {
    height: 300px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.16), 0 1px 1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sunken-input {
    height: 40px !important;
    border-color: #707070 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    outline: none;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.16), inset 0 1px 1px rgba(0, 0, 0, 0.1) !important;
}

.search-history{
    display: grid;
    grid-template-columns: 69% 29%;
    gap: 2%;
}

.search-btn{
    height: 40px !important;
    text-align: center !important;
    padding: 0 !important;
}

.container-bookMark{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold !important;
    background-color: transparent;
}

.container-bookMark a{
    text-decoration: none !important;
    background-color: transparent !important;
}

.btn_destroy{
    height: 100%;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    letter-spacing: normal;
    line-height: 1.5;
    border-radius: 0.25rem;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 500 !important;
    cursor: pointer;
}

.list-disaster{
    height: 77%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    padding-left: 15px;
}

.list-disaster::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.list-disaster-bookmark{
    position: relative;
    height: 200px;
    overflow: auto;
}

.list-disaster-bookmark td{
    padding-left: 15px;
}

.list-disaster-bookmark::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.emptyData{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

/* ===================DISASTER_HISTORY=================== */

/* ===================DISASTER_HISTORY_DETAILS=================== */

.tool {
    height: 50px;
    position: fixed;
    bottom: 65px;
    left: 0;
    display: flex;
    justify-content: space-between;
    background-color: #939393;
    padding: 10px 20px;
    z-index: 10001;
    cursor: pointer; 
}

.tool .back,
.tool .add-bookmark {
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.line-white{
    background-color: white !important;
    width: 1px;
}

#pdf-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}


/* POP UP */

.popup {
    max-width: 400px;
    width: 90vw;
    max-height: 500px;
    height: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: none;
    z-index: 10003;
    padding: 0 30px 0 30px;
}

.popup-top{
    top: 30%;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10002;
}

.popup button {
    margin-top: 10px;
    padding: 5px 10px;
}

.btn-in-modal {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
}

#closePopup,
#closePopup-v2{
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #C6C6C6;
    z-index: 2;
    border: none;
    position: relative;
    background-color: #C6C6C6;
    color: #333333 !important;
}

#actionButton-v2{
    display: flex;
    width: 50% !important;
    position: relative;
}

/* POP UP */

/* ===================DISASTER_HISTORY_DETAILS=================== */

/* ===================ACCESS_HISTORY=================== */

.input-csm{
    height: 42px;
    background: #FFF !important;
    border: 1px solid #707070 !important;
}

.no-border{
    border: none !important;
}

/* Pop-up Container */
.container-timeout{
    position: relative;
}

.popup-time {
    position: absolute;
    display: inline-block;
    z-index: 1000;
    top: -250px;
    right: -57px;
    width: 200px;
}
  
.popup-content {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    border: none;
    text-align: center;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
  
.popup-message {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}
  
.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
  
#btn-confirm {
    padding: 9px;
}
  
#btn-cancel {
    background-color: #f4f4f4;
    color: #707070 !important;
    border: none;
    padding: 9px;
}

.photo_csm{
    display: inline-block;
    vertical-align: bottom;
    width: 100%;
    max-width: 3rem;
}
  
  /* Arrow */
.popup-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #fff;
    top: 100%;
    left: calc(50% - 10px);
    z-index: 0;
}
  

/* ===================ACCESS_HISTORY=================== */

.btn_remove_device_code, .btn_remove_emergency_email{
    background: #a8a8a8;
    border: 3px solid #a8a8a8;
    min-width: 0;
    height: 2.625rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
}

/* ===================Evacuation=================== */
.letter{font-size: 0.8rem;word-break: break-all;}
.status-label {display: inline-block;padding: 5px 10px;color: #fff; font-size: 16px;line-height: 25px;}
.status-label-list {padding: 8px 12px;color: #fff;height: 40px!important;width: 40px!important; margin-left: 5px;}
.icon-right{position:absolute;margin-left: 92%;align-items: center;bottom:45%}.light-dark{background-color: #444444;}
.full { background-color: #F46D6D;  }.busy { background-color: rgb(243,188,80); }
.available { background-color: #4EAB58; }.closed { background-color: #8B8B8B; }
.titles{color: #333333!important;}.titleQR{position: relative;top:8px;}
.buttonDetail{width: 169px !important; height: 55px !important;filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.16 ));background: #2a9fdb;}
.detail-arrow{position: relative; top: -25px; left: -4px;}.detail-arrow1{display: absolute;top:20px;left:-4px;}.detail-box{height: 264px!important;width: 100%!important;}
.fs17{font-size: 17px;}.fs13{font-size: 13px;}
.block{display: block!important;}
.menu-button {
    position: relative;margin-bottom: 10px;gap: 10px;justify-content: flex-start;display: flex;align-items: Center;cursor: pointer; width: auto;
    padding: 5.75px 30px 5.75px 5px;color: rgb(15, 14, 14);font-size: 1.4em;filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.16 ));background-color:#fff;}
.shelter {border-color: #F8F8F8;border-radius: none!important;box-shadow: none;filter: none;margin-top: 10px;cursor: pointer!important;border-radius: 0px;width: auto;}
.menu-buttons {position: relative;height: 100%;margin: 0 auto;pointer-events: auto;cursor:default;width:100%}
.icons{padding: 0.3px 8px;font: size 11px !important;font-weight: normal;font-family: "Hiragino Kaku Gothic ProN";padding-top:1.8px;}
.icons-font{font-family: "Hiragino Kaku Gothic ProN";}
.status-container {margin-bottom: 10px;width: 80%;display: flex;justify-content: space-between;padding-top: 10px;height:89px}
@media (max-width: 2568px) {.notification{height: auto!important;}}
@media (max-width: 387px) {.status-container {margin-bottom: 10px;width: 95%;}}@media (max-width: 342px) {.status-container {margin-bottom: 10px;width: 100%;}}
@media (max-width: 319px) {.status-container {display: block;padding-left:20%;height:auto;padding-bottom: 10px;}}
.sm_label {margin-right: 5px;width: 26.4px;height: 26.4px;color: white;display: flex;justify-content: center;align-items: center;}
.info_container {display: flex;align-items: center;margin-bottom: 7px;}
.modal { display: none; position: fixed; z-index: 10000000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); }
.modal-qr-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 10px;
}
.close { color: #000; float: right; font-size: 28px; cursor: pointer; }.close:hover, .close:focus {color: black;text-decoration: none;cursor: pointer;}.btn-close {background-color: #f0ad4e;color: white;border: none;padding: 10px 20px;margin-top: 20px;cursor: pointer;border-radius: 5px;}
.map-ratio{width: 100%;height:312px;border:0; margin: 0 auto; display: block;}
.filter-btn{
    cursor: pointer!important;
}
/* ===================Evacuation=================== */
/*list*/

.list-new{
    width: 346px;
    max-height: 58px;
}
@media (max-width: 400px){
    .list-new{
        width: 85vw;
        height:auto;
    }
}
.scroll-box-x {
    overflow-x: scroll; overflow-y:hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.hazard_map{
    margin:0 auto;
    width: 100%;
    height: 100%;
    border: 1px solid #000;
}

.main_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 1.25rem 11rem 1.25rem;
    height: 100vh;
    width: 80vw;
    margin: auto;
}

@media (max-width: 430px){
    .main_content{
        width: 100%;
    }
}

/* ===================Evacuation=================== */

