@media (max-width: 400px) {
  .nav__section {
    z-index: 2;
    position: relative;
    top: 0;
    right: 0;
    width: 400px;
    height: 60px;
    opacity: 100%;
    background-color: #9ba58d;
  }
  .nav__headerText,
  .nav__subHeader {
    z-index: 1000;
    position: relative;
    display: flex;
    font-family: "Italianno", cursive;
    font-weight: 400;
    font-style: normal;
    color: white;
  }
  .nav__headerText {
    font-size: 35px;
    letter-spacing: 9%;
    margin: 0;
  }
  .nav__subHeader {
    font-size: 20px;
    margin-top: -17px;
    letter-spacing: 7%;
  }
  .nav__textGroup {
    position: absolute;
    top: 2px;
    left: 200px;
  }

  .floating__navBar {
    position: sticky;
    display: flex;
    width: 400px;
    gap: 1px;
    top: 0px;
    margin: 0;
    /* background-color: red; */
    /* opacity: 50%; */
    background-color: #9ba58d;
    z-index: 1000;
    filter: drop-shadow(0px 10px 5px rgba(0, 0, 0, 0.15));
  }
  .button__home,
  .button__aboutUs,
  .button__fav,
  .button__contacts {
    position: absolute;
    margin: 0;
    left: 85px;
    font-family: "Imprima";
    font-size: 12px;
    position: relative;
    padding: 5px;
    padding-bottom: 8px;
    padding-left: 18px;
    padding-right: 18px;
    background-color: #9ba58d;
    color: white;
    border: 0;
    transition: 300ms;
    overflow: hidden;
  }
  .button__home:hover,
  .button__aboutUs:hover,
  .button__fav:hover,
  .button__contacts:hover {
    background-color: #cbcfc0;
    color: gray;
    transform: translateY(5px);
  }

  /* ===============================================FLOATING NAVIGATION BAR */
  .button__home:hover {
    .home__text {
      background-color: #cbcfc0;
      transform: translate(7px, 3px);
    }
    .home__icon {
      animation: movetoleft 600ms forwards;
    }
  }
  .button__aboutUs:hover {
    .about__text {
      background-color: #cbcfc0;
      transform: translate(10px, 3px);
    }
    .about__icon {
      animation: movetoleft 600ms forwards;
    }
  }
  .button__fav:hover {
    .fav__text {
      background-color: #cbcfc0;
      transform: translate(9px, 3px);
    }
    .fav__icon {
      animation: movetoleft 600ms forwards;
    }
  }
  .button__contacts:hover {
    .contacts__text {
      background-color: #cbcfc0;
      transform: translate(8px, 3px);
    }
    .contacts__icon {
      animation: movetoleft 600ms forwards;
    }
  }

  .home__borderbox {
    position: relative;
  }
  .home__text,
  .about__text,
  .fav__text,
  .contacts__text {
    z-index: 1;
    position: relative;
    background-color: #9ba58d;
    padding-bottom: 5px;
    margin: 0;
    transition: 300ms;
  }

  .nav__background {
    position: absolute;
    height: 94px;
    top: -60px;
    transform: scaleX(-1);
    filter: none !important;

    webkit-mask-image: linear-gradient(to left, black 35%, transparent 100%);
    mask-image: linear-gradient(to left, black 35%, transparent 50%);
  }

  .home__headerText,
  .home__subHeader {
    position: relative;
    display: flex;
    font-size: 55px;
    font-family: "Italianno", cursive;
    font-weight: 400;
    font-style: normal;
    color: #2e241e;
    margin-top: 0;
  }
  .home__headerText {
    font-size: 120px;
    margin-bottom: -40px;
  }
  .home__textGroup {
    /* background-color: blue; */
    position: absolute;
    top: 40px;
    right: 300px;
    margin: 0;
    letter-spacing: 6%;
  }
  .home__subHeader {
    letter-spacing: 7px;
  }
  .paragraph__box {
    position: absolute;
    display: flex;
    text-align: center;
    /* background-color: white; */
    width: 360px;
    font-size: 25px;
    letter-spacing: 7%;
    right: 20px;
    top: 300px;
    margin: 0;
  }
  .paragraph__home {
    font-family: "Imprima";
    color: #635347;
    margin: 0;
    line-height: 150%;
  }

  /* ---------------------------------------------------HOME SECTION BUTTONS*/
  .button__box {
    display: flex;
    position: relative;
    justify-content: center;
    margin-top: 510px;
  }
  .button__showMenu {
    z-index: 100;
    font-family: "Imprima";
    align-items: center;
    font-size: 20px;
    padding: 10px 30px 10px 30px;
    background-color: #9ba58d;
    border: none;
    border-radius: 15px;
    color: white;
    box-shadow:
      2px 2px 5px rgb(63, 63, 63),
      -2px -2px 5px white;
    transition: 300ms;
  }
  .button__showMenu:hover {
    transform: scale(1.1);
    background-color: #2e241e;
    color: #9ba58d;

    animation: fade 500ms;
  }
  .arrow__pointer {
    position: absolute;
    width: 60px;
    top: -65px;

    animation: pointdown 800ms infinite alternate-reverse;
  }
  #button__menu {
    position: absolute;
    width: 400px;
    top: -130px;
  }

  /* ---------------------------------------------------------ABOUT SECTION */
  .about__img {
    position: absolute;
    right: 0;
    height: 830px;
    opacity: 70%;
    mask-image: linear-gradient(to bottom, black 10%, transparent 35%);
  }
  .paragraph__about {
    position: absolute;
    font-size: 20px;
    color: white;
    font-family: "Imprima";
    /* background: red;  */
    left: 15px;
    top: 180px;
    width: 330px;
    letter-spacing: 15%;
    line-height: 150%;
    text-align: center;
  }
}
