/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */


/* ===================
    ALL: Theme REACTOR
   =================== */

html, body{
	height:100%;
}
#allcontent {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin-bottom:-36px;
}
body {
    font-size: 16px/22px;
	font-family:'Abel',"Trebuchet MS", Arial, Helvetica, sans-serif;
	padding:0;
	margin:0;
	position:relative;
	overflow-x:hidden;
}

.wrapper {
	position:relative;
    margin: 0;
	margin-left:auto;
	margin-right:auto;
	width:980px;
}

.menu {
	background:url(../img/menu.jpg) no-repeat center top;
	height:45px;
	margin-top: 114px;
	font-family: 'Abel',tahoma;
}
.menu ul{
	z-index:1000;
	position:relative;
}
.right-menu {
	background-color:#5cb5e1;
	width:50%;
	position:absolute;
	height:45px;
	right:0;
	top:114px;	
}

.header-container {
	background:url(../img/grad.jpg) repeat-x;
	height:535px;
}

#logo {
	background:url(../img/reactor_logo.png) no-repeat center top transparent;
	height:92px;
	width:337px;
	display:block;
	top:34px;
	left:81px;
	position:absolute;
	z-index:5;
	z-index:1001;
}
.lines {
	background:url(../img/linie.png) no-repeat center top transparent;
	height:535px;
}

h1 {
	font-family:'Abel',"Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size:1.4em;
	line-height:1.4em;
	font-weight: normal;
	color:#FFF;
}

h2 {
	font-family:'Abel',"Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size:2.2em;
	line-height:1.4em;
	font-weight: normal;
	color:#295892;
	margin:25px 0 10px 30px;
}

h3 {
	color:#FFF;
	font-family:'Abel',"Trebuchet MS", Arial, Helvetica, sans-serif;
	opacity:0;
	white-space:nowrap;
	position:absolute;
	z-index:1001;
	font-size:1.8em;
	padding:0;
	margin:0;
}

h1.game-title, h1.home-title {
	padding:0;
	margin:0;
	white-space:nowrap;
}

input[type="text"],input[type="email"],input[type="tel"], textarea
{
	width:440px;
	max-width:440px;
	margin-bottom:8px;
	font-family:  Helvetica, Arial,Tahoma;
	font-size:16px;
	padding: 0 15px;
	line-height:34px;
	color:#6a6977;
	height:40px;
	border:none;
    background:transparent;
	background-image: url("../img/btns.png");
	background-repeat: no-repeat;
	background-position: -987px -328px;
}
label {
    display: block;
    margin: 10px 0 5px;
	color:#BBB;
}
.greyBtn {
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #387ab7), color-stop(1, #5ab1de));
        background:-moz-linear-gradient(top, #387ab7 5%, #5ab1de 100%);
        background:-webkit-linear-gradient(top, #387ab7 5%, #5ab1de 100%);
        background:-o-linear-gradient(top, #387ab7 5%, #5ab1de 100%);
        background:-ms-linear-gradient(top, #387ab7 5%, #5ab1de 100%);
        background:linear-gradient(to bottom, #387ab7 5%, #5ab1de 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#387ab7', endColorstr='#5ab1de',GradientType=0);
        
        background-color:#387ab7;
        
        -moz-border-radius:4px;
        -webkit-border-radius:4px;
        border-radius:4px;
        
        border:1px solid #d8d8d8;
        
        display:inline-block;
        color:#FFF;
        font-size:14px;
        font-weight:bold;
        padding:7px 20px;
        text-decoration:none;
        border-top-color:#387ab7;
		border-left-color:#387ab7;
		
		text-align:center;
		cursor:pointer;
    }
    .greyBtn:hover {
        
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #5ab1de), color-stop(1, #387ab7));
        background:-moz-linear-gradient(top, #5ab1de 5%, #387ab7 100%);
        background:-webkit-linear-gradient(top, #5ab1de 5%, #387ab7 100%);
        background:-o-linear-gradient(top, #5ab1de 5%, #387ab7 100%);
        background:-ms-linear-gradient(top, #5ab1de 5%, #387ab7 100%);
        background:linear-gradient(to bottom, #5ab1de 5%, #387ab7 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5ab1de', endColorstr='#387ab7',GradientType=0);
        
        background-color:#5ab1de;
    }
    .greyBtn:active {
        position:relative;
        top:1px;
    }

button {
	font-family:  Helvetica, Arial,Tahoma;
	width: 460px;
	display:block;
}

textarea
{
	background: url("../img/btns.png") no-repeat scroll -987px -378px transparent;
    border: medium none;
    height: 200px;
    line-height: 28px;
    margin-bottom: 20px;
    max-height: 200px;
    max-width: 440px;
    padding: 8px 15px 20px 15px;
    resize: none;
    width: 440px;
}

p,.contact_form {
	padding-left:2%;
}


.platform_desc {
	white-space:nowrap;
}
.menu ul {
    margin: 0 0 0 240px;
    padding: 0;
}

.menu a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: white;
	font-size:1.4em;
	height:45px;
	line-height:45px;
	margin:0 50px;
	font-family:'Abel',"Trebuchet MS", Arial, Helvetica, sans-serif;
}
#sublink {
	float:left;
}

#copy {
	float:right;
	text-align:right;
	font-size:1em;
}
#stopka {
	background-color: #c5daeb;
    color: #939BAA;
    font-family: 'Abel',"Trebuchet MS",Arial,Helvetica,sans-serif;
    font-size: 1em;
    min-width: 220px;
    padding: 6px 0;
    width: 100%;
	height:24px;
}
#sublink {
margin-left:10px;
}
#copy {
margin: 0 10px;
}
#sublink a{
    display:inline-block;
    text-align: center;
    text-decoration: none;
    color: white;
	font-size:1em;
	height:25px;
	line-height:25px;
	color:#939baa;
	font-family:'Abel',"Trebuchet MS", Arial, Helvetica, sans-serif;
	border-right:1px solid #939baa;
	padding:0 20px;
}
#sublink a:first-child {
	padding-left:0;
}
#sublink a:last-child {
	border:none;
}

#sublink a:hover,
#sublink a.active {
	text-decoration:underline;
}
.menu li {
	background:url(../img/podmenu.png) no-repeat right -10px transparent;
	display:inline-block;
}

.menu li:last-child {
	background:none;
}

.menu a:hover,
.menu a.active {
    background:url(../img/podmenu.png) no-repeat center 35px transparent;
	text-decoration:none;
}

.home p{
	margin-left:90px;
	padding-right:10%;
}

.men, .building {
	position:absolute;
	opacity:0;
}

/* ==============
   GAMES CATEGORY
   ============== */
   
.game img { 
	width:180px;
	height:180px;
	position:absolute;
	z-index:1;
}
.game .desc { 
	text-align:center;
	position:absolute;
	z-index:2;
	color:#FFF;
	width:100%;
	margin-top:180px;
}
.game-title h1 {
	margin:0;
	padding:0;
}
.game .desc .info {
	padding:4px;	background-color:#6cb2e3;
}
.gallery-games {
	padding-bottom:50px;
}
.game {
	margin:0 0 10px 10px;
	display:inline-block;
	position:relative;
	width:180px;
	height:180px;
	overflow:hidden;
	text-align: left;
	text-decoration: none;
}

.category-games a {
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: white;
	font-size:1.4em;
	height:45px;
	line-height:45px;
	margin:0 17px;
	color:#295892;
	font-family:'Abel',"Trebuchet MS", Arial, Helvetica, sans-serif;
}
.category-games ul {
	padding:0;
	margin:10px 0 60px 10px;
}
.category-games li {
	background:url(../img/podmenu.png) no-repeat right -58px transparent;
	display:inline-block;
}

.category-games li:last-child {
	background:none;
}

.category-games li:first-child a{
	margin-left:0;
}

.category-games a:hover,
.category-games li.active a {
	text-decoration:underline;
}

.games-back {
	width:100%;
	height:400px;
	position:absolute;
	left:0;
	top:159px;
	background:url(../img/games.png) no-repeat center top transparent;
	opacity:0;
}

.monkey,.left-elem, .center-elem {
	left:50%;
	top:0;
	opacity:0;
	position:absolute;
}
.center-elem {
	z-index:12;
}

.header-container.games .game-title {
    color: #FFFFFF;
    font-size: 5em;
	position:absolute;
	opacity:0;
}

.home-title {
	position:absolute;
	left:220px;
	top:200px;
	opacity:0;
}

/* ==============
    GAME
   ============== */


.main-container.picture {
	background-color:#f2f2f2;
}

.gallery {
	margin:0 0 26px 26px;
	display:inline-block;
	width:200px;
	height:200px;
	border:solid 2px #f2f2f2;
}

.gallery:hover {
	border-color:#666;
}

.game-info {
	margin:20px 0 0 30px;
}

.poster {
	width:300px;
	text-align:center;
	margin-right:20px;
	float:left;
}
.poster img{
	margin-bottom:10px;
}

.game-info .desc {
	float:left;
	width:630px;
}

.desc .category .cat {
	color:#295892;
	width:180px;
	float:left;
	text-align:right;
}

.desc .category .desc {
	width:420px;
	margin-left:30px;
	float:left;
}

.game-info .desc .info {
	width:420px;
	padding:40px 0 0 210px;
}

.main h2 {
	margin-top:70px;
}

.gallery-games ul,.gallery-games  li {
	padding:0;
	margin:0;
	background:none;
	width: auto !important;
}
.main-container {
	padding-bottom:30px;
}
.gallery-games  li {
	float:left;
	list-style:none;
}

#img_contact {
	margin-right:100px;
}
/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0 0 0;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */
@media only screen and (max-width:479px) {
	
	body {
		overflow:auto;
	}
	
	input[type="text"],input[type="email"],input[type="tel"], textarea
	{
		background: url("../img/btns.png") no-repeat scroll left -328px transparent;
		width:200px;
		max-width:200px;
	}
	
	textarea
	{
		background: url("../img/btns.png") no-repeat scroll left -378px transparent;
		width:200px;
		max-width:200px;
	}
	button {
		width:230px;
	}

	.gallery-games, .category-games {
		min-width:240px;
	}
	.gallery-game {
    text-align: center;
	}
	.gallery {
		margin-left:auto;
		margin-right:auto;
	}
	.lines {
		background:none;
	}
	.wrapper {
		width:100%;
	}
	.header-container {
        min-width:240px;
    }
	
	.menu ul {
		margin: 0;
		background-color:#387ab7;
	}
	.menu li {
		background:none;
		display: block;
	}
	
	.header-container, .lines {
		background-position:0 -40px;
		height: 365px;
		position:relative;
	}

	.menu {
		background:none;
		margin-top:90px;
	}
	.menu a {
		margin:0 12px;
	}
	.building,.men,.right-menu,.monkey, .games-back  {
		display:none;
	}
	
	#copy {
	float:left;
	text-align:left;
	width:100%;
	display:block;
	white-space:nowrap;
	padding-top:10px;
}
#stopka {
	height:60px;
	font-size:1em;
	line-height:25px;
}

#sublink a{
	font-size:1em;
	height:25px;
	line-height:25px;
	padding:0 10px;
}


	#logo {
		background:url(../img/reactor_logo_240.png) no-repeat center top transparent;
		height:55px;
		width:200px;
		top:10px;
		left:10px;
	}
	
	.header-container h1, h1.game-title,h3 {
		left:0 !important;
		bottom:40px !important;
		top:auto !important;
		font-size:22px !important;
		line-height:36px !important;
		text-align:center;
		width:100%;
	}
	
	.home p{
		margin-left:4%;
		padding-right:4%;
	}
	
	.category-games a {
		font-size: 1.2em;
		margin: 0 10px;
	}
	.gallery-games, .category-games {
		text-align: center;
	}
	
	.header-container.games, .games .lines {
		height: 352px;
	}
	
	.category-games ul {
		margin: 10px 0 10px 10px;
	}
	.poster {
		text-align:left;
	}
	.desc .category .cat, .desc .category .desc {
		float:left;
		text-align:left;
		width:80px;
	}
	.desc .category .desc {
		margin-left: 10px;
		width:300px;
	}
	.left-elem, .monkey,.center-elem {
		display:none;
	}
	.main h2 {
		margin-top: 0;
	}
	.game-info .desc {
		width: 100%;
	}
	.game-info .desc .info {
	    padding: 40px 1% 60px 3%;
    	width: auto;
		width:90%;
	}
	.desc .category .cat {
		width: 100px;
	}
	.gameswrapper h3 {
		margin: 270px 0 0 0;
		text-align:center;
		width:100%;
		left:0 !important;
		top:0 !important;
	}
	h2 {margin-left:10px;}
	.desc .category .desc {
		width:80%;
	}
	.header-container .game-title,h3 {width:100%; min-width:240px;}
	.header-container .game-title h1 {left: 0 !important; }
	.gallery-games li { 
	float:none;
	}
	.desc .category .cat {
		width:20%;
		font-weight:bold;
	}
	.game-info {
		margin: 20px 0 0 10px;
	}
	.home-title {
		left: 0;
		top: 110px;
	}
	#img_contact {
		display:none;
	}
}
@media only screen and (min-width:480px) and (max-width:767px) {
#img_contact {
		display:none;
	}
	.wrapper {
		width:100%;
	}
	.header-container, .lines {
		height: 425px;
		position:relative;
	}
	#img_contact {
		margin-right:0;
		width:200px;
	}
	.header-container h1, h1.game-title {
		left:165px !important;
		bottom:50px !important;
		top:auto !important;
		font-size:30px !important;
		line-height:36px !important;
	}

	.menu {
		background-position:-150px 0;
	}
	.menu a {
		margin:0 12px;
	}
	.menu ul {
    	margin: 0 0 0 150px;
	}
	.building,.monkey  {
		display:none;
	}
	.men  {
		display:none;
	}
	
	.lines.home .men  {
		height:250px;
		top:170px !important;
		left:-20px !important;
		display:block;
	}
	.home-title {
		left: 200px;
		top: 180px;
	}
	#logo {
		left: 41px;
	}


	.right-menu {
		top:104px;
		display: none;
	}
	.header-container h1 {
    	margin-top: 0;
		font-size: 1.6em;
	}
	.game-title h1 {
		font-size: 1.2em;
	}
	.gallery-games {
		text-align: center;
	}
	.games-back, .monkey {
    	top: 149px;
	}
	
	.header-container.games, .games .lines {
		height: 525px;
	}
	
	.game-info .desc {
		width: auto;
	}
	.game-info .desc .info {
	    padding: 40px 10px 0 0px;
    	width: auto;
	}
	.poster {
		text-align:left;
	}
	.desc .category .cat, .desc .category .desc {
		float:left;
		text-align:left;
		width:80px;
	}
	.desc .category .desc {
		margin-left: 10px;
		width:70%;
	}
	.left-elem, .monkey,.center-elem {
		display:none;
	}
	.main h2 {
		margin-top: 0;
	}
	
	h3 {
		margin: 420px 0 0 30px;
		text-align:left;
		width:100%;
		left:0 !important;
		top:0 !important;
		font-size:30px !important;
		line-height:36px !important;
	}
}

@media only screen and (min-width:768px) and (max-width:999px) {

	.wrapper {
		width:100%;
	}
	#img_contact {
		margin-right:0px;
		width:260px;
	}
    .menu {
		background-position:-150px 0;
	}
	.menu ul {
    	margin:0 0 0 200px;
	}
	.menu a {
		margin:0 40px;
	}

	#logo {
		left: 41px;
	}

	.game-info .desc {
		width: 396px;
	}
	.game-info .desc .info  {
	    padding: 40px 10px 0 0px;
    	width: auto;
	}
	
	.desc .category .cat, .desc .category .desc {
		float:left;
		text-align:left;
		width:80px;
	}
	.desc .category .desc {
		margin-left: 10px;
		width:300px;
	}
}

@media only screen and (min-width:1000px) {

	

    .wrapper {
        width: 980px; /* 1140px - 10% for margins */
        margin: 0;
		margin-left:auto;
		margin-right:auto;
    }
}



.minibox {
	width:240px;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when .menuigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width:35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width:100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
