@font-face{
  font-family: aaargh;
  src: url('/retrojunkies/welsh/fonts/Aaargh-webfont.woff');
}

/* All elements should include padding in their width */
*{
	box-sizing: border-box;
}

body{
	font-family: sans-serif;
	color: #ffffff;
	background-color: #a8e2e3;
	padding: 0;
}

a{
	text-decoration: none;
	color: white;
}

#body{
	font-family: aaargh;
	color: #ffffff;
	background-color: #afc5d3;
	padding: 0;
}

.title{
	background-repeat: no-repeat;
	background-position-x: center;
	background-size: contain;
	height: 139px;
	margin-left: auto;
	margin-right: auto;
	clear: both;
}

.title.hannah{
	background-image: url("Resources/hannah_banner.png");
}

.title.barkout{
	background-image: url("Resources/barkout_header.png");
}

.title p {
	padding-left: 10px;
	color: pink;
}

.imagecontainer {
	position: relative;
	width: 100%;
}

.imagewindow {
	width: max-content;
	height: 100%;
}

.images {
	width: 100%;
	border-width: 1px;
	border-style: solid;
	box-shadow: 0 0 2px gray;
	height: 200px;
	padding-top: 10px;
	padding-left: 10px;
	overflow-x: hidden;
	overflow-y: hidden;
}

.images.hannah{
	background-color: #964d24;
	border-color: black;
}

.images.barkout{
	background-color: #303030;
	border-color: white;
}

.images img {
	float: left;
	box-shadow: 0 0 2px black;
	height: 90%;
	margin-right: 1em;
	cursor: pointer;
}

.imagepopup {
	position: fixed;
	top: 5%;
	margin-left: auto;
	width: 80%;
	max-width: 800px;
	background-color: white;
	border-width: 1px;
	border-color: black;
	border-style: solid;
	border-radius: 6px;
	visibility: hidden;
	z-index: 3;
	box-shadow: 0 0 10px 2px black;
}

.popupimg:before {
	color: black;
	content: "\274C";
	position: absolute;
	top: 10px;
	left: 5px;
}

.popupimg {
	margin-left: auto;
	margin-right: auto;
	color: black;
}

.popupimg p {
	margin-left: 5%;
}

.popupimg img {
	width: 90%;
	margin-left: 5%;
	margin-right: auto;
	margin-top: 5%;
}

.scroll {
    background-color: white;
    background-color: rgba(255, 255, 255, 0.3);
    height: 5em;
    width: 5%;
    position: absolute;
    border-radius: 6px;
    font-size: 2em;
    line-height: 5em !important;
    top: 10%;
    padding-left: 0.2em;
}

.scroll:hover {
	background-color: rgba(255,255,255,0.6);
}

.leftscroll {
	left: 1%;
}

.rightscroll {
	left: 94%;
	padding-left: 1%;
}

.middle{
	width: 90%;
	max-width: 1024px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 50px;
}

header {
    font-family: sans-serif;
    font-family: "Amatic SC", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 1px 1px 2px black;
    text-decoration: none;
    font-size: 40pt;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.3em;
    margin-left: auto;
    margin-right: auto;
    border-style: solid;
    border-color: black;
    border-radius: 10px;
    border-width: thin;
    width: 95%;
    box-shadow: 0 0 0px 4px white, 3px 3px 5px 5px black;
    background-color: darkgrey;
    padding-bottom: 0.2em;
}

header h1, h5{
	margin-top: 0.1em;
	margin-bottom: 0.2em;
}

.middle .footer {
	font-family: sans-serif;
    font-family: "Amatic SC", sans-serif;
    font-weight: 800;
    font-style: normal;
    text-shadow: 1px 1px 2px black;
    text-decoration: none;
    font-size: 20pt;
    margin-top: 0;
    margin-bottom: 0.2em;
    margin-left: auto;
    margin-right: auto;
    border-style: solid;
    border-color: black;
    border-radius: 10px;
    border-width: thin;
    width: 95%;
    box-shadow: 0 0 0px 4px white, 3px 3px 5px 5px black;
    background-color: darkgrey;
    overflow: hidden; /* Makes parent element not ignore floated child elements when calculating height */
}

.footer p {
	margin-left: 2%;
	margin-right: 2%;
}

.pullleft {
	float: left;
}

.pushright {
	float: right;
}

.game{
	position: relative;
	width:95%;
	padding-top: 15px;
	padding-bottom: 20px;
	padding-left: 10px;
	padding-right: 10px;
	box-shadow: 0 0 1px 4px white, 6px 6px 3px 3px black;
	border-radius: 5px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
	float: none;
	z-index: 1;
}

/*#hannahgame {
	display: none;
}

#barkoutgame {
	display: block;
}*/

nav {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2px;
    height: 50px;
    padding-left: 20px;
}

/* Make the Hannah tab sit under the Barkout tab */
.tab:nth-child(2) {
	margin-left: -5px;
}

.tab {
    float: left;
    width: 40%;
    max-width: 200px;
    height: 100%;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-color: black;
    border-width: 1px;
    border-style: solid;
    border-bottom-style: hidden;
    padding-left: 15px;
    padding-top: 10px;
    margin-bottom: -10px;
    /* Use shadow offset to avoid painting shadow over the top of the main game section */
    margin-left: 4px;
    cursor: pointer;
}

.tab p {
	margin: 0;
}

.tabtop {
	z-index: 2;
}

.tabbottom {
	z-index: 0;
}

#hannahtab {
	/* Position relative required for z-index to have effect */
	position: relative;
	/* Add a shadow the same colour as the tab to cover over the white and black shadows at the bottom so it's seamless to the main content */
	box-shadow: 0 10px 0px 0px #AE6239, 0 -1px 0px 2px white, 1px 1px 2px 3px black
}

#barkouttab {
	position: relative;
	box-shadow: 0 10px 0px 0px black, 0 -1px 0px 2px white, 1px 1px 2px 3px black
}

.qanda {
	padding-left: 10px;
	padding-right: 10px;
}

.files a {
	display: inline;
    margin-left: 10px;
    color: moccasin;
}

.files ul {
	padding-left: 10px;
}

.files li {
	list-style-type: none;
    margin-bottom: 11px;
    border: 1px black solid;
    border-radius: 4px;
    padding: 7px;
    width: 70%;
    box-shadow: 0 0 4px 0px navajowhite;
}

.files li:hover {
    box-shadow: 0 0 8px 0px navajowhite;
}

.countbutton {
	background-image: linear-gradient(#4971bf, #2e58a9);
	font-size: smaller;
	padding: 4px;
	width: 110px;
	border-style: solid;
	border-color: lightgray;
	border-width: 1px;
}

.main{
	width: 90%;
	margin-left: 5%;
	margin-right: auto;
	background-color: #539c9d;
	padding-top: 10px;
	padding-bottom: 10px;
	box-shadow: 5px 10px #444444;
	border-radius: 5px;
	color: #ffffff;
}

.main .footer{
	font-size: smaller;
	padding-left: 20px;
}

.content{
	background-color: #9fcfd0;
	margin: 10px;
	padding: 5px;
	border-radius: 5px;	
	color: #000;
}

.content p{
	padding-left: 5px;
}

.content img{
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.bgdark{
	background-color: black;
}

.bglight{
	background-color: #ae6239;
}

.musictitle {
	margin-left: 10px;
	color: moccasin;
}

audio::-webkit-media-controls-enclosure,
audio::-webkit-media-controls-panel {
     height: 18px;
     background-color: #4971bf;
}

audio::-webkit-media-controls-volume-slider, 
audio::-webkit-media-controls-volume-slider-container, 
audio::-webkit-media-controls-play-button, 
audio::-webkit-media-controls-timeline {
	background-color: #4971bf;
	color: white;
}

audio::-webkit-media-controls-current-time-display, 
audio::-webkit-media-controls-time-remaining-display {
	display: none;
}

audio {
     background-color: #4971bf;
     height: 18px;
     margin-left: 10px;
     border-color: white;
     border-width: 1px;
     border-style: solid;
}

@media only screen and (min-width: 768px) {
	.main { width: 60%; margin-left: 20%;}
}