/* Tailwind resets the body margin/padding; if any extra overrides are needed, do it here */
body {
    margin: 0;
    padding: 0;
}

/* Fade-in animation used by .animate-fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out both;
}

/* Slide-in from left animation */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide-in from right animation */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Apply the animations */
.animate-slide-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

/* Section styling */
.section {
    width: 75vw;
    /* Set section width to 75% of the viewport width */
    position: relative;
    margin-bottom: 2rem;
    /* Space between sections */
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    display: inline-block;
    /* Ensures sections don't stretch across the full width */
}

/* Position left sections on the left */
.section-left {
    float: left;
    /* Keep left sections aligned to the left side */
    margin-left: 0;
    /* Ensure it starts exactly at the left edge */
    display:flex;
}

/* Position right sections on the right */
.section-right {
    float: right;
    /* Keep right sections aligned to the right side */
    margin-right: 0;
    /* Ensure it starts exactly at the right edge */
    /* This is the key part! Positioning right sections at the right edge */
    display:flex;
}

/* Add some custom spacing between sections */
.section {
    margin-left: 10px;
    margin-right: 10px;
}

section img {
    width: 100%;
    height: auto;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

section p {
    text-align: justify;
    margin-bottom: 1rem;
}

/* Add hover effects to increase interactivity */
.section:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Optional: for the CTA button inside each section */
button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

/* Optional: Styling for footer links and copyright */
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #333;
    color: white;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
    margin-top: 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

footer .copyright {
    font-size: 0.8rem;
}