@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&display=swap');

/* General Body Styles */
body {
    font-family: 'Gaegu', cursive;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #FDF3E1;
    color: #333;
    text-align: center;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* Center images */
}

/* Navigation Bar */
nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background-color: #FDF3E1;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.nav-logo {
    height: 40px;
}

.instagram-icon {
    height: 30px;
    width: 30px;
    color: #333;
}

/* Hero Section */
.hero-section {
    padding: 20px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 60%;
    margin-bottom: 10px;
}

.sublogo {
    max-width: 50%;
}

.hero-image {
    margin: 20px 0;
    position: relative;
    display: inline-block; /* To contain absolute positioned children */
}

.hero-image img {
    max-width: 80%;
}

.buttons-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-decoration: none;
    margin: 5px;
}

/* Main Content Sections */
main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

.section-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.text-content {
    flex-basis: 70%;
}

.character-image {
    max-width: 100px;
    height: auto;
}

section h3 {
    font-size: 2.5em;
    color: #D32F2F;
    margin-bottom: 10px;
}

section h4 {
    font-size: 1.8em;
    color: #D32F2F;
    margin-bottom: 5px;
}

section p {
    font-size: 1.2em;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 20px;
}

.carousel-track {
    display: inline-block; /* Ensures content stays in a line */
    display: flex;
    animation: scroll 20s linear infinite; /* Adjust duration as needed */
}

.carousel-track img {
    width: 250px; /* Fixed width for carousel items */
    height: 250px; /* Fixed height */
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0; /* Prevent images from shrinking */
    border-radius: 8px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 5 - 10px * 5)); /* (image-width + margin) * number-of-unique-images */
    }
}

/* Banner */
.banner-container {
    position: relative;
    width: 100%;
    height: 250px; /* Adjust height as needed */
    overflow: hidden;
    margin-top: 20px;
    border-radius: 10px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fade 9s infinite; /* 3 images * 3s per image */
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide:nth-child(1) {
    animation-delay: 0s;
}

.banner-slide:nth-child(2) {
    animation-delay: 3s;
}

.banner-slide:nth-child(3) {
    animation-delay: 6s;
}

@keyframes fade {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    23% {
        opacity: 1;
    }
    33% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}


/* Specific Section Styles */
.about-section, .features-section, .new-section-1, .new-section-2, .contact-form-section {
    background-color: #FDEFE1;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px; /* Ensure consistent spacing */
}

/* New Section 1 */
.new-section-1 .section-content-alt {
    display: flex;
    flex-direction: column; /* Stack by default */
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.new-section-1 .placeholder-image {
    max-width: 150px;
    border-radius: 8px;
}

.new-section-1 .text-and-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.new-section-1 .placeholder-image-small {
    max-width: 100px;
    border-radius: 8px;
}

/* New Section 2 */
.new-section-2 .placeholder-image-large {
    max-width: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.new-section-2 .image-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Contact Form */
.contact-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.contact-form .button {
    width: 100%;
    background-color: #D32F2F;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .button:hover {
    background-color: #B71C1C;
}


/* Footer */
footer {
    padding: 20px;
    background-color: #333;
    color: white;
    font-size: 0.8em;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .logo {
        max-width: 80%;
    }

    .sublogo {
        max-width: 70%;
    }

    .section-content {
        flex-direction: column;
    }

    .carousel-track img {
        width: 150px; /* Adjust for smaller screens */
        height: 150px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 5 - 10px * 5)); /* (image-width + margin) * number-of-unique-images */
        }
    }

    .new-section-1 .section-content-alt {
        flex-direction: column;
    }

    .new-section-1 .text-and-images {
        flex-direction: column;
    }
}

@media (min-width: 601px) {
    .new-section-1 .section-content-alt {
        flex-direction: row; /* Side-by-side on larger screens */
        justify-content: space-around;
    }

    .new-section-1 .text-and-images {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 60%;
    }
}