/*
Theme Name: Market Web Design
Description:
Author: Bruno Garcia Tripoli
Author URI:
Theme URI:
Version: 0.1
Tags:
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mwdtheme
Domain Path: /languages/themes/mwdtheme.pot
*/

/* Reset Style */
html,header,body,footer,div,span,section,p,ul,li,
h1,h2,h3,h4{
    font-family: 'Arial';
    font-style: normal;
    font-weight: 400;
    margin-top: 0 !important;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
}

#wpadminbar{
  position: fixed !important;
}

body{
  position: relative;
}

p, h1, h2, h3, h4{
    display: inline-block;
}

button{
    outline:0;
    border: none;
    cursor: pointer;
}

a{
    color: var(--active-color);
    outline: none;
    text-decoration: none;
}

/*************
*** Global ***
**************/
:root{
    --active-color: #03bafc;
    --menu-bg: #3B3B3B;
    --hover-bg: #26201C;
}

*, *::before, *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html{
    height: 100%;
    width: 100%;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}

#offcanvas{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

header{
    font-family: "Quicksand",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: white;

    top: 0;
    z-index: 900;
    position: absolute;
    width: 100%;
    background: transparent;
}

main{
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* added */
}

footer{
    color: #777777;
    font-size: 14px;
    padding: 15px;
    background: var(--menu-bg);
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.show-on-laptop,
.show-on-tablet,
.show-on-mobile{
   display: none !important;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#offcanvas.active{
  opacity: 1;
  z-index: 1002;
  visibility: visible;
}


/*************
*** Header ***
**************/

header a{
    color: white;
}

header > #site-navbar-top,
header > #site-navbar-bottom{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 20%;
}

header > #site-navbar-top{
    border-bottom: 1px solid rgba(255,255,255,.4);
}

header ul,
header ol{
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style-type: none;
}

.logo-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    margin-right: auto;
}

.logo-wrapper .logo{
    height: 40px;
    width: auto;
    margin-right: 5px;
}

.logo-wrapper #logo-title{
    font-family: "Quicksand",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 1.25rem;
    font-weight: 500;
}

.separator-vertical{
    display: inline-block;
    width: 1px;
    border-left: 1px solid white;
    height:16px;
    margin: 0 4px;
}

.nav-pages{
    color: rgba(255,255,255,.6);
}

.nav-pages li{
    cursor: pointer;
}



.nav-pages li a,
.nav-pages .has-children span{
  display: inline-block;
}

.nav-pages li:hover a,
.nav-pages .has-children:hover span{
    color: white;
}


.nav-pages a,
.nav-pages .has-children{
    padding: 5px 3px;
    margin: 0 5px;
}

.nav-pages .active a,
.nav-pages .active span{
    color: white;
}

.nav-pages a{
    color: rgba(255,255,255,.6);
}

.nav-pages .has-children ul{
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
}

.nav-pages .has-children li{
    min-width: 200px;
    width: 100%
}

.nav-pages .has-children li:hover{
    background: #ebeef0;
}

.nav-pages .has-children li a{
    display: block;
    padding: 9px 20px;
    color: black;
}

#nav-pages-btn{
  background: transparent;
  background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,1) 75%, rgba(255,255,255,1) 100%);
  background-size: 400% 400%;
  background-repeat: no-repeat;
  background-position: 0% 100%;
  animation-duration: .2s;
  -o-animation-duration: .2s;
  -moz-animation-duration: .2s;
  -webkit-animation-duration: .2s;
  animation-delay: .2s;
  -o-animation-delay: .2s;
  -moz-animation-delay: .2s;
  -webkit-animation-delay: .2s;


  color: white;
  outline: none;
  font-size: 1.75rem;

  border-radius: 8px 8px 0 0;
  padding: 5px 8px;
  margin-left: 10px;
}

.btn-animate{
  animation-name: nav-pages-btn-anim;
  -o-animation-name: nav-pages-btn-anim;
  -moz-animation-name: nav-pages-btn-anim;
  -webkit-animation-name: nav-pages-btn-anim;
  animation-fill-mode: forwards;
  -o-animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
  -o-animation-iteration-count: 1;
  -moz-animation-iteration-count: 1;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

.fade-in{
    animation-name: fade-in-anim;
  -o-animation-name: fade-in-anim;
  -moz-animation-name: fade-in-anim;
  -webkit-animation-name: fade-in-anim;
  animation-fill-mode: forwards;
  -o-animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
  -o-animation-iteration-count: 1;
  -moz-animation-iteration-count: 1;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  animation-duration: 2s;
  -o-animation-duration: 2s;
  -moz-animation-duration: 2s;
  -webkit-animation-duration: 2s;
  opacity: 0;
}

.fade-left{
    animation-name: fade-left-anim, fade-in-anim;
    -o-animation-name: fade-left-anim, fade-in-anim;
    -moz-animation-name: fade-left-anim, fade-in-anim;
    -webkit-animation-name: fade-left-anim, fade-in-anim;
    animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    -o-animation-iteration-count: 1;
    -moz-animation-iteration-count: 1;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
    animation-duration: 2s;
    -o-animation-duration: 2s;
    -moz-animation-duration: 2s;
    -webkit-animation-duration: 2s;

    position: relative;
    left: -50px;
    opacity: 0;
}


.nav-langs{
  display: flex;
  flex-direction: row;
  align-items: center;
}

.lang-link.active,
.lang-shortlink.active{
  color: var(--active-color);
}

.nav-social{
    margin-left: auto;
}

.nav-contact a i{
    margin-right: 0.5rem;
}

.nav-social a{
    padding: 0.5rem;
}

#nav-pages-btn i{
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 25%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  background-position: 0% 100%;

    animation-duration: .2s;
  -o-animation-duration: .2s;
  -moz-animation-duration: .2s;
  -webkit-animation-duration: .2s;
  animation-delay: .2s;
  -o-animation-delay: .2s;
  -moz-animation-delay: .2s;
  -webkit-animation-delay: .2s;
}

#nav-pages-btn.active{
  z-index: 1003;
}

#sub-header::before{
  position: absolute;
  content: ' ';
  width: 100%;
  height: 200px;
  background: transparent;
  background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2049194677871149) 65%, rgba(0,0,0,0.3897934173669467) 100%);
  z-index: 800;
}

#sub-header{
  position: relative;
  height: 90vh;
  background-color: #444;
}

#sub-header div.ngg-gallery-singlepic-image{
  margin: 0;
}

#sub-header div.ngg-gallery-singlepic-image a{
  pointer-events: none;
}

#sub-header img{
    position: absolute;
    padding: 0;
    top: 0;
    opacity: 0;
    transition-duration: .5s;
    -o-transition-duration: .5s;
    -moz-transition-duration: .5s;
    -webkit-transition-duration: .5s;
    transition-timing-function: ease-in-out;
    -o-transition-timing-function: ease-in-out;
    -moz-transition-timing-function: ease-in-out;
    -webkit-transition-timing-function: ease-in-out;

    height: 100%;
    width: 100%;
    object-fit: cover;
}

#sub-header img.active{
    opacity: 1;
}

.sub-header-label{
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 20vh;
    right: 10vw;
    color: white;
}

.sub-header-label h2{
    font-size: 20px;
    letter-spacing: 16px;
    text-transform: uppercase;
}

.sub-header-label h3{
    margin-top: 10px !important;
    font-size: 40px;

    animation-delay: .5s;
    -o-animation-delay: .5s;
    -moz-animation-delay: .5s;
    -webkit-animation-delay: .5s;
}

/*************
*** Footer ***
**************/
footer nav{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

footer nav #developed-by-mwd{
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

footer nav #developed-by-mwd a{
    margin-left: 5px;
}

footer a,
footer nav a{
    display: inline-block !important;
    color: #888888 !important;
    font-weight: 800 !important;
    outline: none !important;
    text-decoration: none !important;
    text-align: center;
}

footer nav .separator{
    line-height: 0;
}

/* Desktops & Laptop ----------- */
@media only screen
and (min-device-width : 992px)  {
    .nav-pages .has-children ul{
        position: absolute;
        visibility: hidden;
        opacity: 0;
        top: calc(100% + 12px);
        text-align: left;
        -webkit-box-shadow: 0 0 4px 0 rgb(0 0 0 / 25%);
        box-shadow: 0 0 4px 0 rgb(0 0 0 / 25%);
        padding: 0 0;
        margin-top: 20px;
        margin-left: 0;
        background: #fff;
        border-radius: 4px;

        -webkit-transition: .2s 0s;
        -o-transition: .2s 0s;
        transition: .2s 0s;
    }

    .nav-pages .has-children:hover ul{
        visibility: visible;
        opacity: 1;
        top: 100%
    }

    .nav-pages .has-children ul:before{
        position: absolute;
        content: '\A';
        --arrow-size: 15px;
        border-style: solid;
        top: calc(var(--arrow-size)*-2 + 1px);
        left: var(--arrow-size);
        border-width: var(--arrow-size);
        border-color: transparent transparent white transparent;
    }

    .nav-pages .has-children li:first-child{
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .nav-pages .has-children li:last-child{
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .nav-contact a:not(:last-child){
        margin-right: 1.5rem;
    }

    .nav-langs::before{
        content: ' ';
        width: 8px;
        height: 8px;
        background: white;
        transform: rotate(45deg);
        margin-right: 8px;
    }

    .nav-langs{
        order: 2;
    }
}

/* Desktops ----------- */
@media only screen
and (min-width : 1200px) {


}

/* Laptop ----------- */
@media only screen
and (min-device-width : 992px)
and (max-device-width : 1199px)  {


}

/* iPads ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 991px)
{
    .nav-pages{
      position: fixed;
      top: 93px;
      left: 3px;
      right: 3px;
      bottom: 100%;
      opacity: 0;
      visibility: hidden;
      z-index: 1003;
      background: white;
      -webkit-box-shadow: 0 0 4px 0 rgb(0 0 0 / 25%);
      box-shadow: 0 0 4px 0 rgb(0 0 0 / 25%);
      border-radius: 4px;

      transition-duration: .2s;
      -o-transition-duration: .2s;
      -moz-transition-duration: .2s;
      -webkit-transition-duration: .2s;

      transition-delay: .275s;
      -o-transition-delay: .275s;
      -moz-transition-delay: .275s;
      -webkit-transition-delay: .275s;
    }

    .nav-pages li:hover a, .nav-pages .has-children:hover span{
      color: black;
    }

    .nav-pages li:not(:last-child){
      border-bottom: 1px solid #888;
    }

    .nav-pages .has-children{
      padding: 0;
    }

    .nav-pages li,
    .nav-pages li a,
    .nav-pages .has-children,
    .nav-pages .has-children span,
    .nav-pages .has-children span a{
      margin: 0;
      width: 100%;
      -webkit-transition: 0s 0s;
      -o-transition: 0s 0s;
      transition: 0s 0s;
    }

    .nav-pages .has-children span i{
      position: absolute;
      right: 20px;
    }

    .nav-pages li.active a,
    .nav-pages .has-children.active span{
      color: black;
    }

    .nav-pages li a,
    .nav-pages .has-children span{
      padding: 10px 20px;
      color: black;
    }

    .nav-pages ul{
      flex-direction: column;
      align-items: flex-start;
      overflow-y: scroll;
      max-height: 100%;
    }

    .nav-pages.active{
      opacity: 1;
      visibility: visible;
      bottom: 3px;

    }

    .nav-pages .has-children ul{
      display: none;
      visibility: visible;
      opacity: 1;
      background: #ebeef0;
    }

    .nav-pages .has-children ul li a{
      padding-left: 40px;
    }

    .show-on-tablet{
        display: initial !important;
    }

    .nav-langs .lang-link{
      display: none;
    }

    .nav-contact a{
        padding: 0.5rem;
    }

    .nav-contact a span{
        display: none;
    }

    .only-desktop, .only-laptop{
      visibility: hidden;
      position: fixed;
    }
}

/* Mobile (any orientation) ----------- */
@media only screen
and (max-device-width : 767px) {
    .nav-pages{
      position: fixed;

      left: 3px;
      right: 3px;
      bottom: 100%;
      opacity: 0;
      visibility: hidden;
      z-index: 1003;
      background: white;
      -webkit-box-shadow: 0 0 4px 0 rgb(0 0 0 / 25%);
      box-shadow: 0 0 4px 0 rgb(0 0 0 / 25%);
      border-radius: 4px;

      transition-duration: .2s;
      -o-transition-duration: .2s;
      -moz-transition-duration: .2s;
      -webkit-transition-duration: .2s;

      transition-delay: .275s;
      -o-transition-delay: .275s;
      -moz-transition-delay: .275s;
      -webkit-transition-delay: .275s;
    }

    .nav-pages li:hover a, .nav-pages .has-children:hover span{
      color: black;
    }

    .nav-pages li:not(:last-child){
      border-bottom: 1px solid #888;
    }

    .nav-pages .has-children{
      padding: 0;
    }

    .nav-pages li,
    .nav-pages li a,
    .nav-pages .has-children,
    .nav-pages .has-children span,
    .nav-pages .has-children span a{
      margin: 0;
      width: 100%;
      -webkit-transition: 0s 0s;
      -o-transition: 0s 0s;
      transition: 0s 0s;
    }

    .nav-pages .has-children span i{
      position: absolute;
      right: 20px;
    }

    .nav-pages li.active a,
    .nav-pages .has-children.active span{
      color: black;
    }

    .nav-pages li a,
    .nav-pages .has-children span{
      padding: 10px 20px;
      color: black;
    }

    .nav-pages ul{
      flex-direction: column;
      align-items: flex-start;
      overflow-y: scroll;
      max-height: 100%;
    }

    .nav-pages.active{
      opacity: 1;
      visibility: visible;
      bottom: 3px;

    }

    .nav-pages .has-children ul{
      display: none;
      visibility: visible;
      opacity: 1;
      background: #ebeef0;
    }

    .nav-pages .has-children ul li a{
      padding-left: 40px;
    }

    .show-on-mobile{
        display: initial !important;
    }

    .nav-langs .lang-link{
      display: none;
    }

    .nav-contact a span{
        display: none;
    }

    .nav-contact a{
        padding: 0.5rem;
    }

    .only-desktop, .only-laptop{
      visibility: hidden;
      position: fixed;
    }

    .sub-header-label{
      top: 150px;
    }

    .sub-header-label h2{
      font-size: 12px;
    }

    .sub-header-label h3{
      font-size: 20px;
    }
}

/* Mobile (landscape) ----------- */
@media only screen
and (min-device-width : 576px)
and (max-device-width : 767px) {


    .nav-pages.active{
        top: 93px;
    }
}

/* Mobile (portrait) ----------- */
@media only screen
and (max-device-width : 575px) {
  header{
    font-size: 18px;
  }

  header > #site-navbar-top, header > #site-navbar-bottom{
    padding: 10px 10%;
  }

  .nav-pages.active{
        top: 95px;
    }

  .nav-langs a{
    font-size: 18px;
    font-weight: 700;
  }

  .logo-wrapper .logo{
    height: 25px;
  }

  .logo-wrapper #logo-title{
    font-size: 25px;
  }

  #nav-pages-btn{
    font-size: 25px;
  }

}


/**************
**** Extra ****
***************/

.mwd-column-80{
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

/*******************
**** Animations ****
********************/

@-webkit-keyframes nav-pages-btn-anim{
  0%{
      background-position: 0% 100%;
    }
  100%{
    background-position: 0% 0%;
  }
}

@-webkit-keyframes fade-in-anim{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@-webkit-keyframes fade-left-anim{
    0%{
        left: -50px;
    }
    100%{
        left: 0;
    }
}
