/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.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{
    font-family:Arial, Helvetica, sans-serif;
}

h1, h2, .h1, .h2{
    font-family: 'Muli', Arial, Helvetica, sans-serif;
    margin:0.2em 0;
}

strong{
    font-weight:bold;
}

em{
    font-style:italic;
}

p{
    text-align:justify;
}
a{
    text-decoration:none;
}
div{
    display:block;
}

img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
}

.container {
    margin:0 auto;
    padding-left: 15px;
    padding-right: 15px;
}
.row {
    margin-left: -15px;
    margin-right: -15px;
}
.slide {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 50px 0;
    background-color: #fff;
}
.active{
    color: #32324a;
}
.black{
    background-color: #333;
}
.centrado{
    text-align:center;
}
.oculto{
    display:none;
}

.cover{
    background-size: cover !important;
    background-position: center;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
}

.fixed {background-attachment: fixed;}

.auto {
    background-position: center;
    background-size: auto;
    -webkit-background-size: auto;
    -moz-background-size: auto;
    -o-background-size: auto;
} .mobile {
    background-size: 100%;
}

/*Cookies*/
#avisoCookies{
    width: 100%;
    /*height: 100px;*/
    bottom: -54px;
    left: 0px;
    background-color: #333;
    position: fixed;
    z-index: 9999;
}
#avisoCookies p{
    font-size: 13px;
    padding-top: 10px;
    text-align: center;
    text-indent: 0;
    margin: 0;
    color: #fff;
} #avisoCookies a{color: #31314a;}

#avisoCookies a.btn{
    display: block;
    text-align: center;
    color: #fff;
    background-color: #31314a;
    margin: 15px;
    margin-bottom: 0px;
    padding: 5px 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px; 
    font-size: 12px;
    text-decoration: none;
}
#saltolinea{display: none;}

/* Menú superior */
#nav-main{
    width:100%;
    position: fixed;
    top:0;
    left:0;
    background-color: #fff;
    font-size: 18px;
    line-height: 1.6em;
    text-align: center;
    /*overflow:hidden;*/
    box-sizing:border-box;
    border-bottom:5px solid #32324a;
    border-top:5px solid #32324a;
    z-index:999;
    /*box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.2);*/
}
    #nav-main #logo-container{
        width:100%;
        height: 49px;
        float:none;
        position: relative;
        text-align:left;
        background-color: #32324a;
    }
    #nav-main #logo-container div{
        height: 100%;
        text-align: center;
    }  
        #nav-main #logo-container img{
            max-width:49px;
            width:auto;
            height:100%;
            cursor:pointer;
            /*margin-left: 30px;*/
        }
    #navigation{
        width:100%;
        height: 100%;
        background-color:#000;
        float:none; 
        padding:0;
        margin:0;
        display:none;
    }
        #navigation ul{
            padding:0;
            margin:0;
            list-style: none;
        }
        #navigation ul li{
            color: #FFF;
            height:45px;
            position: relative;
            text-align:left;
            padding:0 2em;
        }
        #navigation ul > li {
            float: none;
        }
        #navigation ul > li > a {
            color: rgba(255,255,255,0.7);
            line-height: 16px;
            font-size: 13px;
            display: block;
            font-family: 'Muli', Arial, Helvetica, sans-serif;
            /*height: 18px;*/
            padding: 0.7em 0 0;
        }
        #navigation ul > li:last-child > a {
            border-bottom:none;
        }
        #navigation ul > li > a:hover, #navigation .active, #navigation > li:hover > a{
            color:#fff;
            text-decoration:none;
        }

#mobile-menu-button {
    position: absolute;
    top: 0;
    right: 0.5em;
    width: 40px;
    height: 70px;
    line-height: 50px;
    text-align: center;
    font-size: 30px;
    cursor: pointer;
    color: #FFFFFF;
}
    .fa {
        display: inline-block;
        font-family: 'FontAwesome';
        font-style: normal;
        font-weight: normal;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
/*Header */
#header{
    position: absolute;
    left: 0;
    top: 0;
    width:100%;
    height:450px;
    color:#FFF;
    display:table;
}
    #header div {
        /*display: table-cell;
        vertical-align: middle;*/
        width:100%;
        position: absolute;
        bottom:10%;
        left:0;
        text-align: center;
    }
    #header .h1, #header .h2{
        text-align: center;
    }
    #header .h1{
        font-size: 35px;
        text-shadow: 2px 2px 10px #333;
        font-weight: bold;
    }
    #header .h2, #header h1{
        font-family:Arial, Helvetica, sans-serif;
        font-size: 28px; 
        font-weight: normal;
        text-shadow: 2px 2px 10px #333;
    }

#headerbg{
    width:100%;
    height:450px;
    position: relative;
    background-color: #000;
    z-index: -1;
}
#fondo1, #fondo2, .overlay {width:100%; height:100%; position: absolute; left: 0; top: 0;}
/*.overlay{position: fixed;}*/
#fondo1 {z-index: 2; opacity: 0;}
#fondo2 {z-index: 1; display: none;}
.overlay{background:url(../img/pattern1.png) repeat; z-index: 3; opacity: 1;}

#servicios-slide, #contacto, #introduccion-slide{
    border-top:5px solid #32324a;
    border-bottom:5px solid #32324a;
}
    .servicios-header h2{
        padding: 15px 0;
        font-size: 18px;
        color:#32324a;
    }
    #servicios-slide .contenido p{
        font-size: 17px;
        font-style: italic;
    }
    #servicios-slide .col3{
        margin-bottom:20px;
    }

.col2, .col3{width: 100%; text-align: center; float: none; box-sizing:border-box; padding:0;}
.col2 p, .col3 p{text-align: justify; font-size: 0.9em; margin-top: 0;}
.col2 h3, .col3 h3{margin: 0.8em;}
.col2 a, .col3 a{text-decoration: none; color: #222;}
.col2 a:hover, .col3 a:hover{text-decoration: underline;}

.col2 p, .col3 p {
  text-align: justify;
  font-size: 1.2em;
  margin-top: 0;
  font-style: italic;
}
.equipo_cuadro{
    background-color:#ebeded;
    margin-bottom:25px;
}
.foto_equipo, .info_equipo{
    float:none;
    position: relative;
    width:100%;
    height:auto;
}
    .foto_equipo img{
        width:100%;
        height:auto;
        max-width:528px;
    }
    .foto_equipo.arrow_left::before, .foto_equipo.arrow_right::before{
        width: 0;
        height: 0;
        position: absolute;
        z-index: 9;
        content: "";
        border-right: 18px solid transparent;
        border-top: 18px solid #ebeded;
        border-left: 19px solid transparent;
        border-bottom: 0;
        left: auto;
        right: 20px;
        top: 0;
    }
.info_equipo{
    text-align:center;
}
    .info_equipo h4, .info_equipo h3{
        font-family: 'Muli', Arial, Helvetica, sans-serif;
        color:#32324a;
        padding:0 20px;
    }
    .info_equipo h3{
        font-size:18px;
        font-weight:bold;
        /*margin-top: 240px;*/
    }
    .info_equipo h4{
        font-size:15px;
        font-weight:normal;
    }
#footer{
    background-color:#32324a;
    color:#FFF;
    text-align:center;
}
    #social-footer{
        padding:1em 0;
    }
        #social-footer .fa{
            color:#FFF;
            font-size:24px;
            margin:0 0.2em;
        }
    #footer h5{
        font-size:24px;
        font-family: 'Muli', Arial, Helvetica, sans-serif;
        font-weight:normal;
        margin:0.4em 0;
        text-align:center;
    }
    #footer p{
        font-family: 'Muli', Arial, Helvetica, sans-serif;
        font-size:16px;
        margin:0.3em 0;
        text-align:center;
    }
    #footer #enlaces{
        font-weight:bold;
    }
    #footer p a{
        color:#FFF;
        text-decoration:none;
    }
    #footer p a:hover{
        text-decoration:underline;
    }
    #footer #enlaces a{
        padding:0 20px;
        display:block;
    }

#proyectos-content{
    position: relative;     
}
    #proyectos-content img{
        width: 100%;
        height: 100%;
    }
    .column-width-demo2 .grid-sizer { 
        width: 100%; 
    }
    .column-width-demo2 .item { 
        width: 100%; 
        position: relative;
        color: #FFF;
        text-align: center;
        overflow:hidden;
        float: left;
        background-color: #000;
    }
    .column-width-demo2 .item a:hover img{
        opacity:0.9;
        -moz-transform: scale(1.2) rotate(3deg);
        -webkit-transform: scale(1.2) rotate(3deg);
        -o-transform: scale(1.2) rotate(3deg);
        -ms-transform: scale(1.2) rotate(3deg);
        transform: scale(1.2) rotate(3deg);
    }
        .column-width-demo2 .item img{ 
            height: auto;
            max-width:440px;
            max-height:338px;
            opacity:1;
            -webkit-transition: all 0.5s ease-out;
            transition: all 0.5s ease-out;
        }
#instalaciones-slide{
    background-color:#32324a;
    color:#FFF;
}
    #instalaciones-slide p {
        font-size: 20px;
        font-style: italic;
        font-family: 'Muli', Arial, Helvetica, sans-serif;
    }
#instalaciones-slide.black{
    background-color:#333;   
}
    .black p {
        text-align:center;
        color:#FFF;
    }
#map-canvas{
    width:100%;
    height:350px;
}

#contacto{
    /*background-color: #00a0e3;*/
} 
.head-slide h1, #contacto h1, #contacto p, #contacto .fa, #footer-slide .fa{color: #32324a;}

#head-contacto, .head-slide{
    text-align:center;
}

#contacto .fa {font-size: 30px;}

#formcontacto{
    max-width: 600px;
    margin: 0 auto;
}

/*#contacto .col3{
    width: 100%;
}*/

.contact-col, .contact-hor{
    width:100%;
    position: relative;
    min-height: 1px;
}
    #contacto textarea {
        height: 185px;
        width: 100%;
    }
    #contacto input[type="text"], #contacto textarea, .style-input, .comment-form input[type="text"], .comment-form textarea {
        background-color: #fff;
        padding: 15px;
        border: 2px solid #32324a;
        border-radius: 3px;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        font-family: 'Open Sans', sans-serif;
        font-size: 13px;
        color: #000;
    }
    #contacto input, #contacto textarea {
        width: 95%;
        margin-bottom: 15px;
    }

    #submit-button-contact {
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        height: 45px;
        border-radius: 3px;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        width: 100%;
        margin-bottom: 50px;
    }

    #contacto input[type="submit"] {
        color: #32324a;
        width: 200px;
        font-size: 15px;
        line-height: 20px;
        font-weight: 700;
        padding: 10px 36px;
        border: none !important;
        background-color: transparent !important;
        border-radius: 5px;
        box-shadow: 0 0 0 2px #32324a inset;
        overflow: hidden;
        display: inline-block;
        vertical-align: middle;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        position: relative;
        -webkit-transition: color 0.25s ease-out,background-color 0.25s ease-out;
        transition: color 0.25s ease-out,background-color 0.25s ease-out;
    }

    #contacto p {
        font-size:1em;
        padding:1em 0;
        text-align:center;
    }

    input#ResultadoCaptcha{
        width: 125px;
        height: 35px;
        padding: 1px 0 !important;
        margin-right: 50px;
        float: left;
    }

    #imgCaptcha{
        float:left; margin-right:10px; margin-bottom: 5px;
    }

    .ico_trat {
        display: block;
        width: 90px;
        height: 90px;
        /*background: url(../img/fondo_icon.png) center center no-repeat;*/
        background-color: #32324a;
        border-radius:100%;
        margin: 0 auto;
        /* font-size: 50px; */
        line-height: 100px;
        text-align: center;
        color: #fff;
        -webkit-transition-duration: 0.25s;
        -moz-transition-duration: 0.25s;
        -o-transition-duration: 0.25s;
        transition-duration: 0.25s;
    }
        .ico_trat:hover{
            background-color:#C0C0C0;
        }
        .ico_trat .fa{
            font-size:30px;
            color:#FFF;
        }
    .trat_info{
        float:none;
    }
    h2.trat_title{
        padding: 10px 20px 5px;
        /*font-size: 22px;*/
        color: #32324a;
        float: none;
        text-align:center;
    }
    .content-wrapper a.button {
        color: #FFF;
        text-decoration: none;
    }
    .content-wrapper a {
        color: #40c3ec;
        text-decoration: underline;
    }
    a.watch-all {
        background: #32324a;
        /*margin: 8% 0 0;*/
    }
    .button {
        padding: 0px 18px;
        border-radius: 6px;
        margin: 16px 0px 20px;
        color: #FFF;
        height: 36px;
        line-height: 37px;
        text-decoration: none;
        font-weight: 200;
        display: inline-block;
        zoom: 1;
        font-size:13px;
        text-transform: capitalize;
        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }
    .twentytwenty-wrapper.twentytwenty-horizontal {
        padding-bottom: 35px;
    }
    #container1{
        width:100%;
        /*margin:0 auto;*/
    }
    #container2{
        width:250px;
        margin: 0 auto;
    }
    .video_tratamiento{
        width:100%;
    }
    .img-dcha{
        float:none;
    }
    .implantes_c {
        width: 100%;
        height: auto;
        position: relative;
        float: none;
        text-align: center;
    }
    .implantes_c img {
        border-radius:100%;
    }
    .implantes_c h3 a {
        color:#FFF;
    }

section article .fullcontent{max-width:900px; margin:50px auto; text-align:justify;}
section article .fullcontent ul{list-style-type: circle;}
section article .fullcontent ul li{margin: 10px 0; list-style-type: circle;}

.autor {font-size: 12px; margin-top: 10px;}
@media (min-width: 380px){
    .foto_equipo, .info_equipo{
        width:50%;
    }
    .arrow_right{
        float:right;
    }
    .arrow_left{
        float:left;
    }
    .foto_equipo.arrow_left::before{
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
        border-right: 19px solid #ebeded;
        right: 0;
        top: 20px;
    }
    .foto_equipo.arrow_right::before{
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
        border-left: 19px solid #ebeded;
        left: 0;
        top: 20px;
    }
    .info_equipo h3{
        margin-top: 50px;
    }
    .column-width-demo2 .grid-sizer { width: 50%; }
    .column-width-demo2 .item { width: 50%; }
    .info_equipo h3 {
        margin-top: 22px;
    }
    .info_equipo h4 {
        font-size: 13px;
    }
    .button {
        margin: 0px;
    }
    #container1{
        width:380px;
        margin:0 auto;
    }

    #avisoCookies a.btn{
        float: right;
        margin: 25px 15px;
    }
}
@media (min-width: 480px){
    .info_equipo h3{
        margin-top: 50px;
    }
    .info_equipo h4 {
        font-size: 15px;
    }
    #contacto input[type="submit"] {
        float: right;
    }
    .button {
        margin:16px 0px 20px;
    }
    #container1{
        width:400px;
    }
}

@media (min-width: 680px){
    #avisoCookies{height: 60px;}
    #avisoCookies a.btn{
        margin: 15px;
    }
}

@media (min-width: 768px){
    .container {
        max-width: 750px;
    }
    #nav-main{
        height: 40px;
        /*font-weight: bold;*/
        /*background:#FFF url(../img/borde-menu.jpg) repeat-x;*/
        border-bottom:5px solid #32324a;
        border-top:none;
    }
        #nav-main #logo-container{
            width: 132px;
            height: 108px;
            float: none;
            position: absolute;
            top: 0;
            left: 5%;
        }
        #nav-main #logo-container img{
            width: 88px;
            height: 88px;
            margin-top: 9px;
            max-width:88px;
        }
        #navigation{
            width:64%;
            height: 100%;
            float:right; 
            background:none;
            display:block !important;
            visibility: visible;
        }
            #navigation ul {
                width:100%;
                height:100%;
                /*margin-left:2em;*/
            }
            #navigation ul > li {
                height:100%;
                float: left;
                margin-left: 5px;
                padding: 0 0.75em;
            }
            #navigation ul > li > a {
                color:#666;
                font-size: 0.7em;
                font-weight:bold;
                height: 34px;
                /*padding:3em 0;*/
            }
            #navigation ul li .active, #navigation ul > li > a:hover{
                border-top-color: #32324a;
                color: #32324a;
            }
    #mobile-menu-button {
        display:none;
    }
    #headerbg{
        height:100%;
    }
    #header{
        height:100%;
    }
        /*#header .h1{
            font-size: 65px;
        }
        #header .h2{
            font-size: 40px; 
        }*/
    .col2{
        width:50%;float:left;
    }
    .col3{width: 33%; float: left;}
    .col_right{padding-right:15px;}
    .col_left{padding-left:15px;}
    #servicios-slide .contenido p{
        text-align:center;
    }
    .info_equipo h3{
        font-size:24px;
        margin-top: 140px;
    }
    .info_equipo h4{
        font-size:20px;
    }
    .column-width-demo2 .grid-sizer { width: 33.33%; }
    .column-width-demo2 .item { width: 33.33%; }
    #map-canvas{
        height:600px;
    }
    #colnombre {
        margin-right: 20px;
    }
    .contact-col{
        width:47%;
        float:left;
    }
    #instalaciones-slide p {
        font-size: 22px;
    }
    #footer #enlaces a{
        display:inline;
    }
    .trat_info{
        float:left;
    }
    h2.trat_title{
        text-align:left;
        padding: 20px 0;
        margin-left: 100px;
    }
    .button {
        padding: 0 29px;
        height: 46px;
        line-height: 48px;
        font-size:15px;
    }
    .video_tratamiento{
        width:100%;
        max-width:768px;
        text-align:center;
    }
    .img-dcha{
        float:right;
        margin-left:20px;
    }
    #container2{
        width:600px;
    }
    .implantes_c {
        width: 375px;
        float: left;
    }
}

@media (min-width: 800px){
    #saltolinea{display: block;}
}

@media (min-width: 870px){

}
@media (min-width: 990px){
    #navigation{
        width:50%;
        height: 100%;
        float:right; 
        background:none;
        display:block !important;
        visibility: visible;
    }
}

@media (min-width: 1200px){
    #nav-main #logo-container{
        left: 10%;
    } 
    #navigation{
        width:44%;
    }
    #servicios-slide .container, #equipo-slide .container, #contacto .container{
        max-width:1050px;
    }
    .col_right{padding-right:25px;}
    .col_left{padding-left:25px;}
    .servicios-header h2{
        font-size: 20px;
    }
    /*#servicios-slide .contenido p{
        font-size: 20px;
    }*/
    .info_equipo h3{
        margin-top: 240px;
    }
    .column-width-demo2 .grid-sizer { width: 25%; }
    .column-width-demo2 .item { width: 25%; }

    #avisoCookies{
        height:auto;
    }
    #avisoCookies p{
        padding:15px;
    }
    #header .h1{
        font-size: 65px;
    }
    #header .h2{
        font-size: 40px; 
    }
}

@media (min-width: 1510px){
    #nav-main #logo-container{
        left: 15%;
    } 
    .column-width-demo2 .grid-sizer { width: 20%; }
    .column-width-demo2 .item { width: 20%; }
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * 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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (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;
    }
}

/*ANIMATION*/
@keyframes afc{from{opacity:0;transform:scale(0.2)}to{opacity:1;transform:scale(1)}}
@-webkit-keyframes afc{from{opacity:0;-webkit-transform:scale(0.2)}to{opacity:1;-webkit-transform:scale(1)}}
@-moz-keyframes afc{from{opacity:0;-moz-transform:scale(0.2)}to{opacity:1;-moz-transform:scale(1)}}
@-o-keyframes afc{from{opacity:0;-o-transform:scale(0.2)}to{opacity:1;-o-transform:scale(1)}}
@-ms-keyframes afc{from{opacity:0;-ms-transform:scale(0.2)}to{opacity:1;-ms-transform:scale(1)}}



.animation.afc {
    animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;opacity:1;
    -webkit-animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;opacity:1;
    -moz-animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;opacity:1;
    -o-animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;opacity:1;
    -ms-animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;animation:1s cubic-bezier(1,0,0,1) 0s normal backwards 1 afc;opacity:1;
} 

.animation {
    position: relative;
    filter: alpha(opacity=0);
    opacity: 0;
}
    .d2.afc{
        -webkit-animation-delay: 0.2s;
        -moz-animation-delay: 0.2s;
        -o-animation-delay: 0.2s;
        -ms-animation-delay: 0.2s;
        animation-delay: 0.2s;
    }

    .d3.afc {
        -webkit-animation-delay: 0.3s;
        -moz-animation-delay: 0.3s;
        -o-animation-delay: 0.3s;
        -ms-animation-delay: 0.3s;
        animation-delay: 0.3s;
        /*clear: both;*/
    }

    .d4.afc {
        -webkit-animation-delay: 0.4s;
        -moz-animation-delay: 0.4s;
        -o-animation-delay: 0.4s;
        -ms-animation-delay: 0.4s;
        animation-delay: 0.4s;
    }