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

body {
    background: url('../img/bg.jpg') no-repeat center top;
    padding-top: 90px;
    font-family: 'Fira Sans', Sans;
    font-size: 14px;

}

.row {
    width: 100%; display: table;
    max-width: 2038px;
    margin: 0px auto;
}
.box {
    width: 20%; display: table-cell;vertical-align: top;
    height: 266px;
    border: 1px solid rgba(255,255,255,0.4);
    border-right: 0px;
    border-bottom: 0px;
    text-align: center;
    text-decoration: none;
}
.row .box:first-child {
    border-left: 0px;
}
.row .box:last-child {
    border-right: 0px;
}
.row:nth-child(3) .box  {
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.box.s,
.box.t {
    vertical-align: middle;
}
.box.bg {
    background: rgba(0,0,0,0.6);
}
.box.bg:hover {
    background: rgba(0,0,0,0.8);
}

.box h1 {
    margin: 0px;
    padding: 0px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -2px;
}

.box a {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: -2px;
    line-height: 48px;
    height: 50px;
    overflow: hidden;
    display: inline-block;
    background: url('../img/all_en.png') no-repeat;
    background-position: -198px -42px;
    padding-left: 60px;
}
.box a:hover > span {
    text-decoration: underline;
}

.box .img {
    background: url('../img/all_en.png') no-repeat;
    display: inline-block;
    margin-left: 9px;
    margin-right: 9px;
}
.box .bp {
    background-position: 0px -90px;
    height: 77px;
    width: 230px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.box .vfm {
    background-position: 0px -167px;
    height: 77px;
    width: 276px;
    margin-top: 50px;
    margin-bottom: 10px;
}


.box .icon1 {
    background-position: 0px 0px;
    width: 42px;
    height:41px;

}
.box .icon2 {
    background-position: -42px 0px;
    width: 42px;
    height:41px;
}
.box .icon3 {
    background-position: -82px 0px;
    width: 42px;
    height:41px;
}
.box .icon4 {
    background-position: -128px 0px;
    width: 58px;
    height:41px;
}
.box .icon5 {
    background-position: -186px 0px;
    width: 42px;
    height:39px;
}


.box .icon6 {
    background-position: 0px -42px;
    width: 35px;
    height:41px;
    margin-left: 12px;
    margin-right: 12px;
}
.box .icon7 {
    background-position: -37px -42px;
    width: 35px;
    height:41px;
    margin-left: 12px;
    margin-right: 12px;
}
.box .icon8 {
    background-position: -71px -42px;
    width: 42px;
    height:41px;
}
.box .icon9 {
    background-position: -114px -42px;
    width: 42px;
    height:41px;
}
.box .icon10 {
    background-position: -155px -42px;
    width: 42px;
    height:41px;
}










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


@media ( max-width: 1690px ) {
    .box {
        width: 28%;
    }
    .box.b {
        width: 10%;
    }
}
@media ( max-width: 1300px ) {
    .box {
        width: 30%;
    }
    .box.b {
        width: 5%;
    }
}
@media ( max-width: 1190px ) {
    .box {
        width: 30%;
    }
    .box.b {
        display: none;
    }
    .box .img {
        margin-left: 4px;
        margin-right: 4px;
    }
}
@media ( max-width: 992px ) {
    .box {
        width: 50%;
    }
    .box.t {
        width: 100%;
    }
    .box.m,
    .box.b {
        display: none;
    }
}
@media ( max-width: 768px ) {
    .box {
        width: 100% !important;
        display: table;
        border: none;
        border: 1px solid rgba(255,255,255,0.4);
    }
    .box.t {
        width: 100%;
        border: none;
    }
    .box.t h1 {
        padding-top: 70px;
    }
    .row {
        padding-bottom: 12px;
    }

    .box.s,
    .box.m,
    .box.b {
        display: none;
    }
}