/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    line-height: 1.6;
}

/* Main Body Background */
.main-background {
    position: relative;
}

.main-background::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Assets/images/controlabstexp1-1081x1311-800x970.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.05; /* 5% opacity */
    z-index: -1; /* Ensures it's behind all content */
}

/* General Header Styling */
.header {
    display: flex;
    justify-content: space-between; /* Space between title and nav */
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.site-title {
    font-size: 2rem;
    color: white;
    margin: 0;
    text-align: left;
    flex: 0 1 auto;
}

.main-nav {
    flex: 1 1 auto; /* Take remaining space */
    display: flex;
    justify-content: center; /* Center-align links on all screens */
}

.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Wrap items neatly on smaller screens */
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 5px 15px; /* Equal spacing between links */
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Responsive Fix for Smaller Screens */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column; /* Stack title and navigation */
        align-items: center;
    }

    .main-nav ul {
        justify-content: center; /* Keep navigation links centered */
    }

    .main-nav ul li {
        margin: 5px 10px; /* Reduce spacing for smaller screens */
    }

    .site-title {
        font-size: 1.5rem; /* Reduce title size for small screens */
    }
}







/* Quote Section */
.quote-container {
    position: relative;
    text-align: center;
    padding: 1rem;
}

.quote-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Assets/images/videonastiestillslayers2-624x352.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

.highlighted-quote {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.quote-highlight {
    font-size: 2.7rem;
    color: #faf7f5;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.social-icon {
    background: #030303;
    color: white;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

/* Containers */
.container {
    background: rgba(169, 169, 169, 0.3); /* 30% opacity grey background */
    margin: 1.5rem auto;
    padding: 1rem 1.5rem; /* Reduced vertical padding */
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: white;
}

.container h2 {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

/* Centered Boxes for Galleries and Experiments */
.centered-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Video Section */
.video-container {
    text-align: center;
    margin: 10px auto;
}

.embedded-video {
    width: 100%;
    aspect-ratio: 16/9;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Carousel Section */
.carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px; /* Reduced spacing */
}

.carousel__viewer img {
    width: 75%;
    max-width: 450px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel__thumbnails-wrapper {
    width: 100%;
    display: flex;
    overflow-x: auto;
    max-width: 500px; /* Limit to showing 5 thumbnails */
    scrollbar-width: thin;
}

.carousel__thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.carousel__thumbnails img {
    width: 70px;
    height: 70px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel__thumbnails img:hover {
    transform: scale(1.1);
}

/* Experiments Section - Ensure Images Stay in One Row */
#thoughts .gallery-grid {
    display: flex; /* Make the container a flexbox */
    flex-wrap: nowrap; /* Prevent wrapping to the next row */
    justify-content: center; /* Center the images horizontally */
    gap: 10px; /* Add spacing between images */
}

#thoughts .gallery-item img {
    width: 90%; /* Reduce the width of each image */
    max-width: 300px; /* Limit maximum width */
    height: auto; /* Maintain aspect ratio */
}



/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

/* End Image */
.end-image {
    display: block;
    margin: 20px auto;
    max-width: 300px;
}

/* Gallery Section Specific for Galleries Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px; /* Space between items */
    margin: 20px auto;
    max-width: 800px; /* Ensure the gallery is centered */
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gallery-item p {
    margin-top: 10px;
    text-align: center;
    font-size: 1rem;
    color: white;
}

/* Active Link Styling */
.main-nav ul li a.active {
    color: #ff7700; /* Highlight active page link */
    font-weight: bold;
}

/* General Container Styles */
.container {
    background: rgba(169, 169, 169, 0.3); /* 30% opacity grey background */
    margin: 1.5rem auto;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: white;
}

.container h2 {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

/* Slideshow Grid Layout */
.slideshow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px;
    margin: 20px auto;
    max-width: 1000px; /* Limit overall grid width */
}

/* Slideshow Wrapper */
.slideshow-wrapper {
    text-align: center;
}

.slideshow-wrapper h3 {
    margin-bottom: 10px;
    color: white;
    font-size: 1.5rem;
}

/* Slideshow Container */
.slideshow {
    position: relative;
    max-width: 100%;
    height: 300px; /* Adjust to fit your images */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.slide:first-child {
    display: block; /* Ensure first slide is visible by default */
}

/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Contact Form Styling */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: white;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff7700;
}

.submit-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background: #ff7700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #cc6000;
}

.pdf-container {
    margin: 20px auto;
    max-width: 900px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

iframe {
    border: none;
}

/* Store Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.store-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.store-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.store-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.store-item p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: white;
}

.add-to-cart {
    background: #ff7700;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background: #cc6000;
}

/* Cart Styling */
.cart-container {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#checkout-button {
    margin-top: 15px;
    width: 100%;
}

/* Events Grid Layout */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Event Card Styling */
.event-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 2px solid #ff7700;
}

.event-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: white;
}

.event-card p {
    font-size: 1rem;
    margin: 10px 15px 15px;
    color: rgba(255, 255, 255, 0.8);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

/* Responsive Styling for Images in MA Work and Experiments */
@media screen and (max-width: 768px) {
    .gallery-item img {
        width: 90%; /* Reduce image width to 90% of the container */
        max-width: 300px; /* Ensure images don't get too large */
        margin: 0 auto; /* Center the images */
        display: block; /* Remove any inline spacing */
    }

    .gallery-grid {
        gap: 10px; /* Reduce spacing between images */
    }
}
