html, body
{
  
}

html
{
    height: 100%;
    width: 100%;
}

body
{
    margin: 0;
    font-family: 'Open Sans';
    width: 100%;
    height: 100%;
}


header
{
    position: relative;
    width: 84%;
    float: left;
    padding-left: 8%;
    padding-right: 8%;
    padding-top: 20px;
    padding-bottom: 12px;
    background: rgb(255,255,255);
    z-index: 5;
    -webkit-box-shadow: 0 2px 10px 0 rgba(0,0,0,0.16);
    -moz-box-shadow: 0 2px 10px 0 rgba(0,0,0,0.16);
box-shadow: 0 2px 10px 0 rgba(0,0,0,0.16);
}

.justify{text-align: justify;}
.center{margin: 0 auto; float: none !important;}
.mdp-button{position: relative; border-radius: 18px; margin: 0 auto; background: transparent; border: 1px solid #fff; padding: 8px 20px 8px 20px; color: #fff; font-size: 16px; margin-top: 20px; transition: 0.3s ease-in-out;}
.mdp-button:hover{background: #0092c7 !important; border: solid 1px #0092c7; !important}

/* BARRA NAVEGACIÃ“ */
nav
{
    width: 80%;
    float: right;
    display: inline-block;
    text-align: right;
    padding-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

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

li
{
    display: inline;
    margin: 1%;
}

ul li a
{
    opacity: 0.5;
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    text-decoration: none;
    color: #000;
    font-size: 12px;
}

ul li a:hover
{
    opacity: 1;
}

li:last-child
{
    margin-right: 0;
}

/* CURRENT PAGE */
.current a
{
    color: #000;
    opacity: 1 !important;
    border-bottom: 1px solid #000 !important;
    padding-bottom: 2px;
}

@media screen and (max-width: 1010px){
    nav
    {
        width: 100%;
        margin-top: -64px;
        font-weight: 200;
        font-size: 1.2em;
    }
    
    
    ul
    {
        padding: 0;
    }
    
    li
    {
        display: block;
        text-align: center;
        margin: 0;
        margin-top: 16px;
        margin-bottom: 16px;
    }
    
    li:first-child{margin-top: 14px;}
    
    li a
    {
        font-size: 1.3em;
        padding: 10px;
        opacity: 1 !important;
        font-weight: 300;
    }
    
    .nav{display: none;}
    
    .nav-btn
    {
        display: block;
        width: 100%;
        position: relative;
        top: -10px;
    }
    
    .nav-btn:before
    {
        content: "\2261";
        font-size: 38px;
    }
}


/* Language Panel */

.menu-language
{
    font-weight: 200;
    color: #0092c7;
}

#language-panel
{
    width: 100%;
    float: left;
    z-index: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    background: #0092c7;
    position: relative;
    top: -42px;
    transition: top 1s ease;
    -webkit-transition: top 1s ease;
    -moz-transition: top 1s ease;
    -o-transition: top 1s ease;
    -webkit-box-shadow: 0 2px 10px 0 rgba(0,0,0,0.16);
box-shadow: 0 2px 10px 0 rgba(0,0,0,0.16);
}

#language-panel a
{
    text-decoration: none;
    color: white;
    margin: 20px;
    font-weight: 200;
    font-family: 'Lato';
    font-size: 14px;
    line-height: 20px;
}

#language-dropdown-icon
{
    width: 100%;
    height: 34px;
    float: right;
    z-index: 2;
    background: transparent;
    position: relative;
    display: block;
    top: -20px !important;
    margin-top: 2px;
}

#language-dropdown-icon img
{
    position: absolute;
    width: 34px;
    height: 34px;
    right: 4%;
    z-index: 4 !important;
    transition: 1s ease-in-out;
    -ms-transition: 1s ease-in-out;
    -moz-transition: 1s ease-in-out;
    -webkit-transition: 1s ease-in-out;
}

.rotate-180deg
{
    transition: 1s ease-in-out;
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg); /* IE 9 */
    -webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
    transform: rotate(180deg);
}

.open
{
    position: relative;
    top: 0px !important;
    z-index: 1 !important;
    
}

#mute
{
    z-index: 6 !important;
}

/* ------ VIDEO ------- */

#video-wrapper
{
    height: calc(100% - 46px);
    width: 100%;
    float: left;
    position: relative;
    top: -36px;
    z-index: 0;
}

video
{
    float: left;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#video-text-overlay
{
    display: none;
}

#video-text-overlay2
{
    display: table;
    float: left;
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    color: #fff;
}

#video-text-overlay2 h1
{
    height: 140px;
    display: table-cell;
    vertical-align: middle;
    text-transform: uppercase;
    font-size: 10vw;
}


@media screen and (max-width: 420px ){
    #video-text-overlay
    {
        display: table;
        float: left;
        width: 84%;
        height: 100%;
        padding-left: 8%;
        padding-right: 8%;
        text-align: center;
        position: absolute;
        color: #fff;
        text-shadow: 1px 1px #333;
        z-index: 10000;
        background: rgba(0,0,0,0.2);
    }

    #video-text-overlay h1{font-size: 3vw;}
    #video-text-overlay h2{font-size: 1.8vw;}
    #video-text-overlay p{font-size: 1.4vw;}

    #video-text-overlay2
    {
        display: table;
        width: 100%;
        height: 100%;
        text-align: center;
        position: absolute;
    }

    #video-text-overlay2 h1
    {
        color: #fff;
        display: table-cell;
        vertical-align: middle;
        text-transform: uppercase;
    }

    .video-text-overlay-container
    {
        display: table-cell;
        vertical-align: middle;
        width: 100%;
        font-size: 2vw;
    }

    .video-text-overlay-container p
    {
        font-size: 1.6vw;
    }
}

/*@media screen and (max-width: 420px){
    #video-wrapper{height: 100%; width: 100%;}
    video{height: 100%; width: 100%; object-fit: none;}
}*/

#video-wrapper-mobile-photo{height: 100%; width: 100%; float: left; display: none; position: relative; top: -35px;}
#video-wrapper-mobile-photo img{width: 100%; /*height: 100%;*/ float: left;}
#video-wrapper-mobile-photo h1{font-size: 6vw;}
#video-wrapper-mobile-photo h2{font-size: 3.2vw;}
#video-wrapper-mobile-photo p{font-size: 3vw;}
#video-wrapper-mobile-photo button{width: 100%;}

@media screen and (max-width: 420px)
{
    #video-wrapper{display: none;}
    #video-wrapper-mobile-photo{display: block; !important; background: rgba(0,0,0,0.9);}
    #mutebtn2{display: none;}
}

/* LOGO */

.logo
{
    float: left;
    width: 20%;
    
}

.logo img
{
    width: 180px;
}


/* MENU */

.menu
{
    float: right; 
    width: 80%;
    padding-top: 6px;
    text-transform: uppercase;
    text-align: right;
    font-weight: 300;
    font-size: 13px;
}



/* FOOTER */

#footer
{
    float: left;
    width: 100%;
    padding-top: 40px;
    background: #0092c7;
    position: relative;
    top: -78px;
    z-index: 10000;
     -webkit-box-shadow: 0 -2px 10px 0 rgba(0,0,0,0.16);
    -moz-box-shadow: 0 -2px 10px 0 rgba(0,0,0,0.16);
box-shadow: 0 -2px 10px 0 rgba(0,0,0,0.16);
}



/* Social Icons */
.social-icons
{
    text-align: center;
    padding: 40px;
}

.social-icons img
{
    width: 36px;
    margin: 4px;
    opacity: 0.7;
    transition: 1s ease-in-out;
    -webkit-transition: 1s ease-in-out;
    -ms-transition: 1s ease-in-out;
    -moz-transition: 1s ease-in-out;
    -o-transition: 1s ease-in-out;
}

.social-icons img:hover
{
    opacity: 1;
}

.social-icons p a
{
    text-decoration: none;
    color: black;
}

.linkedin-link{float: left; color: #000; width: 100%; text-align: left;}
.linkedin-icon{width: 30px; position: relative; top: 8px; padding-right: 10px;}


@media screen and (max-width: 420px){
    .social-icons{padding: 20px;}
}

/* Copyright */

.copyright, .copyright a
{
    color: #fff;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    padding-bottom: 14px;
    font-size: 14px;
    text-decoration: none;
}

@media screen and (max-width: 500px){
    #language-panel a
    {
        font-weight: 300 !important;
    }
    
    .copyright
    {
    font-weight: 300 !important;
    }
}




/***************************************/
/*********** ULTIMS TREBALLS ***********/
/***************************************/

#video-wrapper2
{
    height: 220px;
    width: 100%;
    float: left;
    position: relative;
    top: -38px;
    z-index: -1;
}

.page-subtitle
{
    font-size: 32px !important;
    font-weight: 900 !important;
    background: rgba(0,0,0,0.4);
    letter-spacing: 3px;
}

#subpage-container
{
    width: 84%;
    margin-top: -38px;
    float: left;
    background: #f7f7f7;
    height: auto;
    padding: 4% 8% 4% 8%;
    text-align: center;
    margin-bottom: 78px;
    -webkit-box-shadow: 0 -2px 10px 0 rgba(0,0,0,0.16);
    -moz-box-shadow: 0 -2px 10px 0 rgba(0,0,0,0.16);
box-shadow: 0 -2px 10px 0 rgba(0,0,0,0.16);
}

.video_thumbnail_container
{
    display: inline-block;
    background: #fff;
    padding: 2%;
    width: 24%;
    height: auto;
    margin: 2%;
    transition: .5s ease-in-out;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
}

.video_thumbnail_container:hover
{
    background: #0092c7;
    color: white;
}

.video_thumbnail_container iframe
{
    width: 100%;
    height: 255px;
}

.video_thumbnail_caption
{
    text-align: center;
    display: table;
    padding-top: 10px;
    min-height: 150px;
}


.video_thumbnail_caption h4
{
    width: 100%;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    min-height: 40px;
}

/* MEDIA QUERIES */
@media screen and (min-width: 1600px){
    .video_thumbnail_caption
    {
        width: 100%;
    }
}

@media screen and (max-width: 960px){
    .video_thumbnail_container
    {
        width: 40%;
    }
}

@media screen and (max-width: 650px){
    .video_thumbnail_container
    {
        width: 90%;
        margin-bottom: 40px;
    }
}


/*************************************/
/*************   BIO    **************/
/*************************************/

.bio-thumbnail
{
    display: block;
    float: left;
    margin-bottom: 40px;
}

.one-third
{
    width: 29.3%;
    float: left;
    padding-right: 4%;
    display: inline-block;
}

.two-thirds
{
    width: 66.6%;
    height: 100%;
    float: left;
}

.two-thirds a.show-video{
    display:flex;
    flex-direction: column;
    width: 30%;
    text-decoration: none;
    color: black;
    margin-bottom: 4em;
}

.two-thirds a.show-video img{
    width: 100%;
    height: auto;
}

.two-thirds a.show-video .youtube-link{float: left; color: #000; margin-top: 0; text-align: left;}
.two-thirds a.show-video .youtube-icon{width: 30px; position: relative; top: 8px; padding-right: 10px;}


.bio-pic, .aerial-pic
{
    width: 100%;
}

.pic-caption
{
    padding-top: 10px;
}

@media screen and (max-width: 650px){
    .two-thirds, .one-third
    {
        width: 100%;
    }

    .two-thirds a.show-video{
        width: 70%;
    }
    
    .aerial-pic
    {
        padding-bottom: 20px;
    }
    
    .pic-caption
    {
        padding-bottom: 30px;
    }
}

/*************************************/
/************** CONTACTE *************/
/*************************************/

#contact_form
{
    float: left;
    width: 100%;
    margin: 0 auto;
}

form input[type=text], form input[type=email], form textarea
{
    margin: 26px auto;
    display: block;
    border: none;
    border-radius: 30px;
    font-size: 14px;
}

form input[type=text], form input[type=email]
{
    width: 400px;
    height: 50px;
    text-indent: 22px;
}

form textarea
{
    width: 358px;
    max-width: 378px;
    padding: 22px !important;
}

form input[type=submit]
{
    padding: 14px;
    background: #333;
    border: none;
    border-radius: 50px;
    color: white;
    width: 140px;
    font-size: 14px;
    opacity: .7;
    transition: .5s ease-in-out;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
}

form input[type=submit]:hover
{
    opacity: 1;
}

::-webkit-input-placeholder {
   color: #777;
}

:-moz-placeholder { /* Firefox 18- */
   color: #777;  
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #777;  
}

:-ms-input-placeholder {  
   color: #777;  
}

@media screen and (max-width: 650px){
    form input[type=text], form input[type=email]
    {
        width: 100%;
    }
    
    form textarea
    {
        width: calc(100% - 44px);
    }
    
    form input[type=submit]
    {
        width: 100%;
        padding: 20px;
        margin-bottom: 30px;
    }
}

/* LIGHTBOX */


.lightbox
{
    padding-top: 50px;
}

.fancybox img
{
    width: 25%;
    float: left;
    transition: 0.3s ease-in-out;
}

.fancybox img:hover
{
    opacity: 0.7;
}

@media screen and (max-width: 420px){
    .fancybox img
    {
        width: 50%;
    }
}


/* COOKIES */

.cc_container{background: #0092c7 !important;}
.cc_container .cc_message{font-size: 0.8em !important; margin-top: 0.9em !important;}
.cc_container .cc_btn, .cc_container .cc_btn:visited{background: #0092c7 !important; border: 1px solid #fff; color: #fff !important;}
.cc_container .cc_btn:hover{background: #fff !important; color: #0092c7 !important;}
.cc_container a, .cc_container a:visited{color: #333 !important;}