/* HTML properties */
html {
	height: 100%;
}

body {
	font-family: 'Palanquin';
	background-color: #ffffff;
	margin: 0px;
	height: 100%;
	color: #555;
	overflow: hidden;
}

h1 {
	margin-top: 30px;
	margin-bottom: 40px;
	margin-left: 20px;
	font-size: 25px;
	font-weight: normal;
}

h2 {
	font-size: 20px;
	font-weight: normal;
}

a {
	color: #2194CE;
	text-decoration: none;
}

td {
    padding: 0px 50px 0px 0px;
}

ul {
	list-style: none;
}




/* Website divisions */
/* Index divisions */
#panel {
	position: fixed;
	left: 0px;
	width: 15vw;
	height: 100%;
	overflow: hidden;
	background: #f2f3f4;
}

#panel #footer {
	position: absolute;
	width: 15vw;
	bottom: 58px;
	font-size: 0.64vw;
}

#panel #content {
	position: absolute;
	top: 80px;
	height: 90%;
	width: 100%;
	overflow: hidden;
	padding: 0px 20px 20px 20px;
	font-size: 0.85vw;
	line-height: calc(0.85vw + 3px);
}

#panel #content .selected {
	color: #ff0000;
}

#panel #content .linky:hover {
	text-decoration: underline;
}

#renderframe {
	position: absolute;
	border: 0px;
	right: 0px;
	width: 85vw;
	height: 100%;
	overflow: auto;
}

#docs {
	position: absolute;
	left: 0;
	padding: 20px 20px 20px 20px;
}

#abot {
	position: absolute;
	right: 0;
	padding: 20px 20px 20px 20px;
}

#expandButton {
	display: none;
	position: absolute;
	right: 20px;
	top: 12px;
	width: 32px;
	height: 32px;
}

#expandButton span {
	height: 2px;
	background-color: #555;
	width: 16px;
	position: absolute;
	left: 8px;
	top: 10px;
}

#expandButton span:nth-child(1) {
	top: 16px;
}

#expandButton span:nth-child(2) {
	top: 22px;
}


#about {
	display: none;
	position: fixed;
	z-index: 100;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
}

#about-content {
	background-color: #fefefe;
    margin-left: 25%;
    margin-right: 25%;
	margin-top: 10%;
    padding: 20px;
    width: 50%;
	height: 50%;
	animation-name: animatetop;
    animation-duration: 0.4s
}

#closeBtn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#closeBtn:hover,
#closeBtn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}




/* Mobile version */
@media all and ( orientation: portrait ) {
	/* HTML properties */
	h1{
		margin-top: 20px;
		margin-bottom: 20px;
	}
	
	ul {
		padding-left: 0;
	}

	
	/* Index divisions */
	#panel{
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		width: 100%;
		right: 0;
		z-index: 100;
		overflow: auto;
		border-right: 0px;
	}
	
	#panel #footer {
		width: 40%;
		left: 0;
		right: 0;
		margin: auto;
		font-size: 1.5vw;
	}
	
	#panel #content{
		left: 0;
		right: 0;
		margin: auto;
		text-align: center;
		font-size: 2vw;
		line-height: calc(2vw + 3px);
		overflow: hidden;
	}
	
	#panel.collapsed {
		height: 58px;
		border-right: 0px;
	}
	
	#panel #footer.collapsed {
		display: none;
	}
	
	#expandButton{
		display: block;
	}
	
	#horfill {
		width: 20%;
	}
	
	#about-content {
		margin-left: 10%;
		margin-right: 10%;
		margin-top: calc(56px + 20%);
		width: 80%;
		height: calc(50%-56px);
	}

	#renderframe {
		position: absolute;
		left: 0;
		top: 56px;
		width: 100%;
		height: calc(100% - 58px);
	}
}