@import url('https://fonts.googleapis.com/css2?family=Proza+Libre&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2&display=swap');

/* style for logo  */

/* navigation bar style for mobile phone */
.list {
  font-family: 'Baloo Bhai 2', sans-serif;
  opacity: 80%;
  background-color: rgb(255, 255, 255);
  position: fixed;
  width: 40%;
  top: 100px;
  right: -700px;
  list-style: none;
  padding: 15px;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  transition: all 0.5s cubic-bezier(0, 1.21, 1, 0.97);
  z-index: 1000;
}

/* targeting list items of navigation bar  */
.listitem {
  display: inline-block;
  text-align: center;
  border: none;
  margin: 5px auto;
  transition: all 0.5s ease;
  z-index: 21;
  border-radius: 10px;
  width: 100%;
  padding: 2px;
  cursor: pointer;
}

/* nav bar links  */
.lnk {
  font-size: 17px;
  text-decoration: none;
  color: black;
  list-style: none;
}

/* checkbox for hamburger menu  */
.menu {
  position: relative;
  opacity: 0;
  z-index: 20;
  top: 10px;
  right: 20px;
  width: 60px;
  height: 60px;
}

/* hamburger menu style  */
.hams {
  z-index: 1000;
  position: absolute;
  top: 20px;
  right: 23px;
  font-size: 35px;
  transition: all 0.2s ease;
}

/* style for overlay that apprars when nav menu shows up  */
.blackoverlay {
  position: fixed;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: white;
  background-color: rgba(0, 0, 0, 0);
  transition: all 0.4s ease;
}

/* changes when checkbox is checked  */
.menu:checked ~ .navbar .list {
  right: 0px;
}

/* animation after clicking the hamburger icon  */
.menu:checked ~ .hams {
  transform: rotate(180deg);
  top: 23px;
}

/* appearance for the overlay in the background when 
navigation menu opens in mobile phones */
.menu:checked ~ .blackoverlay {
  background-color: rgba(0, 0, 0, 0.403);
  z-index: 900;
}

/* navigation bar on bigger screens  */
@media only screen and (min-width: 850px) {
  .logo {
    left: 30px;
  }
  .hams {
    display: none;
  }
  .menu {
    display: none;
  }
  .navbar {
    background: transparent;
    height: 70px;
    position: fixed;
    z-index: 100;
    top: 0;
    width: 100%;
    transition: all 0.5s ease;
  }
  .navbar.active {
    background: white;
  }

  .list {
    width: fit-content;
    position: absolute;
    background: transparent;
    display: flex;
    margin-right: 60px;
    padding: 0;
    right: 10px;
    top: 17px;
    z-index: 2;
  }
  .listitem {
    background-color: transparent;
    font-weight: bold;
    width: max-content;
    /* width: 150px; */
    border-radius: 20px;
    padding-left: 10px;
    padding-right: 10px;
    margin: auto 15px;
    transition: all 0.5s ease !important;
    -webkit-transition: all 0.5s ease !important;
  }

  /* for dropdown */
  .dropdownMenu {
    position: absolute;
    top: 100%;
    /* right: 10px; */
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    width: 160px;
    z-index: 999;
  }

  .dropdownMenu li {
    padding: 10px 16px;
  }

  .dropdownLink {
    color: #333;
    text-decoration: none;
  }

  .dropdownLink:hover {
    color: #0070f3;
    text-shadow: 0 2px 4px #75b2f8;
  }

  .lnk {
    width: 100%;
    font-size: 22px;
    color: rgb(255, 255, 255);
    text-shadow: 2px -2px 8px rgba(0, 0, 0, 0.228);
  }

  .lnk.active {
    text-shadow: white 0px 0px 10px !important;
  }

  .nav_active {
    color: rgb(12, 12, 12);
    text-shadow: none !important;
  }

  .nav_active.active {
    color: white;
    text-shadow: none !important;
  }

  .navList_active {
    background-color: rgb(62, 62, 252);
  }

  .navList_actives {
    background-color: rgb(62, 62, 252);
  }
}

/* Responsive adjustments for smaller screens */
@media only screen and (max-width: 849px) {
  .navbar {
    height: auto;
  }

  .list {
    opacity: 80%;
    background-color: rgb(255, 255, 255);
    position: fixed;
    width: 40%;
    top: 100px;
    right: -700px;
    list-style: none;
    padding: 15px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    transition: all 0.5s cubic-bezier(0, 1.21, 1, 0.97);
    z-index: 1000;
  }

  .listitem {
    display: flex;
    margin: 15px 0;
    width: 100%;
    padding: 0;
    font-weight: bold;
    text-align: left;
    transition: all 0.5s ease;
  }

  .menu {
    position: absolute;
    opacity: 0;
    z-index: 20;
    top: 15px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .hams {
    position: absolute;
    z-index: 1000;
    top: 25px;
    right: 20px;
    transition: all 0.5s ease;
  }

  /* overlay on opening the menu in phone */
  .blackoverlay {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0);
    transition: all 0.4s ease;
  }

  .menu:checked ~ .hams {
    position: absolute;
  }

  /* changes when checkbox is checked  */
  .menu:checked ~ .navbar .list {
    right: 0px;
  }

  /* appearance for the overlay in the background when 
  navigation menu opens in mobile phones */
  .menu:checked ~ .blackoverlay {
    background-color: rgba(0, 0, 0, 0.403);
    z-index: 900;
  }

  .lnk {
    font-size: 16px;
  }
  .dropdownLink:hover {
    color: #0070f3;
    text-shadow: 0 2px 4px #75b2f8;
  }
  .dropdownMenu {
    background-color: rgb(248, 246, 246);
    /* display: none; */
    position: absolute;
    top: 80px;
    left: -110px;
    width: 100px;
    /* background-color: #fff; */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    z-index: 999;
  }

  /* for dropdown pointer */
  .dropdownMenu::before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    top: -10px;
    right: -10px;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent rgb(248, 246, 246) transparent;
    z-index: 1;
    transform: rotate(45deg);
  }

  .navbar .listitem .dropdown_active {
    display: block;
  }
}

.imageContainer {
  margin: 5px 1.5%;
}
