/* hide checkbox */

.nav-toggle {
  display: none;
  display: block;
}
/* hamburger button */

.nav-toggle-label {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
  line-height: 1;
  color: var(--color-warm-2);
}
.nav-toggle-label .icon {
  display: inline-block;
  transition: transform 0.3s ease;
}
.nav-toggle:checked+.nav-toggle-label .icon {
  transform: rotate(90deg);
}
/* shell = fixed overlay container */

.nav-fixed-wrap {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80%;
  pointer-events: none;
  z-index: 1000;
}
/* panel (animated part) */

.nav-toggle {
  display: none;
}
/* hamburger */

.nav-toggle-label {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2000;
  color: var(--color-warm-2);
}
.nav-toggle-label .icon {
  display: inline-block;
  transition: transform 0.3s ease;
}
.nav-toggle:checked+.nav-toggle-label .icon {
  transform: rotate(90deg);
}
/* overlay click target
.nav-close-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: transparent;
  background: blue;
  border: solid 2px green;
}
.nav-close-overlay {
  position: fixed;
  inset: 0;
  
  z-index: 900;
}
 */

.nav-close-overlay {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.nav-close-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
/* shell */

/* set position to header or off creen without and transitiono*/
.nav-fixed-wrap {
  position: fixed;
  top: 0;
 right: -60%;
  height: 100vh;
  width: 60%;
  pointer-events: none;
  z-index: 1000;
 
  ;
}
/* panel */
/* slide out with transitions*/
.main-nav {
  height: 100%;
  width: 100%;
  width: auto;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.35s ease-in-out;
  pointer-events: auto;
  padding: 100px 20px 20px;
  border-left: 2px solid var(--color-warm-2);
}
/* open state */

.nav-toggle:checked~.nav-fixed-wrap .main-nav {
  transform: translateX(-100%);
}
.main-nav ul {
  width:80%;

}
/* links */

.nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav a {
  font-size: clamp(18px, 2.5vw, 22px);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-cool-2);
  transition: 0.25s;
  font-weight: 600;
  border: solid 2px var(--color-cool-2);
  background: #fff;
}
.nav a {
  display: block;
  width: 100%;
}
.nav a:hover {
  background: #f28b32;
  color: #fff;
}
.nav a:active {
  background: #e84621;
  transform: scale(0.98);
}

@media (min-width: 1100px) {
  /* shell = fixed 50% width panel */
  .nav-fixed-wrap {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: auto;
    display: flex;
    justify-content: center;
    /* centres inner nav horizontally */
    align-items: center;
    /* centres inner nav vertically */
    pointer-events: auto;
    z-index: 1000;
    background: transparent;
    /* or white if you want visible panel */
    top: 40px;
  }
  /* nav container */
  .main-nav {
    transform: none !important;
    /* override mobile slide */
    height: auto;
    display: flex;
    justify-content: center;
    /* centres UL */
    align-items: center;
    padding: 0;
    border-left: none;
    background: transparent;
  }
  /* menu list */
  .nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
  }
  /* hide hamburger */
  .nav-toggle-label {
    display: none;
  }
  .nav-close-overlay {
    display: none;
  }
}