/*
 * CSS
 */

@font-face {
    font-family: DIN;
    src: url(../fonts/DINPro.otf);
}

@font-face {
    font-family: DIN;
    src: url(../fonts/DINPro-Black.otf);
    font-weight: 600;
}

@font-face {
    font-family: DIN;
    src: url(../fonts/DINPro-Medium.otf);
    font-weight: 500;
}

html {
    color: #000;
    font-size: 1em;
    line-height: 1.4;
}

body {
    font-family: DIN;
    margin:0;
    font-size:16px;
}

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

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

#objetivo > img,
#ranking > img,
#como-jugarlo > img {
    display:none;
}

form,
input,
textarea {
    box-sizing: border-box;
}

#hero > img,
.mobile-nav {
    display:none;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert {
    padding: 10px;
    margin: 0 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
    font-weight:400;
}

button.close {
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: .2;
}

/*
 * Fonts
 */

h2,h3,p {    
    margin:0;
}

h2 {
    color:#FFF;
    font-size:3rem;
    text-transform:uppercase;
    text-align:right;
    text-shadow: 3px 3px 0 #000;
}

h3 {
    color:#FFF;
    font-size:2rem;
    text-transform:uppercase;
    font-weight:500;
    text-shadow: 2px 2px 0px #000;
}

h4 {
    color: #5b0250;
    font-size:2rem;
    text-transform:uppercase;

    margin:20px 0;
}

h6 {
    text-align:center;
    font-size:.9rem;
    font-weight:400;
    color: #FFF;
    margin:0;
    padding:20px 0;
}

p {
    color:#FFF;
    font-size:1rem;
    text-transform:uppercase;
    text-shadow: 1px 1px 0 #000;
}

label {
    color:#FFF;
    font-size:1rem;
    text-transform:uppercase;
    text-shadow: 1px 1px 0 #000;
}

/*
 * Header
 */

header {
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:9;
    background:#000;
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding: 10px 50px;
}

header img {
    max-width:100px;
}

header nav ul {
    margin:0;
    padding:0;

    display:flex;
    align-items:center;
}

header nav ul li {
    list-style:none;
    margin: 0px 10px;
}

header nav ul li a {
    color:#FFF;
    font-weight:500;
    text-decoration:none;
}

header nav ul li a:hover {
    color: #F6004A;
}

header svg {
    color:#FFF;
}

/*
 * Hero
 */

#hero {
    position:relative;
    max-height:calc(100vh - 75px);
    overflow:hidden;
    margin-top:75px;
}

#hero video {    
    min-width: 100%;
    width: auto;
    height: auto;
}

#layout {
    background-color:transparent;
    backdrop-filter: blur(10px);
    background-image: url(../../images/wineonchallenge_images_2020/wine-on-banner-hero-v2.png);
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center right;
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
}

.hero-slider {
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
    left:100px;
    z-index:3;

    max-width:30%;
}

.hero-slider h2 {
    font-size:6rem;
    text-align:left;
    cursor:pointer;
}

#objetivo,
#ranking,
#como-jugarlo,
#modos-de-juego,
#conseguilo,
#contacto {
    margin-top:50px;
    border-top:solid 2px #000;
    border-bottom:solid 2px #000;
}

/*
 * Objetivo
 */

#objetivo {
    background:url(../../images/wineonchallenge_images_2020/bg-objetivo.jpg);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    min-height:70vh;
    padding:30px 50px;

    display:flex;
    justify-content:space-between;
}

#objetivo .objetivo_left-side {
    width: 38%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#objetivo .objetivo_right-side {
    width:40%;
}

.objetivo_list {
    margin:10px 0 0;
    padding:0;

    display:flex;
    flex-wrap:wrap;
}

.objetivo_list li.w3 {
    width:33%;
}

.objetivo_list li.w2 {
    width:50%;
}

.objetivo_list li.w1 {
    width:100%;
}

.objetivo_list li {
    list-style:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    margin: 10px 0;
}

.objetivo_list li img {
    margin-bottom:10px;
    max-width:60px;
}

/*
 * Ranking
 */

#ranking {
    background:url(../../images/wineonchallenge_images_2020/bg-ranking.jpg);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    min-height:70vh;
    padding:30px 50px;

    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:flex-end;
}

#ranking .ranking_top-side {
    width:25%;
    text-align:right;
}

#ranking .ranking_bottom-side {
    width:100%;
    /*display:flex;
    justify-content:space-between;
    align-items:center;*/
    text-align:left;
}

#ranking .ranking_bottom-side img {
    max-width:150px;
}

/*
 * Como Jugarlo
 */

#como-jugarlo {
    background:url(../../images/wineonchallenge_images_2020/bg-como-jugarlo.jpg);
    background-size:cover;
    background-position:bottom;
    background-repeat:no-repeat;

    min-height:70vh;
    padding:30px 50px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

#como-jugarlo h2 {
    text-align:center;
}

#como-jugarlo .como-jugarlo_steps {
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    margin-top: 100px;
}

#como-jugarlo .como-jugarlo_steps > div {
    display:flex;
    flex-direction:column;
    align-items:center;
    flex-basis: 100%;
    margin: 0 1%;
    text-align:center;    
}

#como-jugarlo .como-jugarlo_steps > div img {
    max-width:250px;
}

#como-jugarlo .como-jugarlo_steps > div h3 {
    margin:20px 0 0px;
}

/*
 * Modos de juego
 */

 #modos-de-juego {
    background:#000;    

    min-height:70vh;
    padding:50px ;

    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
}

#modos-de-juego > div {
    text-align:center;
    margin: 0 2%;
}

#modos-de-juego > div img {
    max-width:200px;
}

/*
 * Donde Conseguirlo
 */

 #conseguilo {
    background:url(../../images/wineonchallenge_images_2020/bg-conseguilo.jpg);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    min-height:70vh;
    padding:30px 50px;

    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
}

#conseguilo > div {
    width:50%;
}

#conseguilo > div img {
    max-width:550px;
    width: 100%;
}

#conseguilo > div:last-child {
    width:30%;
}

#conseguilo form button {
    float:right;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #000;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #000;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #000;
}


/*
 * Contacto
 */

#contacto {
    background:url(../../images/wineonchallenge_images_2020/bg-objetivo.jpg);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    min-height:70vh;
    padding:30px 50px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

#form_contacto {
    display:flex;
    flex-direction:column;
    width:50%;
    margin-top:50px;
}

#form_pedilo label {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.form-groups {
    display:flex;
    justify-content:space-between;
}

.form-group {
    display:flex;
    flex-direction:column;
    align-items:center;
    flex-basis:100%;
    margin:0 10px
}

.form-group.mensaje,
textarea,
form input {
    width:100%;
}

textarea {    
    padding-top:10px;
    resize:vertical;
}

form input {
    height:32px;
}

form input,
form textarea {
    border-radius: 4px;
    font-family:inherit;
    border: solid 1px #670061;
    background:rgba(255,255,255,0.5);
    margin:10px 0 20px;
    padding-left:10px;

    transition:.3s;
}

form input:hover,
form textarea:hover,
form input:focus,
form textarea:focus {
    background:rgba(255,255,255,0.9);    
}

.btn-form {
  display: inline-block;
  height: 38px;
  padding: 0 30px;
  color: #FFF;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  line-height: 38px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background-color: #F6004A;
  border: 1px solid #F6004A;
  cursor: pointer;
  box-sizing: border-box;
}

/*
 * Footer
 */

footer {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-evenly;

    background:#000;

    padding:50px 0;
}
footer img {
    max-width:200px;
}

footer ul {
    margin:0;
    padding:0;

    display:flex;
    flex-direction:column;
}

footer ul li {
    list-style:none;
    margin: 0px 10px;
}

footer ul li a {
    color:#FFF;
    font-weight:500;
    text-decoration:none;
}

footer ul li a:hover {
    color: #F6004A;
}

.copyright {
    background:#000;
}

/*
 * Dots
 */

 .slick-dotted.slick-slider
 {
     margin-bottom: 30px;
 }
 
 .slick-dots
 {
     position: absolute;
     left:0;
     
     display: block;
 
     padding: 0;
     margin: 0;
 
     list-style: none;
 
     text-align: center;
 }
 .slick-dots li
 {
     position: relative;
 
     display: inline-block;
 
     width: 40px;
     height: 5px;
     margin-right:10px;
     padding: 0;
 
     cursor: pointer;
 }
 .slick-dots li button
 {
     font-size: 0;
     line-height: 0;
 
     display: block;
 
     width: 40px;
     height: 5px;
     padding: 0px;
 
     cursor: pointer;
 
     color: transparent;
     border: 0;
     outline: none;
     background: rgba(255,255,255,0.4);
 }
 .slick-dots li button:hover,
 .slick-dots li button:focus
 {
     outline: none;
 }
 .slick-dots li button:hover:before,
 .slick-dots li button:focus:before
 {
     opacity: 1;
 }
 .slick-dots li.slick-active button
 {
     opacity: .75;
     background: #FFF;
 }

 /*
  * YouTube Modal
  */

 .modal {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin:0;
    padding: 10px 20px;
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
  }
  
  .modal-content iframe {
      width:100%;
      height:400px;
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

 @media only screen and (max-width: 1600px) {

    .hero-slider {
        max-width:50%;
    }

}

@media only screen and (max-width: 1280px) {

    .hero-slider {
        max-width:65%;
        top:40%
    }

    #objetivo,
    #ranking,
    #como-jugarlo,
    #modos-de-juego,
    #contacto {
        min-height: 50vh;
    }

    #objetivo .objetivo_left-side {
        width:50%;
    }

    #ranking .ranking_top-side {
        width:50%;
    }

    #conseguilo {
        align-items:center;
    }

    #como-jugarlo .como-jugarlo_steps > div {
        width:40%;
        flex-basis:40%;
    }

    #como-jugarlo .como-jugarlo_steps {
        align-items:center;
        flex-wrap:wrap;
    }

    #conseguilo > div:last-child {
        flex-basis:50%;
    }

}

@media only screen and (max-width: 980px) {

    h2 {
        text-align:left;
        font-size:3rem;
        width:100%;
    }

    h3 {
        font-size:1.6rem;
    }

    p {
        font-size: 1rem;
    }

    #layout {
        background-image:none;
    }

    #hero > img {
        display:block;
        position:absolute;
        top:20%;
        left: 0;
        right: 0;
        margin: 0 auto;
        max-width: 50vw;
    }

    .slick-dots {
        left: 0;
        right: 0;
        margin: 0 auto;        
    }

    #objetivo,
    #ranking,
    #como-jugarlo,
    #contacto,
    #conseguilo {
        flex-direction:column;

        padding: 0;
        background-image: linear-gradient(#670061, #000);
    }

    #conseguilo {
        background-image:url(../../images/wineonchallenge_images_2020/bg-conseguilo.jpg);
    }

    #contacto,
    #conseguilo {
        padding: 50px 20px
    }

    #contacto h2 {
        margin-bottom:50px;
    }

    #objetivo > img,
    #ranking > img,
    #como-jugarlo > img,
    #conseguilo img {
        display:block;
    }

    #conseguilo img {
        margin: 0 auto;
    }

    #objetivo .objetivo_left-side,
    #objetivo .objetivo_right-side,
    #ranking .ranking_top-side,
    #ranking .ranking_bottom-side,
    #conseguilo > div,
    #conseguilo > div:last-child {
        width: 100%;
        padding: 30px;
        box-sizing: border-box;
    }

    #objetivo .objetivo_left-side {
        order:2;
    }

    #objetivo .objetivo_right-side {
        order:1;
    }

    #ranking .ranking_top-side {
        display:flex;
        align-items:center;
    }

    #ranking .ranking_bottom-side div {
        display:flex;
        align-items:center;
    }

    #ranking .ranking_bottom-side img {
        margin-right:20px;
    }

    #ranking .ranking_bottom-side h3 br {
        display:none;
    }

    #como-jugarlo > div {
        padding:30px;
    }

    #como-jugarlo .como-jugarlo_steps {
        margin-top:20px;
    }

    #como-jugarlo h2,
    #conseguilo h2 {
        width:100%;
    }

    #form_contacto {
        width:90%;
    }

    .hero-slider {
        max-width:100%;
        top:70%;
        left:0;
        right:0;
        text-align:center;
        margin:20px;
    }

    .hero-slider h2 {
        font-size:5rem;
        text-align:center;  
        width:100%;
    }

}

@media only screen and (max-width: 760px) {

    .modal-content iframe {
        width:100%;
        height:300px;
    }

    h2, h3 {
        width:100%;
        text-align:left;
    }

    #hero > img {
        max-width:70vw;
    }

    header,
    header nav ul {
        height:auto;
        flex-direction:column;
        align-items:flex-start;
        overflow:auto;
    }

    header div:nth-child(2) {
        display:none;
    }

    nav,
    header nav ul {        
        width:100%;
    }

    header nav ul li {
        margin-bottom:10px;
    }

    .mobile-nav {
        position:absolute;
        right:40px;
        top:25px;
        display:block;
    }

    #objetivo .objetivo_left-side h3 br,
    #ranking .ranking_bottom-side h3 br {
        display:none;
    }

    #ranking .ranking_top-side {
        flex-direction:column;
    }

    #como-jugarlo .como-jugarlo_steps > div {
        flex-basis:48%;
        margin-bottom:40px;
    }

    #como-jugarlo .como-jugarlo_steps > div h3 {
        text-align:center;
    }

    #modos-de-juego {
        flex-wrap:wrap;
    }
    
    #modos-de-juego img {
        max-width:200px;
    }
    
    #modos-de-juego > div {
        margin:20px 1%;
        width:48%;
    }    
    
    #modos-de-juego .w-100 {
        flex-basis:100%;
    }

    #conseguilo > div img {
        max-width:300px;
    }

    #form_contacto {
        margin-top:0px;
    }

}

@media only screen and (max-width: 640px) {

    .modal {
        display:none;
    }

    h2, h3 {
        font-size:2rem;
        width:100%;
        text-align:left;
    }

    h3 {
        font-size:1.5rem;
    }

    .hero-slider h2 {
        font-size:3rem;
    }

    #hero > img {
        top:0px;
        max-width:300px;
    }

    #hero,
    #hero video {
        max-height:100%;
        height:50vh;
    }

    .hero-slider {
        top:300px;
    }

    #objetivo .objetivo_left-side,
    #objetivo .objetivo_right-side,
    #ranking .ranking_top-side,
    #ranking .ranking_bottom-side {
        width:auto;
    }

    #objetivo .objetivo_left-side h3 br,
    #ranking .ranking_bottom-side h3 br {
        display:none;
    }

    .objetivo_list {
        justify-content:center;
    }

    .objetivo_list li.w3,
    .objetivo_list li.w2 {
        width:50%;
    }

    #como-jugarlo .como-jugarlo_steps > div {
        flex-basis:100%;
    }

    #como-jugarlo .como-jugarlo_steps > div img {
        max-width:200px;
    }

    #ranking .ranking_bottom-side div {
        flex-direction:column;
    }

    #form_contacto {
        width:100%;
    }

    #form_contacto .form-groups:first-child {
        flex-direction:column;
    }

    #modos-de-juego {
        padding:20px;
    }
    
    #modos-de-juego > div {
        margin:20px auto;
        width:98%;
    }
}

@media only screen and (max-width: 450px) {

}