@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);
  --icon-color: rgba(213, 213, 213, 0.49);

  --font-family: 'Open Sans', sans-serif;
}
* {
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  line-height: 1.5rem;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  width: 100vw;
  background-color: var(--background-color);
  color: var(--text-color); 
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#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) {
  #sidebar-trigger {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 50px;
    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;
  }

  #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);
}
.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);
}

/* Content starts here */

main {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 1em;
}

.hero {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  margin: 0;
  gap: 2em;
  box-sizing: border-box;
  background-image:  linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.763)), url("images/77969072_p0.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
 
}
.identity {
  display: flex;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(1rem, 5vw, 5rem);
  gap: clamp(1rem, 5vw, 4rem);
}


.title {
  font-size: clamp(2rem, 6vw, 3rem);
  text-align: center;
  padding: 0;
  margin: 0;
}

.container {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  text-align: center;
  width: 100%;
  padding: 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  gap: clamp(0.75rem, 3vw, 3rem);
}



.greetings{
display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;  
    font-size: 1.3em;
    
width: 95%;
max-width: 1000px;
box-sizing: border-box;
height: auto;
margin: 1em auto;
white-space: pre-line;
text-align: center;
justify-items: center;
 padding: 0;
    

color: var(--text-color);

}

.socials {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: center ;
  margin-top: auto;
  gap: 2em;
  height: 50px;
  padding: 1rem;

}

.socials svg {
  fill: var(--icon-color)
}


.saint {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  justify-content: center;
  gap: 2em;
  align-items: center;
}

.statusheader {
  font-size: 30px;
  font-weight: bold;
  padding: 1em;
}


.SectionA {
  display: flex;
  gap: 2em;
 box-sizing: border-box;
  justify-content: center;
}

.SectionA > li{
position: relative;
 display: flex;
   height: 600px;
  width: 400px;
  flex-direction: column;
   gap: 2em;
 box-sizing: border-box;
 justify-content: flex-start;
 align-items: center;
   padding: 0;

}

.titleCard {
  position: absolute;
  display: flex;
  flex-direction: column;
  height: 80px;
  width: 90%;
  justify-content: center;
  gap: 10px;
  z-index: 2;
   box-sizing: border-box;
}

.statusBorder {
  height: 4px;
  width: 100%;
  background-color: var(--line-color);
}

.categories {
  display: flex;
    min-height: 0;
  height: auto;
  flex: 1;
  width: 100%;
  list-style: none;
  gap: 2em;
   overflow-x: scroll;
   scrollbar-width: thin;
   margin: 0;
  padding: 0;
   overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.categories li{
display: flex;
flex-direction: column;
box-sizing: border-box;
flex: 0 0 100%;
height: 100%;
width: 400px;
justify-content: center;
align-items: center;
gap: 1em;
text-align: center;
 scroll-snap-align: start;
 z-index: 1;
}


.status {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-top: 0;
}
.statusDetails {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  width: 80%;    /* less than 100% so horizontal centering is visible */
  border: solid var(--line-color);
  margin-block: auto; /* centers it vertically in the remaining space */

}


.progress {
  align-items: center;
  padding: 1em;
  font-size: 30px;
  font-weight: 1000;
}

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

.SectionA3 {
  background-image:  linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.763)), url(/images/artworks/the\ woman\ and\ centepid\ \(downscaled\).jpg);
  background-position: center;
  background-size: cover;
}

.cardCTA {
  display: flex;
  flex-direction: column;
  height: auto;
  width: 90%;
  gap: 1em;
  align-items: center;
  padding: 1em;
}
.cardCTA > ul{
  gap: 30px;
  display: flex;
  list-style: none;
}
.cardCTA > span{
font-size: 18px;
}
.cardCTA svg{
  fill: var(--icon-color);
}

/* Background img status */
.novel{
  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-repeat: no-repeat;
  background-size: cover;
}

.manga {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.763)), url(/images/index_status/C1_p.35.png);
  background-repeat: no-repeat;
  background-size: cover;
}


/* mage */

.mage {
  display: flex;
  height: 400px;;
  width: 100%;
   border: solid red;
  justify-content: center;
  align-items: center;
}

.magesection1 {
  height: 400px;
  width: 600px;
     border: solid rgb(11, 38, 85);

}



.knight { 
  box-sizing: border-box;
  height: 900px;
  padding: 2em;
  justify-content: center;
  display: flex;
  align-items: center;
  flex-direction: column;

}

.ktheader {
  font-size: 2em;
  padding: 1em;
}

.ktsubheader {
  font-size: 1.5em;
  padding: 1em;
text-align: center;
}

.ktnotes {
  font-size: 1em;
  text-align: center;
  width:80%;
  height: auto;
  white-space: pre-line;


}



.kntphoto {
  width: min(700px, 90vw);
  height: auto;
  aspect-ratio: 7/5;
  flex-shrink: 0;
 overflow: hidden;
  border: 3px solid var(--line-color);
}
.kntphoto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.kofi {
  position: static;
  height: auto;
  width: auto;
  bottom: 1em;
  right: 0;
  margin: 1em;
  align-self: center;
}



footer{
  display: flex;
  height: 50px;
  width: 100%;
  padding: 0;
  font-size: 1em;
  align-items: center;
  justify-content: center;
background-color: var(--accent-color);}



/*mobile format*/

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

  main {
    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;
    transition: transform 300ms ease-in-out;
    z-index: 2;

    .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 starts here */

  .hero {
  min-height: calc(100svh - 60px); /* Account for the fixed bottom sidebar */
  height: auto;
  width: 100%;
  padding: 1em;
  gap: clamp(2rem, 6vh, 5rem);
  box-sizing: border-box;
}
  .socials {
    height: auto;
    gap: clamp(0.75rem, 4vw, 1.5rem);
  }
  .socials svg,
  .socials img {
    width: clamp(24px, 8vw, 40px);
    height: auto;
  }
  
  .saint > ul {
    display: flex;
    flex-direction: column;
  }
    .saint > ul > li{
          width: 100svw;
    }

  .knight {
    height: auto;
    width: 100%;
    padding: 1em;
  }
  .kofi {
  display: flex;
}


}
