/* HEADER */
.header{
  padding: 7px;
  background-color: #5ca942;
  background-color: #eeeeee;
  font-size: 0.8em;
  text-align: center;
}
.header h5{
  color: #000;
  font-weight: 600;
}

/* NAVBAR */
.navbar {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* .navbar .navbar-nav {
  margin-right: 20px;
} */

/* ----- GLOBAL PADDING ----- */
.jpadding-nav {
  padding: 5px 50px;
  max-width: 1600px;
  margin: auto;
}

/* LOGO IN NAVBAR */
.navbar-brand img {
  height: 60px;
  width: auto;
  padding: 5px 0;
  margin-left: 24px;
}

.navbar .navbar-nav img {
  height: 15px;
  width: auto;
  margin-left: 6px;
}

.navbar .navbar-nav #nav-social {
  display: flex;
  align-content: center;
  justify-items: center;
}

/* ----- language flags ----- */
/* .languages img {
  width: 25px;
  height: 25px;
  transition-duration: 0.3s;
}
.languages img:hover {
  transform: scale(1.05);
  transition-duration: 0.3s;
} */
.languages span {
  transition-duration: 0.3s;
}
.languages span:hover {
  transform: scale(1.1);
  transition-duration: 0.3s;
}
#languages-mobile {
  display: none;
}

/* ----- jnav ----- */

.jnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.jnav-content {
  justify-self: end;
}
.jnav-link {
  display: inline-block;
  padding-right: 0.5rem;
  padding-left: 0.5rem;

  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.5);
  transition-duration: 0.3s;
}
.jnav-link:hover {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.7);
  transition-duration: 0.3s;
}

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

.toggle-container {
  justify-self: end;
  display: none !important;
}

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

.toggle-button {
  position: relative;
  /* top: 0.5rem;*/
  top: 0.2rem; 
  height: 30px;
  width: 35px;
  cursor: pointer;
  z-index: 100;
  transition: opacity 0.25s ease;
}

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

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

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

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

.toggle-button.active {
  z-index: 100;
  /* position: fixed; */
  top: 4rem;
}

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

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

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

.toggle-button span {
  background: #000;
  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;
}

/* ----- overlay ----- */
.jnav-collapse {
  display: grid;
  gap: 15px;
  background-color: #eeeeee;

  padding: 30px;
}
/* ----- MEDIA QUERIES ----- */
@media (max-width: 1200px) {
  .jpadding-nav {
    padding: 5px 20px;
  }
  .jnav-content {
    display: none;
  }

  .toggle-container {
    align-items: center;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* toggle btn */
  .toggle-button.active {
    z-index: 100;
    /* position: fixed; */
    /* top: 2rem;
    right: 17px;*/
    top: 0.2rem;
    right: 0;
  }
}

@media (max-width: 992px) {
  .navbar-brand img {
    margin-left: 0;
  }
}
@media (max-width: 576px) {
  .jpadding-nav {
    padding-left: 15px;
    padding-right: 15px;
    /* padding: 20px 15px; */
  }
  #languages {
    display: none;
  }
  #languages-mobile {
    display: block;
  }
  .jnav {
    grid-template-columns: 1fr 1fr;
  }
}

/*  ---  Smartphone  ---  */
@media (max-width: 480px) {
  .navbar .navbar-brand img {
    height: 40px;
    width: auto;
    margin-left: auto;
  }
  .navbar-brand img {
    height: 58px;
  }
}
