#nav {

  width: 952px;

  float: left;

  margin: 13px 0 16px 0;

  padding: 0;

  list-style: none;

  background-color: #666666;

  border-bottom: 1px solid #666666;

  border-top: 1px solid #666666;
  
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);
  max-width: 100%;
    
}

#nav li {

  float: left; }

#nav li a {

  display: block;

  padding: 8px 19px;

  text-decoration: none;

  font-weight: bold;

  font-size:12px;

  color: #ffffff;

  border-right: 1px solid #666666; }

#nav li a:hover {

  color: #ffffff;

  background-color: #333333; }

/* End primary navigation bar styling. */



  #nav1 {

  width: 952px;

  float: left;

  margin: 0 0 3em 0;

  padding: 0;

  list-style: none;

  background-color: #f2f2f2;

  border-bottom: 1px solid #ffffff;

  border-top: 1px solid #ffffff; margin-bottom: 0 !important;
      max-width: 100%;
  }

#nav1 li {

  float: left; }

#nav1 li a {

  display: block;

  padding: 8px 15px;

  text-decoration: none;

  font-weight: bold;

  font-size:11.2px;

  color: #000000;

  border-right: 1px solid #ffffff; }

#nav1 li a:hover {

  color: #c00;

  background-color: #ffffff; }

h2, h3 {
	color: red;
}
a:link {
	color: blue;
}
/* unvisited link */
a:visited {
	color: blue;
}
/* visited link */
a:hover {
	color: red;
}
/* mouse over link */
a:active {
	color: red;
}
/* selected link */
.myBoxesGrayBackground {
	width: 952px;
	height: auto;
	margin-top: 50px;
	padding: 20px 60px 20px 60px;
	background: #f8f8f8;
	-webkit-box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	-moz-box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	border: 1px #CDCDCD solid;
	border-radius: 10px;
	max-width: 100%;
}
.contents #top-of-page  img{
    height: auto;
    display: block;
}
.contents #top-of-page .logodiv{
    height: auto !important;
}
.myBoxesWhiteBackground {
	width: 952px;
	height: auto;
	margin-top: 50px;
	padding: 20px 60px 20px 60px;
	background: rgb(255, 255, 255);
	-webkit-box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	-moz-box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	border: 1px #CDCDCD solid;
	border-radius: 10px;
	max-width: 100%;
}
.myBoxesVideoBackground {
	width: 952px;
	height: auto;
	margin-top: 30px;
	padding: 20px 20px 20px 20px;
	background: #d3d3d3;
	-webkit-box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	-moz-box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	box-shadow: 0px 1px 0px rgba(50, 50, 50, 0.5);
	border: 1px #CDCDCD solid;
	border-radius: 10px;
	max-width: 100%;
}
a.button3 {
	display: inline-block;
	padding: 0.1em 1.2em;
	margin: 0 0.3em 0.3em 0;
	border-radius: 2em;
	box-sizing: border-box;
	text-decoration: none;
	font-weight: 300;
	color: #FFFFFF;
	background-color: #ff0000;
	text-align: center;
	transition: all 0.2s;
}
@media all and (max-width:30em) {
	a.button3 {
		display: block;
		margin: 0.2em auto;
	}
}
a.button3 {
	background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
	background-size: 500% 500%;
	animation: gradient 4s ease infinite;
	height: 4vh;
}
@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
* {
	box-sizing: border-box;
}
body {
	/*width: 100vw;*/
	/*height: 100vh;*/
	overflow: auto;
	background-color: #f2f2f2;
}

body {
	padding: 2em 2em 2em 17em;
	font-size: 16px;
	line-height: 1.6;
	font-family: 'Arial';
}

.toc {
	position: fixed;
	left: 3em;
	top: 0em;
	padding: 1em;
	width: 30em;
	background: #555555;
	line-height: 2;
}

.toc ul {
	list-style: none;
	margin: 0;
}

.toc ul ul {
	padding-left: 2em;
}

.toc li a {
	display: inline-block;
	color: white;
	text-decoration: none;
	-webkit-transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.toc li.tan a {
	display: inline-block;
	color: tan;
	text-decoration: none;
	-webkit-transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.toc li.visible>a {
	color: red;
	-webkit-transform: translate(5px);
	-ms-transform: translate(5px);
	transform: translate(5px);
}

.toc-marker {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.toc-marker path {
	-webkit-transition: all 0.3s ease;
	transition: all 0.3s ease;
}



.contents {
	padding: 1em 0;
	margin-left: 250px;
	max-width: 952px;
	font-size: 1.2em;
}
@media screen and (min-width: 1201px){
    .contents{
        margin-left: 350px;
    }
}
	.contents img {
		max-width: 100%;
		height: auto !important;
	}
	.contents .code-block {
		white-space: pre;
		overflow: auto;
		max-width: 100%;
	}
	.contents .code-block code {
		display: block;
		background-color: #f9f9f9;
		padding: 10px;
	}
	.contents .code-inline {
		background-color: #f9f9f9;
		padding: 4px;
	}
	.contents h2 h3 {
		padding-top: 1em;
	}
	.contents h2 {
		margin-top: 1.2em;
	}
	@media screen and (max-width: 1200px) {
		body {
			font-size: 14px;
		}
	}
	#nav1 {
    border-bottom: 1px solid #f2f2f2;
    border-top: 1px solid #f2f2f2;

}
	#nav1 li a {
    border-right: 1px solid #f2f2f2;
}


@media screen and (max-width: 1024px){
    body{
        padding-top: 0;
        margin-top: 0;
        padding: 0;
        margin: 0;
    }
    .toc{
        width: 40vw;
        left: 0;
        top: 0;
        height: 100vh;
        overflow: auto;
    }
    .contents{
        padding-top: 0 !important;
        margin-left: 0vw;
        padding-left: 0;
        width: 60vw;
        margin-left: 40vw;
    }
    .contents .myBoxesWhiteBackground, .contents #nav, .contents #nav1, .contents .myBoxesVideoBackground, .contents .myBoxesGrayBackground{
        width: 100%;
    }
    .contents img {
        max-width: 100%;
        height: auto !important;
    }
    .logodiv{
        height: auto !important;
    }
    .logodiv img{
        display: block;
    }
}
@media screen and (max-width: 539px){
    body{
        padding-top: 0;
        margin-top: 0;
        padding: 0 4vw;
        margin: 0;
    }
    .toc{
        display: none;
    }
    .contents{
        padding-top: 0 !important;
        margin-left: 0vw;
        padding-left: 0;
        width: 92vw;
        margin-left: 0vw;
    }
    .contents .myBoxesWhiteBackground, .contents #nav, .contents #nav1, .contents .myBoxesVideoBackground, .contents .myBoxesGrayBackground{
        width: 100%;
    }
    .contents .myBoxesWhiteBackground, .contents .myBoxesVideoBackground, .contents .myBoxesGrayBackground{
        padding: 10px 15px 15px;
    }
    .contents img {
        max-width: 100%;
        height: auto !important;
    }
    .logodiv{
        height: auto !important;
    }
    .logodiv img{
        display: block;
    }
    #nav li, #nav1 li{
        width: 100%;
        display: block;
        text-align: center;
        font-size: 14px;
        margin-bottom: 5px;
    }
    #nav li a, #nav1 li a{
        font-size: 14px !important;
    }
    #nav1{
        margin-left: 0;
    }
}
