@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');
/* Sourced from Demon.Del on Discord */
body { margin: 0; }
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* handles universal items */
:root { 
  --red: #cc0000;
  --ayame: rgb(#54b3d6);
  --rin: rgb(#fff1a4);
  --pg-back-clr: rgb(24, 24, 24);
  --ctn-back-clr: #5e0702;
  --year-clr: #b68537;
  --white: #ffffff;
  --cream: #f5e6d3;
  --text: #c4c4c4;
  --muted: #a8a8a8;
  --font-primary: 'Zalando Sans Expanded', BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* -------------------------------- IMAGE GALLERY ------------------------------------ */
div.gallery {
  display: grid;
  flex-wrap: wrap;
  justify-content: center;
}

div.gallery-item {
  margin: 25px;
  border: 5px solid #ccc;
  width: 400px;
  transition: border .3s ease-in-out
}
div.gallery-item:hover {
  border: 10px solid #777;
  transition: border .3s ease-in-out
}

div.gallery-item img {
  width: 100%;
  height: auto;
}

div.gallery-item div.desc {
  padding: 15px;
  text-align: center;
  font-size: 28px;
}
/* ----------------------------------------------------------------------------------- */


.chapter-content strong {
  box-shadow: inset 0 0 0 0 white;
  color: #54b3d6;
  margin: 0 -.25rem;
  padding: 0 .25rem;
  transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
}
.chapter-content strong:hover {
  box-shadow: inset 125px 0 0 0 red;
  color: white;
}

/* -------------------------------- LINK SPLIT EFFECT -------------------------------- */
.link {
  position: relative;
  display: inline-block;
  padding: 0;
  
  margin: 0;
  
}
.link--top {
  font-size: 48px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0px;
  position: absolute;
  color: var(--year-clr);
  
  display: inline-block;
  
  clip-path: polygon(0% 66%, 0% 0%, 100% 0%, 100% 40%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, color 0.5s ease 0.22s;
  
}

.link--bottom {
  font-size: 48px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  display: inline-block;
  clip-path: polygon(0% 65%, 100% 40%, 100% 110%, 0% 110%);
  text-decoration: underline;
  color: var(--year-clr);
  transition: color 0.5s ease 0.22s, background-position 0.2s ease 0.22s;
  text-decoration: none;
  /*background-size: 200% 8%;*/
  background-position: left bottom;
  background-repeat: no-repeat;
  
}

.link:hover .link--top {
  color: red;
  transform: translateY(-0.5em) rotateZ(-3deg);
  transition: transform 0.5s cubic-bezier(.12,.8,.57,1.00) 0.42s, color 0.5s ease 0.22s;
}
.link:hover .link--bottom {
  color: red;
  background-position: 100% bottom;
  transition: color 0.5s ease 0.2s, background-position 0.2s ease;
}
.link:hover .link--top:after {
  top: 62%;
  transform-origin: left top;
  transform: rotateZ(-2.2deg) scaleX(100%);
}
.link:hover .link--bottom:after {
  top: 65%;
  transform-origin: left top;
  transform: rotateZ(-2.1deg) scaleX(100%);
}
/* ----------------------------------------------------------------------------------- */


body {
  font-family: var(--font-primary);
  background-color: var(--pg-back-clr);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

.dialogue-ayame {
  font-weight: 300;
  line-height: 1.0;
  font-size: 20px;
  justify-content: center;
  text-align: center;
  color: var(--ayame) !important;
  margin: 25px;
  color: var(--muted);
  position: relative;
}

.dialogue-rin {
  font-weight: 300;
  line-height: 1.0;
  font-size: 20px;
  justify-content: center;
  text-align: center;
  color: var(--rin) !important;
  margin: 25px;
  color: var(--muted);
  position: relative;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--ctn-back-clr);
  position: relative;
  z-index: 10;
}

.chapter {
  padding: 80px 30px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--year-clr);
}

.chapter-header {
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.chapter-location {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.chapter-period {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;

}

.chapter-year {
  font-size: 48px;
  font-weight: 900;
  color: var(--year-clr);
  line-height: 0.8;
  position: absolute;
  right: 0;
  top: 0;
}

.chapter-content {
  position: relative;
  z-index: 1;
}

.chapter-content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text);
}

.chapter-content p:last-child {
  margin-bottom: 0;
}

.chapter-content strong {
  font-weight: 600;
  color: var(--white);
}

.chapter-content em {
  font-style: italic;
  color: var(--cream);
}
/*-------------------------------------
            INVISION PANELS
---------------------------------------*/
.ipsType_reset.ipsType_sectionTitle {
    display: none;
}
/* Replace ugly grey background, turn page transparent */
.ipsAreaBackground_light.ipsPad.ipsClearfix.ipsType_center,
.ipsAreaBackground_light.ipsPad.ipsSpacer_bottom,
.ipsType_reset.ipsType_sectionTitle {
    background-color: transparent !important;
}
/* Remove Rating Display */
.ipsRating,
.ipsType_light.ipsType_medium {
    display: none;
}
/* Remove spacer between background and information */
.ipsAreaBackground.ipsPad.ipsClear.ipsSpacer_top {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* Disable images from being shown in polaroid form */
.polaroid-images {
    display: none;
}
/* Remove polaroid column */
html[dir="ltr"] .ipsColumns > .ipsColumn:last-child:not( .ipsPad ), html[dir="ltr"] .ipsColumns.ipsColumns_noSpacing > .ipsColumn:not( .ipsPad ) {
    display: none;
}
/* Additional margins added to audio player */
.ipsApp .ipsSpacer_bottom, .ipsApp .ipsSpacer_both {
    margin-top: var(--sp-5); 
}
/* Remove utilities at top of page 
[dir='ltr'] .ipsToolList_horizontal > *, [dir='rtl'] .ipsToolList_horizontal > .ipsPos_left {
  display: none; 
}*/

/* Replace top breadcrumb with transparent */
.ipsBreadcrumb {
    background-color: transparent !important; 
}
/* Info labels altered */
.ipsPos_right, html[dir="rtl"] .ipsPos_left {
    color: #b68537;
}