/* Reagal Events - consolidated styles.css (no duplicates / no contradictions)
   ---------------------------------------------------------------
   Notes:
   - Global site uses dark "glass" overlays.
   - Event DETAILS text must remain BLACK on light panels.
   - Titles / general copy on the background remain WHITE.
*/

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;

  background: url('background.webp') no-repeat center center fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow-x: hidden;
  overflow-y: auto;
}

/* Sticky-ish footer structure */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding-bottom: 2em;
  box-sizing: border-box;
}

.container { width: 100%; max-width: 100%; }

/* Optional wrapper */
#main-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: url('background.webp') no-repeat center center fixed;
  background-size: cover;
}

/* -------------------------
   Header + banners
------------------------- */
header {
  position: relative;
  text-align: center;
  color: white;
  margin-bottom: 60px;
}

.banner { width: 100%; display: block; }

.banner1-container {
  position: relative;
  background: url('banner1.webp') no-repeat center center / cover;
  height: 400px;
}

/* Banner2 */
.banner2-container {
  position: relative;
  background: url('banner2.webp') no-repeat center center / cover;
  height: 400px;
}

@media (max-width: 768px) and (orientation: portrait) {
  .banner2-container { height: 200px; }
}

/* "Proudly Presents" */
.circus-font {
  font-family: 'Cursive', sans-serif;
  font-size: 3rem;
  font-weight: bold;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: gold;
  text-shadow: -3px -3px 0 black, 3px -3px 0 black, -3px 3px 0 black, 3px 3px 0 black;
  z-index: 20;
  top: 170px;
}

@media (max-width: 768px) {
  .circus-font { font-size: 1.5rem; top: 50px; }
}
@media (max-width: 480px) {
  .circus-font { font-size: 1rem; }
}

/* Menu styling */
#menu {
    position: absolute;
    bottom: -10;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 0;
}

#menu ul {
    display: flex;
    flex-wrap: wrap; /* Allows splitting into two rows */
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: -20px;
}

#menu ul li {
    margin: 5px 10px;
}

#menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Menu changes for portrait mode */
@media (max-width: 768px) {
    #menu ul {
        flex-direction: row;
        flex-wrap: wrap; /* Allows breaking into two rows */
        justify-content: space-evenly;
    }

    #menu ul li {
        flex: 1 1 1 1  5%; /* Two items per row, 45% width each */
        text-align: center;
    }

    /* Adjust text size for portrait mode */
    #menu ul li a {
        font-size: 0.8rem; /* Smaller text in portrait */
    }

    /* Limit the menu to 2 rows */
    #menu ul li:nth-child(n+8) {
        display: none; /* Hides items beyond the 6th one */
    }
}

/* Hover effect */
#menu ul li a:hover {
    color: gold;
}

section {
    padding: 2em;
    margin: 1em;
    background: transparent; /* Light transparent background */
    border: 0px solid rgba(0, 0, 0, 0.2); /* Semi-transparent 2px border */
    border-radius: 8px;
    font-weight: bold; /* Make text bold */
    color: white; /* White text for readability */
}


/* -------------------------
   Global text defaults
------------------------- */
h1, p { color: white; text-align: center; }

section {
  padding: 2em;
  margin: 1em;
  background: transparent;
  border: 0px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-weight: bold;
  color: white;
}

/* -------------------------
   Homepage tiles
------------------------- */
#main-sections {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.section {
  flex: 1 1 calc(33.33% - 20px);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.section-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.section-title {
  font-size: 1.5rem;
  text-align: center;
  color: white;
  padding: 8px;
  background: rgba(0, 0, 0, 0.5);
}

.section-info {
  font-size: 1rem;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
}

@media (max-width: 768px) {
  #main-sections { flex-direction: column; }
  .section { flex: 1 1 100%; margin-bottom: 20px; }
  .section-title { font-size: 1.2rem; }
  .section-info { font-size: 0.9rem; }
  .section-border { margin: 5px; }
}

/* -------------------------
   Footer
------------------------- */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  width: 100%;
}

.social-links { display: flex; gap: 15px; }

.social-icon {
  font-size: 24px;
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icon:hover { color: #ffcc00; transform: scale(1.2); }

.footer-text {
  text-align: center;
  flex-grow: 1;
  font-size: 1rem;
}

.ticketsource-button img { width: 130px; height: 56px; }

/* -------------------------
   Events (All Shows / Tour pages)
   - Keep outer "glass" DARK
   - Keep details panel LIGHT with BLACK text
------------------------- */
.event {
  display: flex;
  align-items: flex-start;
  margin: 15px auto;
  padding: 10px;
  max-width: 800px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(4px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.event:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.event-thumbnail {
  flex-shrink: 0;
  max-width: 30%;
  height: auto;
  border-radius: 6px;
  margin-right: 15px;
}

.event-details {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 10px;
  padding: 10px 12px;
  color: #000;
}

.event-title,
.event-town-dates,
.event-details p,
.event-details h2,
.event-details h3,
.event-details span,
.event-details li,
.event p {
  color: #000;
}

.event-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.event-town-dates {
  font-size: 1em;
  margin: 5px 0;
}

.event p { font-size: 0.9em; margin: 5px 0; }

.dropdown,
.event select {
  width: 100%;
  padding: 5px;
  margin: 8px 0;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.book-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9em;
  text-align: center;
}
.book-button:hover { background-color: #0056b3; }

/* No events message */
.no-events-message {
  text-align: center;
  color: red;
  font-size: 1.5rem;
  margin: 20px auto;
  background: rgba(0,0,0,0.4);
  padding: 10px;
  border-radius: 8px;
}

/* -------------------------
   Gallery
------------------------- */
#main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
}

.gallery-title {
  font-size: 2.5rem;
  color: white;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}

#carousel {
  width: min(680px, 92vw);
  max-width: 680px;
  height: min(80vh, 520px);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  background: #000;
  position: relative;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-images { position: relative; width: 100%; height: 100%; }

.carousel-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-controls button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}
.carousel-controls button:hover { background-color: rgba(0, 0, 0, 0.8); }

/* Thumbnails columns */
.gallery-left, .gallery-right {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
  justify-content: center;
  padding: 10px;
  margin-top: 20px;
  width: 80%;
}

.gallery-left img, .gallery-right img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.6);
}

/* Desktop gallery layout: thumbs | viewer | thumbs */
@media (min-width: 900px) {
  #main-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    align-items: start;
  }

  .gallery-title { grid-column: 1 / -1; }

  #carousel { grid-column: 2; grid-row: 2; }

  .gallery-left { grid-column: 1; grid-row: 2; width: 100%; }
  .gallery-right { grid-column: 3; grid-row: 2; width: 100%; }

  .gallery-left, .gallery-right { grid-template-columns: repeat(3, 1fr); }
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-title { font-size: 2rem; }
  #carousel { width: 90%; height: 300px; }
  .gallery-left img, .gallery-right img { height: 50px; }
}
@media (max-width: 480px) {
  .gallery-title { font-size: 1.5rem; }
  #carousel { width: 100%; height: 250px; }
  .gallery-left img, .gallery-right img { height: 40px; }
}

/* -------------------------
   Contact
------------------------- */
#contact-title {
  font-size: 2.5rem;
  color: white;
  margin-top: 100px;
  text-align: center;
}
#contact-address {
  font-size: 1.5rem;
  color: white;
  text-align: center;
}

/* -------------------------
   Halloween page theme overrides
------------------------- */
body.halloween-page {
  background: url('Hbackground.webp') no-repeat center center fixed;
  background-size: cover;
  background-position: center;
}

body.halloween-page .banner2-container {
  background: url('Hbanner2.webp') no-repeat center center / cover;
}

body.halloween-page h1,
body.halloween-page p {
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.85);
}

/* -------------------------
   Tour Status Badges (Homepage)
------------------------- */
.tour-status {
  max-width: 1080px;
  margin: 20px auto 30px auto;
  padding: 0 12px;
}

.tour-status h2 {
  color: #fff;
  margin: 14px 0 8px 0;
  text-align: center;
}

.town-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px auto;
  max-width: 600px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.town-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.town-card a {
  text-decoration: none;
  color: inherit;

  /* 3-column layout: Town | Dates | Badge */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

/* Neutralise legacy wrapper impact */
.town-header { display: contents; }

/* Town (left) */
.town-name{
  grid-column: 1;
  justify-self: start;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

/* Dates (center) */
.town-dates{
  grid-column: 2;
  justify-self: center;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  opacity: 0.95;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

/* Badge (right) */
.town-badge{
  grid-column: 3;
  justify-self: end;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

/* Mobile: stack */
@media (max-width: 600px){
  .town-card a{
    grid-template-columns: 1fr;
    row-gap: 8px;
    text-align: center;
  }
  .town-name,
  .town-dates,
  .town-badge{
    grid-column: 1;
    justify-self: center;
    white-space: normal;
  }
}

/* -------------------------
   Town page styling (SEO pages)
------------------------- */
.town-page-box {
  width: min(900px, 92%);
  margin: 18px auto;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.town-events {
  width: min(760px, 92%);
  margin: 0 auto;
}

.town-events h2,
.town-events h3 { margin: 0 0 10px 0; }

.town-range {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 14px 0;
  color: #fff;
}

.town-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.town-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
  text-align: left;

  background: rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
}

.town-field span {
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}

.town-field select {
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;

  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

.town-booknow {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;

  color: #fff;
  background: rgba(128, 0, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.town-booknow:hover { background: rgba(128, 0, 255, 0.75); }

/* Consistent semi-transparent title box (used across pages) */
.page-title-box{
  max-width: 1100px;
  margin: 18px auto 14px auto;
  padding: 14px 16px;
  border-radius: 18px;

  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

.page-title-box,
.page-title-box * {
  color: #fff;
}

.page-title-box p{
  margin-top: 8px;
  opacity: 0.95;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
