/*! HTML5 Boilerplate v7.0.1 | MIT License | https://html5boilerplate.com/ */


/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */


/*
 * 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:
 * Eliminar texto-sombra en la selección resaltada:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 Los selectores de selección de prefijo de proveedor y regulares no se pueden combinar:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 Personaliza el color de fondo para que coincida con tu diseño.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}


/*
 * A better looking default horizontal rule
 Una regla horizontal por defecto con mejor aspecto
 */

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:
 Eliminar el espacio entre audio, lienzo, iframes,
  * Imágenes, videos y la parte inferior de sus contenedores:
 * 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.
 Permitir solo redimensionamiento vertical de textareas.
 */

textarea {
    resize: vertical;
}


/* ==========================================================================
   Browser Upgrade Prompt
   Mensaje de actualización del navegador
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    background-image: linear-gradient(to bottom, #fefefe 0%, #ffffff 100%);
    font-family: 'Open Sans', sans-serif;
}


/*selectoresglobales*/


/* :root {
    --amarillo: #fed618;
    --azul: #18629a;
    --primario: #4ab91e;
    --primariodb: #7ab91e;
    --rojo: #990606;
    --gris: #a5a5a5;
    --oscuro: #353535b0;
    --claro: #fefefe;
    --naranja: #f86c14;
} */

.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
}

h1 {
    color: var(--oscuro);
    text-align: center;
    text-transform: uppercase;
    margin: 1rem auto;
    font-size: 2.9em;
}

h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 3rem;
    color: #666666;
}

h3 {
    color: #666666;
    font-size: 1.6em;
    margin: 0;
    text-transform: uppercase;
}

header h3 {
    color: var(--claro)
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

.seccion {
    text-align: center;
    
    -webkit-box-shadow: 2px 15px 10px -10px #fe602a;
    -moz-box-shadow: 2px 15px 10px -10px #fe602a;
    box-shadow: 2px 15px 10px -10px #fe602a;
}

.seccion p {
    text-align: justify;
    color: var(--oscuro);
    padding: .5rem;
    font-weight: bold
}

p.numero {
    color: var(--primario);
    font-size: 4rem;
    display: block;
    margin: 0 0 10px 0;
    text-align: center
}


/*///////////nuevo menu ///////////////////////////
/////////////////////////////////////////////////*/

.menu_bar {
    display: none;
}

header nav {
    background: #fe5f2a9d;
    z-index: 1000;
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: flex;
    position: relative;
    justify-content: space-evenly;
}

header nav ul li:hover {
    border: 1px solid #fff;
    background-color: #fe5f2afd
    ;
}

header nav ul li a {
    color: #fff;
    display: block;
    text-decoration: none;
    padding: 20px;
}

header nav ul li a span {
    margin-right: 10px;
}

header nav ul li:hover .children {
    display: block;
}

header nav ul li .children {
    display: none;
    background: #fe5f2ac2;
    position: absolute;
    width: 150%;
    z-index: 1000;
}

header nav ul li .children li {
    display: block;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}

header nav ul li .children li a {
    display: block;
}

header nav ul li .children li a span {
    float: right;
    position: relative;
    top: 3px;
    margin-right: 0;
    margin-left: 10px;
}

header nav ul li .caret {
    position: relative;
    top: 3px;
    margin-left: 10px;
    margin-right: 0px;
}



/*///////////////fin nuevo menu//////////
/////////////////////////////////////////*/


/*===============
       header
   ===============*/

div.header {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

div.colum {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

div.imagenes {
    width: 90%;
}

div.textos {
    width: 90%;
    text-align: justify;
}

div.column {
    text-align: center;
}

@media only screen and ( min-width: 768px) {
    div.header {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    header img {
        max-width: 33%;
    }
    header img.imgprincipal {
        max-width: 66%;
    }
    div.colum {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    div.colum img {
        max-width: 100%;
        margin: 0 1rem;
    }
    div.imagenes {
        width: 45%;
    }
    div.textos {
        width: 45%;
    }
    section.informacionEvento {
        margin-top: 1rem;
        display: flex;
        flex-direction: row;
    }
}

h2 i {
    color: #000;
    margin: 0 1rem
}

div.informacionEvento p {
    font-size: 1.5em;
    color: var(--claro);
}

.fecha,
.lugar {
    text-align: center
}


/*============================================
        navegacion
  =======================================*/

div.barraMenu {
    background-color: #2e8da1;
    padding: 1rem;
    text-align: center;
}

div.redes-sociales {
    width: 100%;
}

.redes-sociales i {
    font-size: 2rem;
    color: #2539cf;
    padding: 0.2rem;
}

.redes-sociales img {
    height: 7rem;
    padding: 0.2rem;
}

section i span.fechatexto {
    padding: 0 3rem;
    font-size: 1rem;
}

section.informacionEvento i {
    font-size: 2em;
    color: #666666;
    margin: 1rem auto;
}


/*=========================================================
                  CONTENIDO PRINCIPAL
==========================================================*/

.contenedorPrincipal {
    width: 95%;
    margin: 0 auto;
}

@media only screen and (min-width:480px) {
    .contenedorPrincipal {
        width: 98%;
    }
}

@media only screen and (min-width:768px) {
    .contenedorPrincipal {
        width: 90%;
    }
}

@media only screen and (min-width:992px) {
    .contenedorPrincipal {
        width: 90%;
        max-width: 1050px;
    }
}


/*========================
presengtacion
========================*/

@media only screen and (min-width:768px) {
    .presentacion img {
        float: left;
        margin: 0.5rem 1rem;
    }
}

section span {
    font-size: 2.2em;
    font-weight: bold
}

section p {
    line-height: 2em;
    font-weight: 600;
}

p.firma {
    color: rgb(255, 255, 255);
    float: right;
    margin: 0 2em 2em 0;
    font-size: 1.5em;
    display: grid;
    text-align: -webkit-center;
}


/*===================================
    seccion donde
    ====================*/

.parallax {
    width: 100%;
    height: 250px;
    position: absolute;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.campo {
    position: relative;
    background-image: url(../img/campodroneg.jpg);
    background-repeat: no-repeat;
}

.balsetas p {
    font-size: 1rem;
    text-align: center;
    color: #666666;
    font-weight: bold;
}

div.mapa {
    height: 250px;
    width: 90%;
    margin-top: 2em;
    margin: 0.5rem auto;
    z-index: 0;
}

.contacto {
    width: 90%;
    margin: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-image: linear-gradient(0deg, #faf9f9 0%, #faf7ed 80%);
}

.contacto i {
    font-size: 2rem;
    color: rgb(56, 170, 56);
    margin-left: 1rem
}

.contacto span {
    font-size: 1.3rem;
    font-weight: 200;
    color: #666666;
    margin-left: 1rem
}

@media only screen and (min-width:768px) {
    div.mapa {
        height: 250px;
        width: 50%;
        margin-top: 2em;
        margin: 0.5rem auto;
        z-index: 0;
    }
    .contacto {
        width: 50%;
        margin: 0 0 2rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        background-image: linear-gradient(0deg, #f7f1f1 0%, #fff 80%);
    }
}


/*====================================
*********BASES************************
====================================*/

.accordion {
    background-color: #eee;
    color: #666666;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    transition: 0.4s;
}

.accordion i {
    color: #fe602abd;
}

.active,
.accordion:hover {
    background-color: #666666a2;
    color: #fff;
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

h3.textoh3 {
    font-size: 1.2rem;
    line-height: 3rem;
    margin-bottom: 1rem;
}

p i.fas {
    color: #fe602a;
}

div.cont_inscr {
    text-align: center;
    color: #666666;
    font-size: 2rem;
    margin: 2rem;
}

div.cont_inscr a {
    color: #666666;
    text-decoration: none;
    cursor: pointer;
    border: solid #fe602a 2px;
    padding: 0.8rem;
}

div.cont_inscr a:hover {
    color: white;
    background-color: #fe602a;
    border: solid #666 2px;
}


/*************************************
**********descripcion campus*********
************************************/

.contenedorcover {
    position: relative;
}

h3.textocover {
    position: absolute;
    top: 1%;
    left: 30%;
    color: #fff;
    font-size: 1.2rem;
}

@media only screen and (min-width:768px) {
    h3.textocover {
        position: absolute;
        top: 44%;
        left: 35%;
        color: rgb(255, 255, 255);
        font-size: 2rem;
    }
}


/*=================================
PROGRAMA
==============================*/

h2#programa {
    color: #fff;
    background-color: #fe602a;
    font-size: 1.5rem;
}

#programa i {
    color: #fff;
}

div.contenedor_info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1rem 0;
}

div.contenedor_info1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.subcont_info1 {
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.subcont_info2 {
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.subcont_info3 {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subcont_info3 i,
.subcont_info2 i,
.subcont_info1 i {
    font-size: 2rem;
    color: #666666;
}

.subcont_info3 img,
.subcont_info2 img,
.subcont_info1 img {
    margin: 1rem auto;
}

.subcont_info2 p span {
    font-size: 2rem;
    color: #2539cf;
    font-weight: 600;
}

p.destaca,
p span.destaca {
    font-size: 1.2rem;
    color: #2539cf;
    font-weight: 600;
}

p.normal {
    letter-spacing: 2px;
    margin-left: 1rem;
}

p.normalgrande {
    letter-spacing: 2px;
    font-size: 1.2rem;
    text-align: center;
}

@media only screen and (min-width:768px) {
    div.contenedor_info {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 3rem 0;
    }
    div.subcont_info1 {
        width: 95%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }
    .subcont_info2 {
        width: 48%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    form .subcont_info2 {
        width: 48%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
    }
    div.subcont_info3 {
        width: 33%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
}


/*=================================
INSCRIPCION
==============================*/

div.parte_form {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

label {
    font-weight: 600;
}

input,
select {
    margin: 1rem;
}

input {
    border: none;
    border-bottom: solid #fe602a 1px;
}

select {
    border: none;
    border-bottom: solid #fe602a 1px;
}

div.elecionCampus {
    margin: 1rem;
    padding: 1rem;
    border: solid 1px #fe602a;
}

.enviar {
    text-align: center;
}

div.enviar input {
    background-color: #fe602ad2;
    color: #fff;
    padding: 0.6rem 1rem;
}

div.enviar input:hover {
    cursor: pointer;
    background-color: #fe602a;
}

div.cont_form_info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1rem 0;
}

div.subcont_form_info1 {
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

div.subcont_form_info2 {
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media only screen and (min-width:768px) {
    div.cont_form_info {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin: 3rem 0;
    }
    div.subcont_form_info2 {
        width: 48%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: baseline;
    }
    div.parte_form {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    label {
        text-align: end;
    }
    /* form .subcont_form_info2 {
        width: 48%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
    } */
}

p.precioFinal,
p.precioFinal span {
    font-size: 2rem;
}

div.TallasPortero,
div.TallasFutbol,
div.juegasEquipo,
div.pecioOculto {
    display: none;
}

h1.alerta {
    font-size: 2rem;
    color: #b30707;
    font-style: italic;
    text-decoration-line: underline;
}

nav.menu-programa {
    /* border-bottom:3px solid var(--primariodb); */
    display: flex;
    flex-direction: column;
    /* padding: 1rem; */
}

.programa {
    max-width: 600px;
    margin: 0 auto;
    -webkit-box-shadow: 10px 10px 5px 0px rgba(102, 102, 102, 1);
    -moz-box-shadow: 10px 10px 5px 0px rgba(102, 102, 102, 1);
    box-shadow: 10px 10px 5px 0px rgba(102, 102, 102, 1);
}

.contenido-programa {
    background-color: #6666660c
}

.informacion {
    /* margin: 5rem 0; */
    background-color: mintcream;
}

.ocultar {
    display: none;
}

.programa a {
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 1rem 0 0;
    color: #666666;
    font-weight: bold;
    width: 100%;
    padding: 1.2rem;
}

.borde {
    border-top: 1px solid;
    border-right: 1px solid;
    border-left: 1px solid;
    border-bottom: 1px solid;
    background-color: #8ee42400;
    transition: all .5s;
}

.detalle-evento h3 {
    margin-top: 3rem;
}

.programa i {
    font-size: 1.5rem;
    color: #fe602a;
}

.horarios span {
    font-size: 1.2rem
}

.detalle-evento li {
    margin-left: 1rem
}

@media only screen and (min-width:768px) {
    nav.menu-programa {
        flex-direction: row;
        ;
        justify-content: center
    }
    .borde {
        border-top: 1px solid;
        border-right: 2px solid;
        border-left: 2px solid;
        border-bottom: none;
        background-color: mintcream;
        transition: all .5s;
    }
}


/*=============================
        patrocinadores
   ========================*/

div.patrocinadores img {
    height: 150px;
    padding: 1rem;
}

@media only screen and (min-width:1050px) {
    .patrocinadores {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 2rem;
    }
}

@media only screen and (min-width:630px)and (max-width:1049px) {
    .patrocinadores {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 2rem;
    }
}

.preFooter {
    height: 30px;
}


/*===============
footer
===============*/

.pie-pagina {
    /* background-color: rgba(102, 102, 102, 0.253); */
}

.pie-pagina>div {
    padding: 2rem
}

.pie-pagina h3 {
    text-transform: uppercase;
    font-family: 'PT sans', sans-serif;
    color: #2539cf;
}

.pie-pagina span {
    color: #666666;
}

@media only screen and (min-width:768px) {
    footer.pie-pagina {
        display: grid;
        grid-template-columns: repeat( 8, 1fr);
        grid-gap: 1rem;
    }
    .sobre-nosotros {
        grid-column: 2/3
    }
    .ultimos-tweets {
        grid-column: 3/6
    }
    .redes-sociales-nav {
        grid-column: 6/8
    }
    .copyright {
        grid-column: 1/9;
        grid-row: 2/3
    }
}

.redes-sociales-nav a {
    color: #2539cf;
    font-size: 2em;
    padding: 20px 20px 0px 0px
}

.pie-pagina p {
    color: white;
    font-family: 'PT sans', sans-serif;
    font-size: 0.8em
}

.ultimos-tweets ul li p {
    color: #2539cf;
    word-break: break-all;
    font-size: 0.8em;
}

.copyright {
    padding: 10px;
    background-color: #fe602a;
    text-align: center;
    margin: 0px
}

.copyright span {
    color: white;
    text-transform: uppercase;
}


/*==================================
   SOBRE MI
============================*/

div.contenedorSobremi {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 1rem;
}


/* div.biografia{
grid-column: 2/12;
} */

div.trayectoria {
    grid-column: 2/12;
    grid-row: 2/3;
    margin: 0 auto;
}

div.video {
    margin: 2rem auto;
}

video {
    max-width: 320px
}

@media only screen and (min-width:768px) {
    video {
        width: 800px;
    }
}

div.imagenesSlide {
    grid-column: 2/12;
    grid-row: 1/2;
}

div.imagenesSlide2 {
    grid-column: 2/12;
    grid-row: 1/2;
}

@media only screen and (min-width:768px) {
    /* div.biografia {
    grid-column: 6/12;
    grid-row: 1/2;
  } */
    div.trayectoria {
        grid-column: 1/8;
        grid-row: 1/4;
        display: grid;
        grid-template-columns: repeat(2, 1fr)
    }
    div.imagenesSlide {
        grid-column: 8/13;
        grid-row: 2/3;
    }
}

div.trayectoria ul li {
    border-bottom: solid #fe602a 0.5rem;
    margin: 1rem;
}

div.trayectoria p {
    font-weight: bold;
    font-size: 1rem;
    text-align: left;
}

div.trayectoria p span {
    font-style: italic;
}

.swal2-styled.swal2-deny {
    border: 0;
    border-radius: .25em;
    background: initial;
    background-color: #fe602a;
    color: #fff;
    font-size: 1.0625em;
}

.swal2-styled.swal2-confirm {
    border: 0;
    border-radius: .25em;
    background: initial;
    background-color: #2539cf;
    color: #fff;
    font-size: 1.0625em;
}

.swal2-title {
    position: relative;
    max-width: 100%;
    margin: 0 0 .4em;
    padding: 0;
    color: #666666;
    font-size: 1em;
    font-weight: 200;
    text-align: left;
    text-transform: none;
    word-wrap: break-word;
}


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


/*
 * Hide visually and from screen readers
 Ocultar visualmente y desde lectores de pantalla.
 */

.hidden {
    display: none !important;
}


/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
Para contenido largo, los avances de línea no se interpretan como espacios y ancho pequeño
* hace que el contenido se ajuste a 1 palabra por línea:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
    /* 1 */
}


/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
Extiende la clase .visuallyhidden para permitir el elemento
* para poder enfocar cuando se navega a través del teclado:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}


/*
* Hide visually and from screen readers, but maintain layout
Oculte visualmente y de lectores de pantalla, pero mantenga el diseño
*/

.invisible {
    visibility: hidden;
}


/*
* Clearfix: contener flotadores
*
* Para navegadores modernos.
* 1. El contenido del espacio es una forma de evitar un error de Opera cuando
* El atributo `contenteditable` se incluye en cualquier otra parte del documento.
* De lo contrario, hace que aparezca espacio en la parte superior e inferior de los elementos.
* que reciben la clase `clearfix`.
* 2. El uso de `table` en lugar de` block` solo es necesario si se usa
* `: before` para contener los márgenes superiores de los elementos secundarios.
*/

.clearfix:before,
.clearfix:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after {
    clear: both;
}


/* ==========================================================================
   EJEMPLO Consultas de medios para diseño responsivo.
    Estos ejemplos anulan los estilos primarios ('móvil primero').
    Modificar según lo requiera el contenido.
   ========================================================================== */

@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:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster */
        -webkit-box-shadow: none !important;
        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 {
        white-space: pre-wrap !important;
    }
    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;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        page-break-after: avoid;
    }
}