#@import url(http://fonts.googleapis.com/earlyaccess/droidarabickufi.css);

@font-face {
  font-family: 'Droid Arabic Kufi';
  font-style: normal;
  font-weight: 400;
  src: url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.eot);
  src: url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.eot?#iefix) format('embedded-opentype'),
       url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.woff2) format('woff2'),
       url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.woff) format('woff'),
       url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'Droid Arabic Kufi';
  font-style: normal;
  font-weight: 700;
  src: url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.eot);
  src: url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.eot?#iefix) format('embedded-opentype'),
       url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.woff2) format('woff2'),
       url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.woff) format('woff'),
       url(//fonts.gstatic.com/ea/droidarabickufi/v6/DroidKufi-Bold.ttf) format('truetype');
}

/* ========================================== MAIN =========================================== */

body {
	background-size: 100% 100%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	margin: 0;
	background-color: #F0F0F0;
    font-family: 'Droid Arabic Kufi', serif;
}
ul{
	padding: 0;
    margin: 0;
}
.bgCover { 
	background:#000; 
	position:fixed; 
	z-index: 2;
	left:0; top:0; 
	display:none; 
	overflow:hidden 
	}

.overlayBox {
    position: fixed;
    z-index: 2;
    display: block;
    width: 500px;
    background: #fff;
    top: -1000px;
    text-align: center;
    padding-bottom: 5px;
    font-family: 'Droid Arabic Kufi', serif;
    
}
.topclor {
     border-top: solid 5px #2FA8C0;
     float: left;
     width: 33.33%;
}
.topclor_two {
     border-top: solid 5px #D84533;
     float: left;
     width: 33.33%;
}
.topclor_three {
     border-top: solid 5px #EAA91B;
     float: left;
     width: 33.33%;
}
.closeLink{
	color: #40494F;
  	border: 1px solid #AEAEAE;
  	background: #CDCDCE;
  	font-size: 31px;
  	font-weight: bold;
  	display: block;
  	line-height: 0px;
  	padding: 11px 3px;
  	position: absolute;
  	z-index: 1;
    text-decoration: none;
  	margin-left: 460px;
  	margin-top: 15px;
}

.closeLink:before {
    content: "×";
}
#joooha-banner{
	clear: both;
  	margin: 10px 5px;
  	text-align: center;
}
/* ========================================== HEADER =========================================== */
header{
	display: block;
	position: relative;
	clear: both;
	width: 100%;	
    margin-bottom: 10px;
}
#middleheader {
    height: 154px;
    width: 100%;
    margin: 0;
    text-align: center;
/*     background-color: #1FB1F3; */
/*     background-image: url("http://i.stack.imgur.com/z3tWq.png"); */
/*     background-repeat: repeat-x; */
    background: #1FB1F3 url('/assets/img/patterns-01.png') repeat-x right top;
    
}
#jouhalogo {
	float: right;
	height: 100%;
	margin: 0.5% 1% 0 0;
}
#logo3 {
    height: 120px;
    transition: all .5s ease;
    margin-top: 10px;
}
#logo3:hover{
	transform: scale(1.1);
}
#slogan{
    display: block;
    text-align: center;
    margin: -14px 17px 0px 0px;
    color: white;
    font-size: 16px;
    font-family: 'Droid Arabic Kufi', serif;
}
#navMenu {
	width: 100%;
	height: 50px;
	text-align: center;
	margin: auto;
	left: 0;
	right: 0;
	background-color: #0288d1;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
#navMenu > ul {
    display: inline-block;
	margin: 0;
	padding: 0;
}
.fixedNavMenu {
  position: fixed !important;
  top: 0 !important;
  opacity: .95;
  z-index: 4;
}
.menu-button {
	float: left;
	width: 100px;
	height: 50px;
	text-align: center;
	overflow: hidden;
	position: relative;
	z-index: 1;
	line-height: 26px;	
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#navMenu ul li a {
	text-decoration: none;
	color: white;
	font-family: 'Droid Arabic Kufi', serif;
	font-size: 14px;
	line-height: 50px;
	text-shadow: 1px 1px 9px rgb(181, 170, 170), 1px -1px 5px rgb(114, 111, 111);
	display: block;
	height: 50px;
}

.green {
	background: #6AA63B;
}

.purple {
	background: #936BE6;
}

.blue {
	background: #0292C0;
}

.yellow {
	background: #FBC700;
}

.red {
	background: #D52100;
}

.concrete {
	background: #95a5a6;
}

.submenu {
	margin-top: -23px;
}
.contact{
	float: left;
}
.letter > img{	
    margin: 10px 7px;
}
.fb > img{	
    margin: 13px 3px;
}
.contact > img{	
    max-height: 30px;
}	
.contact > a:hover{
	background-color: #1FB1F3;
}
#my_popup{
	background-color: white;
  	width: 410px;
  	height: 500px;
  	display: none;
  	border-radius: 3px;
}
iframe { 
	width:100%;
	height:100%;
	padding:0; 
	border:0; 
}
.oasis_icon{
	padding: 0px 10px 0px 10px;
}
.oasis_icon > img{
	max-height: none; 
	margin: 2px; 
	height: 45px;
}
.oasis_icon > span {
	display: block;
    float: left;	
}
/* ========================================== BODY =========================================== */
#body {
	overflow: auto;
	background: rgb(251, 245, 245);
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
	width: 987px;
	box-shadow: 5px 5px 19px gray, -5px 5px 19px gray;
	margin: auto;
	margin-top: 25px;
	opacity: 0.96;
	font-family: 'Droid Arabic Kufi', serif;
	padding-top: 25px;
}

#hierarchy{
	display: block;
	width: 94%;
  	border: 1px solid silver;
  	box-shadow: 1px 1px 10px silver;
  	background: #1FB1F3;
  	margin: auto;
	font-size: 14px;
  	text-align: right;
  	padding-right: 15px;
  	color: white;
    line-height: 34px;
}

#hierarchy a{
  	text-decoration: none;
  	color: #3E05B5;
  	overflow: hidden;
}

#hierarchy img{
	float: left;
    margin: 5px;
}
.thumbnail-frame {
	float: right;
  	height: 130px;
  	width: 145px;
	border-radius: 5px;
	border: 1px solid grey;
	text-align: center;
	margin: 7px 8px;
	box-shadow: 0 0 5px grey;
	background-color: white;
	transition: all .45s ease;
}
.thumbnail-frame:hover {
	transform: scale(1.1);
	overflow: visible;
	box-shadow: 4px 4px 20px gray;	
	z-index: 6;
}
.thumbnail {
	width: 100%;
	padding: 0;
	height: 87%;
	display: block;
}
.thumbnailimage {
	width: 100%;
	height: 100%;
	border-top-left-radius: 6px;
  	border-top-right-radius: 6px;#
  	-webkit-backface-visibility: hidden;
  	backface-visibility: hidden;
}

.thumbnail-frame a{
  text-decoration: none;
  color: black;
  display: block;
  font-size: 70%;
  line-height: 190%;
  white-space: nowrap;
  overflow: hidden;
  line-height: 16px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* ========================================== FOOTER =========================================== */

footer {
  margin: 10px auto 0 auto;
  color: white;
  background-color: rgb(31, 177, 243);
  opacity: .9;
  width: 100%;
  font-size: .8em;
  text-align: center;
  overflow: auto;
}
footer > h1{
	text-align: right;
  	font-size: 14px;
  	margin: 15px;
}
footer > h2{
	text-align: right;
  	font-size: 12px;
  	margin: 5px 15px;
}
footer > p {
	text-align: justify;
  	font-size: .88em;
  	direction: rtl;
  	margin: 5px 15px;
}
footer .game{
	color: white;
}	
footer a{
	text-decoration: none;
	color: black;
	margin: 25px;
}

/* ========================================== RESPONSIVENESS =========================================== */
@media (max-width: 500px) {
	header{
		margin-bottom: 50px;
	}
	.menu-button {
    	float: none;
    	width: 100% !important;
    	height: 30px;
	}
	#navMenu {
    	height: 270px;
	}
	#navMenu ul li a {
    	line-height: 30px;
    	height: 30px; 
	}
	.submenu > img{
		margin-top: 0px;
    	width: 22px;
	}
	.contact {
    	height: 30px;
    	float: none;
    	width: 100%;
    	
	}
	.contact > img {
    	height: 25px;
    	margin: 3px;
	}
	.oasis_icon > img{
		height: 26px;
	}
	#suggested-games {
		float: none !important;
	}
	#suggestionslist .thumbnail-frame {
		display: inline-block;
	}
	.gameslist .games{
		text-align: center;	
	}
	.games {
    	text-align: center;
	}
	.thumbnail-frame {
    	float: none;
    	display: inline-block;
	}
	.comments, #description{
		width: 90% !important;
	}	
	.oasis_icon{
		background-color: #2d524d;
	}
	.oasis_icon > span {
		display: inline-block;
		vertical-align: top;
		float: none;
	}
	
}

@media (max-width: 900px) {
	#hierarchy > img{
		display: none;
	}
	#navMenu > ul {
    	width: 100%;
	}
	.menu-button {
		width: 10%;
	}
	#navMenu ul li a {
    	font-size: 10px;
	}
}
