* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 165px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.header {
    padding: 20px;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
    max-width: 80px;
    margin-left: auto;
    margin-right: 0;
}

.social-icons img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    max-width: 200px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
}

.hero {
    position: relative;
    height: 400px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('static/hero.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 20px;
    color: black;
    margin-bottom: 0;
}

/*.hero {
    height: auto;
    min-height: 300px;
    padding: 100px 20px;
    margin-bottom: 0;
}
*/

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* White with 80% opacity */
    z-index: 1;
}

.hero * {
    position: relative;
    z-index: 2;
}

.hero button {
    margin: 0 25px; /* This adds 50px of total spacing between buttons */
}

.section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.green-bg {
    background-color: #79b977;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
}

.info-grid {
    align-items: stretch; /* Make both divs the same height */
    gap: 20px; /* Ensures spacing unless there's no room */
}

.info-text {
    background: white;
    padding: 20px;
    min-width: 300px; /* Prevents shrinking too much */
}

.button-regelement {
    text-align: right;
}

.info-image {
    display: flex;
    justify-content: flex-end; /* Aligns image to the right */
    align-items: center; /* Centers image vertically */
    max-width: 275px; /* Prevents image from getting too large */
}

.info-image img {
    width: 100%; /* Ensures it scales within its container */
    height: auto; /* Keeps aspect ratio */
    max-height: 100%; /* Matches height of .info-text */
    object-fit: contain; /* Prevents unwanted cropping */
}

.info-image img {
    max-width: 300px; /* Limits the image width */
    height: auto; /* Keeps aspect ratio */
    max-height: 100%; /* Ensures it doesn't exceed .info-text */
    object-fit: contain; /* Prevents unwanted cropping */
}

.form-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex: 2;  /* Takes up 2/3 of the space */
}

/* Create a new wrapper for the entire row */
.three-column-row {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Style for the left text column */
.info-text-column {
    flex: 1;  /* Takes up 1/3 of the space */
}

.hoofdsponsor {
    flex: 1;
}

.sponsors {
    flex: 1;
    text-align: center;
}

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

input, textarea, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

button {
    background: #00b4e5;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .info-grid, .form-container {
        flex-direction: column;
    }
    
    .social-icons {
        border-radius: 25px;
    }
}

.organisatie-text {
    flex-grow: 1; /* Expands to fill available space */
    background: white;
    padding: 20px;
}

.routes-section {
    background-color: #fff;
    padding: 40px 20px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.routes-section h3 {
    margin-bottom: 25px;
    color: #333;
}

.route-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

.route-group {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
    min-width: 280px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.route-group h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.route-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.route-btn {
    display: inline-block;
    background-color: #00b4e5;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.route-btn:hover {
    background-color: #0097c2;
    transform: translateY(-2px);
}

/* Add some margin to create space between routes and praktische-informatie */
#praktische-informatie {
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .routes-section {
        padding: 30px 15px;
    }
    
    .route-links-container {
        flex-direction: column;
        align-items: center;
    }
    
    .route-group {
        width: 90%;
        max-width: 350px;
    }
}