/* ============================================
   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 */


body {
  
  font-family: "DM Sans", sans-serif;       /* Change to any font you like */
  background-image: linear-gradient(to bottom, rgb(50, 0, 48), rgb(40, 0, 40));  /* 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 */
}

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


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

#banner {
  /* Add background color, padding, height, etc. here */
  text-align: center;
  color: rgb(255, 133, 237);
  border-bottom: 2px solid purple;
  box-shadow: 0px 15px 10px -15px purple; 
  font-size: 1.5rem;
  background-image: 
    linear-gradient(rgba(30, 0, 50, 0.75), rgba(30, 0, 50, 0.75)),
    url('img/newbanner.webp');
  background-size: cover;
  background-position: top; 
  margin-top: 0;
  padding-top: 1px;
  
}

#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 {
  /* The big site title in the banner */
}




#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: 0;         /* 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;
  
}

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

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

#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 */
}


/* --- 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 */
  }
}

/* #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;
  }
  iframe {
    width: 100%;
    max-width: 100%;
  }

  
  
  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; debug purposes
} */