@font-face {
    font-family: 'vagrounded_btregular';
    src: url('../../fonts/vagroundedbt-webfont.eot');
    src: url('../../fonts/vagroundedbt-webfont.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/vagroundedbt-webfont.woff2') format('woff2'),
         url('../../fonts/vagroundedbt-webfont.woff') format('woff'),
         url('../../fonts/vagroundedbt-webfont.ttf') format('truetype'),
         url('../../fonts/vagroundedbt-webfont.svg#vagrounded_btregular') format('svg');
    font-weight: normal;
    font-style: normal;

}


*
{
	padding: 0 0;
	margin: 0 0;
}


/* IE10 hack */
a:link,img
{
	outline: none;
	border: none;
}

html
{
	height: 100%;
	min-width: 1024px ;
}

body
{
	height: 100%;
	background: url("../../images/background_boowakwala.jpg");
    background-attachment: fixed;
	background-repeat: no-repeat;
	background-position: center top;
	background-color: #80a8db;
	position: relative;
}


/* should fit the viewport - min-height is 643px */
div#wrapper
{
	position: relative;
	height: 100%;
	min-height: 643px;
	overflow: hidden;
}

/* make some space to the left for ads */
div.ad , div#description.ad , div.ad ~ div#selection-wrapper
{
	/*margin-left: 200px;*/
	margin-left: 165px;
}

div.big-ad , div#description.big-ad , div.big-ad ~ div#selection-wrapper
{
	margin-right: 340px;
}

/* the navigation buttons */
#home
{
	display: block;
	width: 90px;
	height: 80px;
	position: absolute;
	top: 20px;
	left: 20px;
	background: url('../../images/home.png')  no-repeat center center;
}

#back
{
	display: block;
	width: 80px;
	height: 61px;
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: url('../../images/back.png') no-repeat center center;
}

/* the page description*/
#description
{
	margin-top: 1em;
	font-family: Verdana, Arial, sans-serif;
	font-weight: bold;
	text-align: center;
	margin-bottom: 2em;
}

#wrapper.ad + #description
{
	margin-left: 200px;
}

#wrapper.big-ad + #description
{
	margin-left: 340px;
}

div#selection
{
	width: 1024px;
	margin: 0 auto;
	text-align: center;
}

/* style the game selection part */
div#selection > div.item
{
	display: inline-block;
	width: 300px;
	height: 325px;
	background: #eee;
	/* percentage-based margins and paddings ?? */
	padding: 5px 5px;
	margin: 10px 10px;
}

div#selection .game-image
{
	width: 300px;
	height: 250px;
}

div#selection span
{
	display: block;
	font-family: Arial,Verdana,"Trebuchet MS",sans-serif;
	line-height: 1em;
	font-size: 12px;
	margin-top: 10px;
	width: 100%;
	float: left;
	text-align: left;
}

div#selection span.game-title
{
	font-weight: bold;
}

.game-image img
{
	float: left;
}

div#selection a:link
{
	color: black;
	text-decoration: none;
}

div#selection a:hover,div#selection a:active,div#selection a:focus
{
	text-decoration: underline;
}

/* remove the white background for box ads */
div#selection #box-ad1
{
	background: none;
	vertical-align: top;
}

div#selection #box-ad2
{
	background: none;
	vertical-align: top;
}

/* sky ad */
#sky-ad
{
	width: 160px;
	height: 600px;
	position: absolute;
	top: 30px;
	left: 0px;

}



/* style the social icons */
div#social-icons ul
{
	list-style: none;
	text-align: right;
	margin-right: 20px;
}

div#social-icons ul li,div#social-icons ul li a
{
	display: inline-block;
	width: 40px;
	height: 40px;
}

div#social-icons ul li a.fb
{
	background: url('../../images/facebook_btn2.png') no-repeat center center;
}

div#social-icons ul li a.yt
{
	background: url('../../images/youtube_btn2.png') no-repeat center center;
}

div#social-icons ul li a.tw
{
	background: url('../../images/twitter_btn2.png') no-repeat center center;
}

/* the footer */
#footer
{
	background-color: rgb(51, 51, 102);
	text-align: center;
}

#footer #footer-menu 
{
	text-align: center;
	width: 100%;
	padding-bottom: 2em;
	background: url('../../images/separatorbottom.png') repeat-x center bottom;
}

#footer #footer-menu > div
{
	width: 240px;
	display: inline-block;
	vertical-align:top;

}


#footer > div ul li
{
	text-align: left;
	width: 170px;
	color: white;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 18px;
	margin-left: 50px;
}

#footer > div ul li a:link , #footer > div ul li a:visited
{
	text-decoration: none;
	color: white;
}

#footer > div ul li a:active,#footer > div ul li a:hover,#footer > div ul li a:focus
{
	text-decoration: underline;
}

/* add the vertical separators */
.gratuit,.premium
{
	/*background: url('separator1.png') no-repeat center right;*/
}

#terms
{
	width: 653px;
	display: inline-block;
	text-align: center;
	vertical-align: top;
}

#terms ul
{
	list-style: none;

}

#footer div#terms ul li
{
	display: inline;
	margin-left: 0;
	color: #5E5DB6;
}

#footer div#terms ul li a:link
{
	font-size: 10px;
	color: #5E5DB6;
}

#footer div#terms ul li a:hover, #footer div#terms ul li a:active, #footer div#terms ul li a:focus, #footer div#terms ul li a:visited
{
	color: black;
}

#copyright
{
	width: 331px;
	display: inline-block;
	color: #FFF;
	font-family: Arial,Helvetica,sans-serif;
	font-weight: bold;
	font-size: 10px;
	vertical-align: top;
	margin-bottom: 2em;
}

#copyright span
{
	display: block;
}

/* the submenu */
#submenu
{
	
	position: absolute;
	top: 1em;
	right: 1em;
}

#submenu ul
{
	list-style: none;
}

#submenu li
{
	display: inline-block;
}

#submenu li a
{
	text-decoration: none;
	font-family: 'vagrounded_btregular';
	color: black;
	display: block;
	height: 100%;
	width: 100%;
	padding: 0.5em 0.5em;
}




#submenu li:hover > a
{
	color: white;
}

#submenu li
{
	border-radius: 0.5em 0.5em;
}

#parents:hover
{
	background-color: #990066;
}

#members:hover
{
	background-color: #666699;
}

#premium:hover
{
	background-color: #cc0000;
}

#schools:hover
{
	background-color: #006600;
}

#flags ul
{
	text-align: right;
	padding-right: 1em;
}

/* adjusts the game display under 1200px */
@media all and (max-width: 1200px){
	div.big-ad ~ div#selection-wrapper , div.ad ~ div#selection-wrapper
	{
		margin-left: 0;
	}
}