/* Nav bar background color and settings */
.hotspot {
  position: absolute;
  display: block;
  background: rgba(255, 0, 0, 0); /* Remove or lower opacity later */
  cursor: pointer;
}

div.header {
  background-color: #333;
  color: #fff;
  width: 100%;
  z-index: 1000;
  position: relative;
}

/* Nav bar for desktops */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 10px;
}

/* 3 line menu (hidden) */
.toggle {
  font-size: 25px;
  cursor: pointer;
  display: none;
}

.nav-list {
  list-style: none;
  display: flex;
  margin:0;
  font-size: 1.4rem;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  text-decoration: none;
  color: white;
  display: block;
  padding: 10px 0;
}

.logo {
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .toggle {
    display: block;
  }

  .nav-list a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 0;
    display: block;
  }

  .nav-list {
    max-height: 0;
    color: #ffffff;
    overflow: hidden;
    flex-direction: column;
    background-color: rgba(60, 60, 60, 0.8);
    transition: max-height 0.2s ease-in-out;
    width: 100%;
    position: absolute;
    top: 32px;
    left: 0;
    display: flex;
  }

  .nav-list.active {
    max-height: 350px;
    margin-left: 0px;
  }

  .nav-list li {
    text-align: center;
    margin-left: 0px;
  }

  .nav-list li:last-child {
    margin-bottom: 10px;
  }

  .nav-list li a:hover {
    background-color: #432cc5;
    width: 100%;
  }

  /* Add animation to the toggle icon */
  .toggle.active {
    transform: rotate(90deg);
  }
}
