/*
Theme Name: OCME Game Grid (new)
Theme URI: 
Author: OCME c/o Ali
Author URI: 
Description: Lightweight WordPress Theme for tiled game sites, compatible with MyArcade Plugin
Version: 1.1
Text Domain: ocmegridtheme1
*****************************
/**
* #.# RESET
*
* !!--Do not edit--!!
*/
*,*:before,*:after
{
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	margin:0; padding:0;
}

html, body
{ height: 100%; width: 100%; }

/**
* #.# GENERAL BODY STYLES
*
* Default body styles (typography, etc.)
*/

body {
  overflow-x: hidden;
  font-family: Open Sans, Arial, Helvetica, sans-serif !important;
		background: #eeeeee;
}


/**
* #.# TYPOGRAPHY
*
* Typography settings
*/

h1, h2, h3, h4, h5, h6, h7 {
	font-family: 'Oswald', Impact, Arial, Helvetica, sans-serif !important;
		font-size: 18pt;
	text-align: center;
}

a
{
  text-decoration: none;
}

article p {
	font-size: 10pt;
	text-align: justify;
}

iframe {
    overflow:hidden;
}

/**
* #.# Site Wrapper
*
* Main site wrapper for site content.

.site-wrap {
  /* Critical site wrap code, do not edit. 
  min-height: 100%;
  min-width: 100%;
  position: relative;
  top: 0;
  bottom: 100%;
  left: 0;
  z-index: 1;

  /* Non-critical site wrap code, edit for appearance styling, etc. 

    background: #09C;
}
*/

/**
* #.# Hamburger Menu
*
* Hidden side menu for category navigation
*/

.nav-trigger {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

label[for="nav-trigger"] {
  position: fixed;
  left: 0px;
  top: 0px;
  display: block;
  padding: 5px 10px;
  color: white;
  font-size: 28pt;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  height: 60px;
  width: 60px;
  /* background-size: contain;
  background: url('images/hamburger.png'); */
  z-index: 25;
}

	.nav-trigger + label,
	.site-wrap, .nav-sidemenu {
	  transition: left 0.2s;
	}
	
	.nav-trigger:checked ~ #nav_top {
	  left: 215px; 
	}
	
	.nav-trigger:checked ~ .nav-sidemenu {
	  left: 0px;
	}
 
.nav-sidemenu {
  /* Critical code, do not edit. */
  height: 100%;
  position: fixed;
  top: 60px;
  left: -205px;
  z-index: 10;
  padding-top: 10px;
  border-left: 5px solid rgb(88, 88, 88);

  /* Non-critical site wrap code, edit for appearance styling, etc. */
  background: rgba(0,0,0,0.9);
  color: gray;
}

		.nav-sidemenu p {
						padding-left: 10px;
						font-weight: bold;
						color: #0099cc;
		}

#nav_side .menu-item {
  width: 200px;
  
  display: block;
  border-bottom: 1px solid #2D2D2D;
  
  color: #666;
  font-size: 10pt;
}

#nav_side .menu-item a {
  display: block;
  padding: 10px 20px;
  background: rgba(0,0,0,0.8);
  color: #CCC;
  text-decoration: none;
}

#nav_side .menu-item a:hover {
  background: #565656;
  color: white;
  text-decoration: none;

}

/**
* #.# Top Navigation Bar
*
* Fixed top navigation bar
*/

#navbar {
  /* Critical code, do not edit. */
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  display: block;
  padding-left: 55px;
  z-index: 1;
		

  /* Non-critical site wrap code, edit for appearance styling, etc. */
  background: #09C;
  box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
}

/**
* #.# Site Logo
*
* Text/Image logo in top navigation bar
*/

.logo {
	display: block;
	float: left;
	margin: 5px 10px 5px 0;
	height: 50px;
	
	font-size: 45px;
	color: white;
}

.logo img {
	vertical-align: initial;
}

/**
* #.# Top Menu
*
* Text links in top navigation bar
*/

#nav_top {
	list-style: none;
	margin:  0;
	display: none;
}

#nav_top li a {
	float: left;
	display: inline-block;
	width: 40px;
	height: 50px;
	padding: 0 10px;
	margin: 5px 2px;
	font-family: Oswald, Arial Narrow, Arial, sans-serif;
	font-size: 14pt;
	line-height: 50px;
	color: #FFF;
	text-decoration: none;
	border-radius: 10px;
	background: #06abe2;
	overflow: hidden;
}

#nav_top li a:hover {
	background: #0CF; 
}


/**
* #.# CONTENT AREA
*
* Text links in top navigation bar
*/

#main {
	display: block;
	float: left;
	padding: 55px 0 10px 0;
	text-align:  center;
}

/**
* #.# Ad Placeholders
*
* Placeholder divs for advertisements
* By default, all values are for mobile
*/

/* SQUARE AD - 300x250 */
.ad-square{
	width: 100%;
	height: 300px;
	float: left;
	padding: 5px;
}

/* TALL AD - 160x600 */
.ad-tall{
	width: 50%;
	height: 600px;
	float: right;
	padding: 5px;
}

/* WIDE AD - 728x90 */
.ad-wide {
	width: 100%;
	height: auto;
	margin-bottom: 10px;
}

/* AD HOLDER - background */
.adcode {
	width: 100%;
	height: 100%;
	text-align: center;
	overflow: hidden;
	
	background: #fbaf5d;
	border-radius: 5px;
	border: 1px solid #f27638;
}

	.ad-wide .adcode {
		padding: 5px 0;
			border-radius: 0;
		background: none; border: none;
			height: auto;
	}
		
	.ad-square .adcode {
		padding: 20px 0;
	}

/**
* #.# THE GRID
*
* Grid elements for tiled games
* By default, all values are for mobile
*/

#maingrid {
	max-width: 420px;
	margin: 0 auto;
	/*	padding: 35px 0; */
}

/* GRID PANELS */
.panel {
    width: 100%;
    background: none;
}

/* Single Grid Item */
/* -default for mobile- */
.grid-single {
	width: 50%;
	padding: 5px;
	height: 150px;
	float: left;
	overflow: hidden;
}

.grid-single figure {
	height: 100%;
	position: relative;
	
	background: #000;
}

/* -Grid Item Image- */
.grid-single figure img {
	width: 100%;
	height: 100%;
	/* object-fit: cover; */
	object-position: top center;
	display: block;
	position: relative;
}

/* -Grid Item Label- */
.grid-single figcaption {
	position: absolute;
	top: 0;
	height: 100%;
	width: 100%;
	background: rgba(0,0,0,0.7);
	text-align: center;
	color: #ffe493;
	font-size: 9pt;
	padding: 30px 10px;
	text-shadow: 0 0 5px #000;
}

.grid-single figcaption h3 {
	color: #FFF;
	font-size: 16pt;
		margin: 10px auto;
}

.grid-single .ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: top left;
}

/* -Grid Item Hover Effects- */

.grid-hover figure img {
	transition: transform 0.4s ;
}

.grid-hover figure:hover img {
	transform: scale(.8) rotate(5deg);
	transition: all 0.4s ;
}

.grid-hover figcaption {
	opacity: 0;
	transition: transform 0.4s, opacity 0.4s 0.3s;
}

.grid-hover figure:hover figcaption {
	opacity: 1;
	transform: translateY(0px);
	transition: transform 0.5s, opacity 0.7s;
}

/**
* #.# Pagination
*
* Bottom pagination for grid
* Original class supported by BootStrap
*/

#pages {
	width: 100%;
	float: left;
	text-align: center;
	padding: 10px 0;
}

#pages ul {
	/* padding: 0 50px; */
	/* display: inline; */
}

#pages ul li {
	display: inline-block;
}

#pages .page-numbers {
	color: transparent;
	display: block;
	width: 20px;
	height: 20px;
	margin: 5px 2px;
	border-radius: 30px;
	border: 2px solid #0b8eb9;
	background: #92d6ec;
}

#pages .page-numbers.current {
	background: #0b8eb9;
}

#pages .page-numbers:hover {
	background: #00a4da;
}

.next, .prev {
	position: fixed;
	top: calc(40%);
}
.next a, .prev a
{
	display: block;
	padding: 10px 5px;
	border-radius: 0 10px 10px 0;
	text-shadow: 1px 1px 5px black;
	box-shadow: 0 0 10px white, 0 0 10px white;
	background: rgba(0,0,0,0.8);
	text-align: center;
	font-size: 25pt;
	color: #bdbdbd;
}

.next a {
	border-radius: 10px 0 0 10px;
}


.next a:hover, .prev a:hover
{
	background: #000;
	color: #FFF;
}

.next {
	right: 0;
}


/**
* #.# Site Footer
*
* Site footer at bottom of page
*/

footer {
  /* Critical code, do not edit. */
  padding: 0 0 10px;
  display: block;
  float: left;
  width: 100%;
  text-align: center;
	
  /* Non-critical site wrap code, edit for appearance styling, etc. */
  /* background: #09C; */
  color: #6b6b6b;
}


/**
* #.# Footer Menu
*
* Text links in left side of footer
* By default, values are for mobile (centered)
*/

footer #nav_bottom {
	margin: 0 auto;
	list-style: none;
	display: inline;
	text-align: center;
	
}

footer #nav_bottom li {
	width: auto;
	display: inline-block;
	float: none;
}

footer #nav_bottom li:after {
	content: '|';
}

footer #nav_bottom li:last-child:after {
	content: '';
}

footer #nav_bottom li a {
	text-decoration: none;
	padding: 0 5px;
	
	color: #337ab7;
	font-weight: bold;
}

footer #nav_bottom li a:hover {
	color: #31a0ff;
}

/* COPYRIGHT MESSAGE */
footer .copyright {
	width: 100%;
	text-align: center;
	float: none;
}

footer .copyright a {
	text-decoration: none;
	color: #337ab7;
}

footer .copyright a:hover {
	color: #31a0ff;
}

/**
* #.# ARCHIVE Styles
*
* For archive pages
*/

h1.header, h1.title {
	text-transform: uppercase;
	color: #069 !important;
	font-size: 20pt;
	margin: 20px 0 10px;
}

/**
* #.# PAGE Styles
*
* For static pages
*/

#single-page {
	width: 100%;
	padding: 0 10px;
}

/* Page Article */
.page {
	float: left;
	display: block;
	width: 100%;
}

#single-post .ad-tall, 
#single-page .ad-tall {
	width: auto; margin: 0 5px; float: right;
	min-width: 160px;
}

/**
* #.# POST Styles
*
* For single posts
*/

#single-post {
	width: 100%;
	padding: 0 10px;
}

#single-post .post p img {
		display: none;
}

/* Post Article */
.post { 
 width: 100%; 
 margin-top: 20px;
}

.post_screenshot {
    margin: 5px;
    max-width: 150px;
    max-height: 200px;
    padding: 3px;
    border-radius: 5px;
    border: 1px solid #4e4e4e;
    background: #e6e6e6;
}

/* GAME CONTAINER */

.game-container {
	width: 100%;
	min-height: 280px;
	background: #000;
 text-align: center;
 margin-top: 15px;
}

.gameplayer {
    display: inline-block;
}

/* MORE GAMES PANEL */

.moregames {
	display: inline-block;
}

.moregames #maingrid {
	width: 100%;
	max-width: 400px;
	text-align: center;
}

.moregames .panel {
	background: none;
	margin: 0 auto 10px;
}

/**
* #.# FOR RESPONSIVE WEBSITE
*
* Settings for theme responsiveness
*/


/* MOBILE */
@media only screen and (min-width: 425px) {

	#nav_top { display: inline; }

}

/* SMALL SCREENS - Tablet */
@media only screen and (min-width: 768px) {
		
	#maingrid{max-width: 768px;margin: 10px auto;}

	/* Display top navigation */
	#nav_top li a { width: auto; }
	
	
	/* Grid Size */
	.panel .grid-single { width: 25%; }
	
	/* Ads */
	.ad-square { width: 50%; }
	.ad-tall { width: 25%; }
	
	/* Pages and Posts - fixed width for readability */
	#single-page, #single-post {
		margin: 0 auto;
		width: 720px;
	}
		
	.game-container {
	min-height: 480px;
	}


	.post_screenshot {
    max-width: 200px;
    max-height: 300px;
	}
	
	#single-page .panel-bottom .grid-single,
	#single-post .panel-bottom .grid-single { width: 25%; }
		
	#single-page .ad-square,
	#single-post .ad-square { width: 50%; }
	
	.moregames #maingrid {
		width: 100%;
		max-width: 900px;
	}
}

/* MEDIUM SCREENS - Normal Desktop */

@media only screen and (min-width: 1024px) {
		
	#maingrid{max-width: 1000px;margin: 10px auto;}

	/* Grid Size */
	.panel .grid-single {width: 20%;}
	
	/* Ads */
	.ad-square {width: 40%;}
	.ad-tall {width: 20%;}
	
}

/* BIG SCREENS - Tablet and Normal Desktop */

@media only screen and (min-width: 1280px) {
		
	#maingrid{max-width: 1400px;margin: 10px auto;}

	/* Grid Size */
	.panel .grid-single { width: 12.5%; }
	
	/* Ads */
	.ad-square { width: 25%; }
	.ad-tall { width: 12.5%; }
	
	/* Pages - fixed width for readability */
	#single-page {
		margin: 0 auto;
		width: 900px;
	}
	
	#single-page .panel-bottom .grid-single { width: 25%; }
	#single-page .ad-square { width: 50%; }

	/* Posts - fixed width for readability */
	#single-post {
		width: 900px;
}

	.game-container {
	/* max-height: 720px; */
	}

	.moregames .panel {
	 max-width: 800px;
	 float: none;
	 display: inline-block;
	}
}



/* BIG SCREENS - Wide Monitor */

@media only screen and (min-width: 1440px) {
		
	#maingrid{max-width: 1600px;margin: 10px auto;}
	
	/* Posts - fixed width for readability */
	#single-post {
		width: 1000px;
	}
	
.game-container {
	/* max-height: 900px; */
	}
}

/********************************/
/****** Plugin Compatibility ****/
/********************************/

 /* Disqus Thread */
#disqus_thread {
    width: 100%;
    display: block;
    float: left;
}

 /* Limk Related Content */
.limk-widget { width: auto !important; }

 /* Very Simple Contact Form */
#vscf { width:  auto !important; clear: none !important; }
#vscf_message {max-width: 70% !important;}

 /* WP Admin Bar */
#wpadminbar { display: none !important; }

 /* Easy Social Share Buttons */
.essb_links {	clear: none !Important; }

 /* Rating-Widget */
.rw-rating-table {
    margin: 10px auto 0; text-shadow:  none;
}

/* Infinite Scroll */
/* hide other ads */
#pages,
#maingrid .ad-square,
#maingrid .ad-tall{
   display: none;
}

#maingrid.fullwidthpage .ad-square,
#maingrid.fullwidthpage .ad-tall,
#maingrid .panel-bottom .ad-square,
#maingrid .panel-bottom .ad-tall,
#p1 .ad-square,
#p1 .ad-tall {
	display: block !important;
}

.ajax_loading, .dmd_ajax_product_load, .dmd_next_page
{
	float: left;
	display: block;
	width: 100%;
	text-align: center;
	margin: 10px auto 10px;
}

.dmd_next_page a {
	display: inline-block;
	padding: 10px 100px;
	background: lightgray;
	border-radius: 20px;
	font-size: 16pt;
	font-family: Oswald;
	color: gray;
	text-decoration: none;
}
.dmd_next_page a:hover {
	color: red;
	background: white;
}

.ajax_loading img, .dmd_ajax_product_load img
{
	display: inline-block;
	margin: 10px;
	padding: 10px 100px;
	background: rgba(256, 256, 256, 0.9);
	border-radius: 20px;

}

/* Addons-Extension */

.extensionLightBox {
        position:absolute;
        top:0;
        left:0;
        text-align:center;
        height:300%;
        width:100%;
        background:#000;
        opacity:0.8;
        filter:alpha(opacity=8);
        cursor:pointer;
        z-index:998;
}

.extensionBox {
        position: fixed;
        top:50%;
        left:50%;
        margin-top: -230px;
        margin-left: -260px;
        width:520px;
        height:320px;
		background:rgb(173,169,169);
        color: black;
        font-size:12pt;
        border:10px solid white;
        border-radius:5px;
        cursor:pointer;
        z-index:99999999999;
}

.extensionBox a {
	color: #000286;
}

.extensionButton {
	background: black; padding: 15px; color: white;
	border: 2px outset black;
}
