/*! HTML5 Boilerplate v5.3.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
   ========================================================================== */

















/* ==========================================================================
   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 */
}

body {
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center center;
    font-size: 14px;
}

body.gate {
    background-image: url('http://d1mphx2csg3pcg.cloudfront.net/img/krhr-background.jpg');
}

body.yeonsung {
    background-image: url('../img/img-yeonsung.jpg?v=20161007');
}

body.dohyeon {
    background-image: url('../img/img-dohyeon.jpg');
}

body.hanna11yrs {
    background-image: url('../img/img-hanna.jpg');
}

body.jua {
    background-image: url('../img/img-jua.jpg');
}

body.kiranghaerang {
    background-image: url('http://d1mphx2csg3pcg.cloudfront.net/img/krhr-background.jpg');
}

.download-section {
    width: 90%;
    box-sizing: border-box;
    margin: 30px auto;
    padding: 20px;
    border-radius: 5px;
    background-color: #ffffff;
}

.download-section h1 {
    color: #1a1a1a;
    font-size: 200%;
    margin: 0;
}
.download-section .desc {
    line-height: 1.5;
    margin: 20px 0 30px;
}
.download-section .desc em {
    color: #888888;
    font-style: normal;
}

.gate .download-section {
    width: 90%;
    box-sizing: border-box;
    margin: 30px auto;
    padding: 20px;
    border-radius: 5px;
    background-color: #ffffff;
}

.kiranghaerang .download-section .desc {
    letter-spacing: -0.05em;
}

.btn {
    position: relative;
    display: block;
    background-color: #333333;
    color: #fff;
    text-align: center;
    padding: 20px 15px 20px;
    margin-bottom: 5px;
    text-decoration: none;
    border-radius: 2px;
    font-size: 14px;
}

.gate .btn::after {
    content: ">";
    position: absolute;
    right: 7px;
    font-size: 1.3em;
    color: #9D9E9F;
}

@media only screen and (min-width: 35em) {
    .download-section {
        position: absolute;
        width: 760px;
        height: 300px;
        box-sizing: border-box;
        top: 50%;
        left: 50%;
        margin: -150px 0 0 -350px;
        padding: 40px 50px;
        border-radius: 5px;
        background-color: #ffffff;
    }

    .gate .download-section {
        width: 784px;
        height: 500px;
        box-sizing: border-box;
        top: 50%;
        left: 50%;
        margin: -250px 0 0 -380px;
        padding: 50px;
        border-radius: 5px;
        background-color: #ffffff;
    }

    .gate .download-section h1 {
        width: 680px;
        height: 321px;
        background: url('http://d1mphx2csg3pcg.cloudfront.net/img/font-header.jpg') no-repeat top left;
        text-indent: -9999px;
    }

    .gate .download-section .desc {
        display: none;
    }

    .btn-set {
        margin: 30px auto 0;
        text-align: center;
    }

    .btn-set-gate {
        margin: 30px 0 0;
    }

    .btn {
        position: relative;
        display: inline-block;
        margin-right: 5px;
        padding: 18px 40px 18px 40px;
        line-height: 1;
        vertical-align: top;
    }
}