:root {
    --primary-color: #000000;
    --secondary-color: url('./images/grachtengrondel.png');
    --text-color: #333;
    --white: #fff;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: var(--secondary-color);
    background-size: cover;
    background-position: center;
    color: var(--text-color);
}

header {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px; /* Adjust padding to make the header smaller */
    text-align: center;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    max-width: 150px; /* Adjust the max-width to control the logo size */
    height: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffdd57;
}

section {
    padding: 20px; /* Adjust padding to control the spacing inside the box */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8); /* White with 80% opacity */
    border-radius: 15px;
    margin: 20px auto; /* Center the section horizontally */
    max-width: 800px; /* Set a maximum width for the section */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

h2 {
    color: #333;
}

/* Styles for the slider */
.slider-container {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 33.33%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px; /* Add padding to create space between images */
}

.slide img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Ensure the entire image is visible */
    /* Remove border-radius to avoid rounded corners */
}

/* Styles for the contact section */
.contact-info {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-wrap: wrap;
}

.contact-info p {
    display: flex;
    align-items: center;
}

.contact-info img {
    margin-right: 10px; /* Adjust the spacing as needed */
}

.contact-image {
    max-width: 300px; /* Adjust the size as needed */
    margin-left: 20px; /* Adjust the spacing as needed */
}

/* Styles for the middle section */
.middle-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px auto;
    max-width: 1200px;
    flex-wrap: wrap;
}

.middle-item {
    text-align: center;
    flex: 1 1 100%;
    margin: 10px 0;
}

.middle-item img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s;
    margin: 0 10px; /* Add margin to create space between images */
}

.middle-item img:hover {
    transform: scale(1.05);
}

.middle-item h3 {
    margin-top: 10px;
    color: var(--text-color);
}

/* Styles for the service sections */
.service-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.8); /* White with 80% opacity */
    border-radius: 15px;
    margin: 20px auto; /* Center the section horizontally */
    max-width: 800px; /* Set a maximum width for the section */
    box-sizing: border-box; /* Ensure padding is included in the width */
    padding: 20px;
    flex-wrap: wrap;
}

.service-image {
    max-width: 150px;
    height: auto;
    border-radius: 15px;
    margin-right: 20px;
    flex: 1 1 100%;
}

.service-text {
    flex: 1 1 100%;
}

/* Styles for the form */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
}

form label {
    font-weight: bold;
}

form input[type="email"],
form input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

form button:hover {
    background-color: #333;
}

/* Media Queries for responsiveness */
@media (min-width: 768px) {
    .middle-item {
        flex: 1 1 30%;
    }

    .service-section {
        flex-wrap: nowrap;
    }

    .service-image {
        flex: 0 0 auto;
    }

    .service-text {
        flex: 1;
    }
}