/*! HTML5 Boilerplate v6.1.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, body {
    height: 100%;
    font-family: 'NanumSquareNeo', sans-serif !important;
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    color: #000;
    letter-spacing: 0;
    background-color: #d5f7f9;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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;
}

p {
    margin: 0;
    padding: 0;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Intro page
   ========================================================================== */
#wrap {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 96%;
    height: 100%;
    padding: 0 2%;
    text-align: center;
    background: url(../images/bg_intro.jpg) center center no-repeat;
    background-size: cover;
}
#wrap .bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.45);
    z-index: 1;
}
#wrap .inner-wrap {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 72px;

    position: relative;
    width: 100%;
    max-width: 960px;
    padding: 80px 50px;
    border-radius: 20px;
    background-color: rgba(255,255,255,0.9);
    box-shadow: 2px 4px 12px rgba(0,0,0,0.45);
    z-index: 2;
}

/* #header */
#wrap #header {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 32px;

    width: 100%;
}
#wrap #header h1 {
    margin: 0;
    padding: 0 24px;
}
#wrap #header h1 img {
    max-width: 100%;
}
#wrap #header h2 {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;

    width: 100%;
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
}
#wrap #header h2 span.divline {
    font-size: 17px;
    font-weight: 400;
}

/* #container */
#wrap #container {

}
#wrap #container .article {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 64px;

    width: 100%;
}
#wrap #container .article .section {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;

    width: 100%;
}
#wrap #container .article .section p {
    line-height: 1.4;
    font-size: 19px;
}
#wrap #container .article .btn-area a {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 16px 32px;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background-color: #B81C28;
    transition: all 0.25s;
}
#wrap #container .article .btn-area a:hover {
    background-color: #f33;
}

/* #footer */
#wrap #footer {

}
#wrap #footer p {
    font-size: 19px;
    font-style: italic;
}

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

    /* ==========================================================================
       Intro page
       ========================================================================== */
    #wrap {
        width: 92%;
        padding: 0 4%;
    }
    #wrap .inner-wrap {
        gap: 44px;

        padding: 40px 30px;
    }

    /* #header */
    #wrap #header h1 {
        padding: 0 44px;
    }
    #wrap #header h2 {
        font-size: 21px;
    }
    #wrap #header h2 span.divline {
        font-size: 17px;
        font-weight: 400;
    }

    /* #container */
    #wrap #container .article {
        gap: 44px;
    }
    #wrap #container .article .section {
        gap: 16px;
    }
    #wrap #container .article .section p {
        font-size: 17px;
    }
    #wrap #container .article .btn-area a {
        padding: 12px 24px;
        font-size: 24px;
    }

    /* #footer */
    #wrap #footer p {
        font-size: 17px;
    }

}

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

    /* ==========================================================================
       Intro page
       ========================================================================== */
    #wrap .inner-wrap {
        gap: 32px;

        padding: 24px 16px;
    }

    /* #header */
    #wrap #header h1 {
        padding: 0 24px;
    }
    #wrap #header h2 {
        flex-flow: column nowrap;
        font-size: 17px;
        gap: 12px;
    }
    #wrap #header h2 span {
        line-height: 1.4;
    }
    #wrap #header h2 span.divline {
        display: none;
    }

    /* #container */
    #wrap #container .article {
        gap: 44px;
    }
    #wrap #container .article .section {
        gap: 16px;
    }
    #wrap #container .article .section p {
        font-size: 15px;
    }
    #wrap #container .article .btn-area a {
        padding: 12px;
        font-size: 17px;
    }

    /* #footer */
    #wrap #footer p {
        font-size: 15px;
    }

}
