/* Load Tekitou Poem font */
@font-face {
  font-family: 'TekitouPoem';
  src: url('Fonts/TekitouPoem.woff2') format('woff2'),
       url('Fonts/TekitouPoem.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Use the font */
body {
  margin: 0;
  padding: 0;
  font-family: 'TekitouPoem', sans-serif;
  /* BG Image */
  background-image: url('Images/Background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000;
  text-align: center;
}


p {
  font-size: 1.3em; /* 1.2em = 18px, or 120% */
}


main {
  padding: 2rem;
}

/* ======= Parchment centered panel ======= */

.parchment {
  width: 90%;
  max-width: 1000px;        /* adjust width as you prefer */
  margin: 2rem auto;        /* centers and gives space from header/footer */
  padding: 2.5rem;          /* inner spacing so text doesn't touch the torn edge */
  box-sizing: border-box;

  /* Reserve border area for the torn edges */
  border: 70px solid transparent;   /* adjust 70px to match your image edge thickness */
 
  /* The parchment image used as a frame (edges + optional middle) */
  -webkit-border-image: url('Images/Parchment.png') 70 fill stretch;
  border-image: url('Images/Parchment.png') 70 fill stretch;
  border-image-repeat: stretch;

  /* If you want a readable center regardless of the image:
     you can use a slightly opaque background color. */
  background-color: transparent;

  /* Prevent the background from bleeding underneath the border-image */
  background-clip: padding-box;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

  /* ===== Mobile adjustments ===== */
/* Use stretch without fill */

/* ===== Mobile adjustments ===== */
@media (max-width: 600px) {
  
  main {
    padding: 0;
    margin: 0;
  }
    .parchment {

     border: 0 !important;
    border-image: none !important;
    -webkit-border-image: none !important;
    border-image-slice: 0 !important;
    border-image-repeat: stretch !important;
      
    width: 100%;          /* use percentage, not vw */
    max-width: 100%;
    margin: 0;                 /* remove gaps on sides */
    padding: 0rem;             /* keep text away from edges */
    box-sizing: border-box;

       position: relative;
    left: 0;
    right: 0;

    background-image: url('Images/ParchmentSecond.png') !important;
     background-size: 100% 100%;;  /* full width, keep natural height */
    background-repeat: no-repeat; 
    background-position: top left; /* align top, centered horizontally */

    min-height: 100vh;          /* ensures it fills viewport at least */
  }

  .parchment-content {
   position: absolute;       /* move content inside parent */
  top: 4rem;                /* distance from top torn edge */
  bottom: 4rem;             /* distance from bottom torn edge */
  left: 2rem;               /* distance from left torn edge */
  right: 2rem;              /* distance from right torn edge */
  overflow: auto;           /* allows scrolling if needed */
  box-sizing: border-box;
  z-index: 1;
  overflow-y: scroll;      /* forces scrollbar to always appear */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}
 
  
    

  } 


/* Layout styling */
/* Header styling */
header {
  padding: 2rem 1rem; /* space around content */
  
}

/* Title image */
.site-title {
  width: 400px; /* adjust as needed */
  max-width: 90%; /* responsive on smaller screens */
  height: auto;
  display: block;
  margin: 0 auto 1rem auto; /* center and add spacing below */
}


h1, h2 {
  margin: 0.5em 0;
  font-size: 2.8rem;
}

ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

li {
  margin: 2em 0;
  /* Controls font size of text beneath headers */
  font-size: 1.5em;
}

footer {
  margin-top: 2rem;
  padding: 1rem;
  
}

/* Carousel styles */
.carousel {
  position: relative;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  flex-wrap: nowrap;
}

.carousel-images img {
  flex: 0 0 100%;   /* each image is exactly 100% of the container */
  width: 100%;      /* ensures it scales responsively */
  object-fit: cover; /* optional, keeps aspect ratio without stretching */
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}
