@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  src: url(/junior-science/boilerplate/opensans400.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  src: url(/junior-science/boilerplate/opensans600.woff2) format('woff2');
}

body {
	margin:0;
	
	background-color:#fff;
	background-image:url("images/bg.png");
	background-repeat:repeat-x;

	font-family: 'Open Sans', Verdana, sans-serif;
	font-style: normal;
	font-weight: 400;
}

body:before {
	/* shadow at top browser window*/
	content: "";
	position: fixed;
	top: -3px;
	left: 0;
	width: 100%;
	height: 3px;

	box-shadow: 0px 0px 3px rgba(0,0,0,.8);

	z-index: 1000;
}

#wrap {
	position:relative;
	margin:50px auto 0;

	padding-top:10px;

	min-width:320px;
	max-width:1440px; /* must have a max */

	font-size:.9em;
	line-height:1.4em;
}

#wrap a { color:#ff0; text-decoration:underline; }
#wrap a:hover { color:#fff; text-decoration:none;}

#menu {
	position:absolute;
	top:250px;
	left:50px;
	font-size:larger;
}
#menu ul li {margin:0.333em 0;}

#badge {
	position:absolute;
	top:250px;
	right:50px;
}

#top-row {text-align:center; margin-top:5px;}
#bottom-row {text-align:center; }

.holder {display:inline-block;}

.astronomy { margin-right:50px;}
#astronomy:hover { z-index:2;
	-ms-transform: rotate(25deg) scale(1.5);
	-webkit-transform: rotate(25deg) scale (1.5);
	-o-transform: rotate(25deg) scale (1.5);
	-moz-transform: rotate(25deg) scale(1.5);
	transform: rotate(25deg) scale(1.5);
}

#biology:hover { z-index:2;
	-ms-transform: rotate(-10deg) scale(1.5);
	-webkit-transform: rotate(-10deg) scale (1.5);
	-o-transform: rotate(-10deg) scale (1.5);
	-moz-transform: rotate(-10deg) scale(1.5);
	transform: rotate(-10deg) scale(1.5);
}

.chemistry {margin-left:50px;}
#chemistry:hover { z-index:2;

	-ms-transform: rotate(10deg) scale(1.5);
	-webkit-transform: rotate(10deg) scale (1.5);
	-o-transform: rotate(10deg) scale (1.5);
	-moz-transform: rotate(10deg) scale(1.5);
	transform: rotate(10deg) scale(1.5);
}

.geology {margin-right:25px;}
#geology:hover { z-index:2;
	-ms-transform: rotate(-30deg) scale(1.5);
	-webkit-transform: rotate(-30deg) scale (1.5);
	-o-transform: rotate(-30deg) scale (1.5);
	-moz-transform: rotate(-30deg) scale(1.5);
	transform: rotate(-30deg) scale(1.5);
}

.physics {margin-left:25px;}
#physics:hover { z-index:2;
	-ms-transform: rotate(10deg) scale(1.5);
	-webkit-transform: rotate(10deg) scale (1.5);
	-o-transform: rotate(10deg) scale (1.5);
	-moz-transform: rotate(10deg) scale(1.5);
	transform: rotate(10deg) scale(1.5);
}

#quote {margin:1em 1.5em 2em; color:#222;}


#topmenu-outer {position:fixed; top:0;left:0; background-color:#fff; width:100%; z-index: 100;
	box-sizing: border-box;
	border-bottom:1px solid #ddd;
}

#topmenu { max-width:960px; min-width:320px;

	margin:0 auto; /*center*/
	height:50px;

	background-color:#fff;

	text-align:center;
}

.button {display:inline-block;

	text-align:center;

	color:#222;

	background-color:#eee;

	height:40px;

	width:155px;

	margin:5px 2.5px;

	padding:9px 0 0;

	text-decoration:none;

	box-sizing: border-box;
	border-radius:5px;

	border:1px dashed #ddd;

	font-size: .9em;
	font-family: 'Open Sans', Verdana, sans-serif;
	font-style: normal;
	font-weight: 600;
}


.button:hover {color:#fff;

	background-color:#0e0;

	-webkit-transition: background-color .15s linear 0s;

	transition: background-color .15s linear 0s;

}

.selected {color:#fff;background-color:#f00;}


@media (max-width:1200px) { 
	#menu, #badge {position:static;}

	#badge img {background:#e6e6e6; /*light grey*/}

	#wrap a, #wrap a:hover { color:#222; }
}

/* max-width:960px+40px error */
@media (max-width:1000px) { 

	#topmenu-outer {position:absolute;}
	#topmenu {height:100px; width:480px;}
	#wrap {margin-top:100px;}

}

/* max-width:480px+20px error */
@media (max-width:500px) { 

	#topmenu {height:150px; width:320px;}
	#wrap {margin-top:150px; }

	.astronomy, .chemistry, .geology, .physics {margin:0;}
}

.imgscale-borderless {margin:auto; padding:0 5px;}
.imgscale-borderless img { width:100%; height:auto; }

