@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

body {
  background-color: #fcfcfc;
}

main {
    margin-left: 5rem;

}

.headFont {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.bodyFont {
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.navbar {
  width: 5rem;
  height: 100vh;
  position: fixed;
  background-color: #0E0E0E;
  transition: width 200ms ease;
}

.logo {
  font-weight: bold;
  text-align: center;
  padding: 0.5rem;
  text-transform: uppercase;
  height: 6rem;
  color: antiquewhite;
  font-size: 0.5rem;
  letter-spacing: 0.3ch;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  transition: transform 200ms;
  display: block;
  filter: none;
}

.navbar:hover .logo img {
  transform: scale(1.2);
}

.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 5.5rem;
  color: aliceblue;
  text-decoration: none;
  filter: grayscale(100%) opacity(0.7);
  transition: 200ms ease;
}

.link-text {
  display: none;
  margin-left: 0.3rem;
}

.nav-link i {
  min-width: 1rem;
  margin: 0 3.2rem;
  align-items: center;
  font-size: x-large;
}

.nav-link:hover {
  filter: grayscale(0%) opacity(1);
  background: #539CF2;
}

.navbar:hover {
  width: 14rem;
}

.navbar:hover .link-text {
  display: block;
}

.logout-item {
  margin-top: auto; /* Pushes the logout button to the bottom */
  background: #0c1115;
}

#logoutButton:hover {
  margin-top: auto; /* Pushes the logout button to the bottom */
  background: #EC3F39;
}

#logoutButton {
  color: rgb(251, 215, 215);
  cursor: pointer;
}


body::-webkit-scrollbar {
    width: 0.25rem;
}

body::-webkit-scrollbar-track {
    background: #1e1e24;
}

body::-webkit-scrollbar-thumb {
    background: #6649b8;
}

/* Small screens */
@media only screen and (max-width: 600px) {
    .navbar {
      bottom: 0;
      width: 100vw;
      height: 4rem;
    }

    .navbar:hover{
        width: 100vw;
    }

    .nav-link {
      display: flex;
      align-items: center;
      height: 4rem;
      color: aliceblue;
      text-decoration: none;
      filter: grayscale(100%) opacity(0.7);
      transition: 200ms ease;
    }

    .nav-link i {
      min-width: 1rem;
      margin: 0 1rem;
      align-items: center;
      font-size: x-large;
    }

    .navbar:hover .link-text{
        display: none;
    }
  
    .logo {
      display: none;
    }
  
    .navbar-nav {
      flex-direction: row;
    }
    
  
    .nav-link {
      justify-content: center;
    }
  
    main {
      margin: 0;
      margin-bottom: 10vh;
    }
  }
  
  /* Large screens */
  @media only screen and (min-width: 600px) {
    .navbar {
      top: 0;
      width: 8rem;
      height: 100vh;
    }
  
    .navbar:hover {
      width: 16rem;
    }
  
    .navbar:hover .link-text {
      display: inline;
    }
  
    .navbar:hover .logo svg
    {
      margin-left: 11rem;
    }
  
    .navbar:hover .logo-text
    {
      left: 0px;
    }
  }

