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

/***** NAVIGATION *****/

.f-nav{
    position: fixed; 
    left: 0; 
    top: 0; 
    width: 100%; 

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

.f-nav-sv{
    position: fixed; 
    left: 0; 
    top: 53px; 
    width: 100%;

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}
.f-nav-sv a{
    background: #ff0052 !important;
    color: #fff !important;
    border:none !important;
    border-right: 1px solid #fff !important;

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}
.f-main{
    margin-top: 105px !important;
}
.f-main-services{
    margin-top: 83px !important;
}

.site-principal-nav{
    width: 100%;
    border-bottom: 1px solid #cccccc;
    -moz-box-shadow: 0 1px 1px 0 #ccc;
    -webkit-box-shadow: 0 1px 1px 0 #ccc;
    box-shadow: 0 1px 1px 0 #ccc;
    background: #fff; /*#fff*/
    z-index: 10;


    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}
.nav_wrapper{
    margin: 0 auto;  
    max-width: 1000px;
    text-align: center;
}
.nav_wrapper li{
    font-family: proxima_nova, sans-serif;
    height: 50px;
    line-height: 50px;
    display: inline-block;
    font-size: .9em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}
.nav_wrapper ul li a{
    text-decoration: none;
    color: #fff;
    border-right: 1px solid #fff;
    padding: 0 15px;

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}
.nav_wrapper ul li a:hover{
    color: #000;
}
.nav_wrapper ul li:nth-child(3){
    background-image: url(../img/triangle.png);
    background-repeat: no-repeat;
    background-position: 86px center;
    padding-left: 0;
}


nav ul{
    margin: 0;
    padding: 0;
}
.responsive_nav{display: none;}


.clearboth{clear: both;}

.site-principal-nav{
    width: 100%;
    border-bottom: 1px solid #cccccc;
    -moz-box-shadow: 0 1px 1px 0 #ccc;
    -webkit-box-shadow: 0 1px 1px 0 #ccc;
    box-shadow: 0 1px 1px 0 #ccc;
    background: #ff6d00; /*#fff*/
    z-index: 10;

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}




/****** SUB-MENÚ *****/


.nav_wrapper li:hover .sublist{
    opacity: 1;
    visibility: visible;

    -o-transition:.2s;
    -ms-transition:.2s;
    -moz-transition:.2s;
    -webkit-transition:.2s;
    transition:.2s;

}
.sublist{
    position: absolute;
    margin-top: 1px;
    background: #ededed;
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    font-family: 'proxima_nova_bold' !important;

    -o-transition:.2s;
    -ms-transition:.2s;
    -moz-transition:.2s;
    -webkit-transition:.2s;
    transition:.2s;
    margin: 0 !important;
}
.sublist li{
    width: 90%;
    padding: 0;
    margin: 0;
    float: left;
    color: #000;
    text-align: left;
    padding-left: 20px;

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}
.sublist li:nth-child(1){
    /*border-right: 1px solid #808080;*/
}
.sublist li:hover{
    background: #b4b4b4;

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}
.sublist a{
    border: none !important;
    padding: 0 !important;
}
.sublist a li{
    font-size: 1em;
    font-family: 'proxima_nova_bold';
}
.sublist a li:hover{
    color: #000 !important;
}




/***** SLIDER *****/

figure{margin: 0;}

.slider-pages{
    padding-top: 50px;
}
.slider_principal{
    height: 400px;
    overflow: hidden;
}
.slider_home_prov{
    width: 100%;
    height: auto;
    overflow: hidden;    
}
.slider_home_prov img{
    width: 102%;    
}
.wrapper_slider{
    width: 100%;
}
.images_slider{width: 100%;
}
.patter_filter{
    position: absolute;
    /*top: 0px;*/
    left: 0px;
    background-image: url(../img/grid-pattern.png);
    width: 100%;
    height: 400px;
    opacity: .6;
    z-index: 1;
}
.banner ul li p{
    text-align: center !important;
}

.overslider-pages{padding-top: 49px;}

.overslider{
    position: absolute;
    width: 250px;
    background: rgba(255,255,255,.8);
    z-index: 3;
    height: 400px;
    left: 10%;
    -moz-box-shadow: 0 1px 1px 0 #ccc;
    -webkit-box-shadow: 0 1px 1px 0 #ccc;
    box-shadow: 0 1px 1px 0 #ccc;
}

.overslider ul{
    margin: 0;
    padding: 0;
    padding-top: 15px;
}

.overslider ul li{
    list-style-type: none;
    text-align: center;
    text-decoration: none;
    color: #ff6d00;
    font-family: 'proxima_nova';
    font-size: 1.2em;
}


#bolsadetrabajo{
    width: 240px;
    height: 90px;
    display: inline-block;
    background: #2394d8;
    position: absolute;
    margin: 0 20px;
    margin-top: -19px;
    z-index: 10;
    background: url(../img/bolsadetrabajo_back.png);
    background-repeat: no-repeat;

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

.logotps{ text-align: center;margin-top: 15px; margin-bottom: 15px;}

.logotps img{width: 75%;}

.datoscomercial{margin: 0 20px;}
.comercial{text-transform: uppercase;font-family: 'proxima_nova';font-size: 2.3em;line-height: .6em; color: #404040;}
.lada{font-size: 1.3em;
    margin-top: 11px;
}
.telefono{font-family: 'proxima_nova_bold';font-size: 2.7em; color: #2394d8;}
.email{font-family: 'proxima_nova'; font-size: .9em;}
.email a{text-decoration: none; color: #ff6d00;}
.email a:hover{color: #2394d8;}

#forma-contacto{margin: 10px 20px 20px 20px; font-family: 'proxima_nova', sans-serif; font-size: .9em;}

#forma-contacto input {
    width: 206px;
    margin: 4px 0;
    border-radius: 3px;
    border: 1px solid #cecece;
    padding: 3px;
}

#forma-contacto textarea {
    width: 206px;
    margin: 4px 0;
    border-radius: 3px;
    border: 1px solid #cecece;
    padding: 3px;
}

.top-encabezados{text-align: center; margin-top: 25px;margin-bottom: 30px;}

.top-encabezados h1{
    line-height: 1em;
    font-family: 'proxima_nova_bold';
    width: 36%;
    margin: 0 auto;}

.top-encabezados p{
    font-family: 'proxima_nova';
    width: 52%;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #666666;
}

.top-encabezados p a{text-decoration: none; color: #ff6d00; font-family: 'proxima_nova';}
.top-encabezados p a:hover{color: #2394d8;}

.imagen-central{
    text-align: center;
    padding: 0 0 35px 0;
}
.texto-central{
    text-align: left;
    padding-top: 45px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 35px;
}

.texto-central h1{
    line-height: 1em;
    font-family: 'proxima_nova_bold';
    width: 90%;
    margin: 0 auto;
}

.texto-central h2{
    line-height: 1em;
    font-family: 'proxima_nova';
    width: 90%;
    margin: 0 auto;
    font-size: 1.1em;
    color: #ff6d00;
    padding: 30px 0 0 0;
}

.texto-central p{
    font-family: 'proxima_nova';
    width: 90%;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #666666;
}

.texto-central ul{
    font-family: 'proxima_nova';
    color: #666666;
    padding-left: 80px;
}

.nav-sections{
    position: fixed;
}

.texto-central p a{text-decoration: none; color: #ff6d00; font-family: 'proxima_nova';}
.texto-central p a:hover{color: #2394d8;}

.top-encabezados-first{
    text-align: center; 
    margin-top: 0;
    float: left;
    width: 70%;
}

.top-encabezados-first h1{
    line-height: 1em;
    font-family: 'proxima_nova_bold';
    width: 65%;
    margin: 0 auto;}

.top-encabezados-first p{
    font-family: 'proxima_nova';
    width: 60%;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #666666;
}

.top-encabezados-first p a{text-decoration: none; color: #ff6d00; font-family: 'proxima_nova';}
.top-encabezados-first p a:hover{color: #2394d8;}

.button{
    color: white;
    background: #b62921;
    width: 214px !important;
    text-transform: uppercase;
}

.separator{text-align: center;}
.bolsadetrabajo-home{color: #fff;padding: 10px 20px;font-family: 'proxima_nova';}
.texto-bolsadetrabajo{text-transform: uppercase;}
.bolsadetrabajo-home figure{float: left;padding: 7px;}
.telephone-bolsadetrabajo{
    font-family: 'proxima_nova_bold';
    font-size: 1.4em;
}

.seccion-servicios{
    color: #666666;
    font-family: 'proxima_nova';
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.seccion-servicios li{list-style-type: none;}
.servicios-uno{float: left; padding: 0 35px;}
.servicios-dos{float: right; padding: 0 35px;}

.encabezados-servicios p{font-family: 'proxima_nova_sbold';}

.encabezados-servicios h1{text-transform: uppercase;}
.seccion-tecnologia h1{text-transform: uppercase;}
.offshore h1{text-transform: uppercase;}

.seccion-tecnologia{
    color: #666666;
    font-family: 'proxima_nova';
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 50px;
}
.tecnologia-uno{float: left;width: 45%;text-align: justify;padding: 0 20px;margin-bottom: 25px;}
.offshore{float: right;width: 45%; text-align: justify;padding: 0 20px;margin-bottom: 25px;}

.seccion-tecnologia h1{
    line-height: 1em;
    font-family: 'proxima_nova_bold';
    width: 55%;
    margin: 0 auto;
    color: #222;
}
.seccion-tecnologia li{
    list-style-type: none;
}

#video-home{
    width: 100%;
    height: auto;
    min-height: 570px;
    background-image: url("../img/backVideo.jpg");
}

#video-home article{
    margin: 0 auto;
    max-width: 480px;
    padding-top: 105px;

}

#map {
    width: 100%;
    height: 400px;
}

#wrappermapa{}
.frontmap {
    background: rgba(0,0,0,.67);
    width: 100%;
    height: 400px;
    position: absolute;
    z-index: 4;
    text-align: center;
}
.frontmap ul{
    margin: 50px 0;
    padding: 0;
}
.frontmap ul li{list-style-type: none; 
    color: #fff;
    font-size: .8em;
    font-family: 'proxima_nova';
    text-transform: uppercase;
    line-height: 2em;
}
.frontmap ul li a{
    color: #ff6d00;
    text-decoration: none;
}
.frontmap ul li a:hover{
    color: #fff;
}
.frontmap .direccion{color: #fff; 
    text-align: center; 
    font-size: .9em;
    font-family: 'proxima_nova';
    width: 60%;
    margin: 0 auto;
}
.frontmap .direccion span{
    color: #ff6d00;
}
.container_social{
    margin: 0 auto;
    max-width: 190px;
    text-align: center;
}
.fb_icon{float: left; padding: 0 15px 45px 15px;}
.yt_icon{float: left; padding: 0 15px 45px 15px;}
.ld_icon{float: left; padding: 0 15px 45px 15px;} 

footer{
    width: 100%;
    min-height: 70px;
    background: #000;
    text-align: center;
    margin:0 auto;
}
footer p{margin: 0;padding: 0; color: #b2b2b2; font-family: 'proxima_nova'; font-size: .8em; padding-top: 27px;}

footer p span{padding-left: 25px;}

footer p span a{color: #ff6d00;}

.logos_varios ul li{
    list-style-type: none;
    display: inline;
}
.logos_varios ul li img{
    width: 150px;
}

.f-nav{
    position: fixed; 
    left: 0; 
    top: 0; 
    width: 100%; 

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

.bolsadetrabajosecond{
    margin-top: 0 !important;
    background: #2394d8 !important;

    -o-transition:.5s;
    -ms-transition:.5s;
    -moz-transition:.5s;
    -webkit-transition:.5s;
    transition:.5s;
}

.top-encabezados-second{margin-top: 50px !important;}

.text-front-grid{
    position: absolute;
    left: 33%;
    top: 349px;
    font-family: 'proxima_nova_sbold';
    color: #fff;
    text-shadow: 1px 1px 4px #000;
    font-size: 2.3em;
    width: 465px;
    line-height: 1.1em;
    z-index: 5;
}

.form-container{
    width: 270px;
    text-align: center;
    float: left;
}

.first-container-home{
    margin: 0 auto;
    max-width: 1000px;
    padding-top: 35px;
}

.tree-columns{
    text-align: left;
    padding-top: 45px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 35px;
}
.column-container{
    font-family: 'proxima_nova_bold';
    width: 90%;
    margin: 0 auto;
}
.column-container h1{
    text-align: center;
}
.column-container h1 img{
    margin-top: -4px;
}
.tree-columns article{
    width: 30%;
    float: left;
    padding: 0 30px 40px 0;
}
.column-container p{
    font-family: 'proxima_nova';
    color: #666666;
}

.section-contact-columns{
    width: 100%;
}
.columns-contact{
    width: 45%;
    float: left;
    padding: 15px 15px 60px 0;
}
.columns-contact h1{
    width: 100%;
}
.columns-contact h4{
    font-family: 'arsmaquettepro-light-webfont';
    margin: 0;
}
.details{margin-left: 0;margin-right: 0;    
    text-decoration: none;
    color: #ff6d00;
    font-family: 'proxima_nova';
}
.details a{margin-left: 0;margin-right: 0;    
    text-decoration: none;
    color: #ff6d00;
    font-family: 'proxima_nova';
}

.services{
    width:290px;
    float: left;
    border: 1px solid #cecece;
    font-size: .9em;
    margin: 0 25px 25px 0;
}
.services figure{
    max-width: 290px;
    max-height: 190px;
    overflow: hidden;
}
.services p{
    text-transform: uppercase;
    text-align: center;
    height: 40px;
}

.wrapper-services{
    width: 96%;
    margin: 0 auto;
    text-align: center;
    height: auto;
}

.submit-button{
    color: white;
    background: #b62921;
    width: 214px !important;
    text-transform: uppercase;
}


/* ==========================================================================
    Responsive
   ========================================================================== */

@media only screen and (min-width : 768px) and (max-width : 1024px) and (orientation : portrait) { 
    .video-home{display: none;}
    .slider_home_prov {width: 120%;}
    .responsive_nav{display: none !important;}
    .top-encabezados-first{width: 60%;}
    .servicios-uno, .servicios-dos{float: none;margin: 0;padding: 0;}
    .tecnologia-uno{float: none; width: 60%; margin: 0 auto;}
    .offshore{float: none; width: 60%;margin: 0 auto;}
    .tree-columns article{width: 26%;}
    .wrapper-services{width: 85%;}
    .imagen-central img{width: 100%;}
    .wrapper-services figure img{width: 100%;}
    .seccion-tecnologia h1{width: 50%;}
}

@media only screen and (max-width: 767px){
    .nav_wrapper li{height: auto;}
    .site-principal-nav ul li{display: none;}
    .slider_home_prov img {width: 325%;    left: -670px;position: relative;}
    .slider_principal {height: 550px;}
    .patter_filter {height: 586px;}
    .top-encabezados h1{width: 90%;}
    .top-encabezados p{width: 75%;}
    #bolsadetrabajo{width: 100%; background: #2394d8 !important;margin: 0;text-align: center;}
    .bolsadetrabajo-home{width: 53%;margin: 0 auto;}
    .top-encabezados{margin-top: 120px;}
    .overslider{width: 250px; left: 19%;}
    .encabezados-servicios{margin-top: 20px !important;}
    .tecnologia-uno{width: 90%;}
    .offshore{width: 90%;}
    .seccion-tecnologia h1{width: 70%;}
    .seccion-tecnologia{width: 99%;}
    #video-home article iframe, .video-container object, .video-container embed {
        position: absolute;width: 85%;height: 25%;padding-left: 8%;}
    #video-home {
    width: 100%;
    height: auto;
    min-height: 420px;
    background-image: url("../img/backVideo.jpg");
    background-size: 260%;
    background-position-x: 70%;}
    .seccion-tecnologia{margin-top: 20px;}
    footer{min-height: 110px;}
    footer p{    width: 80%; margin: auto 0;text-align: center;    margin-left: 10%;}
    footer div{width: 96%;
    margin: 0 auto;
    text-align: center;}
    .frontmap .direccion{width: 85%;}
    .text-front-grid{display: none;}

    .top-encabezados-first h1{width: 90%;}
    .top-encabezados-first p{width: 75%;}
    .top-encabezados-first{margin-top: 120px;}

    .video-home{display: none;}
    .patter_filter{height: 550px;}
    .form-container{width: 100%;float: none;}
    .top-encabezados-second{margin-top: 0 !important;}
    .top-encabezados-first{margin-top: 60px !important;width: 100%;}
    .frontmap ul{margin:30px 0; }
    .tree-columns article {
    width: 100%;
    float: none;
    padding: 0 0px 40px 0;
    text-align: center;}
    .slider-pages{padding-top: 0;}
    .columns-contact {
    width: 100%;
    float: none;}
    .slider_home_prov img{width: 400%;}
    .wrapper-services{width: 290px;}
    .services{float: none;}
    .imagen-central{width: 100%;overflow: hidden;}
    .imagen-central img{width: 130%;}
    .wrapper-services figure img{width:100%;}
}





/* ==========================================================================
    Fonts
   ========================================================================== */


@font-face {
        font-family: 'proxima_nova';
        src: url('../fonts/proximanova-regular-webfont-webfont.eot');
        src: url('../fonts/proximanova-regular-webfont-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/proximanova-regular-webfont-webfont.woff') format('woff'),
        url('../fonts/proximanova-regular-webfont-webfont.ttf') format('truetype'),
        url('../fonts/proximanova-regular-webfont-webfont.svg') format('svg');
        font-weight: normal;
        font-style: normal;
}
@font-face {
        font-family: 'proxima_nova_sbold';
        src: url('../fonts/proximanova-sbold-webfont-webfont.eot');
        src: url('../fonts/proximanova-sbold-webfont-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/proximanova-sbold-webfont-webfont.woff') format('woff'),
        url('../fonts/proximanova-sbold-webfont-webfont.ttf') format('truetype'),
        url('../fonts/proximanova-sbold-webfont-webfont.svg') format('svg');
        font-weight: normal;
        font-style: normal;
}
@font-face {
        font-family: 'proxima_nova_bold';
        src: url('../fonts/proximanova-bold-webfont-webfont.eot');
        src: url('../fonts/proximanova-bold-webfont-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/proximanova-bold-webfont-webfont.woff') format('woff'),
        url('../fonts/proximanova-bold-webfont-webfont.ttf') format('truetype'),
        url('../fonts/proximanova-bold-webfont-webfont.svg') format('svg');
        font-weight: normal;
        font-style: normal;
}
@font-face {
        font-family: 'arsmaquettepro-light-webfont';
        src: url('../fonts/arsmaquettepro-light-webfont.eot');
        src: url('../fonts/arsmaquettepro-light-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/arsmaquettepro-light-webfont.woff') format('woff'),
        url('../fonts/arsmaquettepro-light-webfont.ttf') format('truetype'),
        url('../fonts/arsmaquettepro-light-webfont.svg') format('svg');
        font-weight: normal;
        font-style: normal;
}
@font-face {
        font-family: 'arsmaquettepro-regular-webfont';
        src: url('../fonts/arsmaquettepro-regular-webfont.eot');
        src: url('../fonts/arsmaquettepro-regular-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/arsmaquettepro-regular-webfont.woff') format('woff'),
        url('../fonts/arsmaquettepro-regular-webfont.ttf') format('truetype'),
        url('../fonts/arsmaquettepro-regular-webfont.svg') format('svg');
        font-weight: normal;
        font-style: normal;
}
@font-face {
        font-family: 'arsmaquettepro-bold-webfont';
        src: url('../fonts/arsmaquettepro-bold-webfont.eot');
        src: url('../fonts/arsmaquettepro-bold-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/arsmaquettepro-bold-webfont.woff') format('woff'),
        url('../fonts/arsmaquettepro-bold-webfont.ttf') format('truetype'),
        url('../fonts/arsmaquettepro-bold-webfont.svg') format('svg');
        font-weight: normal;
        font-style: normal;
}




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