
/* Align here */

html, body {
    width: 100%;
    height: 100%;
}

body {
    /* font-family: "Avenir Light", Verdana, Geneva, sans-serif; */
    /* font-family: "Avenir Next W01","Avenir Next W00","Avenir Next",Avenir,"Helvetica Neue",sans-serif; */
    font-family: "Helvetica Neue", "Helvetica", "Arial", "Microsoft JhengHei", "LiHei Pro", sans-serif;
    font-style: normal;
    font-weight: normal;
    margin: 0;
    padding: 0;
    /* touch-action: pinch-zoom; */
}


/* main page */

.page {
    display: grid;
    flex-direction: column;
    position: relative;
    background:#ffffff;
    background-image: url('/20220831225719oe_/https://chp-dashboard.geodata.gov.hk/covid-19/web/images/Background_v2.jpg') ;  
    background-repeat: no-repeat;
    background-size: cover; 
    
}

.page hr{
 margin: 16px 0px;
 color: #ffffff;
}
.main-page{
    display: grid;
    grid-template-rows: 4vh auto 26vh;
    gap: 8vh;
    justify-content: center;
}
.title {
    grid-row: 1;
    width: 100vw;
    min-height: 52px;
    padding:8px 0px;
    display: flex;
    flex: 1 3 auto;
    align-items: center;
    background-color: #FFFFFF;
    box-shadow: 0px 6px 6px #9b9b9b70;
    justify-content: space-between;
    position: -webkit-sticky; /* Safari & IE */
    position: sticky;
    top: 0;

}

.title-icon {
    display: inline-block;
    height: 2rem;
    margin-left: 1rem;
    background: url(/20220831225719oe_/https://chp-dashboard.geodata.gov.hk/covid-19/web/images/icon.svg);
    flex: 0 0 auto;
}


.title-menu-btn {
font-size: 1rem;
margin-right: 16px;
}


/*figures*/
.figures{
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: auto 700px 700px auto ;
    grid-template-rows: 1fr 1fr 0.5fr 0.1fr;
    gap: 16px;
    grid-template-areas: 
  'leftmargin vaccination additional rightmargin'
  'leftmargin vaccination additional rightmargin'
  'leftmargin vaccination hospitalized rightmargin'
  'leftmargin remark remark rightmargin';
}
.displayBox_vaccination{
    grid-area: vaccination;
    display: flex;
    width: 100%;
    padding: 16px;
    background: linear-gradient( #00739b94, #00739b8f);
    flex-direction: column;
    justify-content: space-between;
    border-radius: 4px;
}

.displayBox_additional{
    grid-area: additional;
    display: flex;
    width: 100%;
    padding: 16px;
    background: linear-gradient( #00739b94, #00739b8f);
    flex-direction: column;
    justify-content: space-between;
    border-radius: 4px;
}

.displayBox_hospitalized{
    grid-area:hospitalized ;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.displayBox_remark{
    grid-area:remark ;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.displayBox_hospitalized .cardview-death{
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    padding: 16px;
    align-items: center;
    background: linear-gradient( #00739b94, #00739b8f);
    border-radius: 4px;
}
.displayBox_hospitalized .buttonTittle{
    width: 100%;
    justify-content: center;
}
.displayBox_hospitalized .cardview-hospital{
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    padding: 16px;
    align-items: center;
    background: linear-gradient( #00739b94, #00739b8f);
    border-radius: 4px;
}

.displayBox_hospitalized .cardview-critical{
    grid-column: 3;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
    padding: 16px;
    align-items: center;
    background: linear-gradient( #00739b94, #00739b8f);
    border-radius: 4px;
}
/*tittle-number-box*/
.tittle-number-box{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
/*displayLeft cardview */

.displayLeft{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    min-width: 40%;
    margin: 4px 0px;
}
.buttonTittle {
    display: flex;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row;
    padding: 2px 8px;
    border-radius:4px 4px;
}

/* displayAround cardview */
.displayAround{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 4px 0px;
}

/*displayDown*/
.displayDown{
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    margin: 4px 0px;
}
/* supTittleBox  */
.supTittleBox{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* remark */
.remark{
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}
/* Text */
body p{
    margin: 0;
    color: #ffffff;
}
.title-text {
    font-size: 1rem;
    font-weight: 500;
    margin-left: 16px;
    color: #000000;
}
.title-label{
    font-size: 1rem;
}
.title-label.tittle{
    font-size: 0.875rem;
    font-weight: 700;
}
.number-value-big{
    font-size: 1.125rem;
    font-weight: 600;
}
.number-value-smail{
    font-size: 1rem;
    font-weight: 400;
}
.upperPart .title-label{
    font-size: 1rem;
}
.downPart .title-label{
    text-align: end;
    margin-right:8px;
    font-size: 1rem;
    color: #507E96;
    font-weight: 500;
}
.title-remark{
    font-size: 0.75rem;
}
.left-title-remark{
    /* float: left; */
    display: inline-block;
    width: 35%;
    margin: 0px;
    vertical-align: top;
    /* font-size: 0.65rem; */
    /* margin-bottom: 4px; */
}

/* bottom-menu */
.menu-sheet {
    grid-row: 3;
    display: flex;
    width: 100%;
    background-color: white;
    border-radius: 15px 15px 0px 0px;
    flex-direction: column;
    align-items: center;
    position: fixed;
    bottom: 0;
    touch-action: none;
}

.menu-sheet .buttomdisplay{
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 16px;
}

/* #bottom-menu {
    bottom: 0px;
} */

#bottom-menu .handle {
    margin: 8px 0px;
	text-align: center;
	width: 100%;
	font-size: 1.125rem;
	color: rgb(51, 172, 178);
    cursor: pointer;
    display: none;
}

#bottom-menu .handle .fa-angle-double-up {
    transform: rotate(0deg);
    transition: transform 1s linear;
    transition-duration: 0.1s;
}

#bottom-menu.opened .handle .fa-angle-double-up {
    transform: rotate(180deg);
    transition: transform 1s linear;
    transition-duration: 0.1s;
}
/* subTabButton */

.subTabButton{
    width: 12vw;
    margin: 8px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0px 8px 6px #9b9b9b70;
    cursor: pointer;
}

.subTabButton .upperPart{
    display: flex;
    background-color: #01989F;
    padding: 8px 16px;
    border-radius: 8px 8px 0px 0px;
    flex-direction: column;
    justify-content: space-between;
}

.subTabButton .downPart{
    background-color: #AEDEE1;
    padding: 5px 16px;
    border-radius: 0px 0px 8px 8px;
}

.title-image{
    margin-left: auto;
    width: 6vh;
}

/* page popup-menu-page onshow */
.important-info-page .figures{
    margin-top: 20vh;
    margin-bottom: 10vh;
}
.popup-menu-page .menu-sheet{
    display: flex;
    position: relative;
    height: 100vh;
    background-color: #ffffff00;
    /* width: 80%; */
    align-items: center;
    justify-content: center;
}


.popup-menu-page .menu-sheet .buttomdisplay {
    display: flex;
    width: 45%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 16px;
}
/* Color */
.backgroundRed{
    background-color: #BB4334 !important;
}
.textRed{
    /* color: #fabc57 !important; */
    color: #BB4334 !important;
}

.backgroundYellow{
    background-color: #EF9300 !important;
}
.textYellow{
    /* color: #fabc57 !important; */
    color: #ffa717 !important;
}

.backgroundGary{
    background-color: #535353 !important;
}
.textGary{
    color: #535353 !important;
}

.backgroundBlue{
    background-color: #236D7F !important;
}
.textWhite{
    color: #FFFFFF !important;
}

.backgroundLightblue{
    background-color: #F2F9FA !important;
}

.textDarkBlue{
    color: #33ACB2 !important;
}

.backgroundDarkblue{
    background-color: #33ACB2 !important;
}

/* menu button */
/* menu */
.title-menu-btn p{
    margin:0px 4px
}
.menubar {
	/* background-color: #000000;
	color: white; */
	color: #507E96;
	border: none;
	cursor: pointer;
}
.tittleButton{
    margin-left: 4px;
    margin-right: 4px;
}
.menubar:hover {
	/* background-color: #000000; */
	
}
.dropdown {
	padding:2px;
	padding-right:5px;
	position: relative;
	display: inline-block;
}
.dropdown-child {
	width:198px;
	/* height:32px;*/
	display: none;
	background-color: #000000;
	min-width: 100px;
	position: absolute;
	top: 30px;
	margin-left:-176px;
	border: 1px solid #404040;
	
}
.dropdown-child a {
	color:#bdbdbd;
	padding: 9px;
	text-decoration: none;
	display: block;
	font-size:0.8rem;
	
}

.dropdown-child a:hover {
	color:#bdbdbd;
	padding: 9px;
	text-decoration: none;
	display: block;
	font-size:1.8rem;
	background-color:#3d3d3d;
	
}
.dropdown:hover .dropdown-child {
	display: none;
}

#bottom-menu-btn{
	height: 30px;
	background-color: white;
	border: 1px solid #404040;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

#menu-icon{
	width:100%
}
/* Menu bar*/
.page .menuBar{
    width: 100%;
    background-color: #01A097;

    justify-content:space-between;
    align-items: center;
    display: flex;
    padding: 8px 16px;
}

.menuBar .tabbar-labal p{
    color: #ffffff;
    text-align: center;
    margin: 0;
}
.menuBar .tabbar-labal{
    display: flex;
    align-items: center;
}

.menuBar .tabbar-labal .nextButton{
    margin: 0px 6px;
    height: 14px;
    width: 7px;
}
.menuBar button{
    border: 0px solid #000000;
    padding: 1px 1px;
    color: #ffffff;
    background-color: #EF9300;
    border-radius: 4px;
    align-items: center;
}

.menuBar button img{
    height: 35px;
    width: 35px;
    padding-bottom: 0;
}

.menuBar .homeimg{
    height: 20px;
    width: 16px;
	padding-bottom: 5px;
    cursor: pointer;
}
/* tabbar */

.page .tabbar{
    display: block;
	width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #ffffff;
}
.page .tabbar .tabbarButton{
    width: 100%;
    height: 37px;
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}


.page .tabbar::-webkit-scrollbar{
    display: none;
}
.tabbar a {
    border: 0px solid #000000;
    margin:8px ;
    padding: 4px 8px;
    background-color: #CECECE;
    margin: 4px;
    color: #404040;
}
.tabbar a:active {
    color: #ffffff;
    background-color: #236D7F;
}

.tabbar-nav {
	display: inline-block;
    font-size: 1rem;
    margin: 0px 8px;
}

.hidden {
    display: none !important;
}

.onshow {
	top: 0;
}

.tab-content {
	flex: 1 0 auto; 
	box-sizing: border-box; 
	border: 0px solid palevioletred;
}

/* map container in tab */
.map_container {
	flex: 1 0 auto;
	box-sizing: border-box; 
	border: 0px solid green; 
	/* height: 100%;  */
	/* flex-col */
	/* display: flex; 
	flex-direction: column; */
}

.map_title {
	flex: 0 0 auto
}

.map_content {
	flex: 1 0 auto; 
	box-sizing: border-box; 
	/* border: 1px solid red; */
	height: 100%;
}

.map_content > iframe {
	flex: 1 0 auto;
	width: 100%; 
	border: 0px solid green; 
}

.map_foot {
	flex: 0 0 auto
}

.page .tabbar .tabMask{
    width: unset;
    position: relative;
    display: inline-block;
    flex: 1 1 auto;
    white-space: nowrap;
}
.page .tabbar .tab{
    flex-direction: row;
    min-width: 90%;
    min-height: 100%;
    width: fit-content;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    white-space: nowrap;
    justify-content: center;
}
/* overriding liscontrols.css */
.tab-content > .tab-pane {
	display: none !important;
}
.tab-content > .tab-pane.active {
	display: flex !important;
}

.w-50{
	width: 50%;
}

.flex-col {
	display: flex;
	flex-direction: column;
}

.flex-row {
	display: flex;
	flex-direction: row;
}

.round-corner {
	border-radius: 8px;
}

/* important info popup */
.important-info-page, .popup-menu-page, .case-stat-page {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 20;
}

.important-info-page .header, .case-stat-page .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #236D7F;
    font-size: 0.875rem;
    font-weight: bold;
    position: sticky;
    top: 0;
    min-height: 52px;
    align-items: center;
}

.important-info-page .figures>.cardview{
    margin: 24px 16px;
    padding: 4px 16px;
}

.important-info-page .close-button, .popup-menu-page .close-button, .case-stat-page .close-button {
    cursor: pointer;
    color: inherit;
}

.important-info-page .close-button .fa, .popup-menu-page .close-button .fa, .case-stat-page .close-button .fa {
    padding: 1px;
}

.popup-menu-page .header a{
    float: right;
    color: #236D7F;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 16px;
    font-size: 1rem;
    position: sticky;
    top: 0;
}

.case-stat-page .container-fluid {
    height: 100%;
}

.app-page{
    display: grid;
    grid-template-columns: 100%;
    /*grid-template-rows: 48px 37px auto;*/
    height:100%;
}
.app-page-tab{
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 48px 37px auto;
    height:100%;
}

/* eng */
.en-lang .title-text {
    font-size: 0.75rem;
    margin-left: 8px;
    margin-bottom: 0px;
    white-space: nowrap;
    overflow: hidden;
}

.en-lang .title-label {
    padding: 0px;
   margin: 0px 4px;
   font-size:0.875rem;
}
.en-lang .title-label.tittle {
    padding: 0px;
   margin: 0px 4px;
   font-size:1.125rem;
}
.en-lang .subTabButton .title-label {
    width:100% ;
    font-size:1rem;
    height:65px ;
    color: #FFFFFF;
    font-weight: 500;
    margin: 0;
}

.en-lang .downPart .title-label {
    height: 100%;
    width: 100%;
    text-align: end;
    margin-right:8px;
    font-size: 0.875rem;
    color: #507E96;
    font-weight: 400;
}

.en-lang .title-image img{
    width: 70px !important;
    height: 70px !important;
}

.en-lang .textfit {
    width: 50%;
}
.popup-menu-page .header{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #236D7F;
    font-size: 0.875rem;
    font-weight: bold;
    position: sticky;
    top: 0;
    min-height: 52px;
    align-items: center;

}

@media only screen and (max-width: 1439px ) {

    .figures{
        grid-row: 2;
        width: 100%;
        display: grid;
        grid-template-columns: 0.25fr 1fr 1fr 0.25fr ;
        grid-template-rows: 1fr 1fr 0.5fr 0.1fr;
        gap: 16px;
        grid-template-areas: 
      'leftmargin vaccination additional rightmargin'
      'leftmargin vaccination additional rightmargin'
      'leftmargin vaccination hospitalized rightmargin'
      'leftmargin remark remark rightmargin';
    }
    .subTabButton{
        width: 12vw;
    }
}

@media only screen and (max-width: 1280px ) {
    .main-page{
        display: grid;
        grid-template-rows: 6vh 700px 400px;
        gap: 4vh;
        width: 100%;
    }
    .figures{
        grid-row: 2;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr ;
        grid-template-rows: 1fr 1fr 0.2fr 0.1fr;
        gap: 16px;
        grid-template-areas: 
      ' vaccination '
      ' additional '
      ' hospitalized '
      ' remark ';
    }

    #bottom-menu {
        bottom: -5000px;
    }

    .menu-sheet {
        grid-row: 3;
        display: flex;
        width: 100%;
        background-color: white;
        border-radius: 15px 15px 0px 0px;
        flex-direction: column;
        align-items: center;
        position: fixed;
        
    }

    .menu-sheet .buttomdisplay {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        padding: 16px;
    }
    .subTabButton{
        width: 40vw;
    }
    .title-icon{
        height:2rem
    }
    .title-image{
        width: 8vh;
    }
    /* Text */
    body p{
        margin: 0;
        color: #ffffff;
    }
    .title-text {
        font-size: 0.875rem;
        font-weight: 500;
        margin-left: 16px;
        color: #000000;
    }
    .title-label{
        font-size: 0.875rem;
    }
    .title-label.tittle{
        font-size: 0.875rem;
        font-weight: 600;
    }
    .en-lang .title-label.tittle{
        font-size: 0.875rem;
    }
    .en-lang .subTabButton .upperPart .title-label {
        height: 30px;
    }
    .number-value-big{
        font-size: 1rem;
        font-weight: 600;
    }
    .number-value-smail{
        font-size: 1rem;
        font-weight: 400;
    }
    .upperPart .title-label{
        font-size: 1.25rem;
        font-weight: 700;
    }
    .downPart .title-label{
        text-align: end;
        margin-right:8px;
        font-size: 1rem;
        color: #507E96;
        font-weight: 500;
    }
    .title-remark{
        font-size: 0.75rem;
    }
    .left-title-remark{
        font-size: 0.65rem;
        width: 40%;
    }

    .popup-menu-page .menu-sheet{
        display: flex;
        position: relative;
        background-color: #ffffff00;
        bottom: 0;
        height: 100vh;
        align-items: center;
        justify-content: center;
    }

    .popup-menu-page .menu-sheet .buttomdisplay {
        display: flex;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        padding: 16px;
    }

    .important-info-page .figures{
        margin-top: 5vh;
    }

    #bottom-menu .handle {
        display: block;
    }
}

/* when screen width >= 1024px */
@media only screen and (min-width: 1280px ) {
    /* for bottom menu position */
    #bottom-menu {
        bottom: 0px !important;
    }
}