/*
 Theme Name:     Waywaysecappo First Nation Child & Family Services Inc. (Divi Child Theme)
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Leech Group
 Author URI:     https://leechgroup.com/
 Template:       Divi
 Version:        1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

/* CHANGE MOBILE NAV BREAKPOINT */

@media only screen and (max-width: 1300px) {
  /* Change this number to modify breakpoint width */
  #top-menu-nav,
  #top-menu {
    display: none;
  }
  #et_top_search {
    display: none;
  }
  #et_mobile_nav_menu {
    display: block;
  }
  .et_fixed_nav #main-header {
    position: absolute;
  }
}

/* decrease left and right padding on main menu items */
#top-menu li li {
  padding: 0 10px;
  margin: 0;
}

/* increase width of main menu dropdowns from default of 240px */
.nav li ul {
  width: 280px;
}

/* increase width of main menu dropdowns items from default of 200px */
#top-menu li li a {
  width: 240px;
}

/* HIDE ALT TAG TEXT */

img {
  color: transparent;
}

/* REMOVE DROP SHADOW FROM HEADER */

#main-header {
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* GRAVITY FORMS */

.gform_button {
  background-color: #00829b; /* blue */
  padding: 10px 15px;
  color: #ffffff;
  border: none;
}

.gform_button:hover {
  background-color: #000000; /* black */
}

/* MOBILE / NON-MOBILE */

@media all and (max-width: 480px) {
  .content-non-mobile-only {
    display: none;
  }

  .content-mobile-only {
    display: inline;
  }
}

@media all and (min-width: 481px) {
  .content-non-mobile-only {
    display: inline;
  }

  .content-mobile-only {
    display: none;
  }
}

/* DIVI STACKING ORDER */

@media all and (max-width: 980px) {
  /*** wrap row in a flex box ***/
  .custom-stacking-order {
    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-stacking-order:last-child .et_pb_column:last-child {
    margin-bottom: 30px;
  }
}
