body {
    margin: 0;
    height: 100vh;
    display: grid;

    grid-template-areas: "header"
                        "main"
                        "footer";
    grid-template-rows: 50px auto 30px;
    grid-gap: 20px;
    font-family: sans-serif;
    font-size: 14pt;
}

:fullscreen, ::backdrop {
    background-color: white;
}

leftsidebar {
    grid-area: leftsidebar;
    overflow-y:auto;
    display: none;
}

rightsidebar {
    grid-area: rightsidebar;
    overflow-y:auto;
    display: none;
}

/* for page width 800px */
@media (min-width: 750px) {
    body {
        grid-template-areas: "header header"
                            "leftsidebar main"
                            "footer footer";
        grid-template-columns: auto 600px;
        grid-template-rows: 50px auto 30px;
    }

    leftsidebar {
        display:block;
    }

    rightsidebar {
        display: none;
    }
}

/* for page width 1280px */
@media (min-width: 1070px) {
    body {
        grid-template-areas: "header header"
                            "leftsidebar main"
                            "footer footer";
        grid-template-columns: auto 900px;
        grid-template-rows: 50px auto 30px;
    }

    leftsidebar {
        display:block;
    }

    rightsidebar {
        display: none;
    }
}

/* for page width 1920px */
@media (min-width: 1780px) {
    body {
        grid-template-areas: "header header header"
                            "leftsidebar main rightsidebar"
                            "footer footer footer";
        grid-template-columns: minmax(auto, 1fr) 1300px minmax(auto, 1fr);
        grid-template-rows: 50px auto 30px;
    }

    leftsidebar {
        display:block;
    }

    rightsidebar {
        display:block;
    }
}

/* for page width more than 1920px */
@media (min-width: 2500px) {
    body {
        grid-template-areas: "header header header"
                            "leftsidebar main rightsidebar"
                            "footer footer footer";
        grid-template-columns: minmax(auto, 1fr) 1800px minmax(auto, 1fr);
        grid-template-rows: 50px auto 30px;
    }

    leftsidebar {
        display:block;
    }

    rightsidebar {
        display:block;
    }
}

header {
    grid-area: header;
}

main {
    grid-area: main;
    padding:10px;
    overflow-y:auto;
}
   
footer {
    grid-area: footer;
    height:30px;
    border-left:10px;
    border-right:10px;
    border-top: 1px solid #2f3a55;
    background-color: #ffffff;
    z-index: 10;
}

h1 {
    font-size: 1.5em;
}

a {
    text-decoration: underline;
    color: inherit;
}

.dropdown-menu{
    overflow-y: auto; 
    max-height: 400px;
}


/* nav-tree */
.nav-tree {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-tree ul{
    list-style-type: none;
    width:100%;
}

.nav-tree a{
    color: #000000;
    text-decoration: none;
    width:100%;
    padding:10px;
    border-radius: 25px;
    display: block;
}

.nav-tree a:hover{
    background-color: #f2f2f2;
}

.nav-tree .caret {
    width:100%;
    padding:10px;
    border-radius: 25px;
    display: block;
    cursor: pointer; 
    user-select: none; /* Prevent text selection */
}

.nav-tree .caret:hover {
    background-color: #f2f2f2;
}

.nav-tree .caret::after {
    content: ">";
    color: black;
    display: inline-block;
    margin-right: 6px;
}

.nav-tree .caret-down::after {
    transform: rotate(90deg); 
}

.nav-tree .nested {
    display: none;
}

.nav-tree .active {
    display: block;
}
/* End nav-tree */

#searchbox{
    background: transparent;
    background-image: url(https://www.huostravelblog.com/image/icon/search.svg);
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 40px;
}


/*Content*/
.helplink{
    border-radius: 50%;
    margin-right: 20px;
    background-color: #284d00;
    float: right;
    cursor: pointer;
    display: inline-block;
}

/*tabs style*/
.ctabs ul{
    width:100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctabs li{
    display: inline;
    line-height:28px;
    border-color: #4f9900;
    cursor: pointer;
    padding:10px 10px 7px 10px;
    border-style: solid;
    border-width: 1px 1px 0px 1px;
    border-radius: 5px 5px 0 0;
}

.ctabs li.active{
    border: 1px solid #284d00;
    border-bottom: none;
    background-color: #ffffff;
    padding-bottom: 9px;
}

.ctabs-content{
    width:100%;
    display: block;
    margin: 0;
    padding: 10px 5px 5px 5px;
    background-color: #ffffff;
    border-color: #284d00;
    border-style: solid;
    border-width: 1px;
    border-radius: 0 5px 5px 5px;
    overflow-x: auto;
}

/*textbook style*/
.ctextbox{
	outline:none;
	padding:8px;
	display:inline-block;
	border-radius:2px;
	border:1px solid #daffb3;
    font-size: 12px;
}

.ctextbox:focus{
	border:1px solid #284d00;
}

/*button style*/
.cbutton{
    margin: 3px;
	padding:8px;
	display:inline-block;
	border-radius:5px;
	border:1px solid #4f9900;
    background-color: transparent;
    font-size: 12px;
    cursor: pointer;
}

.cbutton:hover{
	border:1px solid #284d00;
}

.cbutton-dark{
    margin: 3px;
	padding:8px;
	display:inline-block;
	border-radius:5px;
	background-color: #284d00;
    color: #ffffff;
    font-size: 12px;
    cursor:pointer;
}

/*dropdown style*/
.cdropdown{
	position: relative;
    width: auto;
    display: inline-block;
}

.cdropdownbtn{
    margin: 5px 5px 0 5px;
	padding:8px;
	border-radius:2px;
	border:1px solid #4f9900;
    font-size: 12px;
    cursor:pointer;
}

.cdropdownbtn:hover{
	border:1px solid #284d00;
}


.cdropdownbtn::after{
	content: "\25bc";
    font-size: 9px;
    margin-left: 5px;
    float:right;
}

.cdropdown-content{
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 150px;
    border:1px solid #284d00;
    box-shadow: 0 3px 3px 0px rgba(0,0,0,0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1;
}

.cdropdown-content:active{
    display: none;
}

.cdropdown-content span{
    padding: 5px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.cdropdown-content span:hover{
    background-color: #e6ffcc;
}

.cdropdown-content div{
    padding: 5px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.cdropdown-content div:hover{
    background-color: #e6ffcc;
}

.cdropdown:hover .cdropdown-content{
    display: block;
}

/*modal style*/
.cmodal{
    background-color: #ffffff;
    display:none;
    width:300px;
    position:fixed;
    z-index:1;
    margin:0 auto;
    left:50%;
    top:50%;
    margin-left:-150px;
    margin-top:-150px;
    padding:10px;
    border-radius: 8px;
    border:1px solid #284d00;
    box-shadow: 0 3px 3px 0px rgba(0,0,0,0.3);
}

/* Tooltip */
.ctooltiptrigger{
    border-bottom: 1px dotted #284d00; cursor: help;
    position: relative;
}

.ctooltiptrigger .ctooltip{
    display: none;
    width:auto;
    background-color: #ffffff;
    border:1px solid #284d00;
    border-radius: 5px;
    padding: 10px;

    top:-5px;
    left: 105%;
    position: absolute;
    z-index: 1;
}

.ctooltiptrigger:hover .ctooltip{
    display: block;
}

/*========*/
/* Old */
/*========*/
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	 -khtml-user-select: none; /* Konqueror HTML */
	   -moz-user-select: none; /* Firefox */
		-ms-user-select: none; /* Internet Explorer/Edge */
			user-select: none; /* Non-prefixed version, currently
								  supported by Chrome and Opera */
}
