/**************************************************************************************************
 * Global
 **************************************************************************************************/

button {
    outline: none;
}

body {
	touch-action: none;
}

/**************************************************************************************************
 * Page Header
 **************************************************************************************************/

#header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding: 0;
	box-sizing: border-box;
    z-index: 8;
    font-size: 1em;
    display: flex;
    align-items: flex-start;
}

#header img {
    width: 60px;
}

#header .page-title {
    float: left;
    font-size: 34px;
	padding-top: 4px;
}

#page-title-en {
	font-family: Calibri, Arial;
	margin-left: 5px;
	font-size: 38px !important;
}

#page-title-tc {
	font-family: "Microsoft JhengHei";
}

#header > ul {
    padding:0; 
    margin: 0;
    float: right;
    margin-left: auto;
}

#header > ul > li {
    list-style-type: none;
    cursor: pointer;
}

#header > ul > li.active {
    background-color: #d49500;
}




.drawer-nav {
    position: fixed;
    z-index: 9;
    top: 0;
    overflow: auto;
    width: 200px;
    height: 100%;
    right: -200px;
    color: #222;
    background-color: rgba(0,0,0,0.6);
}

.drawer-nav.active {
    right: 0;
    transition: right 1s;
}




.drawer-dropdown > ul {
    display: none;
}

.tc-list li > div {
    text-align: left;
}

.drawer-dropdown.active > ul {
    display: block;
}


.drawer-nav .nav-title {
    color: #fff;
    font-size: 1.2em;
    padding: 10px;
}



.drawer-toggle {
    display: block;
    width: 30px;
    height: 30px;
    padding: 2px;
    cursor: pointer;
    border-radius: 0px;
    margin: 5px;
    -webkit-transition: all .3s ease, -webkit-transform .2s ease;
            transition: all .3s ease, transform .2s ease;
    background: -webkit-linear-gradient(top, transparent 0%, transparent 20%, #fff 20%, #fff 23%, transparent 23%, transparent 48%, #fff 48%, #fff 50%, transparent 47%, transparent 76%, #fff 76%, #fff 78%, transparent 78%), -webkit-linear-gradient(transparent, transparent);
    background: linear-gradient(to bottom, transparent 0%, transparent 20%, #fff 20%, #fff 23%, transparent 23%, transparent 48%, #fff 48%, #fff 50%, transparent 47%, transparent 76%, #fff 76%, #fff 78%, transparent 78%), linear-gradient(transparent, transparent);
}

.drawer-toggle:active, .drawer-toggle:hover {
    -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
            transform: scale(0.9);
}

.drawer-toggle.clicked {
    background: -webkit-linear-gradient(135deg, transparent 0%, transparent 48%, #fff 49%, #fff 51%, transparent 51%, transparent 100%), -webkit-linear-gradient(45deg, transparent 0%, transparent 48%, #fff 49%, #fff 51%, transparent 51%, transparent 100%);
    background: linear-gradient(-45deg, transparent 0%, transparent 48%, #fff 49%, #fff 51%, transparent 51%, transparent 100%), linear-gradient(45deg, transparent 0%, transparent 48%, #fff 49%, #fff 51%, transparent 51%, transparent 100%);
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
}

.drawer-toggle.clicked:active, .drawer-toggle.clicked:hover {
    -webkit-transform: scale(0.9) rotate(180deg);
        -ms-transform: scale(0.9) rotate(180deg);
            transform: scale(0.9) rotate(180deg);
}  

#tropical-storm-status {
    text-align: left;
}

#language-selector {
    padding: 0 5px 5px 0;
    margin: 0;
}

#language-selector > li {
    color: #fff;
    display: inline-block;
    cursor: pointer;
    width: 30%;
    text-align: center;
    font-size: 1.3em;
}

#language-selector > li:hover{
    color: #d0e408;
}

#language-selector > li {
    border-right: 1px solid #fff;
}

#language-selector > li:last-child {
    border-right: none; 
}

.btn-icon > img {
    width: 22px;
}

/**************************************************************************************************
 * Page Style
 **************************************************************************************************/

#main-container {
    position: relative;;
    width: 100%;
    height: 100%;
}

#details {
	bottom: 15%;
}
#bottom {
    left: 0;
    z-index: 8;  
}
#status.bad {
	background-color: #000;
	color: #fff;
}

#earth {
	position: absolute;
	bottom: 0;
	right: 5px;
	z-index: 8;
}

#menu-container {
	padding: 20px;
}

#menu-close-btn {
	font-size: 20px;
	float: right;
	margin-right: 20px;
	margin-top: 5px;
	cursor: pointer;
}

.hide {
	display: none;			
}

.d3slider-axis text{
	fill: #fff;
}

.d3slider text {
	font: 11px sans-serif;
}

#btnReload {
	cursor: pointer;
}

.datepicker--day-name,
.datepicker--cell {
	font-size: 12px;
}

#vn-loading {
	position: absolute; 
	left: 0; 
	top: 0; 
	width: 100%; 
	height: 100%; 
	background-color: #000; 
	opacity: 0.85; 
    z-index: 11;
}

#vn-loading-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#btn-open-new-window {
	padding: 8px;
	background: #6495ED;
	border-radius: 3px;
	border: none;
	color: white;
	cursor: pointer;    
	font-size: 14px;
	margin: 10px 0;
}

#menu-control {
    padding-left: 10px;
}

#menu-control {
	float: right;
}

.btn-spinner {
	height: 27px;
	vertical-align: middle;
	cursor: pointer;
	background-color: #82abc8;
	color: #fff;
	padding: 0 8px;
}

.spinner-input {
	width: 50px;
	font-size: 0.4em;
}

#menu-container input, 
#menu-container select{
	height: 21px;
	vertical-align: middle;
}

#menu-container select{
	height: 30px;
}

canvas.steamline-off,
canvas.hide {
	display: none;
}

.labels {
	font: 12px sans-serif;
	fill: #fff;
}

/**************************************************************************************************
 * Tiles style
 **************************************************************************************************/
 
.tiles-radio-buttons-wrapper {
	clear: both;
	display: inline-block;
}
  
.tiles-radio-button {
	position: absolute;
	left: -9999em;
	top: -9999em;
}

.tiles-radio-button + label {
	float: left;
	padding: .01em 1em;
	cursor: pointer;
	border: 1px solid #e8e8e8;
	margin-right: -1px;
	color: #fff;
	background-color: #C0C0C0;
	font-size: 11px;
}

.tiles-radio-button + label:first-of-type {
	border-radius: .2em 0 0 .2em;
}
	
.tiles-radio-button + label:last-of-type {
	border-radius: 0 .2em .2em 0;
}

.tiles-radio-button:checked + label {
	background-color: #808080;
}

.btn {
    color: #fff !important;
    text-transform: uppercase;
    background: #808080;
    padding: 3px 5px;
    border-radius: 3px;
    display: inline-block;
    border: none;
    font-size: 1em;
    cursor: pointer;
}

.btn.hide{
    display: none;
}

#overlay-nodes{
    position: absolute;
    bottom: 95px;
    right: 65px;
    z-index: 5;
    font-size: 13px;
}

/**************************************************************************************************
 * TC Style
 **************************************************************************************************/

#typhoon-menu {
    position: absolute; 
    right: 0;
    background-color: rgba(000, 000, 000,  0.6);
    z-index: 5;
    width: 225px;
}

#typhoon-menu > p {
    padding: 10px;
    font-size: 12px;
}

#tc-track-content{
    display: none;
    padding: 10px;
}

.tc-list{
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
    padding: 0;
    /* margin: 5px 0 0 0; */
    clear: both;
}

.tc-list li input[type=checkbox]{
    min-width: 20px;
    min-height: 20px;
    width: 20%;
}

.tc-list li {
    padding: 3px 0;
    display: flex;
    align-items: center;
}

.tc-list li label{
    display: flex; 
    align-items: center;
    width: 70%;
    cursor: pointer;
}

.tc-list li label span {
    text-align: left;
    font-size: 12px !important;
    width: 80%;
}

.tc-list li > div {
    display: inline-block;
    /* width: 65%; */
    width: 100%;
    font-size: .7em !important;
    cursor: pointer;
    line-height: 15px;
}

.tc-list li.active > p {
    border-left: 4px solid #f8f8f8;
    padding-left: 5px;
}

#app-tc-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}

#app-tc-btn {
    background-color: #000;
    opacity: .7;
    background-image: url(../img/Tropical-Storm-icon.png);
    background-position: 8px;
    background-size: 16px;
    background-repeat: no-repeat;
    cursor: pointer;
    border: 1px solid #fff;
    border-radius: 50px;
    padding: 8px 8px 8px 27px;
    text-align: center;
    float: right;    
    font-size: 12px;
    margin-bottom: 5px;
}

#app-tc-btn.active {
    background-color: #d49500;
}

#app-tc-menu > .tc-list,
#app-tc-menu > .no-storm-track {
    background-color: #000;
    opacity: .7;
    clear: both;
    display: none;
}

#app-tc-menu > .no-storm-track {
    padding: 8px;
    font-size: 12px;
}

#app-tc-menu > .tc-list > li {
    padding: 8px;
}

.btn-tc-track-history {
    margin-left: 5%;
    word-break: keep-all;
    float: right;
    width: 30%;
}


#tc-track-history-list {
    background-color: #000;
    border-radius: 4px;
    padding: 20px;
    max-width: 99%;
}

#tc-track-history-list {
    color: #fff;
	font-size: 0.9em;
	box-shadow: 0 0 6px #efefef;
}

#tc-track-history-list th,
#tc-track-history-list td {
    padding: 5px;
    border-bottom: 1px solid #aaa;
}

#tc-track-history-list td.no-wrap {
    white-space: nowrap;
}

.dialog {
    background-color: #FFF;
    border-radius: 4px;
    padding: 20px;
    max-width: 99%;
    width: auto;
    font-size: 15px;
    color: #333;
    box-shadow: 0 0 6px #cacaca;
    /* box-shadow: 0 0 6px #efefef; */
    margin-bottom: 120px;
    margin-left: 5px;
}

.popup_close {
    position: absolute;
    top: 0;
    right: 0px;
    border-radius: 2px;
    background: none;
    border: 0;
    font-size: 15px;
    padding: 0 10px;
    cursor: pointer;
}

.popup_wrapper {
    visibility: hidden !important;
}

.tc-position {
    cursor: pointer;
}

/**************************************************************************************************
 * Map navigation control
 **************************************************************************************************/

 #map-navigation{
    position: absolute; 
    top: 35px; 
    left: 10px; 
    z-index: 9;
}

#map-navigation.invisible{
    display: none;
}

#zoom-control {
    padding-left: 0 !important;
    padding-right: 30px;
}

#direction-control{
    border-radius: 90%;
    background-color: #e8e8e8;
    width: 80px;
    height: 80px;
    box-shadow: 0 0 10px 2px #333;
    position: relative;
}

#direction-control .fas{
    color: #333;
    font-size: 20px;
}

.direction-control-btn{
    position: absolute;
    cursor: pointer;
}

.direction-control-btn .fa-angle-up{
    vertical-align: top;
}

.direction-control-btn .fa-angle-down{
    vertical-align: bottom;
}

#btn-up {
    top: 0;
    left: 34px;
}

#btn-down {
    bottom: 0;
    left: 34px;
}

#btn-left {
    top: 30px;
    left: 2px;
}

#btn-right {
    top: 30px;
    right: 2px;
}

#zoom-control {
    padding-left: 30px;
    padding-top: 10px;
}

#btn-zoom-in{
    margin-bottom: 20px;
    width: 18px;
}

#btn-zoom-out{
    margin-top: 20px;
    width: 18px;
}

#zoom-slider{
    height: 200px;
}

.noUi-vertical{
    margin-left: 4px;
    width: 10px;
}

.noUi-vertical .noUi-handle{
    width: 18px;
    outline: none;
    left: -5px;
}

.noUi-vertical .noUi-handle:after, .noUi-vertical .noUi-handle:before{
    width: 4px;
}

.noUi-vertical .noUi-tooltip{
    left: 120%;
    right: auto;
}

.el-radio>input[type=radio]+.el-radio-style, .el-checkbox>input[type=checkbox]+.el-checkbox-style {
    margin-top: -8px;
    float: right;
}

#scale-label {
    position: absolute;
    bottom: 70px;
    right: 65px;
    z-index: 5;
}

#scale-label #scale-value {
    text-align:center; 
    font-size:12px; 
    margin-bottom: 5px;
}
canvas#scale{       height: 5px;
    width: 200px;
    background-color: rgba(68,65,65,0.84);
    line-height: initial;
    letter-spacing: .05em;
    border-radius: 1em;
    box-shadow: 0 0 4px 0 black;}
#scale-label #scale-legend {
  position: relative;
    font-size: 1.5em;
}

/**************************************************************************************************
 * For Small Window Size
 **************************************************************************************************/

@media (max-width: 825px), (max-height: 700px) {

    #btn-tropical-storm {
        background-size: 15px 15px !important;
    }
    
    #status, #location, #menu {
        font-size: 1.5rem;
    }

    #details {
        bottom: auto;
        right: 10px;
        left: auto;
        top: 45px;
    }

    @media (orientation:landscape) {
        
        #zoom-slider{
            height: 160px;
        }

        #details {
            right: 5%;
            bottom: 80%;
        }

        #tc-track-history-list_wrapper,
        #tc-track-history-list_background {
            /* max-height: 331px; */
            overflow-y: auto;
        }

    }

    .btn-icon > img {
        width: 20px;
    }


    .tc-list li input[type=checkbox]{
        transform: scale(1.1) !important;
    }

    .tc-list li > div {
        width: 100%;
    }

    .btn-tc-track-history {
        width: 50%;
        float: none;
    }

}

/**************************************************************************************************
 * For App
 **************************************************************************************************/

#app-tc-list .el-checkbox {
    min-width: 80px;
}
/* 
#app-tc-list li > div {
    width: 65%;
} */

#app-tc-list .btn-tc-track-history {
    width: 35%;
    margin-top: -3px;
    font-size: 10px;
}

#app-tc-list span {
    font-size: 13px;
    padding-right: 20px;
}

#app-tc-list .el-checkbox-style {
    font-size: 1.5em !important;
}

.in-app #overlay-nodes {
    right: 8px;
}

.in-app #tc-track-disclaimer {
    padding: 15px 10px;
    margin-bottom: 100px;
}

.in-app .popup_close {
    font-size: 10px;
    padding: 0 5px;
}

.in-app .dialog {
    font-size: 14px;
}

.hemisphere,.graticule {
    stroke: #fff0 !important;
/*thuctd loaị bỏ cái đường grid*/
}

div#mainmenu {
    position: fixed;
    z-index: 999;
    left: 2%;
    bottom: 70px;
}
ul#tiles-selector img {
    display: none;
}
ul#tiles-selector li span {
    font-size: 17px;
    margin: 10px;
}
ul#tiles-selector li i {
    font-size: 18px;
    background: #fff;
    box-shadow: 0 1.5px 3px rgba(0,0,0,.25);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    overflow: hidden;
    transition: .2s;
    float: left;
    color: #1c1c1d;
    line-height: 1.8;
    text-align: CENTER;
}ul#tiles-selector li {
    list-style-type: none;
    cursor: pointer;
    margin-bottom: 10px;
    line-height: 2;
}
ul#tiles-selector li span {
    font-size: 1.5em;
    margin: 11px;
}
ul#tiles-selector li.active i {
    background: #d49500;color:#fff;
}
ul#tiles-selector li.active span {
    color:#d49500;
}