/*
Theme Name:   BLUM Blue Manual 2024
Author:       Joshua Kagel
Template:     emma
Version:      1.09
Text Domain:  blumbluemanual2024
*/

.mobile-menu-grid .is-layout-grid {
  
  grid-template-columns: 80px 1fr 1fr;
  column-gap: var(--layout-spacer-x) !important;
  
    
    align-items: center;
  & p {
    align-self: center;
  }
  & figure {
    display: grid;
    justify-self: end;
  }
}

.wp-block-navigation__submenu-container {
  background-color: #000000B3 !important;
  color: #fff !important;
  box-shadow: 4px 4px 6px 0px rgba(51, 51, 51, 0.3);
  
}

.wp-block-navigation__submenu-container .wp-block-navigation-item:not(:last-child) {
  border-bottom: 1px solid #A8A8A9;
}

.flyout-menu {
  background-color: var(--wp--preset--color--primary) !important;
  color: white !important;
  box-shadow: 4px 4px 6px 0px rgba(51, 51, 51, 0.3);
  padding: 0em 1em !important;

  & li a, 
  & li summary {
    color: white !important;
    border-top: 1px solid var(--wp--preset--color--fourth);
    font-weight: bold;
  }
  & .flyout-menu-closer {
    background-color: var(--wp--preset--color--primary) !important;
    color: white;
  
  }

  & li:nth-last-child(2) a {
    border-bottom: 1px solid var(--wp--preset--color--fourth);
  }

  & .submenu {
    background-color: var(--wp--preset--color--primary) !important;
  }

  & .menu-back {
    color: white;
    background-color: transparent;
  }

}

.wp-block-group a {
  text-decoration: none;
}

.wp-site-blocks a:not(.wp-element-button__link):hover,
.wp-site-blocks a:not(.wp-element-button__link):focus {
	text-decoration: underline;
}

body:not(.home) {
  background-color: #F6F8FA!important;
} 

.homepage-svg {
  & a {
    text-decoration: none !important;
    
    &:hover{
      opacity: 1;
    }
  }
}

.menu-fill:hover {
  & text {
    fill: white;
  }
  .menu-fill-7 {
    fill: var(--wp--preset--color--primary);
  }

  .menu-fill-6 {
    fill: var(--wp--preset--color--primary-support);
  }

  .menu-fill-5 {
    fill: var(--wp--preset--color--secondary);
  }

  .menu-fill-4 {
    fill: var(--wp--preset--color--secondary-support);
  }

  .menu-fill-3 {
    fill: var(--wp--preset--color--third);
  }

  .menu-fill-2 {
    fill: var(--wp--preset--color--third-support);
  }

  .menu-fill-1 {
    fill: var(--wp--preset--color--fourth);
  }
  
}

.header-adjust-parent {
  display: flex;
  flex-wrap: wrap;

}

.header-adjust-mobile {
  background-color: #659EC9;
  border-radius: 25px 25px 0 0;
  padding: .5rem;
  width: 100%;
  
 
}


.desktop-only, .phase-menu-desktop-only {
  display: none;
}

/* .mobile-only {
  display: grid;
} */



@media screen and (min-width: 1100px) {
  .header-adjust-parent {
    display: block;
  }
  
  .header-adjust-mobile {
    background-color: var(--wp--preset--color--primary);
    border-radius: none;
    padding: none;
    width: auto; 
   
  }

  .desktop-only {
    display: block;
  }

  .phase-menu-desktop-only {
    display: grid;
  }

  .mobile-only {
    display: none;
  }

  .block-editor {
    .mobile-only {
      display: grid;
    }
  }

  .shadow {
    border: 1px solid black;
    box-shadow: 6px 4px 5px 0px rgba(0,0,0,0.40);
  }
}


.wpum-template .button {
  background-color: var(--wp--custom--button-background-color);
  border-radius: 0;
  border-width: 0;
  color: #fff;
  font-family: var(--wp--preset--font-family--barlow);
  font-size: inherit;
  line-height: inherit;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  text-decoration: none;
  cursor: pointer;
  
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid currentColor; 
  background-color: transparent;
  transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--primary); 
  color: #ffffff !important; 
  border-color: var(--wp--preset--color--primary);
}

.buttons-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  width: 100%;
}

.buttons-grid > .wp-block-button {
  margin: 0;
  width: 100%;
  height: 100%;
}

.buttons-grid > .wp-block-button > .wp-block-button__link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-extend {
  position: relative;
}

.link-extend a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.w-100 {
  width: 100% !important;
}

:where(.wp-block-group.wp-block-group-is-layout-constrained) {
  position: static;
}

.flex-grow {
  flex-grow: 1;
}

.button-arrow .wp-block-button__link {
  display: flex;
  color: white;
  background-color: var(--wp--preset--color--primary);
  /* padding: 0 .5rem 0 .5rem; */
  align-items: center;
  gap: 0.5rem;
  
}

.button-arrow .wp-block-button__link::after {
  display: block;
  content: "";
  mask-image: url('assets\\arrow-right-alt.svg');
  mask-repeat: no-repeat;
  mask-origin: content-box;
  background-color: currentColor;
  height: 1.5rem;
  width: 1.5rem;
  
}

/* Make parent container relative for positioning */
.hover-description {
  position: relative;
  cursor: pointer;  /* Shows clickable cursor on hover */

  & a {
    position: static;
  }

  & .description {
    position: absolute;
    align-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wp--preset--color--primary) !important;
    color: white !important;
    padding: 20px !important;
    margin: 0 !important;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
  }
}

@media(hover: hover) and (pointer: fine) {
  .hover-description:hover .description {
    opacity: 1;
  
    & p {
      color: white !important;
      margin: 0 auto;
    }
  }
}

