/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/*html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}*/

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

.w figure {
    width: 100%;
    margin: 0 0 10px 0;
}
.w img[usemap] {
    border: medium none;
    height: auto;
    width: 100%;
}

.explain {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 30px);
    height: calc(100% - 40px);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    z-index: 9999;
    background-color: #000;
    color: #fff;
    padding: 20px 15px;
}
.explain.show {
    opacity: 1;
    transform: translateX(0);
}
.explain > nav {
    display: block;
    text-align: right;
    margin-bottom: 10px;
}
.explain > nav a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media only screen and (min-width : 768px) {
    
}
@media only screen and (min-width : 1024px) {
    .w figure {
        width: 700px;
        max-width: 700px;
        margin: 10px auto 0;
    }
    .explain {
        position: relative;
        height: 0;
        overflow-y: auto;
        background-color: rgba(240,240,240,.9);
        color: #242424;
        transform: translateX(0);
        transition: opacity .3s, height .3s;
    }
    .explain.show {
        height: 130px;
    }
    .explain .explain_body h4 {
        margin: 10px 0 5px;
    }
    .explain > nav a {
        color: #242424;
    }
}
@media screen and (-webkit-min-device-pixel-ratio:0) { 
  select:focus,
  textarea:focus,
  input:focus {
    font-size: 16px;
    background: #eee;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

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