.quote {
  position: absolute;
  margin-bottom: 35rem;
  margin-left: 17rem;
  max-width: 18rem;

  padding: .25rem;
  border-radius: 8px;

  transform: translate(0px, 7.5rem);
  text-shadow: 
  -1px -1px 0 black, 
  1px -1px 0 black, 
  -1px 1px 0 black, 
  1px 1px 0 black;
}

html, body {
  height: 100%;
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;    
  align-content: center;

  margin-top: 5rem;

  &.welcome {
    .quote {
      color: #69328f;
      text-shadow: 
      -1px -1px 0 white, 
      1px -1px 0 white, 
      -1px 1px 0 white, 
      1px 1px 0 white;
    }
  }

  &.consultations {
    .quote {
      color: black;
      text-shadow: 
      -1px -1px 0 white, 
      1px -1px 0 white, 
      -1px 1px 0 white, 
      1px 1px 0 white;
    }
  }
}

.container {
  width: 80%;
  max-width: 88rem;
  min-height: 54rem;

  border: 3px solid #000;

  display: flex;
  justify-content: center;
  align-items: flex-start;    
  align-content: center;

  position: relative;
  background-color: #b1c0e131;
}

.text {
  display: inline;

  border: 3px solid #000;
  padding: 1rem;
  margin-left: 55%;
  margin-top: 16rem;

  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  width: 23rem;

  p {
    text-align: justify;
    font-size: 1.12rem;
  }
}

.img-background {
  max-width: 36rem;
  border: 3px solid #7b9add;
  position: absolute;
  z-index: 0;

  transform: translate(0px, -5rem);
}

.img-mandalka {
  border: 3px solid goldenrod;
  position: absolute;
  margin-right: 32rem;
  margin-bottom: 12rem;

  object-fit: cover;
  width: 12rem;
  height: 12rem;

  transform: translate(0px, 10rem);

  &.mobile {
    display: none;
  }
}

.navbar {
  background-color: #fce5b1;
  z-index: 1000;

  .brand-title {
    display: none;
  }

  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    li {
      float: left;

      a {
        font-size: 1.12rem;
        display: block;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        transition: background-color 0.5s ease;

        &.active {
          box-shadow: inset 0 0 0 5px #fff;
        }

        &:hover {
          background-color: #ffd77b;
        }
      }
    }
  }
}

.sticky-button-contact {
  display: none;
}

@media (max-width: 1024px) {
  /* New */
  .img-mandalka {
    &.desktop {
      display: none;
    }

    &.mobile {
      display: block;
      width: 5.5rem;
      height: 5.5rem;
    }
  }

  .container {
    background: none;
    border: none;
    min-height: 0;
  }

  .img-background {
    display: none;
  }

  .quote {
    margin-left: 0;
    max-width: 75%;
  }

  .text {  
    border: 3px solid #000;

    padding: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

    margin-top: 100%;
    margin-left: -0%;

    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;

    margin-right: 1rem;
  }

  body {
    justify-content: start;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* This should be scroll to adjust for ULR bar on mobiles but body div needs fixing */
    background-attachment: fixed;
  
    margin-top: 0;

    .quote {
      font-size: 1.12rem;
    }
  
    &.about {
      background-image: url('/images/wheat-sunset.jpg');

      .quote {
        margin-top: -5rem;
      }
    }
  
    &.consultations {
      background-image: url('/images/forest-meadow.jpg');
  
      .quote {
        color: black;
      }
    }
  
    &.contact {
      background-image: url('/images/daisy-meadow.jpg');
  
      .quote {
        color: rgb(224, 224, 224);
      }
    }
  
    &.therapy-session {
      background-image: url('/images/afternoon-river.jpg');

      h1 {
        font-size: 1.8rem;
        padding-top: 0.5rem;
      }
    }
  
    &.welcome {
      background-image: url('/images/pink-sunrise.jpg');
    }
  }

  .text-header-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;

    h1 {
      margin-left: 4.5rem;
      margin-bottom: 0;
      padding-top: 0;
    }

    img {
      transform: translate(-2.5rem, -2.5rem);
    }
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333333cc;
    color: white;
    width: 100%;
    position: sticky;
    top: 0;

    .brand-title {
      display: block;
      font-size: 1.5em;
      padding-left: .5rem;
    }

    .navbar-links {
      display: block; /* Hide by default */
      flex-direction: column;
      align-items: center;
      position: fixed;
      left: 0;
      width: 100%;
      background-color: #333;
      transition: top 0.3s ease-in-out;
    }

    ul {
      display: flex;
      flex-direction: column;
      margin: 0;
      padding: 0;
      width: 100%;
      text-align: center;

      li {
        /* padding: 20px 0; */
        width: 100%;
      
        a {
          text-decoration: none;
          color: white;
          
          &.active {
            box-shadow: unset;
            background-color: #ffd77b;
            color: black;
          }
        }
      }
    }

    &.open {
      top: 0; /* Slide in from the top */
    }

    .toggle-button {
      display: flex;
      flex-direction: column;
      cursor: pointer;
      padding-right: .5rem;

      .bar {
        height: .25rem;
        width: 1.5rem;
        background-color: white;
        margin: 2px 0;
      }
    }
  }

  .sticky-button-contact {
    display: block;
    position: fixed;
    bottom: 40%;
    right: 0;
    background-color: #4CAF50;
    color: white;
    padding: 10px 10px;
    margin-right: .25rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 1.15rem;

    writing-mode: sideways-lr;

    z-index: 900;
  }
}

.backdrop { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.5); 
  opacity: 0; /* Start with an opacity of 0 */ 
  z-index: 999; /* Ensure the backdrop is below the navbar */ 
  transition: opacity 0.3s ease-in-out; /* Add transition for opacity */ 
  pointer-events: none; /* Ignore clicks when not visible */ 
} 

.backdrop.visible { 
  opacity: 1; /* Fade in effect */ 
  pointer-events: auto; /* Enable clicks when visible */
}