/*! HTML5 Boilerplate v5.3.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
   ========================================================================== */
* {
    /* font-family: Lato, sans-serif!important; */
    font-family: 'Alegreya Sans', sans-serif!important;
}

body,
html {
    height: 100%;
}


header {
    text-align: center;
    padding: 10px;
    height: 100%;
    position: relative;
}

header:before,
header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

header:before {
    background-image: url(../img/G0072912.JPG);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
}

header:after {
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.center header {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

header > span,
header > h1 {
    display: block;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

header > h1 {
    margin-top: 10%;
}

header a {
    text-decoration: none;
    color: #fefefe;
    text-transform: none;
}

header .msg {
    font-size: 30px;
    margin-top: 10%;
    text-align: center;
}

.container {
    overflow: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}

.registration {
    background-color: #fff;
    border-radius: 3px;

    position: fixed;
    bottom: 10%;
    left: 10%;

    padding: 25px;
}

.registration h1 {
    font-size: 16px;
}

/* FORMULARIO */

.form-style-10{
    /*width:450px;*/
    background: #FFF;
    border-radius: 10px;
    -webkit-border-radius:10px;
    -moz-border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.13);
    -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.13);
    -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.13);
}
.form-style-10 .inner-wrap{
    padding: 20px;
    background: #F8F8F8;
    border-radius: 6px;
    margin-bottom: 15px;
}

.form-style-10 .inner-wrap.boton {
    margin-bottom: 0;
}

.form-style-10 h1{
    background: #2A88AD;
    padding: 20px 30px 15px 30px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12);
    font: normal 30px 'Bitter', serif;
    -moz-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17);
    -webkit-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17);
    box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17);
    border: 1px solid #257C9E;
    margin: 0;
}
.form-style-10 h1 > span{
    display: block;
    margin-top: 2px;
    font: 13px Arial, Helvetica, sans-serif;
}
.form-style-10 label{
    display: block;
    font: 13px Arial, Helvetica, sans-serif;
    color: #888;
    margin-bottom: 15px;
    vertical-align: top;
}
.form-style-10 input[type="text"],
.form-style-10 input[type="date"],
.form-style-10 input[type="datetime"],
.form-style-10 input[type="email"],
.form-style-10 input[type="number"],
.form-style-10 input[type="search"],
.form-style-10 input[type="time"],
.form-style-10 input[type="url"],
.form-style-10 input[type="password"],
.form-style-10 textarea,
.form-style-10 select {
    display: block;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    -webkit-border-radius:6px;
    -moz-border-radius:6px;
    border: 2px solid #fff;
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.33);
    -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.33);
    -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.33);
    color: #000;
}

.form-style-10 .section{
    font: normal 20px 'Bitter', serif;
    color: #2A88AD;
    margin: 10px 20px;
    margin-bottom: 5px;
}

.form-style-10 .section span {
    display: none;
}

.form-style-10 input[type="button"],
.form-style-10 input[type="submit"],
.result .boton {
    background: #2A88AD;
    padding: 8px 20px 8px 20px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12);
    font: normal 30px 'Bitter', serif;
    -moz-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17);
    -webkit-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17);
    box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17);
    border: 1px solid #257C9E;
    font-size: 15px;
}
.form-style-10 input[type="button"]:hover,
.form-style-10 input[type="submit"]:hover{
    background: #2A6881;
    -moz-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.28);
    -webkit-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.28);
    box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.28);
}
.form-style-10 .privacy-policy{
    float: right;
    width: 250px;
    font: 12px Arial, Helvetica, sans-serif;
    color: #4D4D4D;
    margin-top: 10px;
    text-align: right;
}

/*.form {*/
    /*margin: 20px;*/
    /*padding-bottom: 20px;*/
/*}*/

.form .error {
    color: #ff0000;
}

.form .error_message {
    font-size: 10px;
    margin: 2px 2px;
}

.dni {
/*    display: inline-block!important; */
}

.fecha > span {
    display: block;
}

.fecha .fecha_part {
    width: 32%!important;
    display: inline-block!important;
}

.fecha input {
    height: 32px;
}

.sexo {
    width: 34%;
    display: inline-block!important;
}

.sexo select,
.fecha_part {
    height: 32px;
    background-color: #fff;
    display: inline-block;
}

.poblacion {
    width: 64%;
    display: inline-block!important;
}


.boton input {
    display: block;
    width: 100%;
}

.boton  img {
    width: 50%;
}

.help {
    cursor: pointer;
    position: relative;
}

.help .help-message {
    display: none;
}

.help:hover .help-message {
    display: block;
}

.help .help-message {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255,255,255,.9);
    min-width: 200px;
    padding: 10px;
    border: 1px solid rgba(0,0,0,.5);
}

.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,.5);
}

.result,
.errormsg {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: auto;
    background-color: #fff;
    transform: translateX(-50%) translateY(-50%);
    padding: 40px;
    border-radius: 5px;
}

.result span,
.errormsg span {
    display: block;
    font-size: 20px;
}

.result .boton,
.errormsg .boton {
    float: right;
    text-decoration: none;
}


/* ==========================================================================
   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 (min-width:801px)  {
    body {
        background-image: url(../img/G0072912.JPG);
        background-repeat: no-repeat;
        background-position: top left;
        background-size: initial;
    }

    header {
        vertical-align: top;
        background: none;
        width: 49%;
        margin-right: 1%;
        height: 100%;
        padding: 0;
        float: right;
    }

    .content {
        display: inline-block;
        width: 50%;
        max-width: 600px;
    }

    .container {
        position: relative;
    }

    header:before,
    header:after {
        content: none;
    }

    header > h1 {
        margin: 50px 0;
    }

    .form-style-10 {
        width: auto;
        padding: 30px;
        margin: 40px;
    }

    .form-style-10 .inner-wrap.boton {
        margin-bottom: 15px;
    }

    .form-style-10 h1 {
        margin: -30px -30px 30px -30px;
        -webkit-border-radius: 10px 10px 0 0;
        -moz-border-radius: 10px 10px 0 0;
        border-radius: 10px 10px 0 0;
    }

    .form-style-10 .section > span {
        background: #2A88AD;
        padding: 10px 17px 10px 17px;
        position: absolute;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border: 4px solid #fff;
        font-size: 14px;
        margin-left: -65px;
        color: #fff;
        margin-top: -13px;
        display: block;
    }
}

@media (min-width: 1200px) {
    header {
        width: 44%;
        margin-right: 5%;
    }

    .boton input {
        width: 50%;
    }
}

@media (min-width: 1350px) {
    header {
        width: 49%;
    }
}

/*@media only screen and (max-width: 35em) {*/
    /*.form {*/
        /*margin: 0;*/
        /*padding: 0;*/
        /*border-radius: 0;*/
        /*width: 100%;*/
    /*}*/

    /*@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,
    *:first-letter,
    *:first-line {
        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;
    }
}