.my-navbar {
  max-height: 80px;
  padding-top: 15px;
  background: var(--color-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  border-top: 5px solid var(--color-mosque);
  font-family: "Roboto", sans-serif;
}

.autohide {
  transition-duration: 3s;
}

.nav-up {
  top: -90px;
}

.my-navbar:after {
  content: "";
  clear: both;
  display: table;
}

.nav-left {
  width: 10%;
  display: flex;
  align-self: center;
}

.logo {
  height: 4em;
  margin: 0 1em;
  padding-bottom: 15px;
}

.nav-right {
  width: 90%;
  display: flex;
  justify-content: flex-end;
}

#first-nav-ul {
  list-style: none;
}

#first-nav-ul li {
  display: inline-block;
  background: var(--color-black);
  margin: 0 1em;
}

#first-nav-ul a {
  color: var(--color-white);
  text-decoration: none;
  line-height: 70px;
  font-size: 18px;
  padding: 8px 10px;
  white-space: nowrap;
}

#first-nav-ul a:hover:not(.second-nav-ul li a) {
  border-radius: 5px;
  color: var(--color-mosque);
  box-shadow: 0 0 5px var(--color-mosque), 0 0 5px var(--color-mosque);
}

.second-nav-ul li a:hover {
  color: var(--color-mosque) !important;
}

.second-nav-ul {
  position: absolute;
  top: 90px;
  width: 180px;
  border-top: 5px solid var(--color-mosque);
  opacity: 0;
  visibility: hidden;
  transition: top 0.3s;
}

.first-nav-li:hover > ul {
  top: 70px;
  opacity: 1;
  visibility: visible;
}

.second-nav-ul li {
  position: relative;
  left: -48px;
  margin: 0px;
  width: 180px;
  float: none;
  display: list-item;
}

.second-nav-ul a {
  line-height: 50px !important;
}

.bi-caret-down {
  color: var(--color-mosque);
  position: relative;
  left: 0.2em;
  top: 0.15em;
}

.show,
.hamburger-icon,
#btn,
#btn-1,
#btn-2,
#btn-3,
#btn-4 {
  display: none;
}

.hamburger .line {
  width: 25px;
  height: 2.5px;
  /* width: 50px;
  height: 5px; */
  background-color: #ecf0f1;
  display: block;
  margin: 4px auto;
  /* margin: 8px auto; */
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#hamburger.is-active {
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-transition-delay: 0.6s;
  -o-transition-delay: 0.6s;
  transition-delay: 0.6s;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#hamburger.is-active .line:nth-child(2) {
  width: 0px;
}

#hamburger.is-active .line:nth-child(1),
#hamburger.is-active .line:nth-child(3) {
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

#hamburger.is-active .line:nth-child(1) {
  -webkit-transform: translateY(6.5px);
  -ms-transform: translateY(6.5px);
  -o-transform: translateY(6.5px);
  transform: translateY(6.5px);
}

#hamburger.is-active .line:nth-child(3) {
  -webkit-transform: translateY(-6.5px) rotate(90deg);
  -ms-transform: translateY(-6.5px) rotate(90deg);
  -o-transform: translateY(-6.5px) rotate(90deg);
  transform: translateY(-6.5px) rotate(90deg);
}

/* MEDIA QUERIES */

@media all and (max-width: 968px) {
  #MobileMenuDivWrapper {
    max-height: 100vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .my-navbar {
    flex-direction: column;
    max-height: 5000px;
  }
  .nav-left {
    align-self: flex-start;
  }
  .nav-right {
    display: flex;
    justify-content: flex-start;
  }
  .first-nav-li {
    width: 100%;
  }
  .second-nav-ul {
    top: 70px;
    position: static;
    border-top: none;
    float: none;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .second-nav-ul li {
    position: static;
  }
  .show {
    display: block;
    color: var(--color-white);
    font-size: 18px;
    padding: 0 15px;
    line-height: 70px;
    cursor: pointer;
  }
  .show:hover {
    color: var(--color-mosque);
  }
  .hamburger-icon {
    display: block;
    color: var(--color-white);
    position: absolute;
    top: 1px;
    right: 40px;
    line-height: 70px;
    font-size: 18px;
    cursor: pointer;
    padding-top: 25px;
  }
  #first-nav-ul li a:hover {
    box-shadow: none;
  }
  .show + a,
  ul {
    display: none;
  }
  [id^="btn"]:checked + ul {
    display: block;
  }
}

@media screen and (max-width: 360px) {
  .my-navbar .logo {
    height: 3.5em;
    margin: 0.2em;
    padding-bottom: 15px;
    padding-left: 10px;
  }
  .checkboxes .item {
    white-space: nowrap;
    display: inline;
  }
}
