@font-face {
  font-family: "Roboto";
  src: url("Roboto/static/Roboto-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto2";
  src: url("Roboto/static/Roboto-Light.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;

}

p {
  scroll-margin-top: 80px; 
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-color: black; 
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: clip;
  
}

.stage {
  width: 1620px;
  height: 880px;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  overflow: hidden;
}


.stage::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("xio.JPG") center / cover no-repeat;

  transition: filter 0.3s ease;
  z-index: 0;
}

.stage:has(.introbtn:hover)::before {
  filter: grayscale(100%);
}

.HBcontainer{
  width:810px;
  height: 294px;
 
  position: absolute;
  bottom: 0;
  right: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.introbtn{

  text-align: left;
  font-size: 50px;
  color:white;
  width: 700px;
  transition: background-color 0.3s ease; 
}

.introbtn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-color: #7C292A; 
  z-index: -1;

  transform: translate(0, 0);
  opacity: 0;

  transition: transform 0.2s ease, opacity 0.2s ease;

}

.introbtn:hover {
  opacity: 1;
  transform: translate(6px, 6px);

}
.introbtn:hover::after {
  opacity: 1;
  transform: translate(6px, 6px);
}



.introbtn a {
  color: inherit;
  text-decoration: none;
  display: block; 
}

.navbar {
  margin-top: 0;
  display: flex;        
  column-gap: clamp(1px, 4vw, 200px); 
  justify-content: center; 
  align-items: center; 
  height: 60px;           
  flex-wrap: nowrap;
  background: #221216;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000; 

  color: white;
}

.navtxt {
  margin: 0;
  display: inline-block;
  font-size: clamp(1px, 2vw, 18px);
  white-space: nowrap;
}


.navtxt a {
  color: inherit;            
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}


.navtxt a:hover {
  color: #2b71b3;
  transform: translateY(-1px) scale(1.1);
}

 .sitebg {
  width: 100%;
  position: relative;
  background-color:#f1ebeb;
  background-image: linear-gradient(
    to right,
    #f3edee 0 25px,
    #c6dde9 25px 50px
  );
  background-size: 50px 100%;

}

.sitepg {
  width: clamp(100px, 70vw, 1000px);
  min-height: 100vh;

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  padding-left: clamp(5px, 3vw, 120px);
  padding-right: clamp(5px, 3vw, 120px);
  padding-bottom: 30px;
  padding-top: 70px;

  background-color: #f1ebeb;
  background-size: 40px 100%;
  filter: drop-shadow(10px 10px 10px gray);


}

.sitepg > p{
  margin-top: 0;
  padding-left: 10%;
  padding-right: 10%;
  color: #0a0a59;
  text-align: center;
  font-size: clamp(12px, 2vw, 18px);
  animation-delay: 1000ms;
  opacity: 0;
  animation: fadeInUp 2s ease-out forwards
}

.divider {
  display: flex;
  align-items: center;
  max-width: 75%;
  margin: 20px auto;
}

.line {
  flex: 1;
  border-bottom: 4px dotted #4f2313;
}

.icon {
  margin: 0 10px;
  font-size: 20px;
  color: #4f2313;
   animation: fadeInUp 1.5s ease-out forwards
}

.sitepg h1{
  color: #221216;
  text-align: center;
  font-weight: bold;
  font-size: clamp(16px, 2vw, 22px);
  animation: fadeInUp 1s ease-out forwards;
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px); 
  }
  100% {
    opacity: 1;
    transform: translateY(0);   
  }
}

@keyframes fadeInDown{
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);   
  }
}

@keyframes Swipe{
  0% {
    opacity: 0;
    transform: translateX(-20px); 
  }
  100% {
    opacity: 1;
    transform: translateX(0);   
  }
}



.float-text {
  animation: fadeInUp 1s ease-out forwards;
}
.tab-content {
  display: none;
  scroll-margin-top: 150px; 
  overflow: visible;
}

.tab-content p {
  text-align: center;
}

.intro-imgs img {
  width: 15%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.storybtn {
  width: 75%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 7%;
  margin-bottom: 7%;

  text-decoration: none;
  color: inherit;


  background-position: center;

  position: relative;
  overflow: hidden;

}

.storybtn::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.3)
  );

  transform: translateY(-100%);
  transition: transform 0.6s ease;
}

.storybtn span {
  position: relative;
  z-index: 1;

  text-decoration: none;
  color: inherit;

  color: white;
  font-size: clamp(20px, 4vw, 60px);
  font-family: roboto2;
  font-weight: 600;

  opacity: 0;
  transition: opacity 0.7s ease;
}

a.storybtn {
  text-decoration: none !important;
}


.storybtn:hover::before {
  transform: translateY(0);
}

.storybtn:hover span {
  opacity: 1;
}

.storybtn#PM_LNK {
  background-image:url("images/RYUXI.jpg");
}

.storybtn#WED_LNK {
  background-image: url("images/Michi.jpg");
}


.tab-content:target {
  display: block;
}

body:not(:has(:target)) #intro {
  display: block;
}

summary{
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}


details h2{
  font-family: Roboto2;
  font-weight: 700;
  margin-top: 0;
  padding-top: 5%;
  padding-left: 10%;
  padding-right: 10%;
  color: #0a0a59;
  text-align: center;
  font-size: clamp(15px, 17px, 19px);
  animation: none;
}

details[open] h2{
  animation: fadeInDown ease-out 0.4s;
}

details p {
    animation: none

}

details {
  padding-bottom: 5px;
  padding-top: 5px;
}

details[open]  p {
  animation: fadeInDown 0.6s ease-out;
}

details summary::before {
  content: " ✦ ";
  font-size: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}


.lore-text p{
  color: #4f2313;
  text-align: left;
  font-size: clamp(14px, 16px, 18px);
  font-family: Roboto2;

}

.lore-text ul{
    color: #4f2313;
  text-align: left;
  font-size: clamp(14px, 16px, 18px);
  font-family: Roboto;
}


.subheading{
  color: #467e9d;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);

  animation: fadeUp linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}



.map {
  position: relative;
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.map-content p{
  color: #4f2313;
  font-size: clamp(14px, 16px, 18px);
  font-family: Roboto2;
  text-align: center;
  font-weight: 600;
}

.map-content h2{
  color: #0a0a59;
  font-style: oblique;
  font-weight: 400;
}
.mapintro h1{
  color: #0a0a59;
  font-style: oblique;
  font-weight: 400;
}

.mapintro p{
  color: #2e181e;
}

.map img {
  width: 100%;
  height: auto;
  object-fit: cover; 
  display: block;
}

.hotspot{
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: clamp(15px, 2.5vw, 40px);
  color: #185690;
  text-decoration: none;
  transition: 0.3s ease;
}

.hotspot:hover {
  transform: translate(-50%, -50%) scale(2.5);
}

body:has(#map:target) .map {
  display: block;
  width: min(1000px, 90vw);
  margin: 0 auto;
}

body:has(#map:target) .sitebg {
  background-image: none;
  background-color:#96b8da;
}

body:has(#map:target) .sitepg {
  filter: none;
  opacity: 100%;
  background-color: #96b8da;
}

.map-text-box {
  overflow: hidden;
  position: relative;
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}



.map-text-box.active {
  background-color: #f5e8ed;
  overflow-y: auto;
  width: 100%;
  min-height: 100px;
  opacity: 1;
  transform: translateY(0);
  border-radius: 25px;
  padding: 5%;
}

.map-content.slide-out {
  animation: slideOut 0.25s ease forwards;
}

.map-content.slide-in {
  animation: slideIn 0.25s ease forwards;
}

.mapintro{
  text-align: center;
  font-family: Roboto;
  font-weight: lighter;
}
.timebar {
  display: none;
  margin-left: 0;

  justify-content: center;
  align-items: center;

  width: clamp(70px, 10vw, 150px);
  font-size: clamp(10px, 1.4vw, 18px);

  height: 100vh;

  background: #221216;
  text-align: center;

  position: fixed;
  left: 0;
  top: 10px;
  bottom: 0;

  padding-left: 0.5vw;
  padding-right: 0.5vw;

  z-index: 800;
  color: white;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline .event {
  padding: 10px;
  cursor: pointer;
}


body:has(#history:target) .era-bar {
  display: flex;
}

body:has(#history:target) p {
  color: #4f2313;
  text-align: left;
  font-size: clamp(14px, 16px, 18px);
  font-family: Roboto2;
}


body:has(#history:target) .sitepg {
  left: 58%;
}


body:has(#magic:target) .magic-bar {
  display: flex;
}

body:has(#magic:target) .sitepg {
  left: 58%;
}


body:has(#magic:target) h2 {
  scroll-margin-top: 70px;
  font-weight: 300;
  letter-spacing: 1px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: revealAnim linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 45%;
}

@keyframes revealAnim {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: #96b8da;

  transform: scaleX(0);
  transform-origin: left;

  animation: readingProgress linear;
  animation-timeline: scroll();

  z-index: 9999;
}

@keyframes readingProgress {
  to {
    transform: scaleX(1);
  }
}



.timeline {
  list-style: none;
  --line-x: 10px;

  margin: 0;
  padding: 0;

  position: relative;

  margin-left: clamp(2px, 3vw, 30px);

  padding-left: 10%;
  padding-top: 20vh;
  padding-bottom: 20vh;
}

.timeline::before {
  content: "";
  position: absolute;

  left: 10px;
  top: 0;
  bottom: 0;

  width: clamp(2px, 0.15vw, 4px);

  background: #f1ebeb;
}

.timeline li {
  margin-top: 3vh;
  margin-bottom: 7vh;
}

.event {
  position: relative;
  margin-right: 5px;
  padding-left: clamp(10px, 1.6vw, 35px);

  margin-bottom: 20px;
}

.event::before {
  content: "";
  position: absolute;

  left: 0;
  top: 50%;

  width: clamp(12px, 2vw, 45px);
  height: 1px;

  background: #f1ebeb;
  transform: translateY(-50%);
}

.event::after {
  content: "✦︎";

  position: absolute;

  left: clamp(-12px, -1vw, -6px);
  top: 50%;

  transform: translateY(-50%);

  font-size: clamp(14px, 2vw, 25px);

  color: #f1ebeb;

  transition: color 0.2s ease, transform 0.2s ease;
}

.event:hover::after {
  color: #2b71b3;
  transform: translateY(-17px) scale(1.8);
}

.event:hover {
  color: #2b71b3;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(14px, 1.7vw, 20px);
}

.class-card {
    padding: clamp(14px, 1.7vw, 20px);
    border: 1px solid #444;
    background: #2e181e;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-card h3 {
    color: #e0d2d2;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: clamp(14px, 16px, 18px);
}

.class-card p{
  color: #e0d2d2;
  text-align: left;
  font-size: clamp(14px, 16px, 18px);

}

.class-card:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.class-card.type2 {
    background: #c6dde9;
    border: none;
  
}

.class-card.type2 p{
  color: #221216;

}

.class-card.type2:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transform: none;
}

.class-grid img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin-bottom:none ;
}

.gif-container {
  display: grid;
  width: 50%;
  height: auto;
  margin: 0 auto;
}

.gifstatic,
.gifactive {
  grid-area: 1 / 1;
  width: 100%;
}

.gifstatic {
  opacity: 1;
}

.gifactive {
  opacity: 0;
}

.gif-container:hover .gifstatic {
  opacity: 0;
}

.gif-container:hover .gifactive {
  opacity: 1;
}


@media (max-width: 480px) {

  .timebar {
    width: 60px;
    font-size: 8.5px;
    column-gap: 8px;

  }

  .timeline {
    margin-left: 1px;
    margin-right: 5px;

    padding-top: 12vh;
    padding-bottom: 12vh;
  }

  .timeline::before {
    left: 6px;
    width: 2px;
    height: 100vh;
  }

  .timeline li {
    margin-top: 2vh;
    margin-bottom: 4vh;
  }

  .event {
    padding-left: 10px;
    margin-bottom: 10px;
  }

  .event::before {
    width: 10px;
    padding-left: 5px;
  }

  .event::after {
    left: -5px;
    font-size: 14px;
     transition: color 0.2s ease, transform 0.2s ease;
  }

  .event:hover::after {
    color: #2b71b3;
    transform: translateY(-8px) scale(1.8);
  }
  .event:hover {
    color: #2b71b3;
  }
}


.slide-in-left {
  animation: inLeft 0.3s ease forwards;
}

.slide-in-right {
  animation: inRight 0.3s ease forwards;
}

.slide-out-left {
  animation: outLeft 0.3s ease forwards;
}

.slide-out-right {
  animation: outRight 0.3s ease forwards;
}


@keyframes inLeft {
  from { transform: translateX(-25px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes inRight {
  from { transform: translateX(25px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes outLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-25px); opacity: 0; }
}

@keyframes outRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(25px); opacity: 0; }
}

body:has(#PM:target) .sitepg {
  width:100%;
  min-height: 100vh;
  display: block;
  position: relative;
  background-color: #f1ebeb;;
  padding-top: 0;
}

body:has(#PM:target) .navbar {
  margin: none;
}

.header-container {
  width: 100%;
  aspect-ratio: 21 / 5;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.header {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  filter: brightness(50%);
  display: block;
}

.header-container h1 {
  position: absolute;
  top: 50%;
  left: 50%;

  inset: 0;
  
  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 7%;
  color: #9ec0e3;
  text-align: center;
  animation: none;
  font-family: Roboto2;
  font-size: clamp(25px, 6vw, 80px);
}

body:has(#PM:target) .lore-text {
  width: clamp(100px, 80vw, 1200px);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%;
  padding-left: clamp(5px, 3vw, 120px);
  padding-right: clamp(5px, 3vw, 120px);
  padding-bottom: 30px;
}

body:has(#PM:target) h1 {
    margin-top: 30px;
}
body:has(#PM:target) a {
    margin: 0;
    font-size: clamp(1px, 2vw, 18px);
    white-space: nowrap;
    color: inherit;            
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}


body:has(#PM:target) a:hover {
  color: #2b71b3;
  transform: translateY(-1px) scale(1.1);
}

.character-profiles {
    text-align: center;
}

.quote {
    position: relative;
    font-style: oblique;
    font-weight: 600;
    padding-left: 18px;
}

.quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: #c6dde9;
    border-radius: 3px;
}
.header-tags {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);

  margin: 0;
  color: white;
  font-size: clamp(6px, 2vw, 20px);
  letter-spacing: 2px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 2px;
  opacity: 0.85;
}

body:has(#WED:target) .sitepg {
  width:100%;
  min-height: 100vh;
  display: block;
  position: relative;
  background-color: #f1ebeb;
  padding-top: 0;
}

body:has(#WED:target) .navbar {
  margin: none;
}

body:has(#WED:target) .lore-text {
  width: clamp(100px, 80vw, 1200px);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%;
  padding-left: clamp(5px, 3vw, 120px);
  padding-right: clamp(5px, 3vw, 120px);
  padding-bottom: 30px;
}

body:has(#WED:target) h1 {
    margin-top: 30px;
}
body:has(#WED:target) a {
    margin: 0;
    font-size: clamp(1px, 2vw, 18px);
    white-space: nowrap;
    color: inherit;             
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}


body:has(#WED:target) a:hover {
  color: #2b71b3;
  transform: translateY(-1px) scale(1.1);

}