/*! 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.
 */

/* ==========================================================================
   Fonts: Google Web Fonts
   ========================================================================== */

/* open-sans-regular - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v34-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/open-sans-v34-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/open-sans-v34-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
  }

/* source-sans-pro-regular - latin */
@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/source-sans-pro-v21-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/source-sans-pro-v21-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/source-sans-pro-v21-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/source-sans-pro-v21-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/source-sans-pro-v21-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/source-sans-pro-v21-latin-regular.svg#SourceSansPro') format('svg'); /* Legacy iOS */
  }

/* fjalla-one-regular - latin */
@font-face {
    font-family: 'Fjalla One';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/fjalla-one-v13-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/fjalla-one-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/fjalla-one-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/fjalla-one-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/fjalla-one-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/fjalla-one-v13-latin-regular.svg#FjallaOne') format('svg'); /* Legacy iOS */
  }

/* ==========================================================================
   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
   ========================================================================== */
html {
    background: #000;
}
   
body {
    color: #ddd;
    font-family: Source Sans Pro, sans-serif;
    background: url(../img/bg-dark-600.jpg) top center repeat;
	background-attachment: fixed;
	background-size: cover;
}

/*
* {
	border: 1px solid #fff;
}
*/

h1, h2, h3, h4, h5 {
    font-family: Fjalla One, sans-serif;
}

a, a:link, a:hover, a:active, a:focus, a:visited {
    color: #ddd;
    text-decoration: underline;
}

.fullpage {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    min-width: 0px;
    position: relative;
}

#logo-wrapper {
}

#header {}

footer {
    height: 60px;
	background: url(../img/nav-bg-x.png) 0 0 repeat;
}

footer p {
    margin: 0;
	line-height: 60px;
}

#video-wrapper {
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    min-height: 640px;
    max-height: 720px;
    min-width: 1080px;
	background: transparent;
}

#video {
    width: 100%;
    height: auto;
	background: transparent;
}

#logo {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 90%;
    min-width: 60%;
    /*opacity: 0.7;*/
}

nav {
    display: block;
	background-color: #000;
}

nav ul {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    background: url(../img/nav-bg-x.png) 0 0 repeat-x;
    height: 60px;
    z-index: 100;
}

nav.nav-fixed {
    top: 0;
    position: fixed;
    z-index: 1000;
    background-color: #111;
    width: 100%;
}

nav ul li {
    display: inline;
    float: left;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li, 
nav ul li a, 
nav ul li a:link,
nav ul li a:hover,
nav ul li a:active,
nav ul li a:focus,
nav ul li a:visited
{
    color: #ddd;
    font-family: Fjalla One, sans-serif;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 120%;
}

nav ul li a {
    width: auto;
    display: block;
    line-height: 60px;
    padding: 0 1em;
}

nav ul li:hover, nav ul li a:hover {
    background-color: rgba(0,0,139,0.25);
}

#nav-forum {
    background-color: rgba(220,20,60,0.25);
}

#nav-forum {
    float: right;
}

section.content {
    min-height: 800px;
    padding: 100px 10%;
	background-size: cover;
    background-repeat: no-repeat;
    background-color: #000;
    background-position: center center;
	text-shadow: 0.1em 0.1em 0.2em #000, -0.1em -0.1em 0.2em #000;
}

#about, #impressum {
    background: url("../img/bg/bg-ueberuns-24.png");
	background-position: right center;
}

#games {
    background: url("../img/bg/bg-games-24.png");
	background-position: right center;
}

#games-wrapper {
    margin: auto;
}


#games-wrapper div.game-box {
    width: 200px;
    height: 200px;
    padding: 10px;
    margin: 10px;
    background-color: #111;
    opacity: 0.8;
    text-align: center;
    float: left;
    position: relative;
    border-radius: 5px;
	overflow: hidden;
}

#games-wrapper div.game-box:hover {
    background-color: #222;
}

#games-wrapper div.game-box img {
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
	max-width: 90%;
	max-height: 90%;
}

#rules {
    background: url("../img/bg/bg-satzung-24.png");
	background-position: center center;
}

#rules-wrapper {
    margin: auto;
}

#rules-wrapper div.rule-box {
    width: 250px;
    height: 300px;
    padding: 10px;
    margin: 10px;
    background-color: #111;
    opacity: 0.8;
    text-align: center;
    float: left;
    position: relative;
    border-radius: 5px;
}

#rules-wrapper div.rule-box:hover {
    background-color: #222;
}

#join {
    background: url("../img/bg/bg-beitreten-24.png");
	background-position: center center;
}

#join-button {
	position: relative;
	display: block;
	margin: 2em auto;
    white-space: nowrap;
}

#join-button a {
	color: #fff;
	font-size: 120%;
	font-weight: bold;
	font-family: Fjalla One, sans-serif;
	text-decoration: none;
	padding: 15px 20px;
	background-color: crimson;
	box-shadow: 5px 5px 5px #000;
}

.grid {
	width: 100%;
}

.grid > div {
    display: inline;
	position: relative;
    float: left;
    padding: 0;
    margin: 0;
    min-width: 200px;
}

.grid > div.g-50  {
	width: 49%;
	min-height: 200px;
}

.center {
    display: block;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
    font-size: 110%;
}

#nav-open {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    z-index: 50;
    background: url("../img/nav.png") center center no-repeat #111;
    cursor: pointer;
    font-weight: bold;
    font-size: 200%;
    vertical-align: middle;
}

#nav-close {
    display: none;
    cursor: pointer;
}

/* 3d-tranform */

.perspective {
	-webkit-perspective: 1000;
	-moz-perspective: 1000;
    -ms-perspective: 1000;
    -o-perspective: 1000;
	perspective: 1000;
	
	-webkit-perspective-origin: 100px;
	-moz-perspective-origin: 100px;
    -ms-perspective-origin: 100px;
    -o-perspective-origin: 100px;
	perspective-origin: 100px;
}

.rotate3d {
	-webkit-transform: rotateY(-15deg);
	-moz-transform: rotateY(-15deg);
    -ms-transform: rotateY(-15deg);
    -o-transform: rotateY(-15deg);
	transform: rotateY(-15deg);
}

.rotate3d:hover {
	-webkit-transform: rotateY(0deg);
	-moz-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
	transform: rotateY(0deg);
    
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
    transition: 1s;
}


/* ==========================================================================
   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 navigated 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 only screen and (max-width: 768px) {
    
    nav {
        display: none;
    }
    
    nav ul li {
        display: block;
        float: none;
        background-color: #111;
    }
    
    nav ul {
        top: 0;
        width: 100%;
        text-align: center;
        position: fixed;
    }
    
    #nav-forum {
        float: none;
    }
    
    #nav-open {
        display: block;
    }
    
    #nav-close {
        display: block;
        padding: 1em 0;
    }
}

@media only screen and (max-width: 480px) {

}

@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;
    }
}
