html {
	overflow: auto;
}

body {
	height: 100%;
	margin: 0;
	padding: 0;
	background: url('../images/background.jpg');
	font-family: "Comic Sans MS", cursive, sans-serif;
}

#wrapper {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #FFF;
}

#masthead {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 10px;
}

#logo {
	width: 300px;
	background: #213521;
	color: #FFF;
	text-align: center;
	padding: 10px;
}

#navigation {
	width: 100%;
	background: url('../images/mathbg.jpg');
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
}

#navigation>a {
	height: 40px;
	width: 150px;
	margin: 10px;
	text-align: center;
	background: #FF0;
	color: #000;
	border-radius: 10px;
	text-decoration: none;
	display: block;
}

#mainbody {
	display: flex;
	flex-direction: row;
	padding: 10px;
}

#leftnav {
	display: flex;
	flex-direction: column;
	width: 250px;
}

#navbox {
	background: #00FFF0;
	border: 2px solid #000;
	margin: 0px 10px 10px 10px;
	border-radius: 10px;
}

#navhead {
	text-align: center;
	background: #000;
	color: #FFF;
}

#rightcontent {
	width: 100%;
}

#rightcontent>h1 {
	background: #FF30F0;
	width: auto;
	padding: 10px 15px 10px 15px;
	border-radius: 10px;
	margin: 0 0 10px 0;
}

#footer {
	background: #00FF00;
	padding: 10px;
	text-align: center;
}

.bevelbackground {
	display: block;
	text-shadow: 0 0 2px rgba(0,0,0,.3);
	box-shadow:
	    inset 0 0 2px 0 rgba(255,255,255,.4),
	    inset 0 0 3px 0 rgba(0,0,0,.4),
	    inset 0 0 3px 5px rgba(0,0,0,.05),
	    2px 2px 4px 0 rgba(0,0,0,.25);
	border-radius: 4px;
	position: relative;
	background: #F00 !important;
	color: #FFF;
	width: auto !important;
}

.bevelbackground:before, .bevelbackground:after {
    content: '';
    display: block;
    position: absolute;
    left: 2px;
    right: 2px;
    height: 3px;
}
.bevelbackground:before {
    top: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: rgba(255,255,255,.6);
    box-shadow: 0 1px 2px 0 rgba(255,255,255,.6);
}
.bevelbackground:after {
    bottom: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background: rgba(0,0,0,.15);
    box-shadow: 0 -1px 2px 0 rgba(0,0,0,.15);
}

.bevelbackground.red {  }

#gameThumbs {
	display: flex;
	flex-flow: row wrap;
	width: 100%;
	margin-top: 50px;
}

#gameBox {
	display: flex;
	flex-direction: column;
	width: 235px;
	margin: 10px 10px;
}

.gameImage {
	width: 235px;
	height: 150px;
}

iframe {
    width: 100%;
    height: 500px;
}

iframe.fullScreen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
