body {
    overflow-x: hidden;
}

.main-page-flex-1 {
    margin-top: 5%;
    display: flex;
    flex-direction: column;
}

.main-page-h1 {
    align-self: center;
    font-family: Martel;
    text-align: left;
    width: 30%;
    padding-right: 60%;
    font-weight: 700;
    line-height: 150%;
}

.personal-foto-1 {
    position: absolute;
    z-index: -1;
    right: 30%;
    top: 30%;
    height: 60%;
    width: 25%;
    border-radius: 25px;
}

.flower-logo-1 {
    position: absolute;
    z-index: -1;
    width: 80%;
    right: -50%;
    top: -20%;
}

.main-page-span {
    padding-top: 1%;
    align-self: center;
    font-family: Quicksand;
    font-size: x-large;
    text-align: left;
    width: 30%;
    padding-right: 60%;
}

.main-page-buttons {
    display: flex;
    flex-direction: row;
    align-self: center;
    padding-top: 1%;
    padding-right: 65%;
}

.intake-button, .methodiek-button {
    padding: 0 10%;
    border: 0;
    height: 150%;
    width: 150%;
    font-size: 150%;
    border-radius: 8px;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.3s ease;

}

.intake-button:hover, .methodiek-button:hover {
    transform: scale(1.1);
}

.intake-button {
    background-color: darkslategray;
    border: 2px solid darkslategray;
    color: white;
}

.methodiek-button {
    background-color: oldlace;
    color: darkslategray;
    border: 2px solid darkslategray;
}

.main-page-flex-2 {
    background-color: white;
    padding-top: 2%;
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    align-self: center;
}

.main-page-h2-texts {
    align-self: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 85%
}

.main-page-flex-2 p {
    width: 80%; /* Adjust the width to your preference */
    margin-left: 40px; /* Center paragraphs and add vertical space */
    text-align: left; /* Align text to the left for readability */
    font-size: x-large;
    font-family: Quicksand;

}

.main-page-h2-texts h2 {
    text-align: left; /* Align H2s to the left */
    width: 80%; /* Adjust width if needed */
    margin: auto 40px; /* Center horizontally and add vertical spacing */
    font-weight: 500;
    font-family: Quicksand;
    font-size: xx-large;
}

.main-page-flex-3 {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack heading on top */
    align-items: center; /* Center items horizontally */
    margin-top: 20px; /* Optional: add some space above */
}

.main-page-flex-3 b {
    width: 70%; /* Full width for the heading */
    text-align: left; /* Center the text */
    font-family: Martel; /* Use the same font as the h1 */
    font-size: 40px;
    margin-bottom: 5px; /* Reduced space below the heading */
}

.image-container {
    display: flex; /* Set this container to flex */
    justify-content: space-between; /* Space out the images */
    width: 72%; /* Full width */
    flex-wrap: wrap; /* Allow wrapping to the next line if needed */
}

.main-page-flex-3 img {
    width: calc(33.33% - 20px); /* Set width for images, adjust for spacing */
    max-width: 550px; /* Increase max width for larger images */
    margin: 10px; /* Add margin for spacing between images */
    height: auto; /* Maintain aspect ratio */
}

.main-page-flex-4 {
    padding-top: 5%;
    display: flex;
    flex-direction: column;
    align-self: center;
}

.more-main-page-flex {
    display: flex; /* Use flexbox for layout */
    align-items: flex-start; /* Align items at the top */
    justify-content: space-between; /* Space out items evenly */
    padding: 0 20px; /* Add some padding to the sides */
}

.more-main-page-item {
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow items to grow equally */
    margin: 0 70px; /* Add some space between items */
    padding: 0 20px;
}

.more-main-page-item h2 {
    margin: 5px 0; /* Reduced margin for H2 */
    font-weight: 500;
    font-family: Quicksand;
    font-size: xx-large;
}

.more-main-page-item p {
    margin: 5px 0; /* Reduced vertical margin for paragraphs */
    line-height: 1.4; /* Adjust line height for better compactness */
    font-size: x-large;
    font-family: Quicksand;
}

.main-page-flex-5 {
    z-index: -2;
    background-color: antiquewhite;
    padding-top: 10%;
    padding-bottom: 27%;
    align-self: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center the text */
}

.main-page-flex-5 strong {
    width: auto; /* Change width to auto to avoid unnecessary constraints */
    font-size: 60px;
    color: darkslategray;
    font-family: Martel;
}

.flower-logo-2 {
    position: absolute;
    z-index: -1;
    right: 0%;
    width: 30%;
}

.flower-logo-3 {
    position: absolute;
    z-index: -1;
    right: 80%;
    width: 25%;
    top: -5%;
}

/* Main Flex Container for Section 6 */
.main-page-flex-6 {
    padding-top: 2.5%;
    padding-bottom: 2.5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    font-size: 24px;
    text-align: left;
}

.header-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.bottom-h2 {
    font-family: Karla;
    font-weight: 700;
    white-space: nowrap;
}

.bottom-h2:last-child {
    padding-right: 250px;
}

.info-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 50px;
    width: 100%;
}

.opening-times {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
}

.opening-times h2 {
    margin-bottom: 10px;
}

.opening-times, .contact {
    flex: 1;
    font-family: Quicksand;
    font-size: 20px;
}

.date-columns-container {
    display: flex; /* This allows the columns to sit side by side */
}

.date-column {
    margin-right: 5%;
}


.date-and-time {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 10px;
    line-height: 1.8;
}

.date-and-time p, .contact p {
    margin: 0;
    line-height: 1.8;
    font-size: x-large;
}

/* Media query for mobile devices */


/* Media query for large mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .main-page-flex-1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 5%;
        margin-top: 2%;
    }

    .personal-foto-1 {
        position: static; /* Remove absolute positioning */
        width: 80%; /* Adjust width to make it responsive */
        height: auto; /* Maintain aspect ratio */
        margin-top: 20px; /* Add some space from the previous elements */
        order: 2; /* Make sure it comes below the main spans */
    }

    .main-page-h1 {
        width: 100%; /* Make heading full width */
        max-width: 90%; /* Limit maximum width to prevent overflow */
        text-align: center; /* Center align the heading */
        padding-right: 5%; /* Add right padding */
        margin-right: 5%; /* Add right margin */
        font-size: 24px; /* Adjust font size for smaller screens */
    }

    .main-page-span {
        width: 100%; /* Full width for better alignment on mobile */
        font-size: 18px;
        text-align: left;
        padding-left: 10%;
        padding-right: 5%; /* Add some padding */
        margin-right: 5%; /* Add some margin */
    }


    .main-page-buttons {
        padding-right: 5%; /* Add right padding to buttons */
        justify-content: center; /* Center buttons */
        margin-top: 20px; /* Add space above buttons */
        margin-right: 5%; /* Add right margin */
    }

    .intake-button, .methodiek-button {
        width: auto; /* Adjust button width */
        padding: 10px 15px; /* Set consistent padding */
        font-size: 16px; /* Adjust font size */
        margin: 0 5px; /* Space between buttons */
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    .more-main-page-flex {
        display: flex; /* Set flex display */
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items */
        width: 100%; /* Full width */
        padding: 0 10px; /* Optional: Add some horizontal padding */
        box-sizing: border-box; /* Include padding in width calculations */
    }

    .more-main-page-item {
        max-width: 100%; /* Set to 100% to prevent overflow */
        width: 100%; /* Make items take up most of the width */
        margin: 10px 0; /* Center items with vertical margins */
        padding: 10px; /* Add some padding inside the item */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for depth */
        border-radius: 5px; /* Optional: Rounded corners */
        background-color: #fff; /* Optional: Background color */
    }

    .more-main-page-item h2 {
        font-size: 22px; /* Adjust font size for headings */
        margin-bottom: 5px; /* Space between heading and paragraph */
    }

    .more-main-page-item p {
        font-size: 16px; /* Adjust font size for paragraphs */
        text-align: justify; /* Justify text for better readability */
    }

    .flower-logo-1 {
        visibility: hidden;
        position: absolute;
        z-index: -1;
        width: 0%;
        top: 0%;
    }
}

@media (max-width: 768px) { /* You can adjust this breakpoint as needed */
    .main-page-h2-texts {
        flex-direction: column; /* Stack all pairs vertically */
        align-items: center; /* Center items horizontally */
        width: 100%; /* Make full width for better alignment */
    }

    .text-pair {
        width: auto; /* Reset width to auto for full width */
        margin: 10px 0; /* Space between stacked pairs */
        padding-left: 5%;
        text-align: left;
    }

    .text-pair p {
        text-align: left;
        font-size: 20px;
    }

    .main-page-h2-texts h2, .main-page-flex-2 p {
        text-align: left; /* Center align text for mobile */
    }
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) { /* Adjust the breakpoint as needed */
    .image-container {
        display: flex; /* Ensure flex display */
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images */
    }

    .main-page-flex-3 img {
        width: 100%; /* Full width for images on mobile */
        max-width: none; /* Remove max-width constraint on mobile */
        margin: 5px 0; /* Space between stacked images */
    }
}

@media (max-width: 768px) {
    .main-page-flex-6 {
        width: 90%;
        padding-top: 5%;
        font-size: 18px; /* Smaller font size for better readability */
    }

    .header-container {
        flex-direction: column; /* Stack headers on top of each other */
        align-items: flex-start;
    }

    .bottom-h2 {
        font-size: 24px; /* Adjust header size */
        padding-right: 0; /* Remove right padding */
    }

    .info-columns {
        flex-direction: column; /* Stack columns vertically */
        row-gap: 20px; /* Add space between rows */
    }

    .opening-times, .contact {
        width: 100%; /* Full width for each section */
    }

    .date-column {
        margin-bottom: 15px; /* Increase space between date columns */
    }

    .date-and-time p, .contact p {
        font-size: large; /* Slightly smaller font size for better fit */
    }
}

@media (max-width: 768px) { /* Adjust the max-width as needed */
    .info-columns {
        flex-direction: column; /* Stack elements vertically */
    }

    .opening-times,
    .contact {
        width: 100%; /* Make sure they take full width */
    }

    .date-columns-container {
        flex-direction: column; /* Stack date columns vertically */
        gap: 10px; /* Optional: space between date entries */
    }

    .date-column {
        margin-right: 0; /* Remove right margin for stacked view */
    }
}
