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

:root {
  --line-color: #696969;
  --hover-color: #75e688;
  --background-color: #1a1a1a;
  --accent-color: #647b17;
  --text-color: #dcdcdc;
  --font-family: 'Open Sans', sans-serif;
}
* {
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  line-height: 1.5rem;
}
body {
    min-height: 100vh;
    min-width: 100vw;
  background-color: var(--background-color);
  color: var(--text-color); 
  display: grid;
  grid-template-columns: auto 1fr;
}

#toggle-btn{
  rotate: 180deg;
}
#sidebar {
  box-sizing: border-box;
  height: 100vh;
  width: 250px;
  padding: 5px 1em;
  background-color: var(--background-color);
  border-right: 1px solid var(--line-color);

  position: sticky;
  top: 0;
  align-self: start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
}
#sidebar.close {
  width: 59px;
  padding: 5px;
}


#sidebar ul {
  list-style: none;
}



#sidebar > .navbar > ul > li:first-child {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
#sidebar .logo {
  font-weight: 600;
  font-size: 1.25em;
}
#sidebar ul li.active a{
  color: var(--text-color);
  svg {
    fill: var(--text-color);
  }
}
#sidebar a, #sidebar .dropdown-btn, #sidebar .logo{
  border-radius: .5em;
  padding: .85em;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 1em;
}
.dropdown-btn {
width: 100%;
text-align: left;
background: none;
border: none;
font: inherit;
cursor: pointer;
}

#sidebar svg {
  flex-shrink: 0;
  fill  : var(--text-color);

}
#sidebar a span, #sidebar .dropdown-btn span {
  flex-grow: 1;
}

#sidebar a:hover, #sidebar .dropdown-btn:hover {
  background-color: var(--accent-color);
}

#sidebar .sub-menu {
  display: grid;
  transition: all .3s ease-in-out;
  grid-template-rows: 0fr;

  > div {
    overflow: hidden;
  }
}

 

#sidebar .sub-menu.show {
  grid-template-rows: 1fr;
}

.dropdown-btn.rotate svg{
  transition: 200ms ease;
}
.rotate svg:last-child {
  rotate: 180deg; 
} 

/* Aerygrim active state when submenu open */
#sidebar > .navbar > ul > li.aerygrim-menu > .dropdown-btn.rotate,
#sidebar > .navbar > ul > li.aerygrim-menu > .dropdown-btn.rotate span.aerygrim {
  color: var(--accent-color);
}
#sidebar > .navbar > ul > li.aerygrim-menu > .dropdown-btn.rotate svg {
  fill: var(--accent-color);
}

#sidebar .sub-menu a{
  padding-left: 2em;
}

#toggle-btn{
  margin-left: auto;
  padding: 1em;
  border: none;
  border-radius: .5em;
  background: none;
  cursor: pointer;

  svg {
    transition: rotate 150ms ease;
  }
}
#toggle-btn:hover svg {
  fill: var(--accent-color);
}

#sidebar > .navbar > ul > li.aerygrim-menu svg {
  fill: var(--accent-color);
}

span.aerygrim {
  color: var(--accent-color);
}

#sidebar li.manga a {
  color: var(--accent-color);
}

.hero {
  height: 100vh;
  padding: 2em;
}
.knight {
  height: 100vh;
  padding: 2em;
}

@media (max-width: 800px) {
  body {
    grid-template-columns: 1fr;
  }
  main {
    padding: 2em 1em 60px 1em;
  }
  .hero, .knight {
    text-wrap: auto;
    border: none;
    padding: 0;
  }

  #sidebar{
    height: 60px;
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--line-color);
    padding: 0;
    position: fixed;
    top: unset;
    bottom: 0;
    


    .navbar { ul li span, ul li:first-child, .dropdown-btn svg:last-child {
    display: none;}
    
   
    > ul{
      padding: 0;
      display: grid;
      grid-auto-columns: 60px;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: scroll;
      justify-content: center;
    }

    ul li {
      height: 100%;}
      
    
    ul a, ul .dropdown-btn {
      width: 60px;
      height: 60px;
      padding: 0;
      border-radius: 0;
      justify-content: center;
    }
    ul li .sub-menu.show {
      position: fixed;
      bottom: 60px;
      left: 0;
      box-sizing: border-box;
      height: 60px;
      width: 100%;
      background-color: var(--background-color);
      border-top: 1px solid var(--line-color);
      display: flex;
      justify-content: center;

      >div {overflow-x: auto}

      li{
        display: inline-flex;
      }
      a{box-sizing: border-box;
      padding: 1em;
    width: auto;
  justify-content: center;}

    }
  }
}
}

.hero{
height: 700px;
width: 100%;
  padding: 1em;
  background-color: var(--line-color)}

.description {
  display: flex;
flex-direction: column;
}

.description span{
  font-size: 17px;
}

.samgpleimg{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.samgpleimg li{
  width: min(100%, 700px);
}
.samgpleimg li img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.note span{
  font-size: 20px;
}

.knight{
height: 500px;
width: 100%;
  padding: 1em;
  background-color: var(--line-color)
}