/******************************************/
/**** Mobile meuu work - MAXX Feb 2023 ****/
/******************************************/
div#menuToggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 20px;
    z-index: 1;
}

a.mobilemenu--button span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #000099;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

a.mobilemenu--button span:first-child {
  transform-origin: 0% 0%;
}

a.mobilemenu--button span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

a.mobilemenu--button.active span {
  opacity: 1;
  transform: rotate(45deg) translate(0px, -1px);
  background: #232323;
}


a.mobilemenu--button.active span:nth-last-child(2) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}


a.mobilemenu--button.active span:nth-last-child(1) {
  transform: rotate(-45deg) translate(-3px, -1px);
}

/****************/


body::before {
    content: "";
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: rgb(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.5s ease-in-out all;
}

@media screen and (max-width: 767px) {

  body.overlayon::before {
    opacity: 1;
    visibility: visible;
  }

  html {
    overflow-x: hidden;
  }

  body {
    position: relative;
    overflow-x: hidden;
  }

  h1.fronth1 {
      margin-top: 7px;
  }

  div#menuToggle {
    display: block;
  }

  #mainleft {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  #mainright {
    position: absolute;
    top: 0;
    right: -700px;
    width: 250px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: 0.5s ease-in-out all;
  }

  #mainright.inview {
    right: 0;
  }

  /** Inner Page **/
  td.innerpage-content {
    width: 100%;
  }

  td.innerpage-menu {
    position: absolute;
    top: 0;
    right: -700px;
    width: 250px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: 0.5s ease-in-out all;
  }

  td.innerpage-menu.inview {
    right: 0;
  }

  div.menu p:first-child {
    padding-right: 50px;
  }

  form.search {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-right: 60px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}

@media screen and (max-width: 475px) {
  form.search {
    display: none;
  }
}

/**** Back to Top Button ****/

html {
  scroll-behavior: smooth;
}

.backtotop {
  position: fixed;
  background: #000;
  bottom: 20px;
  right: 20px;
  transition: 0.3s ease all;
}

.backtotop a {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.backtotop img {
  padding: 0;
}