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

}

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

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

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

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


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

  color: white;
}

.navtxt {
  margin: 0;
  display: inline-block;
  font-size: clamp(1px, 1.5vw, 14px);
  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);
}


.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
}


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 {
  width: clamp(100px, 70vw, 1000px);
  box-sizing: border-box;
  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;
}


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

}

.lore-text ul{
    color: #191b21;
  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%;
}

@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; }
}

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

.character-profiles 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;
}



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

h1 {
    margin-top: 30px;
    font-family: Roboto;
}


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

}

.folder_align{

  gap: clamp(14px, 1.7vw, 20px);

  width: clamp(100px, 90vw, 1500px);
  box-sizing: border-box;

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

  padding-left: clamp(5px, 3vw, 120px);
  padding-right: clamp(5px, 3vw, 120px);
}

.foldername {
    position: relative;
    font-style: oblique;
    font-weight: 600;
    padding-left: 18px;
    font-size: 20px
}
.foldername::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: #c6dde9;
    border-radius: 3px;
}

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

  width: clamp(100px, 90vw, 1500px);
  box-sizing: border-box;

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

  padding-left: clamp(5px, 3vw, 120px);
  padding-right: clamp(5px, 3vw, 120px);
  padding-bottom: 30px;
  padding-top: 20px;
}
@media (max-width: 480px) {
  .char-info {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.char-card {
    padding: clamp(14px, 1.7vw, 20px);
    border: 1px solid #ccc;
    max-width: 250px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.char-card h3 {
    color: #528aa8;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: clamp(12px, 16px, 18px);
}


.char-card p{
  color: #191b21;
  font-weight: 100;
  text-align: left;
  font-size: 14px;
  margin: 3px 0;

}

.char-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-fit: cover; 
    transform: scale(1.3);
    overflow: hidden;
    display: block;
    margin-bottom: 40px;

}

.char-card h3 {
    margin: 5px 0;
}


.roletxt {
  font-style: oblique;
  color: #1a5f84 !important;
}

.taglist ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 12px 15px;
}

.taglist li {
    background: #1c222a;
    color: #67b7e8;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: "Roboto2", monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}