* {
  margin: 0px;
  padding: 0px;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 99; 
}

/* to hide the duplicated background */
.navBarBackContent {
  background-color: rgb(100, 54, 226);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  font-size: clamp(15px, 1.5vw, 25px);
  opacity: 0;
}

.navBar {
  background-color: rgb(112, 80, 200);
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: space-around;
  align-items: center;
  font-size: clamp(15px, 1.5vw, 25px);
  z-index: 2;
}

.navBar a{
  text-decoration: none;
  transition: 0.2s ease-in-out;
  color: yellow;
}

.navBar a:hover {
  color: black;
  font-weight: 550;
}

.logo {
  width: 20vh;
}

.logo img {
  width: 100%;
  margin-top: 10px;
}

.link {
  width: 40px;
  display: none;
  position: relative;
  background: none;
  border: none;
  text-decoration: none;
  color: #777;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}

.dropdown.active > .link,
.link:hover {
  color: black; /* sets the text that i selected to be black too*/
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: -170%;
  top: calc(100% + .25rem); /* sets a gap between the dropdown menu and the menu button*/
  background-color: rgb(112, 80, 200);;
  padding: .75rem;
  border-radius: .25rem;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1);
  opacity: 0;
  pointer-events: none; /* do not interacts with the mouse */
  transform: translateY(-10px); /* sets the dropdown menu a bit higher */
  transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
  display: none;
}

.information-grid a{
  color: aliceblue;
  font-weight: 700;
}

.information-grid a:hover{
  color: yellow;
  font-weight: 600;
}

.dropdown.active > .link + .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* when the dropwdown menu is visible only then it can interact with the mouse*/
}

@media only screen and (550px < width <= 640px) {
  .wrapper {
    grid-template-columns: 100%;
    grid-template-rows: 0.1fr 1fr 0.1fr;
    grid-template-areas:
    "navBar"
    "slider-container"
    "footer";
  }

  .dropdown > .link {
    display: block;
    left: 0;
  }

  .navBar a{
    display: none;
  }

  .dropdown a{
    display: block;
  }

  .dropdown-menu {
    display: block;
  }

}

@media only screen and (width <= 550px) {
  .wrapper {
    grid-template-columns: 100%;
    grid-template-rows: 0.1fr 1fr 0.1fr;
    grid-template-areas:
    "navBar"
    "slider-container"
    "footer";
  }

  .dropdown > .link {
    display: block;
  }

  .navBar a{
    display: none;
  }

  .dropdown a{
    display: block;
  }

  .dropdown-menu {
    display: block;
  }

}