@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    font-size: 22px;
    background-color: #C39AD8;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

main {
    flex: 1; /* Allow main to grow and fill available space */
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 12px;
}

/* Container Styles */
.container {
    width: 50%;
    margin: 20px auto;
}

.container button {
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        width: 80%;
        margin: 20px auto;
    }
}

.container:first-of-type {
    margin-top: 90px;
}

h2 {
    margin-bottom: 10px;
    margin-top: 80px;
    padding-top: 20px;
    text-align: center;
}

.carousel {
    width: 40%; /* Set the carousel width to 40% of the website */
    margin: 160px auto 20px; /* Increase top margin to create space for the fixed header */
    overflow: hidden; /* Hide overflow to prevent images from spilling out */
    position: relative; /* Positioning for the buttons */
    border-radius: 15px; /* Add rounded edges to the carousel */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: add a subtle shadow for depth */
}

.carousel-images {
    display: flex; /* Use flexbox for horizontal layout */
    transition: transform 0.5s ease; /* Smooth transition for sliding effect */
}

.carousel-images img {
    width: 100%; /* Set images to fill the carousel width */
    height: auto; /* Maintain aspect ratio */
    flex: 0 0 auto; /* Prevent flex items from growing or shrinking */
    display: block; /* Ensure images are block elements to avoid extra space */
    object-fit: cover; /* Ensure images cover the container without distortion */
}

.prev, .next {
    position: absolute; /* Position buttons absolutely within the carousel */
    top: 50%; /* Center buttons vertically */
    transform: translateY(-50%); /* Adjust for button height */
    background-color:#C39AD8; /* Semi-transparent background */
    border: none; /* Remove default border */
    padding: 10px; /* Add padding for better appearance */
    cursor: pointer; /* Change cursor to pointer on hover */
    z-index: 10; /* Ensure buttons are above the images */
    color: white;
}

.prev {
    left: 10px; /* Position left button */
}

.next {
    right: 10px; /* Position right button */
}

.about-container {
    width: 40%;
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    margin: 20px auto; /* Add margin around the container */
}

.about-image {
    width: 25%; /* Set the image width to 30% */
    margin-right: 20px; /* Add margin to the right of the image */
    border-radius: 8px; /* Optional: adds rounded corners to the image */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1; /* Allow the text to fill the remaining space */
    margin: auto 20px; /* Add margin around the text */
}



/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .carousel {
        width: 80%; /* Set the carousel width to 80% of the website */
        margin: 100px auto 20px; /* Increase top margin to create space for the fixed header */
        overflow: hidden; /* Hide overflow to prevent images from spilling out */
        position: relative; /* Positioning for the buttons */
        border-radius: 15px; /* Add rounded edges to the carousel */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: add a subtle shadow for depth */
        height: 30vw; /* Height based on viewport width */
        min-height: 150px; /* Minimum height to prevent too small carousels */
    }

    .carousel-images {
        display: flex; /* Use flexbox for horizontal layout */
        transition: transform 0.5s ease; /* Smooth transition for sliding effect */
        height: 100%; /* Fill the carousel container */
    }

    .carousel-images img {
        width: 100%; /* Set images to fill the carousel width */
        height: auto; /* Maintain aspect ratio */
        flex: 0 0 auto; /* Prevent flex items from growing or shrinking */
        display: block; /* Ensure images are block elements to avoid extra space */
        object-fit: cover; /* Ensure images cover the container without distortion */
        height: 100px;
    }

    .about-container {
        width: 80%;
        display: flex; /* Use flexbox for layout */
        align-items: center; /* Center items vertically */
        margin: 20px auto; /* Add margin around the container */
    }
}

/* Button Styles */
button {
    font-family: 'Patrick Hand', cursive; 
    font-size: 18px;
    background-color: #C39AD8; /* Button background color */
    color: white; /* Button text color */
    border: none; /* Remove default border */
    padding: 10px; /* Add padding for better appearance */
    border-radius: 30px; /* Add rounded corners */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    flex: 1; /* Allow buttons to grow and fill the container */
    margin: 5px; /* Add margin between buttons */
}

button:hover {
    background-color: #a678b5; /* Darker shade on hover */
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    button {
        font-size: 16px; /* Adjust font size for mobile */
        padding: 8px 10px; /* Adjust padding for mobile */
        margin: 3px; /* Reduce margin between buttons */
    }

    .button-container button {
        flex: 1 1 100%; /* Make buttons full width on mobile */
    }
}

.container h2 {
    text-align: center;
}

.about-text h2 {
    text-align: left;
    margin-top: 0;
    padding-top: 0;
}

/* Grid Container Styles */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Three columns: left (1), middle (2), right (1) */
    gap: 0px; /* Space between columns */
    grid-template-columns: 0.5fr 2fr 0.5fr; /* Adjusted widths for left and right columns */
}

/* Column Styles */
.left-column, .middle-column, .right-column {
    display: flex;
    flex-direction: column; /* Stack images vertically */
    align-items: center; /* Center images horizontally */
    padding-top: 50px; /* Adjust this value as needed */
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.left-column img, .right-column img {
    padding-top: 100px;
    width: 100%; /* Make images responsive */
    max-width: 100%; /* Set a max width for images */
    margin: 30px 0; /* Space between images */
    animation: float 3s ease-in-out infinite; /* Apply floating animation */
}

.left-column img {
    padding-left: 220px;
}

.right-column img {
    padding-right: 220px;
}

/* Flexbox for Button Layouts */
.art-buttons, .merch-buttons, .suppport-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap to the next line */
    justify-content: space-between; /* Space buttons evenly */
    margin: 10px 0; /* Add margin for spacing */
}

.art-buttons button, .merch-buttons button, .suppport-buttons {
    flex: 1 1 45%; /* Allow buttons to grow and shrink, with a base width of 45% */
}

.merch-buttons button {
    flex: 1 1 45%; /* Base width for the first four buttons */
}

.comms-buttons, .merch-buttons button:last-child {
    flex: 1 1 100%; /* Last button takes full width */
}

/* Button Container Styles */
.button-container {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow buttons to wrap to the next line */
    justify-content: space-between; /* Space buttons evenly */
    margin: 10px 0; /* Add margin for spacing */
}

.button-container button {
    flex: 1 1 45%; /* Allow buttons to grow and shrink, with a base width of 45% */
    margin: 5px; /* Add margin between buttons */
}

/* Media Query for Mobile Devices */
@media (max-width: 850px) {
    .grid-container {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    .middle-column {
        display: flex;
        align-items: center; /* Center the buttons */
        width: 80%; /* Ensure it takes full width */
        margin: 0 auto;
        padding: 0;
    }

    .container {
        width: 80%; /* Ensure containers take full width */
    }

    .left-column, .right-column {
        display: none; /* Hide image columns on mobile */
        width: 0px;
    }
}

/* Masonry Gallery Styles */
.gallery-container {
    width: 90%;
    margin: 20px auto 20px;
    column-count: 4;
    column-gap: 10px;
    padding: 20px;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    break-inside: avoid; /* Prevents images from breaking across columns */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Hover effects */
.gallery-item:hover img {
    transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .gallery-container {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .gallery-container {
        column-count: 2;
        width: 95%;
    }
}

@media (max-width: 600px) {
    .gallery-container {
        column-count: 1;
        width: 90%;
    }
}

/* Shop Styles */
.shop-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for shop sections */
    border-radius: 8px; /* Optional: adds rounded corners to shop containers */
}

/* Footer Styles */
footer {
    background-color: #C39AD8;
    padding: 20px;
    text-align: center;
    margin-top: 50px; /* Increased margin for spacing */
}

.social-media a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Stack menu items vertically on small screens */
        align-items: center;
    }

    .about-container {
        flex-direction: column; /* Stack about section vertically */
        align-items: center;
    }

    .about-image {
        width: 100%; /* Full width on mobile */
        margin: 0; /* Remove margin */
    }

    .about-text {
        margin: 10px 0; /* Add some margin for spacing */
    }

    .carousel {
        height: 200px; /* Adjust carousel height for mobile */
    }

    .carousel-images img {
        height: 100%; /* Ensure images fit the carousel height */
    }

    footer {
        padding: 10px; /* Reduce footer padding on mobile */
    }

    .burger {
        display: block; /* Show burger menu on mobile */
    }

    nav ul.hidden {
        display: none; /* Hide menu when it has class hidden */
    }

    nav ul {
        flex-direction: column; /* Stack items vertically */
        width: 100%; /* Full width */
        background-color: #C39AD8; /* Match the header color */
    }

    nav ul.show {
        display: flex; /* Show menu when toggled */
    }
}

/* Hide burger on normal view */
@media (min-width: 769px) {
    .burger {
        display: none; /* Hide burger menu on larger screens */
    }
}
