.nav-container {
  display: flex;
  position: fixed;
  width: 100%;
  top: 0;
  margin: 0;
  background-color: #394244;
  height: 4rem;
  justify-content: space-between;
  align-items: center;
  font-family: Helvetica, sans-serif;
  z-index: 4;
}

.logo-container {
  display: flex;
  align-items: center;
}

.nav-container a {
  text-decoration: none;
}

.logo-container .logo-image {
  margin: auto 0.5rem auto 1rem;
}

.logo-image img {
  height: auto;
  max-width: 4.5rem;
  margin-top: 2px;
}

.logo-container .logo-text {
  color: #ffffff;
  font-weight: bold;
  font-size: xx-large;
}

.logo-container a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

.nav-items {
  text-align: center;
}

.nav-items a {
  display: flex;
  text-decoration: none;
  list-style: none;
  transition: all 0.3s ease-in-out;
  float: left;
  align-content: center;
  outline: 0;
}

.nav-items li:hover,
.highlight {
  background: #ffffff;
  border-radius: 7px;
  color: #2d3436 !important;
}

.nav-items li {
  color: #ffffff;
  margin-right: 1rem;
  font-size: large;
  padding: 8px 5px 0 5px;
  height: 2rem;
  transition: all 0.2s ease-in-out;
  border-radius: 7px;
}

.side-panel {
  display: none;
}

@media only screen and (max-width: 974px) {
  .nav-items {
    display: none;
  }

  /* hamburger menu */

  .icon {
    width: 3rem;
    height: 3rem;
    background-color: none;
    margin-right: 0.5rem;
    cursor: pointer;
    display: flex;
  }

  .hamburger {
    width: 2.8rem;
    height: 6px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: 0.5s;
    position: absolute;
    top: 1.8rem;
    right: 9.6px;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    background-color: #ffffff;
    height: 6px;
    width: 2.8rem;
    transition: 0.5s;
    position: absolute;
    border-radius: 5px;
  }

  .hamburger::before {
    top: -12px;
  }

  .hamburger::after {
    top: 12px;
  }

  .icon.open .hamburger {
    background-color: transparent;
  }

  .icon.open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .icon.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  /* side panel */

  .side-panel {
    display: flex;
    position: fixed;
    z-index: 3;
    width: max-content;
    height: 100%;
    background-color: #394244;
    left: 0;
    top: 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.493);
    border-radius: 0 10px 0 0;
    transition: all 0.3s ease-in-out;
    transform: translateX(-105%);
    overflow: hidden;
  }

  @media only screen and (max-height: 537px) {
    .side-panel {
      overflow-y: scroll;
    }

    /* scrollbar styling */

    ::-webkit-scrollbar {
      display: none;
    }

    ::-webkit-scrollbar-track {
      display: none;
    }

    ::-webkit-scrollbar-thumb {
      display: none;
    }

    ::-webkit-scrollbar-thumb:hover {
      display: none;
    }
  }

  .side-panel ul {
    list-style-type: none;
    margin-top: 50%;
    display: flex;
    flex-direction: column;
    margin-right: 2rem;
  }

  .side-panel a,
  .side-panel a:focus {
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
  }

  .side-panel-items {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 3rem;
    padding: 10px;
  }

  .side-panel-items:active,
  .side-panel-items:hover {
    background: #1f75b6;
    border-radius: 10px;
  }

  .side-panel.open {
    transform: translateX(0);
  }
}

@media only screen and (max-width: 321px) {
  .logo-text {
    display: none;
  }
}

@media only screen and (max-height: 669px) {
  .side-panel-items {
    margin-bottom: 2rem;
  }
}
