@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 ul li.active a {
  color: var(--accent-color);
}

#sidebar ul li.active svg {
  fill: var(--accent-color);
}


#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 .sub-menu li.active > a {
  color: 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.active > .dropdown-btn,
#sidebar > .navbar > ul > li.aerygrim-menu.active > .dropdown-btn span {
  color: var(--accent-color);
}
#sidebar > .navbar > ul > li.aerygrim-menu.active > .dropdown-btn svg {
  fill: var(--accent-color);
}
#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);
}

/* this where the contents starts */

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: minmax(140px, 200px) minmax(0, 1fr) minmax(140px, 200px);
  height: 100vh;
  width: min(100%, 1264px);
  margin: 0;
  gap: 10em;
  box-sizing: border-box;
  
  align-items: center;
  justify-content: center;
  gap: 2em;
}
.section1,
.section2,
.section3 {
  box-sizing: border-box;
}

/* section 1 field */
.section1 {
  display: flex;
  flex-direction: column;
  background-color: var(--panel-color);
  height: 100vh;
  width: 200px;
  justify-content: center;
  align-items: center;
  
}

.section1 .container {
display: flex;
flex-direction: column;
height: 600px;
width: 100%;
gap: 1em;
list-style: none;
}

.qoute_box {
  width: 100%;
  height: 250px;
}



.qoute_box ul {
  display: flex;
  width: 100%;
  height: 100%;
  list-style: none;
   overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;


}
.qoute_box li {
   flex: 0 0 100%;
   width: auto;
  height: 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  align-content: center;
}
  

.qoute_box ul li img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pick_box{
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 1em;
width: 100%;
height: 400px;
overflow-y: hidden;
overflow-y: auto;
scrollbar-width: thin;
gap: 1em;

}


/* section 2 field */

.section2 {
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border: 2px solid var(--line-color );
  height: 100vh;
  width: auto;
  position: relative;
  align-items: center;
  background-image: url(/images/artworks/lefora.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  gap: 1em;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-color) transparent;


}
.banner {
  position: relative;
  height: 200px;
  width: 100%;
  background-image:url(/images/anime/658733.jpg);
   background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.profilepic {
   position: absolute;
  width: 200px;
  height: 200px;
  left: 50%;
  top: 6em;
  transform: translateX(-50%);
  border-radius: 50%;
  background-image: url(/images/emul.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.ribbon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100px;
  width: 100%;
  box-sizing: border-box;
  background-color: #9797979c;
  overflow: hidden;
  align-items: center;
  align-content: center;
  padding: 2em;
}


.leftnav {
display: flex;
color: #1a1a1a;
}

.leftnav ul{
  display: flex;
  list-style: none;
  gap: 2em;
}

.ribbon ul li{
align-content: center;
 font-size: 21px;
 font-weight: 600;
 height: auto;
 width: 100px;
}

.ribbon ul li:hover{
color: var(--accent-color);
}




.rightnav {
  display: flex;
  justify-content: end;
  color: #1a1a1a;
 
}

.rightnav ul{
  display: flex;
  list-style: none;
  gap: 2em;
}
  .rightnav ul li{
  display: flex;
  justify-content: end;
  
}



.about {
  display: flex;
  position: relative;
  height: auto;
  width: 70%;
  background-color: var(--panel-color);
  justify-content: center;
  align-items: center;
  padding: 1em;
}

.banner, .ribbon, .about {
  flex-shrink: 0
}

.entrybox {
  width: 80%;
  height: 80%;
justify-items: center;
   font-size: 18px;
    font-weight: 200;
    text-align: justify;
  margin: 0 0 1.5em;
  line-height: 1.6;
   white-space: pre-line;
}


.section3 {
  background-color: #1a1a1a;
  border: 2px solid var(--hover-color);
  height: 100vh;
  width: 200px;
    justify-self: end;
}




/*mobile format*/

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