/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html { width:100%; }
body {
	text-align: center;
	background-color: #ffffff;
	/*background-image: url(../img/pattern02.jpg);
	background-repeat: repeat;
	background-attachment: fixed;*/
	max-width: 960px;
	width: 100%;
	margin: auto;
	font-family: 'Roboto', sans-serif;
}

.logo { margin: 30px; }

h1, h2, h3, h4, h5, h6 {
	color: #444444;
	margin-left: 30px;
	margin-right: 30px;
}

p, ol, ul { 
	color: #444444;
	font-size: 24px;
	margin: 60px 30px;
}

.article {
	max-width: 700px;
	margin: auto;
	text-align: left;
}
.article .nav {
	margin: 30px 30px;
}
.article h2 {
	margin-top: 60px;
}
.article p {
	font-size: 16px;
	margin: 30px 30px;
}
.article p a {
	font-size: 16px;
}
.article ul {
	margin: 0px 10px;
}
.article li {
	font-size: 16px;
	margin: 10px 0px;
}
.article .code {
	background-color: #f7f7f7;
	margin: 10px 30px;
	padding: 30px 0px;
}
.article .code p {
	font-family: Courier;
	font-size: 14px;
	margin: 0px 30px;
}
.article .quote {
	background-color: #f7f7f7;
	margin: 10px 30px;
	padding: 15px 0px;
}
.article .quote p {
	font-style: italic;
	font-size: 16px;
	margin: 15px 30px;
}
.article .image {
	text-align: center;
	width: auto;
	margin-top: 30px;
}
.article .image p {
	font-size: 13px;
	font-weight: bold;
	margin: 10px auto;
}

.article .image img {
	max-width: 100%;
}

.article .video {
	text-align: center;
	max-width: 640px;
	margin: 10px auto;
}

ol, ul {
	font-size: 20px;
	text-align: left;
	margin: 40px 30px;
}

li {
	margin: 20px 60px;
}

p.description {
	margin-top: 0px;
	margin-bottom: 30px;
}

a { 
	font-weight: bold;
	color: #444444;
	text-decoration: none;
}
a:hover{
	color: #ff7700;
}

p a {
	color: #0099ff;
	font-size: 24px;
	font-weight: normal;
}

a.link {
	display: block;
	font-size: 24px;
	font-weight: normal;
	margin: 0px auto 30px auto;
}

a img:hover {
	opacity: 0.7;
}

.nav { 
	color: #444444;
	margin: 40px 0px 40px 0px;
	font-family: 'Roboto Slab', serif;
	font-size: 48px;
}

.nav a {
	margin: 10px;
	font-weight: bold;
}

.header {
	max-width: 930px;
	height: auto;
	margin: 15px auto;
}

.w641 { max-width: 641px; }
.w640 { max-width: 640px; }
.w452 { max-width: 452px; }
.w384 { max-width: 384px; }
.w224 { max-width: 224px; }

.header img{
    width: 100%;
    height: auto;
}

.portrait {
	max-width: 360px;
	height: auto;
	margin: 40px auto 15px auto;
}

.portrait img {
	width: 100%;
    height: auto;
	opacity: 0.9;
}

.screenshot {
	display:inline;
	width: 300px;
	height: auto;
	
}

.screenshot img {
	width: 300px;
    height: auto;
	margin: 8px 6px;
}

.game {
	position: relative;
	display: inline;
	margin: 0;
	padding: 0;
	left: 2px;
}

.game img {
	position:relative;
	margin: 8px 6px 8px 5px;
	padding: 0;
}

.game .text {
	position: absolute;
	top: -139px;
	left: 5px;
	font-size: 24px;
	font-weight: bold;
	line-height: 0px;
	color:#fff;
   	width: 300px;
	padding: 140px 0px 160px 0px;
   	background: rgb(0, 0, 0);
   	background: rgba(0, 0, 0, 0.7);
	visibility: hidden;
}
.game:hover .text {
	visibility: visible;
}

iframe {
	margin-top: 15px;
	margin-bottom: 30px;
}

.game .subtext {
	position: absolute;
	top: 24px;
	left: 6px;
	width:300px;
	font-size: 14px;
	font-weight: bold;
	line-height: 0px;
	color:#ffcc00;
	visibility: hidden;
}
.game:hover .subtext {
	visibility: visible;
}

.highlight {
	color: #ff7700;
}

iframe {
	background-color: #cccccc;
}

hr {
	margin: 6px 15px;
}

.footer {
	color: #aaaaaa;
	font-size: 14px;
	margin: 50px;
}
.footer a {
	color: #aaaaaa;
	font-size: 14px;
}
.footer a:hover {
	color: #ffaa00;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
