@charset "utf-8";
/* CSS Document */



/*------------------------header, nav, cover video-------------------------------*/
html {
}

body {
  /*background-color: rgb(255,255,255);*/
  background: url('../images/bg1.jpg') no-repeat fixed top;
  background-size: cover;
  font-family: Baskerville, "Times New Roman", "serif";
  margin-top: 0px;
  overflow-y: scroll;
}

header {	
  width: 801px;
  height: 406px;		/* change to 430px in future if showing nav */
  margin: 0px auto 0px;
}

.headerImage {
	position: relative;
	top: 0px;
}

.coverVideo {
  position: relative;
  width: 800px;
  height: 406px;       /* exact size of the video, same as the old header image */
  overflow: hidden;
}

.coverVideo video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* never crop — always show the full frame */
}

nav {
  width: 801px;
  height: 24px;
  display: flex;
  /* CHANGE: This creates equal spacing on both sides of each item */
  justify-content: space-around; 
  /* OPTIONAL: Aligns items vertically in the center of the nav bar */
  align-items: center; 
}

nav a {
  display: inline-block;
  width: 396px;
  height: 24px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
  padding-top: 0px;
  border-radius: 0px;
	border: 1px solid rgb(0,0,0);
	box-sizing: border-box;
  background-color: rgb(154,49,45, 0.5);
  color: rgb(250,222,222);
  text-align: center;
  font-size: 21px;
  line-height: 21px;
  transition: 0.3s;
  text-decoration: none;
}

nav a:hover {
  background-color: rgb(192,147,50, 0.5);
  color: rgb(56,48,48);	
	border: 0px solid rgb(0,0,0);
	box-sizing: border-box;
}

nav .this {
  display: inline-block;
  width: 396px;
  height: 24px;
  /* CHANGE: Reset margins to 0 so they don't break the Flexbox math */
  margin-top: 0px; 
  margin-left: 0px; 
  margin-right: 0px;
  padding-top: 0px;
  border-radius: 0px;
	border: 1px solid rgb(0,0,0);
	box-sizing: border-box;
  background-color: rgb(192,147,50, 0.5);
  color: rgb(250,222,222);
  text-align: center;
  font-size: 21px;
  line-height: 23px;
  transition: 0.3s;
  text-decoration: none;
}





/*------------------------general setting-------------------------------*/
.lowerLeft {
	display: inline-block;
	width: 110px;	
	vertical-align: top;
}

.introduction {
	display: inline-block;
	width: 801px;
	text-align: left;
	background-color:rgba(255,255,255,0.9);
}

.mainArea {
	display: inline-block;
	width: 801px;
	text-align: left;
}

.lowerRight {
	display: inline-block;
	width: 70px;
	vertical-align: top;	
}

.majorText {
  	display: block;
  	width: 700px;
  	margin: 0px auto 30px;
  	font-size: 23px;
	text-align: left;
}

.remark {
	font-size: 16px;
  	font-style: italic;
	margin-left: 3px; 
	margin-top: -5px;
}

.highlightText {
  	display: block;
  	width: 610px;
  	margin-top: 5px;
	margin-left: 66px; 
	margin-bottom: 10px;
  	font-size: 16px;
	color: rgb(140,31,33);
}

.highlightText .larger {
	font-size:26px;
	color: rgb(192,44,46);
}

.minorText {
  	display: block;
  	width: 510px;
  	margin: 10px auto 30px;
  	font-size: 16px;
}

p {
	margin-bottom: 0px;
}

ul {
  display: block;
  width: 500px;
  margin: -20px auto 10px;
  font-size: 16px; 
}

ol {
  display: block;
  width: 550px;
  margin-top: -20px;
  margin-left: 0px; 
  margin-bottom: 50px;
  font-size: 16px; 
}

li:not(:last-child) {
    margin-bottom: 5px;
}

.titleImg {
	display: inline-block;
	position: relative;
	left: 100px;
	vertical-align: middle;
}

.titleImgWide {
	display: inline-block;
	position: relative;
	left: 56px;
	vertical-align: middle;
}

h1 {							/* Chinese title in demonstration button */
	font-size: 24px;
	display: inline-block;
	position: relative;
	margin: 5px 10px 0px;
	color: rgb(64,34,32);
}

.smallerChinese {
	font-size: 16px;
}

h2 {							/* English title in demonstration button */
	font-size: 12px;
	display: inline-block;
	position: relative;
	margin: -10px 13px 0px;
	color: rgb(64,34,32);
}

.smallerEnglish {
	font-size: 9px;
}

h3 {
	font-size: 18px;
	color: rgb(64,34,32);
}

h5 {							/* index of the demonstration video */
	font-size: 11px;
	display: inline-block;
	position: relative;
	margin: 0px 13px 0px;
	color: rgb(104,74,72);
}






/*------------------------tutorials-----------------------------*/
.tutorials {
  	width: 801px;
  	margin: 0px auto 0px;
}

.tutorialsButton {
	display:inline-block;
	border: 1px solid rgb(183, 183, 183);
  	margin: 0px 80px 0px;
  	width: 500px;
  	height: 100px;
	background-color: rgb(236,222,222);
	position: relative;
	left: 50px;
	text-decoration: none;
	color: #000000;
}

#cf {
  position:relative;
  height:100px;
  width:500px;
  margin:0 auto;
}

#cf img {
  position:absolute;
  left:0;
  -webkit-transition: opacity 0.4s ease-in-out;
  -moz-transition: opacity 0.4s ease-in-out;
  -o-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

#cf img.top:hover {
  opacity:0;
}











/*----------------------the whole learnings page/ learning video button--------------------*/
.learnings {
  width: 801px;
  margin: 0px auto 0px;
  
}

.languageBar {
	font-size: 14px;	
	text-align: right;
}

.learningTitleBar {
	font-size: 23px;	  
	background-color: rgb(236,222,222);
	padding-left: 10px;
	border-bottom: 3pt solid rgb(199, 117, 119);
}

.learningTitleBarContent {
	font-size:14px;
	margin-top: 20px;
	margin-left: 30px;
	margin-right: 30px;
	margin-bottom: 20px;
}

.publicResourcesTitleBar {
	font-size: 23px;	  
	background-color: rgb(255,255,255);
	padding-left: 10px;
}

.learningLeftCol {
  width: 501px;
  vertical-align: top;
  font-size: 16px;
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 10px;
}

.learningRightCol {
  width: 301px;
  vertical-align: top;
}

.learningContent {
  font-size: 19px;
  padding-left: 20px;
  padding-right: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.learningSubtitle {
  font-weight: bold;
  margin-left: 0px;
  /*font-size: 24px;*/
  color: rgb(230,109,86);
}

.learningSyntax {
  display: block;
  margin-left: 0px;
  margin-right: 0px;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 24px;
  background-color: rgb(250,222,222, 0.3);	
  color: rgb(175,99,95);
}

.B {									/* short form inserted in .learningSyntax */
  font-weight: bold;
}

.learningButton {
	display: inline-block;
	border: 0px;
  	margin: 0px auto 0px;
  	width: 600px;
	height: 400px;
	position: relative;
	left: 0px;
	text-decoration: none;
}

#cf_learning {
  position: relative;
  width:600px;
  margin:0 auto;
}

#cf_learning img {
  position:absolute;
  left:0;
  -webkit-transition: opacity 0.4s ease-in-out;
  -moz-transition: opacity 0.4s ease-in-out;
  -o-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

#cf_learning img.top:hover {
  opacity:0;
}




/*-------------------------learning accordion--------------------*/
.accordion {
  font-family: Baskerville, "Times New Roman", "serif";	
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding-left: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
  margin-left:0px;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: 0.4s;	
  position: relative; 
}

.active, .accordion:hover {
  background-color: #ccc;
}

.accordion:after {
  content: '\002B';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.accordionSubtitle {
	display: inline-block;
	position: absolute;
	left: 200px;
	color: #999999;
}

.accordion:hover .accordionSubtitle{		/* when accordion is mouseover, accordionSustitle also change its font color to #333333*/
	color: #333333;
}

.panel {									/* panel is the area to display text and images for each learning topic of each pulldown button */	
  display:block;							/* width of it should be 760px, 95% of 801 px */
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  font-size: 19px;
}

.panelImage {								/* the image in panel, align to center*/
  display: block;
  margin: 0 auto;
  padding-top: 10px;
}

 .panelCode { 								/* a code area to display code in panel */
    display: block;
	margin-top: -2px;
	margin-left: 0px;	
	margin-bottom: -2px;
    padding: 10px 20px 10px;
    background-color: rgb(240,249,226);
    width: 690px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;         
    -webkit-overflow-scrolling: touch;
    font-family: Courier New, Times, serif;
    font-size: 16px;
    color: rgb(133,133,133);
    max-width: 100%;             /* responsive cap */
    vertical-align: top;
    white-space: pre;            /* preserve indentation; no wrapping */
    tab-size: 1;
    -moz-tab-size: 1;
  }

  .panelCodeMini {
    display: inline-block;
    margin-top:-2px;
	margin-left: 20px;
  	margin-bottom: -1px;
    padding: 10px 20px 10px;
    vertical-align: top; 
    background-color: rgb(240,249,226);
    width: 480px;
    max-height: 200px;
    overflow: scroll;
  	overflow-y: auto;
  	overflow-x: hidden;         
    -webkit-overflow-scrolling: touch;
    font-family: Courier New, Times, serif;
    font-size: 16px;
    color: rgb(123,123,123);
    max-width: 100%;
	line-height: 1.3;
    white-space: pre;           
    tab-size: 1;
    -moz-tab-size: 1;
  }

  /* Make sure code tag just inherits fonts/colors/whitespace from the panel */
  .panelCode code,
  .panelCodeMini code {
    font: inherit;
    color: inherit;
    white-space: inherit;
  }

  .panelCode code .cmt,
  .panelCodeMini code .cmt { 
	  color: rgba(0,0,0,0.23); 
	  font-style: italic; 
  }

  /* Keep your image and remark as-is, just ensure they align nicely inline */
  .panelMedia {
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;           /* matches your spacing */
  }

.highlight {
  font-weight: bold;
  color: rgb(230,109,86);
}

.typeHighlight {
  font-weight: bold;
  color: rgb(86,140,230);   /* blue for data types */
}

.panel .comment {
  color: rgb(203,203,203);	
}

.panel .tab {							   /* create a tab space for code display */
  display: inline-block;
  width: 20px;	
}

.panel .tab2 {							   /* create a tab space for code display */
  display: inline-block;
  width: 40px;	
}

.tableParameter {						   /* this is the table used in each panel to descript the inputParameter */		
    width: 90%;
	margin-left: 0px;
    border-collapse: collapse;
    border-top: 1px solid #999999;      /* top edge of the whole table */
    border-bottom: 1px solid #999999;   /* bottom edge of the whole table */
}

.tableParameter td {
    border-top: 1px solid #999999;      /* horizontal lines between rows */
    border-bottom: 1px solid #999999;
    padding-top: 3px;
	padding-left:10px;
	padding-bottom:30px;
    vertical-align: top;                /* align cell content to the top */
}

.tableParameter td:nth-child(1){
	width: 20%;
}
.tableParameter td:nth-child(2) {			/* Set explicit widths for the first two columns */
    width: 10%;
}

.subtableParameter {						/* this is the table used in each panel to descript the inputParameter */		
    width: 90%;
	margin-left: 10px;
    border-collapse: collapse;
    border: 1px solid #999999;
}

.subtableParameter td {
    border: 1px solid #999999;
    padding: 0px;
}

.subtableParameter td:nth-child(1) {
	width: 10%;
}
.subtableParameter td:nth-child(2) {		/* Set explicit widths for the first two columns */
    width: 15%;
}






/*-------------------------demonstrations--------------------*/
.demonstrations {
  width: 801px;
  margin: 0px auto 0px;
}

.demonstrationButton {
	display:inline-block;
	border: 1px solid rgb(183, 183, 183);
  	margin: 10px 80px 20px;
  	width: 500px;
  	height: 100px;
	background-color: rgb(236,222,222);
	position: relative;
	left: 50px;
	text-decoration: none;
	float: left;
	transition: 0.4s;
}

.demonstrationButton:hover {	
	background-color: rgb(199,118,118);
}

.demonstrationButton:last-child {
	margin-bottom:100px;
}

.demonstrationText {
	display:inline-block;
	width: 253px;
	height: 100px;
	float: right;
}














/*-------------------------footer-----------------------------*/
.footer {
	display: block;
	width: 100%;
	height: 200px;
	margin: 0px auto 0px;
	padding-top:10px;
	background-color: rgba(122,78,78,0.8);
}

.footerText {
  font-size: 14px;
  text-align: center;
  color: #cccccc;
  margin-bottom: 3px;
}

.footerExtended {
	display: block;
    float: left;
	width:801px;
	margin:0px auto 0px;
	background-color: rgba(122,78,78,0.01);
	height:300px;
}




/*-------------------------popup window-----------------------------*/
.popUpWindow {
  position: fixed;
		font-family: Arial, Helvetica, sans-serif;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: rgba(0,0,0,0.66);
		z-index: 99999;
		opacity:0;
		-webkit-transition: opacity 400ms ease-in;
		-moz-transition: opacity 400ms ease-in;
		transition: opacity 400ms ease-in;
		pointer-events: none;
}

.popUpWindow:target {
  opacity:1;
  pointer-events: auto;
}

.popUpWindow > div {
  width: 800px;
  height: 70%;					/* assume the screen is mobile at first, allow popUp window to be taller */
  position: relative;
  margin: 10% auto;
  padding: 10px 10px 13px 10px;
  border-radius: 10px;
  background: rgba(200,200,200,1);
  background: -moz-linear-gradient(#fff, #999);
  background: -webkit-linear-gradient(#fff, #999);
  background: -o-linear-gradient(#fff, #999);		
}

/*  this screen is most likely PC moniter, to shorten height of popUp window for PC */
@media only screen and (max-height: 1100px) {
  .popUpWindow > div {height:90%; margin: 2.5% auto;}
}

.popUpWindow #popUpContent {
	width: 800px; 
    height: 100%;
	border-width: 0px;  
}

.close {
  background: #606061;
		color: #FFFFFF;
		line-height: 48px;
		position: absolute;
		right: -12px;
		text-align: center;
		top: -10px;
		width: 48px;
		text-decoration: none;
		font-size: 24px;		
		-webkit-border-radius: 24px;
		-moz-border-radius: 24px;
		border-radius: 24px;		
		-moz-box-shadow: 3px 3px 6px #000;
		-webkit-box-shadow: 3px 3px 6px #000;
		box-shadow: 3px 3px 6px #000;
}

.close:hover { 
  background: rgb(177,79,26); 
}





