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

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

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

.nav-logo {
  height: 50px;
  width: auto;
}
.nav-logo-blue {
  display: none;
  height: 50px;
  width: auto;
}
.navbar-brand {
  margin-right: 0 !important;
}
.jnavbar {
  max-width: 1480px;
  margin: auto;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: .5rem 1rem; */
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: 1.2em;
  position: relative;
  z-index: 2;
}

.nav-link,
.jbtn-nav {
  margin-left: 2rem;
  font-family: Montserrat;
  font-size: 16px;
  line-height: 19px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 25px;
  padding: 13px 20px;
  transition-duration: 0.5s;
}

.nav-link:hover {
  color: #326df7;
  border: 1px solid #fff;
  background-color: #fff;
}
.nav-link.active {
  color: #326df7;
  border: 1px solid #fff;
  background-color: #fff;
}
.social-link button {
  padding: 13px 25px;
  font-size: 16px;
}
.social-link button:hover {
  padding: 13px 25px;
  background-color: #7af292;
  color: #fff;
  border-color: #7af292;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#light {
  border-radius: 0.25rem 0.25rem 0 0;
  background-color: #97baa6;
  color: #fff;
  opacity: 0.9;
}
#main {
  border-radius: 0 0 0.25rem 0.25rem;
  background-color: #fff;
  color: #fff;
  opacity: 0.9;
}
#light:hover {
  color: #fff;
  text-decoration: none;
  background-color: #97baa6;
  opacity: 1;
}
#main:hover {
  color: #fff;
  text-decoration: none;
  background-color: #fff;
  opacity: 1;
}

.right-nav-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .right-nav-parent ul {
      margin-right: 2em;
  } */

.nav-link {
  /* color: #97BAA6; */
  /* color: rgba(151, 186, 166, 0.5); */
}

.nav-link .nav-icon {
  color: #97baa6;
  padding-left: 0;
  padding-right: 0;
}
.nav-link .nav-icon:hover {
  color: #fff;
}

.active {
  color: rgba(151, 186, 166, 0.9);
}

/* navbar lang dropdown */
#dropdownLang {
  min-width: 4.5rem;
  width: 4.5rem;
}

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

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

.toggle-button {
  display: none;
  position: relative;
  top: 0.5rem;
  /* 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: #fff;
}

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

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

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

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

.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;
}

.toggle-button span {
  background: #fff;
  border: none;
  height: 3px;
  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: 11px;
}

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

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

.overlay {
  position: fixed;
  background: #326df7;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s, width 0.35s;
  overflow: hidden;
  z-index: 3;
  display: none;
}

.overlay .header-icons {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  justify-content: center;
  padding: 0 50px;
}

.overlay .header-icons a {
  margin-top: 20px;
  margin-left: 0px;
  font-size: 24px;
  color: #7af292;
}

.overlay .nav-logo, .overlay .nav-logo-blue {
  height: 50px;
  margin-top: 14px;
}

.overlay .jbtn-nav {
  font-family: "Bebas Neue", cursive;
  padding: 9px 19px;
  font-size: 1.2rem;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  width: 100%;
}

.overlay.open li {
  animation: fadeInRight 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 {
  position: relative;
  top: 250px;
  transform: translateY(-50%);
  font-size: 36px;
  font-family: "Poppins";

  text-align: center;
}

.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;
  padding: 20px 0;
}

.overlay ul li a {
  font-family: "Arista_Pro_Regular";
  display: block;
  position: relative;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  font-size: 36px !important;
}

.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: #7af292;
  transition: 0.35s;
}

.overlay-brand {
  display: flex;
  justify-content: center;
  padding: 0.8rem 0;
}

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

.overlay .dot {
  font-size: 50px;
  line-height: 1;
}

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

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

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

@media only screen and (max-width: 1195px) {
  .right-nav-parent {
    display: none;
  }
  .overlay {
    display: initial;
  }
  .toggle-container {
    display: block;
  }
  .toggle-button {
    display: block;
  }
  .navbar-brand {
    margin-left: 0;
  }
  .toggle-container {
    margin-left: auto;
  }
  .jnavbar {
    margin: 0;
  }
  .social-link {
    display: none;
  }
}

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

@media (max-device-width: 768px) {
  .toggle-button.active {
    z-index: 100;
    position: fixed;
    top: 40px;
    /* right: 1rem; */
    right: 20px;
  }
  /* .info {
          font-size: 0.6rem;
      } */
}

@media only screen and (max-width: 576px) {
  .jpadding-nav {
    padding-left: 15px;
    padding-right: 15px;
  }
  .overlay .header-icons a {
    font-size: 18px;
  }
}

@media (max-device-width: 420px) {
  .info {
    font-size: 0.7rem;
  }

  .overlay nav {
    top: 250px;
    font-size: 40px;
  }
  .overlay ul li {
    min-height: 25px;
  }
  .overlay .jbtn-nav {
    padding: 7px 13px;
    font-size: 1.1rem;
    margin-top: 20px;
  }
  .toggle-button.active {
    top: 40px;
    /* right: 1rem; */
    right: 20px;
  }
}

@media (max-device-width: 364px) {
  .overlay .nav-logo, .overlay .nav-logo-blue {
    height: 40px;
    margin-top: 14px;
  }
}

/* ----- HEIGHT QUERIES ----- */

@media only screen and (max-height: 580px) {
  .overlay nav {
    top: 200px;
    font-size: 25px;
  }
  .overlay ul li {
    min-height: 25px;
    padding: 10px 0;    
  }
  .overlay .jbtn-nav {
    padding: 7px 13px;
    font-size: 0.9rem;
    margin-top: 0px;
  }
  .overlay-bottom img {
    width: 30px;
    height: 30px;
  }
}

@media only screen and (max-height: 490px) {
  .overlay nav {
    top: 150px;
    font-size: 20px;
  }
  .overlay ul li {
    min-height: 20px;
    padding: 5px 0;    
  }
  .overlay ul li a {
    font-size: 20px !important;
  }
  .overlay .header-icons a {
    font-size: 16px;
  }
  .overlay .dot {
    font-size: 30px;
  }
}

@media only screen and (max-height: 360px) {
  .overlay nav {
    top: 120px;
    font-size: 20px;
  }
  .overlay ul li {
    min-height: 20px;
    padding: 5px 0;    
  }
  .overlay ul li a {
    font-size: 20px !important;
  }
  .overlay .header-icons a {
    font-size: 16px;
  }
  .overlay .dot {
    font-size: 30px;
  }
}
