/* This is the nav Section */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;
  z-index: 1000;

  height: 5rem;
  padding: 0px 90px;
  
  background-color: white;
  
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.2);
}

nav .logo-bcift{
  width: 170px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
  
  height: 100%;

  list-style: none;
}

nav a,
.dropbtn {
  height: 100%;
  padding: 10px;
  
  font-size: 1.1rem;
  font-weight: 400;
  color: rgb(31, 31, 31);
  text-decoration: none;
}

/* This next part are the drop down button for navigation */
.explore-drop-content,
.terminal-drop-content {
  display: none;

  min-width: 250px;
  margin-top: 35px;
  
  position: absolute;

  border-radius: 10px;

  background-color: white;
  box-shadow: 0px 8px 16px 0px rgb(53, 53, 53);
}

/* This line is used for javascript to open the dropdown menu */
.explore-drop-content.open,
.terminal-drop-content.open {
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
}

.mobile-menu-icon {
  display: none;

  width: 3em;
  height: 3em;

  content: url(./images/icons/menu.svg);

  cursor: pointer;
}

/* This line is to ensure the hover effect only work on desktop layout */
@media (min-width: 1011px) {
  /* Used hovering effect on the text */
  .links a,
  .link .dropbtn {
    transition: font-weight 0.3s ease;
  }

  .links a:hover,
  .links .dropbtn:hover {
    background-image: linear-gradient(90deg,rgba(12, 74, 110, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
    background-repeat: no-repeat;
    background-position-y: 100%;
    background-size: 100% 8%; 

    font-weight: 800;
    transition: font-weight 0.3s ease;
  }

  .links .explore-drop-content a:hover,
  .links .terminal-drop-content a:hover {
    background-color: #ddd;
    background-position-x: 5%;
    background-size: 50% 8%;

    border-radius: 10px;
  }
}

@media (max-width: 1010px) {
  nav {
    padding: 0.5em 1em;
  }
  
  nav .mobile-menu-icon {
    display: flex;
  }

  .links {
    display: none;
    flex-direction: column;
    gap: 0;

    position: absolute;
    top: 5rem;
    left: 0;
    z-index: 99;

    width: 100%;
    height: auto;
    
    background-color: white;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }

  .links.show-menu {
    display: flex;
  }

  .links li,
  .links li .dropdown {
    display: flex;
    
    min-width: 100%;
  }

  .links li .dropdown {
    flex-direction: column;
  }

  nav .links a, 
  .links .dropdown .dropbtn,
  .links .dropdown .dropbtn a {
    display: flex;

    width: 100%;
    padding: 0.5em 2.5em;
    border-bottom: 1px solid #eee;
  }

  .links li .dropdown a i {
    margin-left: 0.5em;
  }

  .links a:hover,
  .links li .dropdown a:hover,
  .links .dropbtn:hover {
    background: linear-gradient(90deg, #0c4a6e, #55aedf);
    color: white;
  }

  .explore-drop-content,
  .terminal-drop-content {
    display: none;
    flex-direction: column;

    width: 100%;
    margin-top: 0;

    position: static;

    box-shadow: none;
  }

  .links .explore-drop-content a:hover,
  .links .terminal-drop-content a:hover {
    border-radius: 0px;
  }
}

@media (max-width: 500px) {
  nav{
    padding-right: 20px;
  }

  nav .logo-bcift {
    width: 140px;
    margin-top: 5px;
  }
}