/*
Theme Name: mg theme
Template: astra
Author: Child Theme Configurator
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.11.18.1766845544
Updated: 2025-12-27 14:25:44

*/
.home {
  position: relative;
}

/* Keep site header/nav above the letter overlay */
.site-header,
#masthead,
.ast-header,
.ast-primary-header-bar,
.ast-desktop-header,
.ast-mobile-header-wrap {
  position: relative;
  /* z-index: 100000; */
}

/* Put the overlay below the header */
.mg-letter-overlay{
  z-index: 50; /* or 1000, but below header */

}

.site-main {margin-top:20px !important;}
.site-title a {
  font-family: "Google Sans Code", monospace;
  font-optical-sizing: auto;
  font-weight: 650;
  letter-spacing: 0.01em;
  color:white;
  font-size:1.4rem;
  text-decoration: none;
}

/* Make Astra dropdown visible */
.main-header-menu .sub-menu {
  background: #111;              /* or whatever matches your header */
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 0;
  min-width: 240px;
}

.main-header-menu .sub-menu a.menu-link {
  color: #fff !important;
  padding: 10px 16px;
  display: block;
  line-height: 1.2;
  font-size: 15px;
}

.main-header-menu .sub-menu a.menu-link:hover,
.main-header-menu .sub-menu li.current-menu-item > a.menu-link {
  background: rgba(255,255,255,.08);
  color: #fff !important;
}
/* Remove arrow SVGs inside submenu links (keep only the parent toggle arrow) */
.main-header-menu .sub-menu .ast-icon {
  display: none !important;
}

.main-header-menu .sub-menu {
  background: rgba(0, 0, 0, 0.95);
}
.main-header-menu .sub-menu a.menu-link {
  color: #fff !important;
}
.main-header-menu .sub-menu a.menu-link:hover,
.main-header-menu .sub-menu a.menu-link:focus {
  color: #7dd3fc !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Global-ish: top align only when UAGB is using flex on the wrapper */
.uagb-container-inner-blocks-wrap[style*="display:flex"],
.uagb-container-inner-blocks-wrap[style*="display: flex"]{
  align-items: flex-start;
}
.uagb-container-inner-blocks-wrap[style*="display:flex"][style*="flex-direction:row"],
.uagb-container-inner-blocks-wrap[style*="display: flex"][style*="flex-direction: row"]{
  align-items: flex-start;
}
/* Scope to that specific section so we don't affect other containers */
.uagb-block-8229ec8c .uagb-container-inner-blocks-wrap{
  align-items: flex-start !important;
}
/* Overlay mode */
.mg-letter-overlay {
  position: absolute;
  top: 30px;          /* adjust for your header */
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  pointer-events: none;
  display: none;
  
}

.mg-letter-overlay .mg-letter{
  pointer-events: auto;
  /* padding:2rem; */
  
  /* IMPORTANT: no max-height, no overflow */
}

/* Optional dim behind it (remove if you don’t want it) */
.mg-letter-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  /* background: rgba(0,0,0,.18); */
}
.mg-letter-overlay .mg-letter-wrap{
  position: relative;
  width: 100%;
  /* max-width: 1200px; */
  /* display:none; */
}



.mg-letter{ 
  background-color:beige;
  border: 1px solid rgba(0,0,0,.08); 
  padding: 2.5rem 2.25rem; 
  box-shadow: 0 10px 30px rgba(0,0,0,.56); 
  transform: rotate(-0.7deg);
  margin-left:20%;
  margin-top:450px;
  width:80%;
  margin-left:auto;
  margin-right:auto;
 } 
   
   
   
/* hellobaby */ 
.mg-letter header { 
  margin-bottom: 1.5rem; } 
  
.mg-letter .mg-name { 
  font-size: 1.6rem; 
  line-height: 1.2; 
  margin: 0; 
  font-weight: 650; 
  letter-spacing: .2px; } 
  
.mg-letter .mg-date{ 
  margin-top: .35rem; 
  font-size: .95rem; 
  opacity: 1; } 
  
  .mg-letter .mg-preface{
    margin: 1rem 0 .35rem 0;
    font-size: 1.5rem;
  }

.mg-letter p{ 
  font-size: 1.06rem; 
  line-height: 1.7; 
  margin: 0 0 1rem 0; } 

.mg-letter h2{ 
  font-size: 1.5rem; 
  margin: 1.75rem 0 .75rem 0; 
  font-weight: 700; 
  letter-spacing: .2px; } 

.mg-letter ul{ 
  margin: .25rem 0 1rem 1.25rem; 
  padding: 0; } 
  
.mg-letter li{ 
  margin: .35rem 0; 
  line-height: 1.65; } 
  
.mg-letter .mg-hero{ 
  font-size: 2rem !important; 
  line-height: 1.25 !important; 
  margin: 0rem 0 1rem 0 !important; 
  font-weight: 700 !important; } 
  
.mg-letter .mg-divider{ 
  height: 1px; 
  background: rgba(0,0,0,.08);
  margin: 1.75rem 0; } 

.mg-letter .mg-cta{ 
  margin-top: 1.25rem; 
  padding-top: 1.25rem; 
  border-top: 1px solid rgba(0,0,0,.08); } 
  
.mg-letter .mg-cta a{ 
  text-decoration: underline; 
  text-underline-offset: 3px; } 
  
/* Responsive */ 
@media (max-width: 600px){ 
  
  .mg-letter-overlay {
    display:none;
  }
    
    .mg-letter-wrap{ 
    padding: 2.25rem 1rem; 
  } 
    .mg-letter{ padding: 1.5rem 1.25rem; } 
    .mg-letter{ 
      background-color:beige;
      border: 1px solid rgba(0,0,0,.08); 
      padding: .5rem; 
      box-shadow: 0 10px 30px rgba(0,0,0,.56); 
      transform: rotate(-0.7deg);
      /* margin-left:20%; */
      margin-top:400px;
      width:100%;
      margin-left:auto;
      margin-right:auto;
     } 
    .mg-letter .mg-hero{ font-size: 1.35rem; } 
  }
