@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;
  --panel-color: rgba(0, 0, 0, 0.718);
  --font-family: 'Open Sans', sans-serif;

}
* {
  margin: 0;
  padding: 0;
}

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

#toggle-btn{
  rotate: 180deg;}

#sidebar{
 height: 100vh;
  width: 50px;
  padding: 0;
  position: sticky;
  top: 0;
  align-self: start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
   background-color: var(--panel-color);

}

#sidebar-trigger {
  display: none;
}

#sidebar.open{
  box-sizing: border-box;
  height: 100vh;
  width: 250px;
  padding: 0;
  background-color: var(--panel-color);

  position: sticky;
  top: 0;
  align-self: start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
}


@media (min-width: 801px) {
  body {
    grid-template-columns: 1fr;
  }

  #sidebar-trigger {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 12px;
    height: 100vh;
  }

  #sidebar,
  #sidebar.open {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out;
    border-right: 0;
  }

  #sidebar.auto-hide {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
  }

  #sidebar-trigger:hover + #sidebar.auto-hide,
  #sidebar.auto-hide:hover,
  #sidebar.auto-hide:focus-within {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}


#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(--accent-color);
  svg {
    fill: var(--accent-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;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover {
  background-color: var(--accent-color);
  fill: var(--background-color);
}
.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 .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);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background-image:  linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.763)), url("/images/whimsical\ journey\ of\ the\ spacemage.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  height: 100vh;
  width: 80%;
  margin: 0;
  gap: 10em;
  box-sizing: border-box;
  
  align-items: center;
  justify-content: center;
  gap: 2em;
}
.section1,
.section2,
.section3 {
  box-sizing: border-box;
}







/* this is where I add the contents of my blog */
.section2 {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
   height: 100vh;
   align-items: center  ;
  width: auto;
  min-width: 0;
  gap: 1em;
}
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  padding: 4em;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.763)), url("/images/anime/948045.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
h2 {
  width: 90%;
  text-align: center;
}
.section2 ul {
  display: flex;
  flex-direction: column;
  list-style: none;
 gap: 15px;
  

}

.section2 ul li {
  display: flex;
  gap: 2em;
  font-weight: 100;
   font-size: 15px;
  background-color: var(--panel-color);

}
.section2 a,
.section2 a:visited {
  color: var(--accent-color);
  text-decoration: none;
   
}
.section2 ul li:hover {
  color: var(--accent-color)
}


.divider {
  text-align: center;
  flex-shrink: 0;
  font-size: 20px;
  display: block;
  height: 30px;
  width: 100%;
  background-color: rgba(171, 171, 171, 0.496);
}

.section-title button {
    background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-size: 18px;
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  width: 100%;
  gap: 4em;
  
}

.content ul li{
display: flex;
height: 80px;
width: 100%;
align-content: start  ;
}
.content ul li img{
height: 80px;
width: 160px;
object-fit: contain;
left: 0

}

.details{
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  align-items: center;


}

.content ul li h3{
  justify-content: center;
}

.content-work {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 400px;
  width: 100%;
  gap: .9em;

}

.section-title {
align-self: center;
justify-self: center;
font-size: 25px;

}



.content-life {
  display: none;
  flex-direction: column;
 position: relative;
  height: 400px;
  width: 100%;
  gap: .9em;
}


/* Reminder: this where I add some decoration */

.section1 {
  height: 100vh;
  width: 200px;
  background-image: url(/images/anime/833058.jpg);
    background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


.section3 {
  height: 100vh;
  width: 200px;
  justify-self: end;
   background-image: url(/images/anime/948045.jpg);
    background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

}


/*mobile format*/

/*mobile format*/

@media (max-width: 800px) {
  body {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .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;
    z-index: 1001;
    transition: transform 300ms ease-in-out;

    .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(--panel-color);
      border-top: 1px solid var(--accent-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;}

    }
  }
  }

  #sidebar.mobile-hidden {
  transform: translateY(100%);
  }

/* content start here */

main {
  display: flex;
  flex-direction: column;
  align-items: center;}

.section1 ,  .section3 {
  display: none;
}

.hero {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.section2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.header{
  text-align: center;
  font-size: 15px;
}
.content li{
  display: flex;
  width: 100%;
}

.content,
.content-work,
.content ul,
.content ul li,
.content .details {
  min-width: 0;
  box-sizing: border-box;
}

.content {
  width: 100%;
}

.content-work,
.content ul {
  width: 100%;
}

.content ul li {
  gap: 0.75em;
  padding: 0 1em;
}

.content ul li img {
  box-sizing: border-box;
  flex: 0 1 clamp(80px, 30vw, 160px);
  width: clamp(80px, 30vw, 160px);
  max-width: 100%;
  min-width: 0;
  height: 80px;
}

.content .details {
  flex: 1;
}

}