@charset "utf-8";
/* CSS Document */

body {
    margin: 0;
	background-attachment: fixed;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: rgb(10,10,10);
	font-family: Tahoma, Geneva, sans-serif;
}

.webpage {
	position: absolute;
	background-color: white;
	top: 0;
	left: 0;
	right: 0;
}

.nav {
    width: 100%;
	display: inline-block;
    margin: 0;
	position: fixed;
	z-index: 1;
}
.nav a {
	text-decoration: none;
	color: rgba(200,200,200,0.8);
	transition: 0.3s;
}
.nav a:hover, .nav a:active {
	color: rgba(250,100,250,1);
}
.nav table {
	width: 100%;
	height: 70px;
}
.nav td {
	text-align: center;
	background-color: black;
	width: 16%;
	border-left: 1px solid rgba(255,255,255,0.2);
	border-right: 1px solid rgba(255,255,255,0.2);
	box-shadow: 0px 3px 3px black;
	letter-spacing: 2px;
	transition: 0.3s;
	padding: 0 10px;
	cursor: pointer;
}
.nav td:hover, .nav td:active {
	transform: scale(1.1, 1.1);
	background-color: rgb(100,100,80);
}
.nav td:hover a {
	color: rgba(250,250,250,1);
}

.content {
	width: 100%;
	margin-top:75px;
	margin-bottom: 50px;
	display: inline-block;
}
.content td, .content th {
	border: 1px solid silver;
}

#title {
	font-family: arial;
	margin: 30px 0 20px 3%;
}
#github_link {
	margin-left: 3%;
	background-color: rgb(100,100,100);
	color: rgb(100,250,100);
	padding: 8px;
	border-radius: 5px;
}

.codetitle {
	font-weight: bold;
	line-height: 200%;
}

#codetable {
	width: 94%;
	margin: 30px 3%;
	border: 1px solid silver;
	border-collapse: collapse;
}

a.link {
    position: relative;
	top: -90px;
    visibility: hidden;
}

.codeheader {
	line-height: 150%;
	font-family: arial;
	background-color: gray;
	color: white;
}

td.codeexercise {
	vertical-align: top;
}
.codeexercise {
	margin-top: 10px;
	padding: 10px;
	width: 30%;
	font-family: arial;
	line-height: 120%;
}
.codeexercise:hover {
	background-color: azure;
}

.codesoln {
	padding: 10px;
	width: 70%;
	font-family: monospace; 
	font-size: 1.1em;
	background-color: dimgray;
	color: white;
}

.solnimg {
	text-decoration: underline;
	color: green;
}

.sidebar {
	display: inline-block;
	position: fixed;
	width: 20%;
	border-right: 1px solid silver;
	margin-right: 10px;
	height: calc(100% - 75px);
	overflow-y: scroll;
	background-color: rgb(240,240,240);
}

.sidebar li {
	list-style-type: none;
	margin-top: 15px;
}

.sidebar p {
    text-decoration: none;
    color: black;
	padding: 5px;
	border-radius: 4px;
	margin-top: 20px;
	margin-right: 10px;
	font-weight: bold;
	background-color: rgb(210,210,210);
}

.sidebar a {
    text-decoration: none;
    color: black;
	padding: 3px;
	border-radius: 4px;
    transition: 0.3s;
	margin-right: 10px;
}

.sidebar .inactive {
	color: silver;
	cursor: not-allowed;
}

.sidebar a:hover {
    background-color: slategray;
	color: white;
}

.code_content {
	display: inline-block;
	width: 80%;
	margin-left: 20%;
}

.soln {
	padding: 5px 5px;
	background-color: rgb(100,100,100);
	color: white;
	border-radius: 5px;
	text-decoration: none;
	transition: 0.3s;
}

.soln:hover {
	text-decoration: underline;
	color: yellow;
}