/* ----- GLOBAL PADDING ----- */

.jpadding-nav {
  padding: 0 50px;
}

/* ----- NAVBAR ----- */

.navbar-brand {
  margin-right: 0.5rem !important;
}
.jnavbar {
  background-color: #114133;
  /* display: flex;
  justify-content: space-between; */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* padding: .5rem 1rem; */
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1em;
}

.nav-link,
.jbtn-nav {
  margin-left: 2rem;
  color: #fff;
  font-family: 'Abel';
  font-size: 25px;
  transition-duration: 0.3s;
}

.nav-link:hover {
  color: #000;
  transition-duration: 0.3s;
}

.dropdown-item {
  font-family: 'Abel';
  font-size: 25px;
  color: #97baa6;
}

.right-nav-parent {
  display: flex;
  align-items: center;
}

.logo {
  height: 45px;
  width: auto;
}

.phone-link {
  font-family: Prata;
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid #114133;
}
.phone-link:hover {
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid #fff;
}

.icon-background {
  padding: 5px 10px;
  border-radius: 50%;
  color: #fff;
}

.icon-background:first-child {
  margin-right: 10px;
}
.icons-toogle-block {
  justify-self: end;
  display: flex;
}
.icons-toogle-block .toggle-container {
  padding-left: 31px;
}

.show-s{
  display: none;
}

/*  ----- NAVBAR TOGGLE BUTTON ----- */

.toggle-container {
  display: flex;
  align-items: center;
}

.toggle-button {
  /* display: none; */
  position: relative;
  top: 11px;
  /* the default value 5% */
  right: 0;
  /* the default value 2% */
  height: 30px;
  /* the default value 27px*/
  width: 35px;
  cursor: pointer;
  z-index: 100;
  transition: opacity 0.25s ease;
}

/* .toggle-button:hover {
    opacity: .7;
} */

.toggle-button:hover span {
  background: #000000;
}

.toggle-button.active:hover .top {
  background: #000000;
}

.toggle-button.active:hover .middle {
  background: #000000;
}

.toggle-button.active:hover .bottom {
  background: #000000;
}

.toggle-button.active {
  z-index: 100;
  position: fixed;
  top: 2rem;
  /* right: 1rem; */
  right: 15px;
}

.toggle-button.active .top {
  transform: translateY(11px) translateX(0) rotate(45deg);
  background: #fff;
  border-radius: 5px;
}

.toggle-button.active .middle {
  opacity: 0;
  background: #fff;
  border-radius: 5px;
}

.toggle-button.active .bottom {
  transform: translateY(-11px) translateX(0) rotate(-45deg);
  background: #fff;
  border-radius: 5px;
  top: 21px;
}

.toggle-button span {
  background: #fff;
  border: none;
  height: 2px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.35s ease;
  cursor: pointer;
  border-radius: 5px;
}

.toggle-button span:nth-of-type(2) {
  top: 7px;
}

.toggle-button span:nth-of-type(3) {
  top: 22px;
}

.language-socials {
  display: flex;
  align-items: center;
  max-width: 200px;
  margin: auto;
  /* justify-content: space-between; */
  justify-content: center;
}

.languages {
  display: flex;
  justify-content: center;
  align-items: center;
}
.languages a {
  font-size: 14px;
  color: #fff;
}
.languages a:hover {
  color: #000;
}
.languages a:first-child {
  margin-right: 10px !important;
}
.languages a:last-child {
  margin-left: 10px;
}

/* ----- NAVBAR OVERLAY ----- */

.overlay {
  position: fixed;
  /* background: #fff; */
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s, width 0.35s;
  overflow: hidden !important;
  z-index: 3;
}

.overlay .jbtn-nav {
  font-family: 'Abel';
  padding: 9px 19px;
  font-size: 1.2rem;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  width: 100%;
  display: grid;
  grid-template-columns: 40% 1fr;
}
.overlay-content {
  background-color: #114133;
  padding: 17rem 20px 0 20px;
}
.green-line {
  width: 100%;
  margin-top: 0;
  margin-bottom: 28px;
  border: 0;
  border-top: 1px solid #0c482f;
  max-width: 330px;
}
.wht-line {
  width: 100%;
  margin-top: 0;
  margin-bottom: 40px;
  border: 0;
  border-top: 1px solid #fff;
  max-width: 100px;
}
.social-block {
  text-align: center;
}
.social-block a {
  color: #fff;
}
.social-block a:hover {
  color: #000;
}

.overlay-background {
  background-color: #000;
  opacity: 0.5;
}

.overlay.open li {
  animation: fadeInLeft 0.5s ease forwards;
  animation-delay: 0.3s;
}

.overlay.open li:nth-of-type(2) {
  animation-delay: 0.35s;
}

.overlay.open li:nth-of-type(3) {
  animation-delay: 0.4s;
}

.overlay.open li:nth-of-type(4) {
  animation-delay: 0.45s;
}

.overlay.open li:nth-of-type(5) {
  animation-delay: 0.5s;
}

.overlay.open li:nth-of-type(6) {
  animation-delay: 0.55s;
}

.overlay nav {
  font-size: 45px;
  font-family: Prata;
  /* font-size: 35px; */
  font-weight: 500;
  text-align: center;
  padding-bottom: 40px;
}

.overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  height: 100%;
}

.overlay ul li {
  display: block;
  height: 25%;
  height: calc(100% / 6);
  min-height: 50px;
  position: relative;
  opacity: 0;
}

.overlay ul li a {
  display: block;
  position: relative;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.overlay ul li a:hover:after,
.overlay ul li a:focus:after,
.overlay ul li a:active:after {
  width: 100%;
}

.overlay ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  transform: translateX(-50%);
  height: 3px;
  background: #fff;
  transition: 0.35s;
}

.overlay-brand {
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
  text-align: center;
}
.overlay-logo {
  max-width: 200px;
  width: 100px;
}

.overlay-bottom img {
  width: 48px;
  height: 48px;
}

/* The @keyframes rule specifies the animation code , more info: https://www.w3schools.com/cssref/css3_pr_animation-keyframes.asp */

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    right: 20%;
  }
  100% {
    opacity: 1;
    right: 0;
  }
}

/* ----- MEDIA QUERIES ----- */

@media (max-device-width: 1375px) {
  .nav-link,
  .jbtn-nav {
    margin-left: 0;
  }
}

@media (max-device-width: 1200px) {
  /* .nav-item {
        font-size: 1rem;
    } */
  .info {
    font-size: 0.8rem;
  }
  .jbtn {
    font-size: 1rem;
    padding: 8px 17px;
  }
}

@media only screen and (max-width: 992px) {
  /* .right-nav-parent {
    display: none;
  } */
  .toggle-button {
    display: block;
  }
  .navbar-brand {
    margin-left: 0;
  }
  .toggle-container {
    margin-left: auto;
    justify-self: end;
  }
  .overlay nav {
    font-size: 40px;
  }
}

@media (max-device-width: 768px) {
}

@media only screen and (max-width: 576px) {
  .jpadding-nav {
    padding-left: 15px;
    padding-right: 15px;
  }
  .overlay.open {
    grid-template-columns: 1fr;
  }
  .overlay-background {
    display: none;
  }
  /* .overlay nav {
    font-size: 35px;
  } */
}

@media (max-device-width: 510px) {
  .hide-s{
    display: none;
  }
}

@media (max-device-width: 420px) {
  .overlay nav {
    top: 210px;
    font-size: 35px;
  }
  .overlay ul li {
    min-height: 25px;
  }
  .overlay .jbtn-nav {
    padding: 7px 13px;
    font-size: 1.1rem;
    margin-top: 20px;
  }
  .overlay-bottom img {
    width: 43px;
    height: 43px;
  }
  .right-nav-parent {
    display: none;
  }
  .icon-background {
    display: none;
  }
  .jnavbar {
    grid-template-columns: 1fr 1fr;
  }
  .show-s{
    display: inline;
  }
}

/* ----- HEIGHT QUERIES ----- */
@media only screen and (max-height: 1000px) {
  .overlay-logo {
    width: 100%;
  }
  .overlay-content {
    padding: 7rem 20px 0 20px;
  }
  /* .overlay nav {
    font-size: 45px;
  } */
}

@media only screen and (max-height: 800px) {
  .overlay-logo {
    width: 100%;
  }
  .overlay-content {
    padding: 4rem 20px 0 20px;
  }
}

@media only screen and (max-height: 750px) {
  .overlay-content {
    padding: 2rem 20px 0 20px;
  }
  .overlay nav {
    font-size: 30px;
  }
}

@media only screen and (max-height: 715px) {
  .overlay-content {
    padding: 6rem 20px 0 20px;
  }
  .overlay nav {
    font-size: 25px;
  }
  .overlay ul li {
    min-height: 25px;
  }
  .overlay .jbtn-nav {
    padding: 7px 13px;
    font-size: 0.9rem;
    margin-top: 15px;
  }
  .overlay-bottom img {
    width: 30px;
    height: 30px;
  }
  .languages a {
    font-size: 20px;
  }
  .overlay-brand {
    padding-bottom: 10px;
  }
  .green-line {
    margin-bottom: 10px;
  }
}

@media only screen and (max-height: 520px) {
  .overlay-content {
    padding: 1rem 20px 0 20px;
  }
  .overlay nav {
    font-size: 25px;
    padding-bottom: 10px;
  }
  .overlay ul li {
    min-height: 25px;
  }
  .overlay .jbtn-nav {
    padding: 7px 13px;
    font-size: 0.9rem;
    margin-top: 15px;
  }
}

@media only screen and (max-height: 416px) {
  .overlay nav {
    font-size: 20px;
    padding-bottom: 15px;
  }
  .overlay ul li {
    min-height: 20px;
  }
  .overlay-logo {
    width: 70%;
  }
  .overlay-brand {
    padding-bottom: 18px;
  }
  .green-line {
    margin-bottom: 15px;
  }
}
