/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.5;
}
*{
    box-sizing: border-box;
}
::-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;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

p {
    margin-top: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body{
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    
    background: #fff url("../img/bg-mob.jpg") 50% 0 no-repeat;
    background-size: cover;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    display:  flex;
    align-items: center;
    justify-content: center;
    border: 8px solid #fff;
}

section{
    text-align: center;
    max-width: 968px;
    width: 100%;
    background-color: #fff;
    border: 8px solid #EF3E33;
    padding: 20px;
}


section header img {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto;
}

section header{
        margin-bottom: 10px;
}

section .inner__top {
    padding-top: 10px;
}

section .inner__bottom {
    padding-top: 18px;
}

section .inner{
    position: relative;
}

section .inner::before {
    content: '';
    width: 60%;
    min-width: 200px;
    height: 3px;
    position: absolute;
    background-color: #DDD;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

section .inner__bottom {
    position: relative;
}
section .inner__bottom::before {
    content: '';
    width: 88px;
    height: 4px;
    position: absolute;
    background-color: #EF3E33;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.img-block {
    display: block;
    margin: 10px auto 0;
    width: 70px;
}

a{
    color: #000;
    text-decoration: none;
    padding: 0 5px;
    display: inline-block
}

a:hover{
    text-decoration: underline;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 640px) {
    body {
        background: #fff url("../img/bg.jpg") center no-repeat;
        border: 32px solid #fff;
        width: 100vw;
    }

    section {
        border: 32px solid #EF3E33;
    }

    section header{
        margin-bottom: 20px;
    }

    section header img {
        width: auto;
    }

    section .inner{
        font-size: 24px;
        line-height: 1.6666666667;
    }
    
    section .inner__top {
        padding-top: 20px;
    }

    section .inner__bottom {
        padding-top: 28px;
    }

    section .inner__bottom::before { 
        height: 8px;
    }

    h3 {
        font-size: 24px;
        line-height: 1.6666666667;
        
    }

    .img-block {
        margin-top: 30px;
        width: auto;
    }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Print styles
   ========================================================================== */

@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;
    }
}