/*/* Basic styles for Reagal Events */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover; /* Ensures it covers the entire screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;
   
	
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

  body {
    overflow-x: hidden; /* Hide horizontal overflow */
    overflow-y: auto;   /* Allow vertical scrolling when needed */
}

  margin: 0;
  padding: 0;
}

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


/* Add a wrapper to hold the content */
#main-container {
    width: 100%; /* Ensure it takes up the full page width */
    max-width: 1200px; /* Adjust this to your desired page width */
    margin: 0 auto; /* Center-align the content */
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
}
header {
    position: relative;
    text-align: center;
    color: white;
    margin-bottom: 60px; /* Create space between titles and menu */
}

/* Style for both banners */
.banner {
    width: 100%;
    display: block;
}

.banner1-container {
    position: relative;
    background: url('banner1.jpg') no-repeat center center/cover;
    height: 400px; /* Ensure this is the height of banner1 */
}

/* "Proudly Presents" text positioning */
/* "Proudly Presents" text positioning */
.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; /* Default position for portrait mode */
}

/* Adjust for portrait mode */
@media (max-width: 768px) {
    .circus-font {
        font-size: 1.5rem; /* Slightly smaller for mid-size screens */
        top: 50px; /* Position for portrait */
    }
}

@media (max-width: 480px) {
    .circus-font {
        font-size: 1rem; /* Even smaller for small screens */
    }
}



/* Default height for the banner */
.banner2-container {
    position: relative;
    background: url('banner2.jpg') no-repeat center center/cover;
    height: 400px; /* Default height for landscape */
}

/* Adjust height for portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    .banner2-container {
        height: 200px; /* Height for portrait mode */
    }
}



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



/* Ensure the three sections are side by side */
#main-sections {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 100%; /* Ensure the sections fit within the page width */
    margin: 0 auto; /* Center-align the sections */
    width: 100%; /* Full width */
}

/* Ensure each section takes equal width */
.section {
    flex: 1 1 calc(33.33% - 20px); /* Equal width for each section */
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Optional: for rounded corners */
}

/* Style for the images */
.section-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Makes sure the image covers the entire area */
}



/* Title positioning */
.section-title {
    font-size: 1.5rem;
    text-align: center;
    color: white;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5); /* Background for title area */
    margin-bottom: 0;
}

/* Info text positioning */
.section-info {
    font-size: 1rem;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5); /* Background for info area */
    padding: 8px;
}

/* Carousel styles */
.carousel {
    margin: 1em 0;
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

.carousel img {
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    #main-sections {
        flex-direction: column; /* Stack the sections on smaller screens */
    }

    .section {
        flex: 1 1 100%; /* Each section takes full width on smaller screens */
        margin-bottom: 20px;
    }

    /* Adjust title and info text font size on mobile */
    .section-title {
        font-size: 1.2rem;
    }

    .section-info {
        font-size: 0.9rem;
    }

    /* Adjust margins for better spacing on smaller screens */
    .section-border {
        margin: 5px;
    }
}

/* Event section styling */
#events-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.event-card, .event-details {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

/* Updated text color for event cards */
.event-card h2, .event-details h2 {
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
    color: white; /* White text for event titles */
}

.event-card button, .event-details button {
    padding: 10px 20px;
    background-color: purple;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.event-card button:hover, .event-details button:hover {
    background-color: darkviolet;
}

.event-details ul {
    list-style: none;
    padding: 0;
}

.event-details ul li {
    margin: 5px 0;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;  /* This makes sure the content takes the available space */
    padding-bottom: 2em;  /* Adjust according to footer height */
    box-sizing: border-box;
}

.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; /* Change color on hover */
    transform: scale(1.2);
}

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

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



.event-details {
    color: black; /* This ensures event details are displayed in black */
}

.event-title, .event p {
    color: black; /* Ensures the event title and description are in black */
}

.event {
    background-color: #fff; /* Ensures event background remains white */
}


.event-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
    color: black !important; /* Force black color */
}

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

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

   .event {
      display: flex;
      align-items: flex-start;
      border: 1px solid #ccc;
      margin: 15px auto;
      padding: 10px;
      border-radius: 5px;
      max-width: 800px;
      background-color: #fff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

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

    .event-details {
      flex-grow: 1;
    }

   


    .dropdown {
      width: 100%;
      padding: 5px;
      margin: 8px 0;
      font-size: 0.9em;
    }

    .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;
    }
	
        /* Gallery Title */
        .gallery-title {
            font-size: 2.5rem;
            color: white; /* Title in white */
		    text-align: center;
            font-weight: bold;
            margin-bottom: 20px;
            text-align: center;
        }

        #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;
        }
		   h1, p {
            color: white; /* Set text color for the title and description */
            text-align: center;
        }
        /* Main content centered with grid layout */
        #main-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 20px;
            padding: 20px;
        }

        #carousel {
            width: 80%; /* Keeps the original width */
            height: 400px; /* Original height */
            aspect-ratio: 16 / 9;
            overflow: hidden;
            border: 2px solid #ccc;
            border-radius: 10px;
            background: #000;
            position: relative;
            margin-top: 20px;
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

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

        .carousel-images img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            flex-shrink: 0;
        }

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

        /* Gallery images will be split into left and right 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%; /* Makes sure images resize to container width */
          height: auto; /* Maintains aspect ratio */
          object-fit: cover; /* Ensures images cover the container */
        }


        /* Spinner Styles */
        .spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            display: none;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
    }

            .gallery-title {
                font-size: 2rem;
            }

            #carousel {
                width: 90%; /* Make carousel more responsive */
                height: 300px; /* Reduce height for smaller screens */
            }

            .gallery-left img, .gallery-right img {
                width: 50px;
                height: 50px; /* Smaller thumbnails on smaller screens */
            }
        }

        @media (max-width: 480px) {
      			.gallery-title {
                font-size: 1.5rem;
            }

            #carousel {
                width: 100%; /* Carousel takes full width on mobile */
                height: 250px; /* Reduce height even more for small devices */
            }

            .gallery-left img, .gallery-right img {
                width: 40px;
                height: 40px; /* Even smaller thumbnails for mobile */
            }
    
        }
 
        }
	img {
    max-width: 100%;
    height: auto;
}




