
@font-face {
    font-family: 'Branding';
    src: url('../fonts/branding_sf_medium-webfont.woff2') format('woff2'),
         url('../fonts/branding_sf_medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Branding';
    src: url('../fonts/branding_sf_semibold-webfont.woff2') format('woff2'),
         url('../fonts/branding_sf_semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Branding';
    src: url('../fonts/branding_sf_bold-webfont.woff2') format('woff2'),
         url('../fonts/branding_sf_bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    /*-webkit-transform: scale(1);*/
}

body {
    line-height: 1.5;
}
body #wrapper-landing {
    font-family: 'Branding', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #060606;
    font-weight: 500;
}

/*
 * 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;
}

#wrapper-landing a {
    color: #060606;
    outline: 0;
    text-decoration: none;
    transition: color 0.2s ease-in-out 0s;
}
#wrapper-landing a:hover, #wrapper-landing a:focus {
    color: #060606 ;
    text-decoration: none;
}

#wrapper-landing p {
    margin: 0 0 30px 0;
}

#wrapper-landing h1,#wrapper-landing h2,#wrapper-landing h3 {
    font-family: 'Branding', sans-serif;
    margin: 0 0 0.7em 0;
    line-height: 1.14;
    font-weight: bold;
    color: #0172ea;
    padding-top: 0.5rem;
}

#wrapper-landing h1 {
    font-size: 58px;
}
#wrapper-landing h2 {
    font-size: 36px;
}
#wrapper-landing h3 {
    font-size: 22px;
}

#wrapper-landing a.b, #wrapper-landing input.b {
    cursor: pointer;
    display: inline-block;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 9px 34px;
    line-height: 1.5;
    transition: all 0.4s ease-in-out 0s;
    background-color: #0172ea;
    font-family: 'Branding', sans-serif;
    -webkit-appearance: none;
    border-radius: 31px;
    font-weight: bold;
    text-transform: uppercase;
}
#wrapper-landing a.b:hover, #wrapper-landing input.b:hover, #wrapper-landing span.b:hover {
    text-decoration: none;
    background-color: #0172ea;
}

.hover:hover {
    opacity:.80;
    filter:alpha(opacity=80);
    cursor:pointer;
    transition: all 0.4s ease-in-out 0s;
}

.center {
    width: 100%;
}

#wrapper-landing img {
    max-width: 100%;
    width: auto;
    display: inline-block;
}


/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

#wrapper-landing {
    overflow: hidden;
    min-height: 480px;
}
.content-landing {
    max-width: 1350px;
    width: 95%;
    margin: 0 auto;
    overflow: hidden;
}

div.head-landing {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    /*height: calc(100vh - 103px);*/
}
div.head-landing div#logo {
    position: relative;
    max-width: 28%;
    width: 400px;
    z-index: 3;
}
div.head-landing a.scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

div#box {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 5rem;
}
div#box img.image-parallax {
    position: absolute;
    max-width: 15%;
    max-height: 18vh;
    width: auto;
    opacity: 0;
    transition: opacity 1s linear 0s;
}
div#box img.image-parallax.opacity {
    opacity: 1;
}
div#box img#l1 {
    top: 18%;
    left: 5%;
}
div#box img#l2 {
    top: 16%;
    left: 22%;
}
div#box img#l3 {
    top: 13%;
    left: 40%;
}
div#box img#l4 {
    top: 12%;
    left: 68%;
}
div#box img#l5 {
    top: 10%;
    left: 81%;
}
div#box img#l6 {
    top: 44%;
    left: 9%;
}
div#box img#l7 {
    top: 48%;
    left: 21%;
}
div#box img#l8 {
    top: 39%;
    left: 66%;
}
div#box img#l9 {
    top: 41%;
    left: 84%;
}
div#box img#l10 {
    top: 73%;
    left: 3%;
}
div#box img#l11 {
    top: 76%;
    left: 35%;
}
div#box img#l12 {
    top: 72%;
    left: 56%;
}
div#box img#l13 {
    top: 69%;
    left: 79%;
}

div#banner {
    width: 100%;
    min-height: 300px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-banner-mayoral.jpg') no-repeat center center;
    background-size: cover;
    padding: 40px 0;
    text-align: center;
    display: flex;
    align-items: center;
}
div#banner div.content-landing {
    max-width: 955px;
}
div#banner h1 {
    margin-bottom: 0.5rem;
}
div#banner p {
    font-size: 34px;
}
div#banner a.b {
    font-size: 26px;
    padding: 9px 50px;
}

div.to-video {
    text-align: center;
    padding: 5rem 0 8rem 0;
}

div#video {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}
.video-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.video-container iframe, .video-container object, .video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
}

div#history {
    padding: 6rem 0;
    height: 100vh;
}
div#history div#year {
    display: flex;
    flex-direction: row;
    color: #e3e4e5;
    position: relative;
    font-weight: 600;
    font-size: 340px;
    line-height: 0.8;
    flex-wrap: nowrap;
    margin-top: 4rem;
}
div#history div#year span {
    width: 180px;
    text-align: center;
    flex: 0 0 180px;
    display: inline-block;
    text-indent: -13px;
}
div#history div#year div.color {
    display: flex;
    flex-direction: row;
    color: #0172ea;
    font-weight: 600;
    line-height: 0.8;
    font-size: 340px;
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;    
    flex-wrap: nowrap;
    transition: width 0.4s ease-in-out 0s;
}
div#history div#year[data-text="1940"] div.color {
    width: 0;
}
div#history div#year[data-text="1960"] div.color {
    width: 25%;
}
div#history div#year[data-text="1980"] div.color {
    width: 50%;
}
div#history div#year[data-text="2000"] div.color {
    width: 75%;
}
div#history div#year[data-text="2020"] div.color {
    width: 100%;
}
div#history div.pagination-years {
    width: 100%;
    display: inline-block;
    margin: 20px 0;
    background: -moz-linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 85%, rgba(255,255,255,1) 100%), url('https://mayoral.elcuartel.com.es/img/mayoral-80-line.jpg') repeat-x left center;
    background: -webkit-linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 85%, rgba(255,255,255,1) 100%), url('https://mayoral.elcuartel.com.es/img/mayoral-80-line.jpg') repeat-x left center;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 85%, rgba(255,255,255,1) 100%), url('https://mayoral.elcuartel.com.es/img/mayoral-80-line.jpg') repeat-x left center;
}
div#history div.pagination-years span {
    width: 75px;
    display: inline-block;
    background-color: #ffffff;
    float: left;
    color: #76aeee;
    text-align: center;
    font-size: 26px;
    margin-right: 50px;
    position: relative;
    cursor: pointer;
}
div#history div.pagination-years span.current:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff url('https://mayoral.elcuartel.com.es/img/mayoral-80-circle.png') no-repeat center center;
}
div#history div.pag {
    display: none;
}
div#history div.pag div.list {
    max-height: calc(100vh - 20rem);
    overflow-y: auto;
    padding: 4rem 0;
}
div#history div.pag div.gradient-list {
    position: relative;
    margin-bottom: 2rem;
}
div#history div.pag div.gradient-list:before {
    content: '';
    width: 100%;
    height: 6rem;
    position: absolute;
    top: -2px;
    left: 0;
    z-index: 99;
    background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
    pointer-events: none;
}
div#history div.pag div.gradient-list:after {
    content: '';
    width: 100%;
    height: 6rem;
    position: absolute;
    bottom: -2px;
    left: 0;
    z-index: 99;
    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
    pointer-events: none;
}
div#history div.pag div.list div.title-image {
    margin-bottom: 30px;
    position: relative;
    padding: 0 0 0 30px;
}
div#history div.pag div.list div.title-image img {
    position: relative;
    z-index: 1;
}
div#history div.pag div.list div.title-image span {
    display: inline-block;
    transform: rotate(-90deg) translateY(-50%);
    transform-origin: center top;
    -webkit-text-stroke: 1px #bdc5ce;
    font-size: 58px;
    font-weight: 600;
    line-height: 1;
    color: rgba(6, 6, 6, 0);
    position: absolute;
    top: 50%;
    left: -45px;
    height: 58px;
    width: 135px;
    text-align: center;
}
div#history div.pag div.pager-history ul {
    display: inline-block;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
}
div#history div.pag div.pager-history ul li {
    font-weight: bold;
    color: #76aeee;
    position: relative;
}
div#history div.pag div.pager-history ul li.prev {
    padding-right: 50px;
}
div#history div.pag div.pager-history ul li.prev:before {
    content: '';
    width: 19px;
    height: 9px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-flecha-izquierda.png') no-repeat center center;
    background-size: 100% auto;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
div#history div.pag div.pager-history ul li.next {
    padding-left: 50px;
}
div#history div.pag div.pager-history ul li.next:before {
    content: '';
    width: 19px;
    height: 9px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-flecha-derecha.png') no-repeat center center;
    background-size: 100% auto;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    content: '';
}
div#history div.pag div.pager-history ul li a {
    color: #0172ea;
    font-weight: 600;
    font-size: 37px;
    letter-spacing: -1.06px;
}

div#contest {
    width: 100%;
    height: 110vh;
    min-height: 650px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-bg-concurso.jpg') no-repeat center bottom;
    background-size: cover;
    padding: 12rem 0;
}
div#contest h2 {
    font-size: 40px;
}
div#contest p {
    margin-bottom: 1.5rem;
}
div#contest div.pag {
    display: none;
}
div#contest div.show {
    display: block;
}
div#contest div.question {
    font-weight: bold;
    margin-bottom: 25px;
}
div#contest a.reply {
    display: flex;
    width: 100%;
    border-radius: 25px;
    background-color: #ffffff;
    padding: 10px;
    line-height: 1;
    height: 50px;
    text-align: left;
    margin-bottom: 15px;
    font-weight: 600;
    align-items: center;
}
div#contest a.reply span {
    display: inline-block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0 16px 0 0;
    border: solid 1px #0172ea;
    border-radius: 30px;
    float: left;
    position: relative;
}
div#contest a.reply.correct {
    border: solid 1px #3ccc5f;
    background-color: #f3fff6;
}
div#contest a.reply.correct span {
    border: solid 1px #3ccc5f;
    background-color: #3ccc5f; 
}
div#contest a.reply.correct span:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 19px;
    height: 14px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-check.png') no-repeat center center;
}

div#contest a.reply.fail {
    border: solid 1px #dc5656;
    background-color: #fff2f2;
}
div#contest a.reply.fail span {
    border: solid 1px #dc5656;
    background-color: #dc5656; 
}
div#contest a.reply.fail span:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 15px;
    height: 15px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-error.png') no-repeat center center;
}
div#contest div.stars {
    padding-bottom: 4rem;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-linea-decorativa.png') no-repeat center 22px;
    background-size: auto 100%;
}
div#contest div.stars ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: row;
    text-align: center;
    margin: 0;
    padding: 0;
}
div#contest div.stars ul li {
    display: inline-block;
    margin: 0 5px;
    position: relative;
}
div#contest div.stars ul li.correct:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 39px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-stars-relleno.png') no-repeat center bottom;
    background: 100% auto;
}
div#contest div.stars ul li.min.correct:before {
    width: 30px;
    height: 29px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-stars-relleno-min.png') no-repeat center bottom;
    background: 100% auto;
}

div#ecofriends {
    width: 100%;
    height: 110vh;
    min-height: 650px;
    padding: 6rem 0;
}
div#ecofriends h2 {
    padding-top: 4rem;
}
div#ecofriends h2 span {
    display: block;
    font-size: 67px;
    font-weight: 400;
    color: #5E9A2D;
}
div#ecofriends h2 span strong {
    font-weight: 600;
}

div#contest div.content-landing,
div#ecofriends div.content-landing {
    height: 100%;
}
div#contest div.row,
div#ecofriends div.row {
    display: flex;
    flex-direction: row;
    height: 100%;
}
div#contest div.col,
div#ecofriends div.col {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex: 0 0 50%;
}
div#contest div.block,
div#ecofriends div.block {
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}
div#ecofriends h2{
    font-size: 40px;
}

#scrollTop {
    position: fixed;
    bottom: -60px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    background-color: #0172ea;
    transition: bottom 0.2s ease-in-out 0s !important;
    z-index: 999;
}

/* ==========================================================================
   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,
    *: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;
    }
}

div#contest {
    width: 100%;
    height: 110vh;
    min-height: 650px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-bg-concurso.jpg') no-repeat center bottom;
    background-size: cover;
    padding: 12rem 0;
}
div#contest h2 {
    font-size: 40px;
}
div#contest p {
    margin-bottom: 1.5rem;
}
div#contest div.pag {
    display: none;
}
div#contest div.show {
    display: block;
}
div#contest div.question {
    font-weight: bold;
    margin-bottom: 25px;
}
div#contest a.reply {
    display: flex;
    width: 100%;
    border-radius: 25px;
    background-color: #ffffff;
    padding: 10px;
    line-height: 1;
    height: 50px;
    text-align: left;
    margin-bottom: 15px;
    font-weight: 600;
    align-items: center;
}
div#contest a.reply span {
    display: inline-block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0 16px 0 0;
    border: solid 1px #0172ea;
    border-radius: 30px;
    float: left;
    position: relative;
}
div#contest a.reply.correct {
    border: solid 1px #3ccc5f;
    background-color: #f3fff6;
}
div#contest a.reply.correct span {
    border: solid 1px #3ccc5f;
    background-color: #3ccc5f; 
}
div#contest a.reply.correct span:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 19px;
    height: 14px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-check.png') no-repeat center center;
}

div#contest a.reply.fail {
    border: solid 1px #dc5656;
    background-color: #fff2f2;
}
div#contest a.reply.fail span {
    border: solid 1px #dc5656;
    background-color: #dc5656; 
}
div#contest a.reply.fail span:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 15px;
    height: 15px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-error.png') no-repeat center center;
}
div#contest div.stars {
    padding-bottom: 4rem;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-linea-decorativa.png') no-repeat center 22px;
    background-size: auto 100%;
}
div#contest div.stars ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: row;
    text-align: center;
    margin: 0;
    padding: 0;
}
div#contest div.stars ul li {
    display: inline-block;
    margin: 0 5px;
    position: relative;
}
div#contest div.stars ul li.correct:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 39px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-stars-relleno.png') no-repeat center bottom;
    background: 100% auto;
}
div#contest div.stars ul li.min.correct:before {
    width: 30px;
    height: 29px;
    background: url('https://mayoral.elcuartel.com.es/img/mayoral-80-icono-stars-relleno-min.png') no-repeat center bottom;
    background: 100% auto;
}