/*
 Theme Name:     Divi Child for AVIV Dance Company
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Bram
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */
/**
 * Show mobile menu on scroll up
 */
/*#main-header {
 -webkit-transition: all 0.2s;
 -moz-transition: all 0.2s;
 transition: all 0.2s;
}
 
#main-header.invisible {
 opacity: 0;
 top: -1000% !important;
}
 
.et-fixed-header#main-header {
 opacity: 0;
}
 
#main-header.detached {
 position: fixed !important;
 top: 0;
 opacity: 1 !important;
}*/

/*** Switch column order on mobile ***/
@media all and (max-width: 980px) {

  /*** wrap row in a flex box ***/
  .custom_row {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    /* Safari 6.1+ */
    flex-wrap: wrap;
  }

  /*** custom classes that will designate the order of columns in the flex box row ***/
  .first-on-mobile {
    -webkit-order: 1;
    order: 1;
  }

  .second-on-mobile {
    -webkit-order: 2;
    order: 2;
  }

  .third-on-mobile {
    -webkit-order: 3;
    order: 3;
  }

  .fourth-on-mobile {
    -webkit-order: 4;
    order: 4;
  }

  /*** add margin to last column ***/
  .custom_row:last-child .et_pb_column:last-child {
    margin-bottom: 30px;
  }

}


@media (min-width: 981px) {
  body.home #page-container {
    padding-top: 0 !important;
  }

  body.home #main-header {
    background-color: rgba(0, 0, 0, 0) !important;
    box-shadow: none !important;
  }

  body.home #main-header.et-fixed-header {
    background-color: white !important;
    box-shadow: 0 0 7px rgba(0, 0, 0, .1) !important;
  }

  body.home #main-header #top-menu>.menu-item>a {
    color: white !important;
    /* text-shadow: 0 0 3px rgba(0, 0, 0, .5) !important; */
  }

  body.home #main-header #et_search_icon {
    color: white !important;
    /* text-shadow: 0 0 3px rgba(0, 0, 0, .5) !important; */
  }

  body.home #main-header .et_search_form_container * {
    color: white !important;
    /* text-shadow: 0 0 3px rgba(0, 0, 0, .5) !important; */
  }

  body.home #main-header .et_search_form_container .et-search-field::placeholder {
    color: white !important;
    /* text-shadow: 0 0 3px rgba(0, 0, 0, .5) !important; */
  }

  body.home #main-header.et-fixed-header #top-menu>.menu-item>a,
  body.home #main-header.et-fixed-header .et_search_form_container *,
  body.home #main-header.et-fixed-header .et_search_form_container .et-search-field::placeholder {
    color: initial !important;
  }

  body.home #logo {
    opacity: 0 !important;
  }

  body.home #main-header.et-fixed-header #logo {
    /* opacity: 100 !important; */
  }

  body.home .logo_container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 87.7%;
    top: 0;
    left: 0;
    background-image: url('https://avivdancecompany.com/wp-content/uploads/2019/09/AVIV-logo-WIT-w90-compressor.png');
    background-repeat: no-repeat;
    background-size: contain;
  }

  body.home #main-header.et-fixed-header .logo_container::after {
    background-image: url('https://avivdancecompany.com/wp-content/uploads/2019/09/AVIV-logo-ZW-w90-compressor.png');
    height: 84%;
  }

  #top-menu .current-menu-item>a::before,
  #top-menu .current-menu-ancestor>a::before {
    -webkit-transform: translateY(18px);
    transform: translateY(18px);
    opacity: 1.0;
  }

  #top-menu .current-menu-ancestor .current-menu-item a::before {
    -webkit-transform: translateY(28px);
    transform: translateY(28px);
  }

  #top-menu > .current-menu-ancestor > .sub-menu > .current-menu-item>a {
    background: rgb(240, 240, 240);
  }

  #top-menu .current-menu-ancestor>a::before {
    -webkit-transform: translateY(18px);
    transform: translateY(18px);
    opacity: 1.0;
  }

  /* #top-menu li a:hover::before {
  -webkit-transform: translateY(18px);
  transform: translateY(18px);
  opacity: 1;
} */

  #top-menu>li>a::before,
  #top-menu>li>ul>li>a::before{
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    background: #fcd21d;
    /* Change your color here */
    width: 100%;
    height: 2px;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
    opacity: 0;
    transition: 0.3s ease;
  }

}

/* menu-item voor uitlijnen logo */
li.hidden-menu {
  display: none !important;
}

/* Language tekst niet weergeven in top-menu */
li.pll-parent-menu-item>a span {
  display: none;
}

#et-top-navigation li.social_icon a {
  font-family: ETmodules !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: antialiased !important;
}

/* .et_mobile_menu {
  overflow: scroll !important;
  max-height: 80vh;
  padding-bottom: 200px;
} */

#et_mobile_nav_menu {
  margin-top: 0 !important;
}

#et_mobile_nav_menu .mobile_nav::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 140%;
  top: -20%;
  left: 0;
  background-image: url('https://avivdancecompany.com/wp-content/uploads/2019/09/AVIV-logo-WIT-w90-compressor.png');
  background-repeat: no-repeat;
  background-size: contain;
}

#et_mobile_nav_menu .mobile_menu_bar_toggle {
  width: 100%;
  text-align: right;
  z-index: 99;
}

#et_mobile_nav_menu .select_page {
  margin-right: 50px;
  display: block;
  text-align: right;
}

html {
  background-color: #222222;
}

@media all and (max-width: 980px) {}


/* .et_pb_section_0::after, */
.vidbg-overlay {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 79px) !important;
}

.pagetitle-head h2,
.pagetitle h2 {
  margin-top: 20vh;
  /* font-weight: bold;
  color: white;
  text-transform: uppercase;
  text-shadow: 0em 0em 0.3em #000000;
  font-size: 3rem; */
  /* background: black; */
}

.pagetitle-head h2 {
  margin-top: 30vh;
}

.videolink::before {
  content: "I";
  font-family: 'ETmodules';
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 60px;
  line-height: 60px;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  color: #fcd21d;
  color: white;
  opacity: 0.4;
}

.videolink {
  position: relative;
}

@media (hover: hover) {
  .videolink div {
    opacity: 0;
  }
}

.videolink:hover div {
  opacity: 1;
}

.videolink div {
  position: absolute;
  bottom: 0;
  padding: 1rem 1rem .5rem 1rem;
}

.videolink h1 {
  font-size: 1rem;
  color: white !important;
}

.videolink h2 {
  color: white !important;
}

.video1link {
  height: calc((50vw) / (16/13.5));
  display: block;
}

.video2link,
.video3link {
  height: calc((25vw) / (16/9));
  display: block;
}

.video4link {
  height: calc((50vw) / (16/9));
  display: block;
}


/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {

  .video1link,
  .video4link {
    height: calc((100vw) / (16/7.5));
  }

  .video2link,
  .video3link {
    height: calc((50vw) / (16/9));
  }
}

/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 479px) {

  .video1link,
  .video2link,
  .video3link,
  .video4link {
    height: calc((100vw) / (16/8));
  }
}

#wp-sponsors {
  align-items: center !important;
  justify-content: space-between !important;
}

/* Popup instellingen */
.evr-close_wrap {
/*   background: #000 !important; */
  border-radius: 0 0 0 4px;
}

.evr-close {
  width: 50px !important;
  height: 50px !important;
  font-size: 50px !important;
  line-height: 50px !important;
}

/* portfolio grid naar 3 kolommen */
.et_pb_portfolio_grid_items {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between;
}

.et_pb_portfolio_grid_items .et_pb_grid_item {
  width: 31.33% !important;
  margin: 0 0 3% 0 !important;
  float: none !important;
  clear: none !important;
}

/* portfolio grid naar 3 kolommen op tablet */
@media (max-width: 980px) {
  .et_pb_portfolio_grid_items .et_pb_grid_item {
    width: 47.5% !important;
  }
}

/* portfolio grid naar 1 kolom op mobile */
@media (max-width: 767px) {
  .et_pb_portfolio_grid_items .et_pb_grid_item {
    width: 100% !important;
  }
}

/* Change divi tabs */

.et_pb_tabs_controls {
  background: none !important;
  display: flex;
  justify-content: center;
}

.et_pb_tabs_controls::after {
  border: none;
}

.et_pb_tabs_controls li {
  border: none;
  float: none;
  display: block;
  padding-left: 30px;
  padding-right: 30px;
}

.et_pb_tabs_controls li a {
  padding-left: 0;
  padding-right: 0;
}

.et_pb_tabs_controls li.et_pb_tab_active a {
  border-bottom: 2px solid #fcd21d;
}


/* Verberg Meer info button agenda-items */
.mec-event-article .btn-wrapper {
  display: none;
}

.mec-event-article .col-md-9 {
  width: 100%;
}

.mec-calendar-header h2 {
  text-shadow: none !important;
}

.avquote {
  display: block;
  text-align: center;
  color: #fcd21d;
  font-size: 100px;
  font-family: 'Allerta Stencil', Helvetica, Arial, Lucida, sans-serif;
}

#main-footer {
  /* display: none; */
}

.search-results .post-meta {
  display: none;
}

/* Persoon module op teampagina */
.et_pb_team_member_image {
  margin: 0 !important;
}

.et_pb_team_member_description {
  padding: 10px 10px 10px 10px;
  border: 2px solid #fcd21d;
}

@media (min-width: 768px) {
  .et_pb_team_member_description {
    height: 320px;
  }
}

@media (max-width: 450px) {
  .et_pb_team_member_image {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .et_pb_team_member_description {
    max-width: 320px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.et_pb_slider_container_inner {
  vertical-align: top !important;
}

.mec-events-content p {
  font-size: 120% !important;
}

.et_pb_contact_form input[type="text"] {
  border-radius: 3px;
}

/* Events pagina */
.single-mec-events .et_pb_widget {
  display: none;
}

.et_pb_button {
  /* border-color: #fdc201;
  color: #fdc201 !important; */
}

/* Event formulier (contactform7) styles */
.wpcf7-form p {
  margin: 0 0 0 0;
}

.wpcf7-text,
.wpcf7-textarea {
  padding: 16px !important;
  border: 0 !important;
  border-radius: 3px;
  background-color: #eeeeee !important;
  color: #999999;
  font-size: 16px;
  width: 100%;
}

.wpcf7-submit {
  background-color: #fcd21d !important;
  border: 2px solid #fcd21d !important;
  border-radius: 3px !important;
  padding: .3em 1em !important;
  text-transform: none !important;
  font-size: 20px !important;
  line-height: 1.7em !important;
  font-weight: normal !important;
  color: white !important;
}

.wpcf7-submit:hover {
  background-color: white !important;
  color: #fcd21d !important;
  border: 2px solid #fcd21d !important;
}

.wpcf7-validation-errors {
  border-color: red !important;
}

/* Plus- of video-icoontje op portfolio en optredens */
.et_pb_portfolio_grid_items .project_category-portfolio-foto .et_overlay::before,
.et_pb_portfolio_grid_items .project_category-optredens-foto .et_overlay::before {
  content: "\e050" !important;
}

.et_pb_portfolio_grid_items .project_category-portfolio-video .et_overlay::before,
.et_pb_portfolio_grid_items .project_category-optredens-video .et_overlay::before {
  content: "I" !important;
}

/* Hide google captcha badge */
body:not(.page-id-117):not(.single-mec-events) .grecaptcha-badge {
  visibility: hidden;
}