/*----------TOPNAV-------------*/

.topnav {
	background: #576575;
	border-bottom: 1px solid #ddd;
	height: 80px;
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 999999;
}
nav.topnav > ul
 {
    list-style-type: none;
    display: flex;
    justify-content: normal;
	width: 90%;
	margin: 0 auto;
	padding: 0;
	height: 100%;
	align-items:center;
}
nav.topnav > ul > li:hover > ul.child{
	list-style-type: none;
    display: flex;
    justify-content: normal;

	margin: 0;
	padding: 0;
	border: 1px solid #fff;
	align-items: stretch;
}
nav.topnav > ul > li:hover > ul.child:first-child,
nav.topnav > ul > li:hover > ul.child {
	border-top: 0;
}
nav.topnav > ul > li,
nav.topnav > ul > li:hover > ul.child > li,
nav.topnav > ul > li:hover > ul.child > li{
	padding: 0 2vw;

	margin: 0;
	font-weight: 400;
font-size: 0.75rem;
  line-height: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
	/* border-left: 1px solid #fff; */
		transition: 0.5s ease-in-out;
	text-align: center;
	word-break: keep-all;
	 display: flex;
  justify-content: space-around; /* aligns the items horizontally */
  align-items: center;
	height: inherit;
	color: #fff
}
nav.topnav > ul > li:hover > ul.child > li {
height: 60px;
}

nav.topnav > ul > li > a {

	width: 100%;
	height: 100%;
	display: flex;
  justify-content: center;
  align-items: center;
}

nav.topnav > ul > li > a,
nav.topnav > ul > li#lux > a, 
nav.topnav > ul > li > a:hover,
nav.topnav > ul > li#lux > a:hover,
nav.topnav > ul > li:hover > ul.child > li > a,
nav.topnav > ul > li#lux:hover > ul.child > li > a,
nav.topnav > ul > li:hover > ul.child > li > a:hover{
	color: #fff;
    text-decoration: none;
	
}

nav.topnav > ul > li.current a {
	color: #E07D8A;
	font-weight: bold;
}

nav.topnav > ul > li > ul.child,
nav.topnav > ul > li.current > ul.child{
	background: #576575;
            display: none;
            position: absolute;
        }

nav.topnav > ul > li:hover > ul.child
{
    display: block;
	width: auto;
	top:79px;
}
nav.topnav > ul > li:hover > ul.child > li:hover {
	background: rgba(255, 255, 255, 0.2);
}

nav.topnav ul li:hover.current {
background-color: transparent;
	color: #E07D8A;
	text-decoration: underline;
	font-weight: bold;
}
nav.topnav ul li:hover
{
	background-color: #E07D8A;
	color: #2c3135;
	text-decoration: none;
}
nav.topnav ul li#book,
nav.topnav > ul > li#book {
	background-color: #fff;
}
nav.topnav > ul > li#book a {
	color: #E07D8A;
	font-weight: 600;
}



/*-----------------------------------*/



.mobile-nav{
	display: none;
}

.therapyNav {
  display: none;
}



/* Modal */
.open-btn {
    border:1px solid lightgrey; 
    border-radius:6px; 
    color: #E07D8A;
    display:inline-block;
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 0.5em;
    padding:.3em 1em; 
    text-decoration:none; 
    &:hover{
      color:#fff;
      text-decoration:none; 
    } 
}

    .modal {
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.6);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
      z-index: 1000;
    }

    .modal:target {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-content {
      position: relative;
      background: #E07D8A;
      width: 90%;
      max-width: 700px;
      max-height: calc(100vh - 120px); /* 90px top + 30px bottom margin */

      margin: 90px auto 5vh auto;
      padding: 2rem;
      overflow-y: auto;
      border-radius: 8px;
      outline: 2px solid #fff;
      animation: slideDown 0.4s ease;
		color: #34495e;
		
    }

    .close-btn {
      position: absolute;
      top: 1rem;
      right: 1rem;
      padding: 0.5rem 1rem;
      background-color: #34495e;
      color: white;
      border-radius: 5px;
      font-weight: bold;
		margin-left: auto;

    }

    .content-end {
      margin-top: 2rem;
      text-align: center;
    }

    .content-end a {
      text-decoration: underline;
      color: #34495e;
      font-weight: bold;
    }

    @keyframes slideDown {
      from {
        transform: translateY(-20px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .modal,
      .modal-content {
        transition: none !important;
        animation: none !important;
      }
    }



/* ///////////////////////////////////////////////////////////////////////////////////////// */

@media (max-width: 600px) {
	 .modal-content {
    height: 80vh; /* Takes up 80% of screen height on mobile */
    max-height: unset; /* Let height override max-height */
  }


/* Base nav styling */
.mobile-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #34495e;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: white;
	box-shadow: 0 17px 19px -17px rgba(0,0,0,0.7);
}

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger styling */
.mobile-nav label.hamburger {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.mobile-nav label.hamburger span {
  background: white;
  width: 25px;
  height: 3px;
  margin-right: 6px;
  border-radius: 2px;
  display: block;
}
.mobile-nav label.hamburger span + span {
  margin-top: 4px;
}
.mobile-nav label.hamburger em {
  font-style: normal;
  font-weight: bold;
  margin-left: 10px;
}

/* Navigation drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  list-style: none;
  padding: 80px 20px 20px;
  margin: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease-in-out;
}

/* Toggle visibility */
#menu-toggle:checked ~ .nav-drawer {
  left: 0;
}

/* Nav links */
.nav-drawer li {
  margin-bottom: 20px;
}
	.nav-drawer li#mobbook a{
		color: #E07D8A;
	}
	
.nav-drawer a {
  text-decoration: none;
  font-size: 18px;
  color: #34495e;
  font-weight: bold;
}

/* Close button */
.mobile-nav .nav-drawer > label.close-btn {
  all: unset; /* neutralize global label styles */
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: #34495e;
  text-align: right;
  width: 100%;
  padding: 10px 0;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.mobile-nav .close-btn:hover {
  color: #e07d8a;
  transform: scale(1.05);
}
.mobile-nav .close-btn:active {
  transform: scale(0.95);
}

.mobile-nav label.hamburger::after,
.mobile-nav .nav-drawer > label.close-btn::before,
.mobile-nav .nav-drawer > label.close-btn::after {
  content: none !important;
  display: none !important;
}

.topnav {
	display: none;
	}	
	
.therapyNav {
  display:table;
	text-align: center; /* THIS IS OPTIONAL*/
	padding-bottom: 0.3em;
}
.therapyNav a {
  	display: inline-block;
  	padding: 0 8px;
	text-decoration: none;
	font-size: 0.75em;
	color: #34495e;
}
.therapyNav a:before {
		 content: "[ ";
	 }
.therapyNav a:after {
		 content:" ]";
	 }
.therapyNav a:hover {
		 color: white;
	 }	
}