/*=======================================================
	This page contain the design for the template of Big Blue website
=======================================================*/

/*-- For large screens --*/
@media (min-width:997px){
	#smScreenMenu{ display: none; }
	header #header #logoContainer{ width: 25%; }
	header #header #logoContainer #logo{ position: relative; }
	header #header #logoContainer #logo img{ top: 13px; left: 12px; }
	header #header #logoContainer #logo h1#bigbluezh{ display: block; top: 23px; left: 66px; }
	header #header #logoContainer #logo h1#bigblueen{ display: block; top: 43px; left: 58px; }
	header #header #mainNav{ display: block; float: left; width: 66%; }
	header #header #mainNav ul{ margin: 26px 0 0 16px; }
	header #header #mainNav ul li{ display: inline-block; padding: 0 3% 0 0; height: 30px; }
	header #header #mainNav ul li a{ height: 30px; }
	header #header #mainNav ul li a:hover{ text-shadow: 1px 1px 1px #acd5fc; -moz-transition: text-shadow 0.2s; -webkit-transition: text-shadow 0.2s; -o-transition: text-shadow 0.2s; transition: text-shadow 0.2s; }
	/*header #header #mainNav ul li:nth-last-child(3), header #header #mainNav ul li:nth-last-child(2), header #header #mainNav ul li:last-child{ display: none; }*/
	header #header #mainNav ul li:nth-last-child(2), header #header #mainNav ul li:last-child{ display: none; }
	header #header #secondaryNav{ width: 8%; margin-top:24px; }
	
	footer{ background: url(../png/footer_dolphin_1.png) 14% 0 no-repeat, url(../png/footer_dolphin_2.png) 86% 38px no-repeat,  url(../jpg/footer_bg.jpg) repeat-x; }
	footer #foot .commercialLogo{ display: block; padding: 70px 0 0 1.5%; }
	footer #foot p.icp{ display: block; }
	footer #foot img.dolphin_2{ right: 50px; top: 45px; }
	footer #foot p.copyright{right: 12%;}
}

/*-- For medium screens --*/
@media (max-width:996px){
	#smScreenMenu{ width: 7%; display: block; }
	header #header #logoContainer{ display: block; float: left; width: 81%; }
	header #header #logoContainer #logo{ position: relative; top: 0px; left: 34%; }
	header #header #logoContainer #logo img{ top: 13px; left: 12px; }
	header #header #logoContainer #logo h1#bigbluezh{ display: block; top: 23px; left: 66px; }
	header #header #logoContainer #logo h1#bigblueen{ display: block; top: 43px; left: 58px; }
	header #header #mainNav{ display: none; float: left; width: 100%; height: 100vh; background: #f5f0f0; overflow: scroll;}
	header #header #mainNav ul{ margin: 0; }
	header #header #mainNav ul li{ display: block; width: 80%; margin: 0 auto; padding: 0; border-bottom: 1px solid #008cd6; }
	header #header #mainNav ul li a{ line-height: 46px;}
	header #header #mainNav ul li:nth-last-child(3){ display: block; }
	/*header #header #mainNav ul li:nth-last-child(2){ display: block; border-bottom: 2px solid #008cd6; }*/
	header #header #mainNav ul li:last-child{ display: block; border: none; line-height: 80px; }
	header #header #secondaryNav{ width: 12%; margin-top:20px; }

	footer{ background: url(../png/footer_dolphin_1.png) 6% 0 no-repeat,  url(../jpg/footer_bg.jpg) repeat-x; }
	footer #foot .commercialLogo{ display: block; padding: 70px 0 0 1.5%; }
	footer #foot p.icp{ display: block; }
	footer #foot img.dolphin_2{ display: none; }
	footer #foot p.copyright{right: 4%;}
}

/*-- For small screens --*/
@media (max-width:568px){
	#smScreenMenu{ width: 12%; display: block; }
	header #header #logoContainer{ width: 70%; }
	header #header #logoContainer #logo{ display: block; width: 50px; margin: 14px 0 0 14%;}
	header #header #logoContainer #logo img{ position: static; }
	header #header #logoContainer #logo h1#bigbluezh{ display: none; }
	header #header #logoContainer #logo h1#bigblueen{ display: none;  }
	header #header #mainNav{ display: none; float: left; clear: left; width: 100%; height: 100vh; background: #f5f0f0; overflow: scroll; }
	header #header #mainNav ul{ margin: 0; }
	header #header #mainNav ul li{ display: block; width: 80%; margin: 0 auto; padding: 0; border-bottom: 1px solid #008cd6; }
	header #header #mainNav ul li a{ line-height: 46px;}
	header #header #mainNav ul li:nth-last-child(3){ display: block; }
	/*header #header #mainNav ul li:nth-last-child(2){ display: block; border-bottom: 2px solid #008cd6; }*/
	header #header #mainNav ul li:last-child{ display: block; border: none; line-height: 80px; }
	header #header #secondaryNav{ width: 18%; margin-top:20px; }

	footer{ background: url(../jpg/footer_bg.jpg) repeat-x; }
	footer #foot .commercialLogo{ display: none; }
	footer #foot p.icp{ display: none; }
	footer #foot img.dolphin_1{ display: none; }
	footer #foot img.dolphin_2{ display: none; }
	footer #foot p.copyright{right: 5%;}
}

/*== General Setup ==*/
html, body {
	font-family:Arial,sans-serif,SimHei;
}

body{
	margin: 0 auto;
	padding: 0;
	overflow: auto;	
}

h1{
	margin: 0px;
	padding: 0;
	font-size: 2rem;
}

h2{
	margin: 0px;
	padding:0;
	font-size:1.8rem;
}

h3{
	margin: 0px;
	padding:0;
	font-size:1.6rem;;
}
	
p{
	margin: 0;
	padding:0;
}

img{
	border: none;	
}

ul{
	margin: 0;
	padding: 0;	
}

ol{
	margin: 0;
	padding: 0;	
}

form{
	margin:0;
	padding:0;
}

a:link{
	color: #008cd6;
	text-decoration: none;
}

a:visited{
	color: #008cd6;
	text-decoration: none;
}

a:hover{
	color: #0270c6;
	text-decoration: none;
}

a:active{
	text-decoration:none;
}


/*==========================================================
	Design for the HEAD of the page
==========================================================*/

header{
	display: block;
	float: left;
	width: 100%;
	height: 64px;
	position: fixed;
	z-index: 9;
	background: url(../png/header_bg.png) repeat-x;
}

header #header{
	display: block;
	max-width: 1024px;
	height: 64px;
	margin: 0 auto;
}

/* Design for the menu button in medium and small screen */

header #header #smScreenMenu{
	float: left;
	height:64px;
	margin: 0;
	cursor: pointer;
}

header #header #smScreenMenu p{
	line-height: 64px;
	font-size: 2.8rem;
	margin: 0 0 0 20px;
	padding: 2px 0 0 0;
	color: #008cd6;
	transform: scale(1, 0.6);
}


/*== Design for logo in large screen ==*/

header #header #logo{
width: 240px;
	display: block;
	float: left;
}

header #header #logo img{
	display: block;
	width: 42px;
	position: absolute;
}

header #header #logo h1#bigbluezh{
	font-size: 1.05rem;
	font-weight: 400;
	color: #008cd6;
	position: absolute;
}

header #header #logo h1#bigblueen{
	font-size: 0.66rem;
	font-weight: normal;
	color: #008cd6;
	position: relative; /* To keep nav bar's original position */
}

/* Design for the language link */

header #header #secondaryNav{
	display: block;
	float: right;
	text-align: center;
}

header #header #secondaryNav a{
	display: block;
	line-height: 30px;
	width: 100%;
}

/* Design for the navigation bar */

header #header #mainNav ul{
	width: 100%;
	padding: 0;
	list-style-type: none;
}

header #header #mainNav ul li a{
	display: block;
	width: 100%;
}


/*==========================================================
	Design for the frame of the page, specific design in each page.css file.
==========================================================*/
#wrapper{
	display: block;
	float: left;
	width: 100%;
	margin-top: 64px;
}

#pageTitle{
	display:block;
	width: 100%;
	height: 50px;
	/*-- Background color is defined in each page design --*/
}

#pageTitle h2{
	display: block;
	max-width: 1024px;
	margin: 0 auto;
	padding-left: 14px;
	line-height: 50px;
	font-size: 1.2rem;
	font-weight: normal;
	color: #fff;
}

#pageTitle h2 a:link{
	color: #fff;
	text-decoration: none;
}

#pageTitle h2 a:hover{
	color: #8ce55c;
	text-decoration: none;
}

#pageTitle h2 a:visited{
	color: #fff;
	text-decoration: none;
}

#pageTitle h2 a:active{
	text-decoration:none;
}

#main{
	display: block;
	max-width: 1024px;
	margin: 0 auto;
}


/*==========================================================
	Design of the footer of the page
==========================================================*/
footer{
	display: block;
	float: left;
	margin-top: 20px;
	width: 100%;
	height: 110px;
}

footer #foot{
	display: block;
	max-width: 1024px;
	margin: 0 auto;
	position: relative;	
}

footer #foot ul{
	display: block;
	width: 100%;
	list-style-type: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 12px;
	right: 15px;
	text-align: right;
}

footer #foot ul li{
	display: inline-block;
	width: auto;
	padding-right: 2%;
	font-size: 0.9rem;
	line-height: 1.2em;
}

footer #foot ul li .whiteLink{
	color: #fff;
}

footer #foot p.copyright{
	display: block;
	margin: 0;
	padding: 0;
	color: #008cd6;
	position: absolute;
	top: 80px;
	line-height: 30px;
	font-size: 0.9rem;
}

footer #foot .commercialLogo{
	width: 22px;
	border: 0;
}

footer #foot p.icp{
	color: #1ac3dd;
	font-size: 0.5em;
	padding-left: 1.5%;
}