:root {
  --anchor-pannel-animation-left:0;
}
.menu {
  height:100vh;
  width:100%;  
  background-color: #ededed;
  padding:0rem 0rem 1rem 0rem ;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
  box-sizing: border-box;
  position:fixed;
  border-width:0 1px 0 0;
  z-index: 1000;
  top:calc(-100vh - 40rem);
  overflow:visible;    
  transition: top ease-out 500ms;
}

.menu-change {
  top: 0;
}


#menu-head {
  position:fixed;
  top: 0;
  display:grid;
  grid-template-columns: auto 1fr auto;
  width: calc(100% - 16px); 
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border-radius: 2rem;
  margin: 8px 8px 0 8px;
  z-index: 20;
}

@media only screen and (max-width: 1000px) {
  #menu-head {   
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    border-radius: 1rem;
  }  
}


#menu-head > h4 {
  padding: 0.2rem 0 0 1rem;
  font-size: 1rem;
}

.anchor-pannel {
  width:min(800px, 90%); 
  position:relative; 
  display:flex;
  flex-direction: row;
  gap:0;
  justify-self: center;
}

.anchor-pannel a {
  position: relative;
  display:block;
  width:25%;
  padding: 12px 16px 9px 16px;
  box-sizing: border-box;
  text-align: center;
}
.anchor-pannel a:hover::before {
  content:'';
  width: 100%;
  height:32px;
  position:absolute;
  left: 0;
  background-color:#FCE0B6 ;
  animation: anchor-pannel-hover 0.2s ease-out;
  opacity:0.5;
  border-radius: 32px;
  top:3px;
  z-index: -1;
}
@keyframes anchor-pannel-hover {
  0% {opacity:0.5; transform:scaleX(0)};
  100% {opacity:0.5; transform:scaleX(1)};
}
.anchor-pannel::before{  
  content:'';
  width: 25%;
  height:32px;
  position:absolute;
  left: var(--anchor-pannel-animation-left, 0);
  background-color:#FCE0B6 ;
  border-radius: 32px;
  top:3px;
  z-index: -1;
  transition: left linear 0.3s;
}


@media only screen and (max-width: 1000px) {
  .anchor-pannel {   
    grid-row:2/2;
    grid-column:span 2;
    width:calc(100% - 16px); 
  }  
  .anchor-pannel a {   
    padding: 8px 12px 12px 8px;
    font-size: 12px;
  }
  .anchor-pannel::before{  
    content:'';   
    height:24px;
    position:absolute;
    left: var(--anchor-pannel-animation-left, 0);
    background-color:#FCE0B6 ;
    border-radius: 32px;
    top:2px;
    z-index: -1;
    transition: left linear 0.3s;
  }
  .anchor-pannel a:hover::before {
    height:23px;  
  }
}



#content-section1,
#content-section2,
#content-section3,
#content-section4,
#content-section5 {
  scroll-margin-top: 120px;
}
.menu-button {
  position:relative;
  display:grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width:6rem; 
  cursor: pointer; 
  justify-self: right;
}

#menu-toggle {
  position: absolute;
  opacity:0.5;
}
.menu-flex {
  display:flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--blue_medium);
  padding:0.35rem 0.10rem;
  border-radius: 2rem;
  margin:0.5rem;
  justify-content: center;
  z-index: 0;
}
.menu-flex-change {
  flex-direction: row;
}
.menu-flex:hover {
background-color: rgba(0,0,0,0);
}
.menu-flex:hover::after {
    content: '';
    display: block;
    position: absolute;
    top:0;
    left:0;
    width: calc(100% - 1.1rem);
    height: calc(100% - 1rem);
    border-radius: 2rem;
    background-image: url(../img/Button_Blue_Hover.svg);
    background-repeat: no-repeat;
    /* No matter the size of the button, the svg will cover it */
    background-position: 50% 0;
    background-size: cover;
    z-index: -1;
    margin: 0.5rem;
}
.menu-flex:hover::before {
    /* Creates the border around the CTA on demand. It's complicated but it's the only way I know to have a gradient as a border, while seeing the aniamted svg of the ::after */
    content: "";
    position: absolute;
    /* Makes sure every corner is covered */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 2rem; 
    border: 2px solid transparent;
    /* Masking the center like a boolean operation */
    /* webkit is need for chrome, opera, and edge, only firefox supports it natively */
    /* Removes the background to see the animated svg */
    mask:
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0);
    -webkit-mask:
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    /* Makes the border gradient move a bit, subtle, useless, so necessary */
    /* Actual gradient used for the border */
    background: radial-gradient(100% 116.84% at 76.84% 100%, #05429E 0%, #89D5FF 29.17%, #BAE6FF 54.17%, #89D5FF 83.85%, #0560A2 100%) border-box;
    animation: CTA_Border_hover 3s ease-in-out infinite;
    background-size: 120%;
    margin:0.5rem;
}
.menu-flex > p {
  font-size: 0.75rem;
  font-weight: 500;
  color:white;
  line-height:100%;
  padding: 0.1rem 0 0 0;
  margin-right: -2px;
}
.menu-icon {
  margin: 0 0rem 0 0.5rem;
  height: 0.8rem;
  transform:rotate(90deg);
  transition: transform ease 500ms;
}
.menu-icon-change {
  transform: rotate(-90deg);
}
.menu-section {
  margin-top: 88px;
  margin-bottom:-88px;
  width: 50vw;
  margin-left: 50%;
}
.menu-section > h6 {
  padding: 0 0 0.25rem 3.5rem;
  font-size:0.75rem;
  line-height:100%;
  text-transform:uppercase;
  margin: 0 0 0.25rem 1rem;
}
  
h4 {
    font-size:2.5rem;
    line-height:100%;
    text-transform:uppercase;
}

.menu-items h4 {
  font-size:1.25rem;
  margin-bottom: 4px;
}

.menu-items > a > div > h5 {
font-size:0.75rem;
line-height:100%;
text-transform:uppercase;
}

.menu-items:hover h4,
.menu-items:hover h5,
.menu--items-active h4,
.menu--items-active h5 {
  color:white; 
}
.menu-items:hover h5,
.menu--items-active h5 {
  visibility: visible;  
}
.menu-items:hover > a > .menu-items-icon > div::before,
.menu--items-active > a > .menu-items-icon > div::before { 
   /* Creates the border around the CTA on demand. It's complicated but it's the only way I know to have a gradient as a border, while seeing the aniamted svg of the ::after */
   content: "";
   position: absolute;
   /* Makes sure every corner is covered */
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   border-radius: 0.2rem; 
   border: 2px solid transparent;
   /* Masking the center like a boolean operation */
   /* webkit is need for chrome, opera, and edge, only firefox supports it natively */
   /* Removes the background to see the animated svg */
   mask:
   linear-gradient(#fff 0 0) padding-box, 
   linear-gradient(#fff 0 0);
   -webkit-mask:
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0);
   -webkit-mask-composite: destination-out;
   mask-composite: exclude;
   /* Makes the border gradient move a bit, subtle, useless, so necessary */
  /* Actual gradient used for the border */
  background: radial-gradient(100% 116.84% at 76.84% 100%, #05429E 0%, #89D5FF 29.17%, #BAE6FF 54.17%, #89D5FF 83.85%, #0560A2 100%) border-box;
  animation: CTA_Border_hover 3s ease-in-out infinite;
  background-size: 120%;  
 }
 .menu-items:hover > a > .menu-items-icon > div::after,
 .menu--items-active > a > .menu-items-icon > div::after{ 
  content: '';
    display: block;
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    border-radius: 0.25rem;
    background-image: url(../img/Button_Blue_Hover.svg);
    background-repeat: no-repeat;
    /* No matter the size of the button, the svg will cover it */
    background-position: 50% 0;
    background-size: cover;
    z-index: -1;
}
.jumpto {
  display:none;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin: -1.4rem 0 0.4rem 4.5rem;
  animation: jumpto_appear ease 300ms 
}
@keyframes jumpto_appear {
  0% {transform:translateY(-8px)};
  100% {transform:translateY(0)};
}
.jumpto > span,
.jumpto > a {
  color:white;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  margin: -0.3rem -0.5rem -0.2rem -0.5rem;
}
.jumpto > span {
  opacity: 0.5;
  font-size: 0.75rem;
}
.jumpto > a:hover {
  background-color:#BAE6FF;
  border-radius: 0.25rem;
  color:#002241;
}
.menu-items:hover > .jumpto,
.menu--items-active > .jumpto {
  display:flex;
}
.menu-items > a  {
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0rem 1.5rem 4.5rem;
  transition: padding ease 300ms;
}
.menu-items:hover > a,
.menu--items-active > a {
  background: var(--blue_radialgradient);
  padding: 0.65rem 0rem 1.85rem 4.5rem;
}
.menu-items-icon {
  width:6rem;
  border-radius: 0.2rem;
  fill:#2d2d2d
}
.menu-items-icon > div {
  position:relative;
  margin:0.5rem;
  width:64px;
  height:16px;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.2rem; 
  z-index: 0;
}

.menu-items-icon div img {
  display:none;  
}
.menu-items:hover > a > .menu-items-icon > div img,
.menu--items-active > a > .menu-items-icon > div img {
  display:block;
 }

.menu-items-trigger{
  visibility: visible;
  position:absolute;
}



.social {
  display: flex;
  flex-direction: row;
  margin-left:calc(50% + 4.5rem);
  margin-top:88px;
}

.social > a:hover > svg > path {
  fill: rgba(255,184,0,1);
  transition:300ms;
}

.contact-bubble {
  z-index: 30;
  position: sticky;
  bottom: 20px;
  left: 20px;
  width: fit-content;
  transition: opacity 0.3s ease-out;
}
.contact-bubble .CTA {
  position: absolute;
  top: -44px;
  left: 80px;
  width:9rem;  
  padding: 1rem 1rem 110px 140px;
  margin: 0 0 -110px -120px;
}
.contact-bubble .CTA::before {
  content:url(../img/bubble-tail.svg);
  position:absolute;
  bottom:96px;
  left:130px;
}

/*Menu-items section that gets displayed on the right, over the main tag*/

.menu-items > .menu--left-column {
  display: none;
  visibility: hidden;
  height: 100vh;
  background: radial-gradient(96.13% 96.13% at 0% 100%, #002241 0%, #053663 100%);
  left:33vw;
  top:0;
  position: absolute; 
  z-index: 3;
  padding: 32px 40px;
  box-sizing: border-box;    
  width:50%;
  left:0;
}

.menu--items-active > .menu--left-column {  
  visibility: visible;
  display:flex;
  flex-direction: column;
}



.nav-section-image1 { 
  width: 75%;
  box-shadow: 0 12px 45px 0 rgba(0,0,0,0.4), 0 4px 8px 0 rgba(0,0,0,0.4)
}

.menu-items:hover .image-wrapper,
.menu--items-active .image-wrapper {
  height:100%;
  display:flex;
  justify-content: center;
  align-items: center;
  animation: slide-in-image1 0.4s 0s ease-out forwards;
}

@media only screen and (max-width: 1225px) {
  .menu-items > .menu--left-column {  
    height:100%;
    width:33%;
  }
  .social {  
    margin-left:calc(33% + 4.5rem);
  }
  .menu-section {
    width: calc(100% - 33%);
    margin-left:33%;
  }
  .menu {       
    overflow-y: scroll;
  }
  
}

@keyframes slide-in-image1 {
  0%{
    opacity: 1;
    transform:translateX(4rem);    
  }  
  
  100% {
    opacity:1;    
    transform:translateX(0rem);    
  }
}



@media only screen and (max-width: 900px) {
 
  .menu-items > .menu--left-column {    
    display: none;
    visibility: hidden;
    z-index: 0;
    padding: 32px 0 7rem 0; 
    height: fit-content;
    width:100%;
    position: relative;     
  }
  .menu-items:hover > .menu--left-column,
  .menu--items-active > .menu--left-column {  
    display: block;
    visibility: visible;
  }

  .social {     
    width:100%;
    justify-content: left;
    margin-left: 0;
  }

  .menu-section {
    width: 100%;
    margin-left:0;
    margin-bottom:0;
  } 
  .menu-items > a  {
    padding: 1.25rem 12px 1.25rem 12px;
  }
  .menu-items:hover > a,
  .menu--items-active > a {  
    padding: 1.25rem 12px 1.25rem 12px;
  }
  .menu-section > h6 {
    padding: 0 12px 0.25rem 12px;  
    margin: 0;
  }
  .menu-items:hover > .jumpto,
  .menu--items-active > .jumpto {
    display:flex;
  } 
  .jumpto {
    flex-wrap: wrap;
    margin: -4rem 12px 2.15rem 12px;
    gap: 4px 16px;
    z-index: 100;
  }
  .jumpto > span {
    width:100%;
  }  
  .jumpto > a {
    z-index: 100;
  }

  .contact-bubble img {
    display:none;
  }
  .contact-bubble .CTA {
    width: 9rem;  
    position: absolute;
    top: -54px;
    left: -26px;
    padding: 1rem 1rem 110px 140px;    
  }
  .contact-bubble .CTA::before {
       display:none;
  }
  .menu-change {
    padding-bottom:160px;
  }

}

@media only screen and (max-width: 414px) {
  .jumpto {
    margin: -6rem 12px 4rem 12px;
    gap: 16px 24px;
  }  s
  .menu-items:hover > a,
  .menu--items-active > a {  
    padding: 0.4rem 12px 8rem 12px;
  }
  .menu-change {
    width:100vw;
  }
  #menu-head {
    width: calc(100vw - 16px);
  }
  
}
