/*
 Theme Name:   HDS Allita Divi Child
 Theme URI:    https://www.hdsallita.com
 Description:  Child theme for Divi
 Author:       Emmanuel Santana
 Author URI:   https://github.com/hdsemmanuelsantana
 Template:     Divi
 Version:      1.0.0
*/

/* Your custom CSS goes below this line */

/*================================
Holiday Garland snap to Main Nav 
================================*/

/* Make the main header a positioning context and above page content */
#main-header {
  position: relative;
  z-index: 10000;
}

/* Keep the menu container above the garland so links stay clickable */
#main-header .et_menu_container {
  position: relative;
  z-index: 10001;
}

/* Garland snapped to the bottom of the header, full browser width, overlapping the content below */
.holiday-garland {
  position: absolute;
  top: 100%;                 /* exactly under the header */
  left: 50%;                 /* anchor 100vw element */
  width: 100vw;              /* full browser width */
  transform: translateX(-50%);
  z-index: 9989;             /* below menu, above content */
  text-align: center;
  pointer-events: none;
  margin: 0;
  padding: 0;

  /* Fade-in animation */
  opacity: 0;
  animation: holidayFadeIn 1.2s ease-out 0.6s forwards;
	
  /* Drop Shadow */
 -webkit-filter: drop-shadow(-2px -2px 4px #d3d3d3);
  filter: drop-shadow(-2px -2px 4px #d3d3d3);
}

/* Base (Desktop) Garland */
.holiday-garland img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0px;
  padding: 0;
  content: url("https://hdsoftstage.wpengine.com/wp-content/uploads/holiday-garland@0.25x_11.png");
}

/* Tablet Garland */
@media (max-width: 1284px) {
  .holiday-garland img {
    content: url("https://hdsoftstage.wpengine.com/wp-content/uploads/holiday-garland-tablet@0.25x_11.png");
  }
}

/* Mobile Garland */
@media (max-width: 950px) {
  .holiday-garland img {
    content: url("https://hdsoftstage.wpengine.com/wp-content/uploads/holiday-garland-mobile@0.25x_11.png");
  }
}

/* Fade-in Keyframes */
@keyframes holidayFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
