
:root{
--accent-color: #eddbc3;
--accent-color-static: #eddbc3;
--second-accent-color: #A98467;
--default-text-color: #242423;
--default-bg-color: #fff;
--second-bg-color: #F8F4EC;
--default-transition-speed: 0.25s;
--semitrans-bg-color: rgba(40,44,53,0.3);
--etylix-accent: #7aaaea;
--default-border-radius: 20px;
--default-card-border-radius: 999px;
/* #242423  */
/* HAHAHAHAHAHA */
--maou-color: #0F0F0F;
--megumin-color: #c94444;
--aqua-color : #0466c8;
--kazuma-color: #396e3e;
--darkness-color: #FA9411;
--iris-color: #FDCA9E;
--eris-color: #6C6F9D;
--wiz-color: #4632a8;
--vanir-color: #909091;
}

.color-aqua {color: var(--aqua-color);cursor: pointer;}
.color-kazuma { color: var(--kazuma-color);cursor: pointer;}
.color-megumin { color: var(--megumin-color);cursor: pointer;}
.color-darkness { color: var(--darkness-color);cursor: pointer;}
.color-maou {
  color: var(--maou-color);
  cursor: pointer;
  text-shadow: 0 0 15px #000, -20px 0px 30px #1d1d1d, -20px -20px 40px #232323, 4px -11px 50px #6a6a6a, -1px -12px 60px #5e5e5e, 0px -8px 70px #757575, 1px -11px 80px #767676;
}

::-webkit-scrollbar {
	display: none;
}

* {
  font-family: "Lora", sans-serif;
  font-weight: 400;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  scroll-behavior: smooth;
  pointer-events: unset;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none; 
}

body {
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
  width: 100%;
  background-color: var(--accent-color);
  transition: 2s ease-out;
  -webkit-font-smoothing: antialiased;
}

.theme-bg, .theme-bg-2 {
  height: 100vh;
  width: 100%;
  left: 0;
  background-image: url('../img/bg/main-bg.jpg');
  background-repeat:no-repeat;
  background-position: center 80%;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  position:fixed;
  z-index: -1;
  transition: 99999s; /* Why?, fuk ios  */
}
.theme-bg {
  top: 0;
  bottom: 0;
  height: 100vh;
  z-index: -1;
}
.theme-bg-2 {
  bottom: 0;
  height: 100vh;
  background-position: bottom;
  z-index: -2;
}

.webp .theme-bg, .webp .theme-bg-2 {
  background-image: url('../img/bg/main-bg.webp');
}

.avif .theme-bg, .avif .theme-bg-2 {
  background-image: url('../img/bg/main-bg.avif');
}
a {
	text-decoration: none;
  font-weight: 600;
  color: var(--default-text-color);
  cursor: pointer;
  transition: var(--default-transition-speed);
}
a:hover {
  color: var(--second-accent-color);
}

b {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6, a, p {
	transition: var(--default-transition-speed);
  margin: 0;
  color: var(--default-text-color);
}

.no-scroll {
  overflow: hidden;
}

.page-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-wrapper {
    width: 100%;
    max-width: 1024px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.heading-text {
  margin: 10px;
  color: var(--default-bg-color);;
  text-align: center;
  font-size: 50px;
  font-family: 'Playfair Display', serif;
  padding: 20px 0 20px 0;
}

.char-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-between;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.char-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 2fr;
  gap: 30px;
}

.char {
  height: auto;
  position: relative;
  text-align: center;
}

char:hover + .char-img {
  display: none;
}

.char-img {
  height: 300px;
  width: 200px;
  object-fit: cover;
  border-radius: calc(var(--default-border-radius) - 0.5px);
  -webkit-border-radius: calc(var(--default-border-radius) - 0.5px);
  filter: brightness(0.9) sepia(0.3);
}
.char-img[src=""],
.char-img:not([src]) {
  content: url('data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==');
}
.char-img__outline {
  height: 300px;
  width: 200px;
  position: absolute;
  top: 0;
  outline: 1.5px solid white;
  outline-offset: -5px;
  border-radius: var(--default-border-radius);
  opacity: 0.3;
  transition: 0.35s;
  cursor: pointer;
}
.char-img__outline:hover{
  opacity: 1;
}
picture:has(~ .char-img__outline:hover) {
  filter: unset;
  scale: 1.1;
}
.char-name:has(~ .char-img__outline:hover) {
  bottom: 30px;
  font-size: 37px;
}
.char-desc:has(~ .char-img__outline:hover) {
  opacity: 1;
  bottom: 15px;
  transition: 0.35s ease-out .25s;
}

.char-name {
  position: absolute;
  display: inline-block;
  bottom: 15px;
  left: 15px;
  text-align: center;
  font-size: 30px;
  font-family: 'Playfair Display', serif;
  color: var(--second-bg-color);
  text-align: left;
  text-shadow: 4px 4px 21px rgba(0,0,0,1);
}

.char-desc {
  position: absolute;
  display: inline-block;
  bottom: 7px;
  left: 15px;
  text-align: center;
  font-size: 17px;
  color: var(--second-bg-color);;
  text-align: left;
  text-shadow: 4px 4px 21px rgba(0,0,0,1);
  opacity: 0;
  transition: 0.15s ease-out 0s;
}

.main-story {
  background-color: var(--accent-color);
  -webkit-border-radius: var(--default-border-radius);
  -moz-border-radius: var(--default-border-radius);
  -o-border-radius: var(--default-border-radius);
  -ms-border-radius: var(--default-border-radius);
  border-radius: var(--default-border-radius);
}

.story {
  padding: 10px 20px;
}
.story h3 {
	color: var(--default-text-color);
	font-family: 'Playfair Display', serif;
	font-weight: 550;
}

.notes.chapter-info {
  text-align: center;
  max-width: 400px;
  background: none;
}
.notes.chapter-info h3 {
  font-size: 30px;
  color: var(--second-bg-color);
}

.notes.chapter-info p{
  opacity: 0.8;
  color: var(--second-bg-color);
}

.chapter-wrapper {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
  justify-items: center;
  max-width:  1000px;
  box-sizing: border-box;
  margin: 50px;
  margin-top: 70px;
}

.chapter-container {
  display: flex;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 400px;
  height: 150px;
  background-color: var(--accent-color);
  border-radius: 17px;
  text-align: left;
  transition: all var(--default-transition-speed) ease-out;
}

.chapter-img {
  height: 150px;
  width: 115px;
  object-fit: cover;
  border-radius: 17px 0 0 17px;
  transition: 0.5s;
  filter: blur(3px);
  opacity: 0.2;
  overflow: hidden;
  animation: loading-blink 1.1s infinite;
}

.chapter-img.lazyloading {
  filter: blur(3px);
  opacity: 0.2;
  animation: loading-blink 1.1s infinite;
}

.chapter-img.lazyloaded {
  filter: unset;
  animation: unset;
  opacity: 1;
}

.chapter-desc {
  padding: 10px;
  height: 100%;
  width: 250px;
  position: relative;
}

.chapter-name {
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.chapter-info {

}

.go-chapter {
  display: flex;
  flex-direction: row-reverse;
  position: absolute;
  bottom: 5px;
  right: 5px;
}

.chapter-button {
  background-color: var(--second-accent-color);
  margin: 5px;
  padding: 9px 14px 7px 14px;
  border-radius: var(--default-border-radius);
  font-size: 12.5px;
  color: var(--accent-color);
  vertical-align: middle;
  transition: 0.5s;
}

.chapter-button:nth-of-type(2) {
  background-color: transparent;
  color: var(--second-accent-color);
  margin: 5px 0;
}
.chapter-button:hover {
  opacity: 0.8;
}
.chapter-button:nth-of-type(1):hover {
  color: var(--accent-color);
}

.card-container {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 17px;
  text-align: left;
}

.card-desc {
  height: 50px;
  width: 250px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: space-between;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 0 15px;
  margin-top: 11px;
  box-sizing: border-box;
  background-color: var(--accent-color);
  border-radius: 27px;
}

.card-img {
  width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: 27px;
  transition: all 0.3s;
  background-image: url('../img/lazy-placeholder.png');
  background-size: cover;
  background-position: center center;
}

.chapter-name {
  font-size: 20px;
}

.card-selector-wrapper {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  bottom: 0;
  top: 0;
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 99;
  transition: all 700ms;
}
.card-selector {
  max-height: 400px;
  max-width: 450px;
  min-width: 350px;
  min-height: 150px;
  bottom: -100%;
  position: absolute;
  padding: 10px;
  margin: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--accent-color);
  border-radius: 27px;
  transition: all 750ms cubic-bezier(1,0,0,1);
  text-align: center;
}
.card-selector h2 {
  font-size: 28px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}

.aserverchoose {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  left: 0;
  right: 0;
}

.aserver-button {
  background-color: var(--second-accent-color);
  margin: 5px;
  padding: 9px 14px 7px 14px;
  -webkit-border-radius: var(--default-card-border-radius);
  border-radius: var(--default-card-border-radius);
  font-size: 17px;
  color: var(--accent-color);
  vertical-align: middle;
  transition: var(--default-transition-speed) ease-out;
  cursor: pointer;
}
.aserver-button:hover {
  color: var(--accent-color);
  opacity: 0.8;
}
.aserver-button:active {
  opacity: 0.7;
}

.aplay-button, .adownload-button {
  background-color: var(--second-accent-color);
  padding: 15px;
  margin-left: 5px;
  border-radius: var(--default-border-radius);
  font-size: 12px;
  color: var(--accent-color);
  vertical-align: middle;
  transition: var(--default-transition-speed) ease-out;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}
.aplay-button, .adownload-button {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAAAsTAAALEwEAmpwYAAACbElEQVR4nO3cv2oUURTH8UFRCwvF0j8voE8gaKFvIFpbqL0PoFhb2GtlkULFQoSAIBZh75lslcJiMey9CRZiUuw5a9IlFhmJu2REVtckmjPO/X7gQMpz72/nzmGyO0UBAAAAAAAAAAAAAAAAtFO1sHDEUueOxvBiVHK76vWOeveVhdX3b49rDF1LUv1UH4bLcsm7v9bTGB5N2PzvpTFsaQqPh8vvTnj32VqW5NOvAqgrfNYluebdaytpDFvTAxhXDK8Gi+Vp755bxf5083eOJVnTKHerqjrk3XuWAVgdxLzGcN67/2wDsO0QUviqSR5W8c0x73VkGYDt3BskDlJ5xXst+QaQRiOrRZlZ63VPea8pywCsrhWN4Yb3unIOoBrdH2TWUuec9/qyDcAYWf0DsDqIkpHVMQBjZPW9AuzHYmR1DiAxsroHYHUxsppvAOP7g8xqnDtb5MgaEEDWT1mtAZuf9chqDdj0CUfShqZwL4urwRqw4b+pp0Xbmf8mT6nyYtFm5r7BU46jvtwv2swasMkEkPw3miMoNbK4CZvHsZPCpsbwgDE0OWx+lHlLcqHIhfkfM+MK6zyKSD6bn/X/j83zUx9lVZPcLHJmLuc83yHyCyCGNFjqXPX80DWKHdg5z/dI3QLQ3EbL3bADGS1fHvZeZ2PZPztyMh4td8P++k2W0dIlAGW0dLwCIqPlntm+znlGy30zRktfxmj5P/1QW15rv3vGueUcX1UgKxo71717zfVlHU++fJw76d1ny19XI+WExwiLw3552bu/bF7YpFFuaZJnGuX59t+8sAkAAAAAAAAAAAAAAAAo9uobARI8d0BxW4oAAAAASUVORK5CYII=);
}
.adownload-button, .adownload-button {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAADoklEQVR4nO3c3Y8TVRjH8fECE8M9L4ovyItGMKgYQALBGIIYo4Lc+VeCgQsVsjvnma5ecOHFQnfOM2VhlSztnGfKyyLIS8achouN29Lp7rTzMP19krlq03PmfLeZ7iRzggAAAAAAAAAAAAAAAGCtpaW5N/KrVzf1eQkmKWvNfiyWLjs2T5ylZ2LpStfOfooKFRCmfcK0Ikz5/44VHwpRJsyx+blPjN7hmC4iyMSDUGdQEGF6gCATJoNj9A4EQZDpJviG6CIIoosgiC6CILoIgugiCKKLIIgugiC6CILoIgiiiyCILoIgugiC6CIIoosgiC6CILoIgugiCKKLIIgugiC6CILoIgiiiyCILoIgugiC6CIIoosgiC6CILoIgugiCKKLIIgugiC6CIKUxz9TvtHnygVBNi5r0TFnqeGYnvaeK2fzqySN/VqCSNLY76y55JgeOzYils77x6+DOsri6Lg/0bWLZ+7716oOksXRcT+XPvO7V8sowvTHyx5jzqw5UVUQP7afw8DPs3Q+qJPlP3/Z7Kx5PmQRV1KmLycdxI85YEeI1RsRdII6yefnXy8QJBdrHqZJ+NWkgvix/JhD58W0kuf5a0GdCNNvBU489wvkYjo57iB+jIIx/JwuBHXjrPmo/0Wz7wL842x0alxB/Gf7MQrNhc19P/egjoTDoy9+tQxdCMf0OLP0XdlBhMOvi8cY7br2SkoTOugsZcWimH9Tjr4vK4iwOS2WHhUa29Jd4eiLYBr0ovh/vApHCX/YaBBJ6JtRYjhLR4Jp0uHwM8fGFY9izqw3yIgxui42h4Np5LfjGyWKS+jsqEGyOPy2/x2CQTHCQ8E068bRJ44pLRjliYvpx6JBRoyRpUn0edXroUIW04EhO8TlqxbuWWbpp+HvC8/5gMVj0MGq10HhDqOmXfSbUsZ7eoc1bWyaOUC60PhQ2NwutJBlHIgxXNqMPphIFGvu1PK2+jh0WmavsPl7nDFqeztkXDrJ7B5h+qv8GLSMGOvUbc6855hulBXDWVpq89zucv90pkx2o/FuGVGcNbfu2mhX1edTC1mL3nFMrQ3FiOn9qs+jhlFMso4YN7sL4c6q519LwuHbYg0XjsG0iBhj1l6c2SZM1wr8mrLOzuwY93wgCII7rd+3vjSKpdjFc29hsSaocz3cLmyaa4OYpn8NMSqwnDS2OGvmV8VYSJvRm4ihIopBDE0X+vbizLaq5wEAAAAAAAAAAAAAEPT8B8FI5lAFIgUTAAAAAElFTkSuQmCC);
}

.aplay-button::before{
  background-color: var(--second-accent-color);
}
.aplay-button:hover, .adownload-button:hover {
  opacity: 0.85;
}
.aplay-button:active, .adownload-button:active {
  opacity: 0.5;
}
.aplay-button img {
  display: inline;
  width: 10px;
  height: 10px;
}

.card-selector-wrapper.show {
  display: flex;
}
.card-selector-wrapper.show-ani {
  background-color: rgba(0, 0, 0, 0.93);
}

.card-selector.show {
  bottom: -7px;
}

.dismiss-button {
  background-color: var(--accent-color-static);
  -webkit-mask: url(../svg/d-arrow.svg) center no-repeat;
  mask: url(../svg/d-arrow.svg) center no-repeat;
  mask-size: 25px;
  width: 70px;
  height: 45px;
  position: absolute;
  display: block;
  left: 50%;
  top: -50px;
  transform: translate(-50%, 0);
  z-index: 999;
  cursor: pointer;
}
.dismiss-button:active {
  opacity: 0.8;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 50;
  width: 100%;
  background-color: transparent;
}

.footer {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 30px auto 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
  transition: var(--default-transition-speed) ease-out;
  background-color: var(--accent-color);
}

.footer_inner {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  border-radius: var(--default-border-radius);
  font-size: 11px;
}

.footer_inner img {
  height: 20px;
  padding: 20px;
  width: auto;
}

.footer_inner p, .footer_inner p a {
  color: var(--default-text-color);
}

.footer_inner p a:hover {
  color: var(--second-accent-color);
}

.nav-placeholder {
  width: 100%;
  bottom: 0;
  display: flex;
  position: fixed;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-content: center;
  z-index: 50;
  -webkit-transition: all 0.35s cubic-bezier(0.86, 0, 0.07, 1);
  -moz-transition: all 0.35s cubic-bezier(0.86, 0, 0.07, 1);
  transition: all 0.35s cubic-bezier(0.86, 0, 0.07, 1);
}
.hide, .hide-2 {
  bottom: -300px;
}

#nav {
  max-width: 320px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--accent-color);
  margin: 25px 10px;
  padding: 10px;
  box-sizing: border-box;
  bottom: -100px;
  text-align: left;
  z-index: 999;
  -webkit-box-shadow: 1px 1px 15px 2px rgba(0,0,0,0.25); 
  box-shadow: 1px 1px 15px 2px rgba(0,0,0,0.25);
  border-radius: var(--default-border-radius);
  transition: var(--default-transition-speed);
}

.maou-mode #nav {
  -webkit-box-shadow: 1px 1px 15px 2px rgba(255,255,255,0.1);
  box-shadow: 1px 1px 15px 2px rgba(255,255,255,0.1);
}

#nav.open {
  bottom: unset;
  top: 100px;
  box-shadow: unset;
}

nav {
  width: 100%;
  height: 100vh;
  position: fixed;
  bottom: -100vh;
  left: 0;
  z-index: -1;
  background-color: var(--accent-color);
  border-top-right-radius: 27px;
  border-top-left-radius: 27px;
  transition: all 650ms cubic-bezier(0.5,0,0,1);
  
}
nav.open {
  bottom: 0;
  left: 0;
  border-radius: initial;
  padding-bottom: 30px;
  overflow-y: scroll;
}

li #home {
  padding: 0 11px;
}

.open ul li a {
  color: var(--default-text-color);
}

.nav-list {
  width: 100%;
  list-style: none;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-content: center;
  position: static;
  overscroll-behavior: contain;
}

.nav-list li {
  padding: 10px;
}

.nav-link {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 550;
  padding: 1rem;
  border-radius: 17px;
}
.nav-link:hover, #cm:hover, .submenu a:hover {
  background-color: var(--second-accent-color);
  color: var(--accent-color);
}
#cm:hover::after {
  background-color: var(--accent-color);
}
.nav-link:active, #cm:active {
  background-color: var(--second-accent-color);
  color: var(--accent-color);
}
.nav-list .hide {
  opacity: 0;
  transition: 0.25s;
}

.knvn-logo {
  content: url('../img/logo.svg');
  height: 30px;
  padding: 5px 10px;
  font-size: unset;
  object-fit: contain;
  transition: var(--default-transition-speed);
}

.burger {
  display: flex;
  outline: none;
  height: 40px;
  width: 40px;
  border: 0px;
  padding: 0px;
  position: relative;
  background: transparent;
  transition: all 250ms ease-out;
  cursor: pointer;
  border-radius: 999px;
  z-index: 999;
}

.burger:before, .burger:after {
  content: '';
  width: 20px;
  height: 3px;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  position: absolute;
  transition: all 350ms;
  will-change: transform;
  border-radius: 9999px;
}

.burger:before {
  transform: translateY(-5px) translateX(-50%);
  background: #E6006E;
}

.burger:after {
  transform: translateY(5px) translateX(-50%);
  background: #F08400;
}


.active.burger:before {
  transform: translateY(0) rotate(45deg);
  left: 0;
}

.active.burger:after {
  transform: translateY(0) rotate(-45deg);
  left: 0;
} 

.submenu-outer {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 15px;
  right: 0;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  transition: 450ms cubic-bezier(0,0,0,1);
  background: var(--accent-color);
  opacity: 0;
  display: none;
}
.submenu-outer.expand-ani {
  left: 0;
  opacity: 1;
}
.submenu-outer.expand {
  display: flex;
}
#cm {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 550;
  cursor: pointer;
  padding: 1rem;
  border-radius: 17px;
}
#cm::after {
  content: '';
  display: inline-block;
  background-color: var(--default-text-color);
  -webkit-mask: url(../svg/r-arrow.svg) center no-repeat;
  mask: url(../svg/r-arrow.svg) center no-repeat;
  mask-size: 15px;
  width: 20px;
  height: 15px;
  vertical-align: middle;
  padding-left: 2px;
  transition: var(--default-transition-speed);
}

.submenu-outer li a {
  font-family: 'Playfair Display', serif;
  font-weight: 100;
  font-size: 40px;
  opacity: 0.9;
}
.submenu {
  text-align: left;
  border-radius: 17px;
  transform: var(--default-transition-speed);
  opacity: 0;
  transition: 0.5s;
}
.submenu a{
  transition: var(--default-transition-speed);
  padding: 10px;
  border-radius: 17px;
}
.submenu.show {
  opacity: 1;
}
.unexpand-button {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: content-box;
  height: 50px;
  width: 50px;
  left: 60px;
  top: 80px;
  margin: auto;
  transition: var(--default-transition-speed) ;
  padding: 10px;
  border-radius: 7px;
  cursor: pointer;
}

.back-arrow {
  height: 50px;
  width: 10px;
  background: url('../img/arrow.svg') no-repeat;
  background-size: contain;
  rotate: 90deg;
  position: relative;
  transition: all var(--default-transition-speed);
  object-fit: contain;
}
.unexpand-button:hover{
  background-color: #EDEDE9;
}
.unexpand-button:active {
  background-color: #EDEDE9;
}

.notes-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
}
.notes {
  background-color: var(--accent-color);
  -webkit-border-radius: var(--default-border-radius);
  -moz-border-radius: var(--default-border-radius);
  -o-border-radius: var(--default-border-radius);
  -ms-border-radius: var(--default-border-radius);
  border-radius: var(--default-border-radius);
  box-sizing: border-box;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  padding: 15px 10px;
  transition: var(--default-transition-speed) ease-out;
}

.notes:active {
  transition-delay: 0.25s;
}

.notes h3, .notes p {
  padding: 2px 15px;
}

.notes h3 {
  font-size: 25px;
  font-weight: lighter;
  padding-bottom: 5px;
  font-family: 'Playfair Display', serif;
}

.notes p {
  font-size: 15px;
}
.title {
  padding: 40px 0 20px 0;
  text-align: center;
}

.section-title {
  display: inline-block;
  color: var(--second-bg-color);
  font-size:  35px;
  font-family: 'Playfair Display', serif;
}

.story_title, .story_title b {
  display: inline-block;
  color: var(--default-bg-color);
  font-size:  20px;
  font-family: 'Playfair Display', serif;
}

.intro-bg {
  height: 100dvh;
  width: 100dvw;
  background-position: center 30%;
  background-image: url('../img/bg/bg-main-24.jpg');
  background-size: cover;
	background-repeat: no-repeat;
 	background-attachment: scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  transition: 0.25s;
}
.webp .intro-bg {
  background-image: url('../img/bg/bg-main-24.webp');
}
.avif .intro-bg {
  background-image: url('../img/bg/bg-main-24.avif');
}

.intro {
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
}
.welc-text {
  max-width: 100vw;
  top: 70px;
  right: 0;
  left: 0;
  margin: 0 10px;
  color: var(--default-text-color);;
  display: flex;
  flex-direction: column;
}

.welc-text .knvn-logo {
  height: unset;
}

.welc-text-inner {
  margin: 20px auto;
  background-color: var(--accent-color);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 170px;
  padding: 5px 7px;
  color: var(--default-text-color);
  -webkit-border-radius: var(--default-border-radius);
  -moz-border-radius: var(--default-border-radius);
  -o-border-radius: var(--default-border-radius);
  -ms-border-radius: var(--default-border-radius);
  border-radius: var(--default-border-radius);
  transition: var(--default-transition-speed);
}

.welc-text-inner:hover {
  opacity: .8;
}

.welc-text-inner h2 {
  font-size: 15px;
  vertical-align: text-bottom;
  flex-grow:0;
  flex-shrink:0;
  margin: 0 5px;
  font-weight: 550;
}
.welc-text-inner img {
  width: 20px;
  height: 20px;
}
.welc-text a {
  color: var(--default-text-color);
  font-weight: 550;
}
.welc-text h1 {
  color: var(--second-bg-color);
  font-size: 16px;
}

#down{
  position: absolute;
  bottom: 15px;
  display: flex;
  margin: 0;
  width: 100%;
  height: 10%;
  text-align: center;
}

.scrolldown-ic:hover {
  bottom: 10px;
}

.scrolldown-ic {
  width: 7px;
  height: 35px;
  content: ' ';
  margin: auto;
  left: 0;
  right: 0;
  cursor: pointer;
  transition: 0.25s;
  background-image: url('../img/arrow.svg');
  background-size: cover;
  filter: invert(1) sepia(1);
}

.news-wrapper {
  width: 100%;
  flex-direction: column;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.news-container {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  margin: 15px;
  padding: 15px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: var(--default-border-radius);
}

.news-more {
  background-color: var(--accent-color);
  color: var(--default-text-color);
  padding: 10px 15px;
  display: inline-block;
  border-radius: var(--default-border-radius);
}

.loader-spin {
  width: 50px;
  aspect-ratio: 1;
  color: var(--second-accent-color);
  border-radius: 50%;
  display: grid;
  background: 
    conic-gradient(from 90deg at 4px 4px,#0000 90deg,currentColor 0)
    -4px -4px/calc(50% + 2px) calc(50% + 2px),
    radial-gradient(farthest-side,currentColor 6px,#0000 7px calc(100% - 6px),currentColor calc(100% - 5px)) no-repeat;
  animation: loader-spining 1.5s infinite linear;
  position: relative;
}
.loader-spin:before {
  content: "";
  border-radius: inherit;
  background: inherit;
  transform: rotate(45deg);
}
.loader-spin.lazyloaded {
  display: none;
}
@keyframes loader-spining {to{transform: rotate(.5turn)}}
@keyframes loading-blink {
  0%    { opacity: 0; }
  50%   { opacity: 0.2; }
  100%  { opacity: 0; }
}
.scr-cont {
  font-size: 18px;
}

.scr-cont p {
  padding: 20px 30px;
  line-height: 1.4;
  font-weight: lighter;
  color: var(--default-text-color);
  text-align: justify;
}

.loader-wrapper {
  width: 100% !important; 
  height: 100% !important;
  position: fixed !important;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  z-index: 99999 !important;
  background-color: var(--accent-color) !important;
  transition: all 700ms cubic-bezier(0.7,0,0,1);
  border-radius: initial;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: stretch;
}
.loader-wrapper.loaded {
  bottom: -100%;
  pointer-events: none;
}

.loader {
  height: 70px;
  width: 300px;
  position: relative;
  background: url('../img/logo.svg') no-repeat;
  background-size: contain;
  background-position: center center;
  opacity:0;
  transition: 0.5s;
}
.loader h3 {
  font-weight: lighter;
  color: var(--default-text-color);
  display: none;
}
.loader.loaded {
  opacity: 1;
}

.primary-btn {
  display: inline-block;
  position: relative;
  padding: 10px 15px;
  margin: 5px;
  color: var(--accent-color);
  background-color: var(--second-accent-color);
  border-radius: var(--default-border-radius);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: 300ms;
}
.primary-btn:hover {
  opacity: 0.8;
}

.follow-btn {
  background-color: var(--aqua-color);
  display: none;
}

#down {
  display: none;
}

.home-btn {
  width: 50px;
  height: 50px;
  bottom: 0;
  margin: 10px;
  border-radius: 1000px;
  text-align: center;
  position: fixed;
  background-color: var(--accent-color);
  z-index: 99;
  -webkit-box-shadow: 5px 5px 15px -2px rgba(0,0,0,0.5); 
  box-shadow: 5px 5px 15px -2px rgba(0,0,0,0.5);
}

.home-btn i {
  line-height: 50px;
  font-size: 20px;
}

.ex-content {
  max-width: 400px;
  position: relative;
  margin: 10px;
  padding: 15px;
  -webkit-border-radius: var(--default-border-radius);
  -moz-border-radius: var(--default-border-radius);
  -o-border-radius: var(--default-border-radius);
  -ms-border-radius: var(--default-border-radius);
  border-radius: var(--default-border-radius);
  background-color: var(--second-bg-color);
}

.ct-txt-bg {
  position: absolute;
  z-index: 10;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 30px;
  background-color: var(--accent-color);
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 17px;
  font-weight: 550;
}

#owner-credit {
  cursor: pointer;
  height: 21px;
  width: 101px;
}

/* Maou Mode */
:root.maou-mode {
  --accent-color: var(--maou-color);
  --default-text-color: var(--second-bg-color);
}
.maou-mode .color-maou {
  color: #820300;
}
.maou-mode .back-arrow {
  filter: invert(1);
}
.maou-mode .unexpand-button:hover {
  background-color: var(--second-accent-color);
}

/* Mobiles */
@media only screen 
	and (min-width: 320px) 
	and (max-width: 767px) {
    .notes {
      margin: 10px;
    }

    .welc-text  {
      height: auto;
      width: 300px;
    }

    .welc-text .knvn-logo {
      height: auto;
      width: 100%;
    }

    .char-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
    .char-img, .char-img__outline {
      height: 240px;
      width: 160px;
    }
    .char-name {
      font-size: 25px;
    }
    .char-name:has(~ .char-img__outline:hover) {
      bottom: 30px;
      font-size: 32px;
    }

    .story {
      padding: 7px;
    }

    .scr-cont {
      font-size: 17px;
    }
    .scr-cont p {
      padding: 20px 25px;
    }

    .chapter-wrapper {
      grid-template-columns: repeat(1, 1fr);
      grid-column-gap: 20px;
      margin: 20px;
      margin-top: 70px;
      width: 100%;
    }

    .chapter-desc {
      width: 220px;
    }

    .chapter-name {
      font-size: 18px;
    }

    .nav-link, #cm, .submenu-outer li a {
      font-size: 45px;
    }
	}

/* Landscape */
@media only screen
    and (min-width: 768px)
    and (min-height: 550px)
    and (orientation: landscape) {
      .unexpand-button {
        left: 30vw;
      }
      .welc-text .knvn-logo {
        height: 170px;
        width: 360px;
      }
    }

  /* Mobile landscape */
@media only screen
  and (max-width: 896px)
  and (orientation: landscape) {
    .welc-text {
      top: auto;
    }

    .welc-text-inner {
      margin: 10px auto;
      padding: 10px 10px;
    }

    .welc-text-inner p{
      font-size: 15px;
    }
  }

/*Not so small screen */
@media only screen 
and (min-width: 360px)
and (max-width: 375px) {

  .item-img {
    height: 238px;
    width: 168px;
  }

  .menu-item-name-index h3 {
    width: 170px;
  }
}

/* 320px Mobiles */
@media only screen 
  and (max-width: 360px)
  and (min-width: 320px) {

    .welc-text {
      top: auto;
    }

    .welc-text-inner {
      margin: 10px auto;
      padding: 10px 15px;
    }
    .notes {
      margin: 10px;
    }

    .item-img {
      height: 220px;
      width: 150px;
    }

    .menu-item-name-index h3 {
      width: 150px;
    }

    .item-img-s {
      height: 150px;
      width: 150px;
    }
  }

/* big screen */ 
@media only screen 
  and (min-width: 768px)
  and (orientation: portrait) {
    .welc-text {
      top: 150px;
    }

    .welc-text .knvn-logo {
      height: 170px;
      width: 360px;
    }
    .char-container {
      grid-template-columns: repeat(3, 1fr);
    }
  }
 
/* Desktop */
@media only screen
    and (min-width: 1200px) {
      .heading-wrapper {
        display: flex;
        position: fixed;
        flex-direction: column;
        width: 35%;
        height: 100%;
        justify-content: center;
        box-sizing: border-box;
        padding: 15px;
      }

      .page-wrapper {
        width: 100%;
        display: flex;
        justify-content: flex-end;
      }
      
      .section-wrapper {
          max-width: 1024px;
          display: flex;
          flex-direction: column;
      }

      .chapter-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 30px;
        grid-row-gap: 50px;
        margin: 30px;
        margin-top: 70px;
        width: 60%;
      }

      .chapter-container {
        height: 170px;
      }

      .chapter-desc {
        height: 170px;
      }

      .chapter-name {
        font-size: 20px;
      }

      .chapter-img {
        height: 170px;
      }

      #nav {
        box-sizing: border-box;
        padding: 15px;
      }
}

@media screen and (min-width: 1024px) {
  .nav-list, .submenu-outer {
    flex-direction: row;
  }
  .nav-link, #cm, .submenu-outer li a {
      font-size: 35px;
  }
}

