/* ============================================
   style.css — Jesus Chatline Wiki
   ============================================
   This file controls all the visual styling.
   The HTML is wired up with IDs like #banner,
   #sidebar, #content etc. that you can target
   here. Start by changing colors and fonts,
   then work your way into layout.
   ============================================ */


/* --- GLOBAL --- */
/* Applies to everything on the page */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

body {
  
  font-family: "Figtree", sans-serif;       /* Change to any font you like */
  background-image: linear-gradient(to bottom, rgb(45, 0, 39), rgb(30, 1, 26));  /* Page background */
  color: rgb(253, 166, 240);             /* Default text color */
  margin: 0;
  padding: 0;
  /* text-shadow: 0 5px 3px rgb(26, 1, 24); */
}

a {
  color: rgb(255, 133, 237); /* Link color */
  text-shadow: none;
}

a:hover {
  color: rgb(245, 196, 245); /* Link color when you hover over it */
}


#layout h1, h2{
 color: rgb(255, 0, 217);
}

/* --- BANNER --- */
/* The image header at the top of every page */

#banner {
  /* Add background color, padding, height, etc. here */
  text-align: center;
  color: rgb(255, 0, 217);
  border-bottom: 2px solid purple;
  box-shadow: 0px 15px 10px -15px purple; 
  font-size: 1.5rem;
  background-image: 
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.95) 100%
    ),
    url('img/newbanner.webp');
  background-size: cover;
  background-position: top; 
  margin-top: 0;
  padding-top: 1px;
  font-family: "Cinzel";
  
}

#banner-img {
  /* Style the banner image — width, height, object-fit, etc. */
  width: 100%;
  display: block;
}

#banner-text {
  /* This sits on top of / below the image */
}

#banner-text h1 {
  font-size: 4rem;
  margin: 1;
  color: white;
  text-shadow:
    0 0 6px white,
    0 0 20px rgba(255, 255, 255, 0.3);
}




#ticker-text {
  display: inline-block;  /* Required for the scroll JS to work */
}


/* --- LAYOUT --- */
/* Makes the sidebar and main content sit side by side */

#layout {
  display: flex;          /* This is what puts sidebar + content next to each other */
}


/* --- SIDEBAR --- */

#sidebar {
  width: 200px;           /* How wide the sidebar is */
  flex-shrink: 1;       /* Stops it from shrinking when the window is small */
  /* Add background, padding, border etc. here */
  padding: 20px;
  border-right: 2px solid purple;
  box-shadow: 0 0 10px purple;
  background: rgba(255, 255, 255, 0.01);  /* barely lighter than the page */
  
}



#sidebar h2 {
  /* Section headings like "Characters", "Episodes" */
}

#sidebar ul {
  list-style: none;       /* Removes bullet points */
  padding: 0;
  margin: 0;
}

#sidebar ul li a:hover {
  transform: scale(1.05);
  display: inline-block;  /* scale doesn't work on plain inline elements */
  transition: transform 0.2s ease;
  transform-origin: left center;
}


a:hover{

  transform: scale(1.02);
  display: inline-block;  /* scale doesn't work on plain inline elements */
  transition: transform 0.2s ease;

}
#sidebar ul li {
  /* Each nav item row */
}

#sidebar ul li a {
  display: block;         /* Makes the whole row clickable, not just the text */
  padding: 4px 8px;
  text-decoration: none;
}

#sidebar ul li a:hover {
  /* What nav links look like when hovered */
}


/* --- MAIN CONTENT --- */




#content {
  flex: 1;                /* Takes up all remaining space next to the sidebar */
  padding: 20px;
  animation: fade-in-up 0.8s ease forwards;
}

#content h1 {
  /* Page titles */
}

#content h2 {
  /* Section headings within a page */
  text-decoration: underline;
}

#content p {
  line-height: 1.6;       /* Spacing between lines — easier to read when bigger */
}

a, button {
  transition: all 0.3s ease;
}

/* --- INFO TABLE --- */
/* The wiki-style box that floats to the right of the intro text */
#sidebarcontent{
  float:right;
}
#info-table {
  float: none;           /* Pulls the table to the right so text wraps around it */
  margin: 0 0 16px 24px;  /* Space between table and the text */
  width: 240px;
  
  
  
  border-radius: 8px;
  box-shadow: 0 0 30px purple;
  
}

#info-table th {
  /* The header row, e.g. "The Jesus Chatline" */
}

#info-table td {
  padding: 4px 8px;
  vertical-align: top;
}

#info-table td:first-child {
  /* The left column — labels like "Hosted by", "Platform" etc. */
  font-weight: bold;
}

#info-table img {
  width: 100%;
  display: block;
  border-radius: 8px;
}


/* --- FOOTER --- */

#footer {
  /* Add background, padding, border-top etc. here */
  padding: 16px;
  text-align: center;
  color:purple;
  border-top: 2px solid purple;
  box-shadow: 0 0 10px purple;
  
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);  /* starts 20px lower */
  }
  to {
    opacity: 1;
    transform: translateY(0);     /* ends at normal position */
  }
}


@keyframes blur-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* #banner-text {
  animation: fade-in-up 0.8s ease forwards;
} */

/* make youtube videos look nice */
iframe {
  border-radius: 8px;
  box-shadow: 0 0 16px purple;
  border: 2px solid purple;
}


form {
  display: flex;
  flex-direction: column;  /* stacks labels and inputs vertically */
  gap: 4px;               /* space between each field */
  max-width: 600px;        /* stops the form getting too wide */
}

label {
  display: block;
  margin-bottom: 4px;      /* small gap between label and its input */
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;    /* stops browsers using their own font on inputs */
  box-sizing: border-box;  /* stops padding from making inputs wider than 100% */
}

textarea {
  height: 150px;
  resize: vertical;        /* lets the user resize it up and down but not sideways */
}

button[type="submit"] {
  padding: 10px 24px;
  cursor: pointer;
  align-self: flex-start;  /* stops the button stretching full width */
}

#episode-search {
  margin-bottom: 20px;
}

#search-input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

#episode-list {
  display: flex;
  flex-direction: column;
}


@media (max-width: 600px) { /* all phone stuff goes here */
  #layout {
    flex-direction: column;  /* stacks sidebar above content instead of beside it */
  }
  
  #sidebar {
    width: 100%;  
    text-align: center; 
    min-width: 0;
    padding: 0px;   /*phones */
  }
  iframe {
    width: 100%;
    max-width: 100%; 
  }
  *{
    text-shadow: none;
  }

  .slider {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .slider-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  
  
  input, textarea {
    font-size: 16px;  /* prevents iOS from auto-zooming into inputs */
  }

  #info-table, #info-sidebar { /*info table stops floating, goes full width */
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }
}
/* * {
  outline: 1px solid red; 
} */


.slider {
  position: relative;
  width: 360px;
  height: 240px;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 0 16px purple;
  border: 2px solid purple;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.slider-track img {
  
  height: 100%;
  object-fit: cover;
    min-width: 360px;
  height: 240px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.prev { left: 10px; }
.next { right: 10px; }


.pagination {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  justify-content: center;
}

.pagination a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--border);
}

.pagination a.active {
  background: rgb(255, 133, 237);
  color: black;
  border-color: white;
}