.navbar {
  background-color: #202123;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5vw;
  flex-wrap: wrap;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-family: 'Abril Fatface', serif;
}

.logo-img {
  height: 100px; /* Adjust as needed */
  width: auto;
}


.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  /* align items to the right of nav */
  align-items: center;
  flex-wrap: nowrap;
  /* stop stacking on desktop */
  margin-top: 0;
  /* don't push nav down */
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-links a:hover {
  background-color: white;
  color: #202123;
  scale: none;
}

.nav-links a.active {
  background-color: white;
  color: #202123;
}

footer {
  padding: .5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin: 0.7rem 0;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Josefin Sans', sans-serif;
  background-color: #ffffff;
  font-size: 18px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dropdown {
  position: relative;
}

.dropbtn {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 1rem 1rem;
  cursor: pointer;
}

.dropdown-content {
  display: none; /* Hides dropdown by default */
  position: absolute;
  background-color: #202123;
  min-width: 220px;
  z-index: 1000;
  flex-direction: column;
  top: 100%;
  left: 0;
  border: 1px solid #333;
  top: calc(100% + 0.5rem); 
}

.dropdown:hover .dropdown-content {
  display: flex; /* Shows dropdown when hovering over Portfolio */
}

@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    /* allow wrapping on small screens */
  }

  .nav-links a,
  .dropbtn {
    padding: 1rem;
    width: 100%;
    text-align: center;
  }


.dropdown-content {
  position: static;
  width: 100%;
  border: none;
}

.dropdown-content a {
  padding-left: 0;
  padding-right: 0;
}
}



.dropdown-content {
  top: calc(100% + 0.5rem); /* adds space below the parent */
}

.dropdown-content.show {
  display: flex;
}