:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --text-primary: #b6b6b6;
  --text-secondary: #ececec;
  --bg-primary: #23232e;
  --bg-secondary: #141418;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

nav {
  position: fixed;
  background: var(--bg-primary);
  transition: width 200ms ease;
}

nav:hover .logo-text {
  display: block;
}

.logo {
  background-color: var(--bg-secondary);
  font-weight: bold;
  text-transform: uppercase;
  width: 100%;
}

.logo-text {
  letter-spacing: 0.2ch;
  font-size: 1.4rem;
  color: var(--text-secondary);
}


nav .logo-icon {
  display: block;
  /* transform: rotate(0deg); */
  transition: transform 400ms ease;
}

nav:hover .logo-icon {
  transform: rotate(-180deg);
}

nav ul {
  list-style: none;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
}

nav a {
  padding-left: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  gap: 1rem;
  height: 5rem;
  align-items: center;
  font-size: 2rem;
  filter: grayscale(100%) opacity(0.7);
}

nav a:hover {
  width: 100%;
  filter: grayscale(0%) opacity(1);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}
nav a span {
  display: none;
  text-align: left;
}

main {
  margin-left: 5rem;
  padding: 1rem;
}

div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


@media only screen and (min-width: 600px) {
  nav {
    width: 5rem;
    height: 100vh;
  }

  nav ul li {
  width: 100%;
}


  nav ul li:last-child {
  margin-top: auto;
}

  nav:hover {
    width: 15rem;
  }

  nav:hover a span {
    display: block;
    transition: opacity 500ms, transform 200ms;
  }
}


@media only screen and (max-width: 600px) {
    nav {
        bottom: 0;
        width: 100vw;
        height: 5rem;
    }

    .logo {
        display: none;
    }
    nav ul {
        flex-direction: row;
        width: 100%;
        
    }

    nav ul li {
        width: 100%;
        display: inline-block;
    }
    nav li a {
        padding: 0;
        justify-content: center;
    }

    main {
        margin-left: 0;
    }
}