/* Algemene reset voor html en body */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;

    /* BELANGRIJK: Ruimte aan de onderkant voor de vaste bottom.jpeg */
    /* VERANDER DEZE WAARDE: Voer hier de GEMETEN hoogte van je bottom.jpeg in! */
    padding-bottom: 150px; /* Bijv. 120px als je bottom.jpeg 120px hoog is */
    /* padding-top is verwijderd zodat de content niet zakt */


    /* De body krijgt nu alleen een effen achtergrondkleur */
    background-color: #f4f4f4;
}

/* Wrapper voor alle content die een vaste breedte moet hebben en gecentreerd moet zijn */
.page-wrapper {
    width: 100%;
    max-width: 1036px;
    margin: 0 auto;
    
    background-image: url('repeat.jpg');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: transparent;
}

/* Sponsor tekst bovenaan de pagina */
.sponsor-text {
    position: static;
    width: 100%;
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1.1em;
    z-index: 1000;
    box-sizing: border-box;
    flex-shrink: 0;
}
.sponsor-text a {
    color: inherit;
    text-decoration: none;
}
.sponsor-text a:hover {
    text-decoration: underline;
}

/* Stijlen voor de banner afbeeldingen (top.jpg en bottom.jpeg) */
.banner-image {
    display: block;
    width: 100%;
    max-width: 1036px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    flex-shrink: 0;
}

.top-banner {
    margin-bottom: 0;
    /* Geen extra padding hier, de WhatsApp-knop zweeft eroverheen */
}

.bottom-banner {
    position: fixed;
    bottom: 0;
    
    left: 50%;
    transform: translateX(-50%);
    
    width: 100%;
    max-width: 1036px;
    z-index: 1000;
    background-color: #f4f4f4;
    flex-shrink: 0;
}

/* Hoofdcontent wrapper voor de dynamische pagina's (parturen, bedankt, etc.) */
.main-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Basisstijlen voor de verschillende 'pagina'-divs binnen de main-content-wrapper */
.page {
    display: none;
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;

    width: 90%;
    max-width: 600px;
    min-width: 300px;

    height: 100%;
    flex-grow: 1;
    max-height: unset;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;
    
    margin: 0 auto 10px auto;
}

/* Media query voor kleinere schermen (mobiel) */
@media (max-width: 768px) {
    .page {
        width: 90%;
        max-width: none;
        min-width: unset;

        height: 100%;
        max-height: unset;
        min-height: 0;
        padding: 15px;
        margin: 0 auto 10px auto;
    }
}

/* Zorgt dat de actieve pagina zichtbaar is */
.page.active {
    display: block;
}

h1 {
    color: #0056b3;
    margin-bottom: 30px;
}

/* Stijlen voor de partuur-selectie grid */
.partuur-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 auto;
}

.partuur-item, .kaatser-item {
    background-color: #e9ecef;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.partuur-item:hover, .kaatser-item:hover {
    background-color: #d0d6db;
}

.partuur-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #0056b3;
    font-size: 1em;
}

.partuur-item p {
    font-size: 0.85em;
    color: #555;
}

/* Stijlen voor de kaatser-lijst */
#kaatser-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
}

.kaatser-item span {
    font-weight: bold;
}

/* Algemene knopstijlen */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.back-to-start-style {
    background-color: #6c757d;
    margin-top: 10px;
}

.back-to-start-style:hover {
    background-color: #5a6268;
}

/* Stijlen voor de betaallink placeholder */
#betaallink-placeholder a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

#betaallink-placeholder a:hover {
    text-decoration: underline;
}

/* STIJLEN VOOR DE SPONSORLIJST MET LOGO'S OP DE BEDANKT-PAGINA */
.sponsor-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sponsor-list li {
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

.sponsor-list a {
    display: block;
    max-width: 250px;
    margin: 0 auto;
    text-decoration: none;
    line-height: 0;
}

.sponsor-list a img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-list a img:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Media query voor mobiele schermen specifiek voor de sponsorlijst */
@media (max-width: 768px) {
    .sponsor-list {
        gap: 15px;
    }
    .sponsor-list a {
        max-width: 200px;
    }
}

/* STIJLEN VOOR DE WHATSAPP KNOP */
.whatsapp-button {
    position: fixed; /* Zorgt dat de knop blijft staan bij scrollen */
    top: 20px; /* Afstand vanaf de bovenkant */
    left: 20px; /* Afstand vanaf de linkerkant */
    background-color: #25D366; /* WhatsApp groen */
    color: white;
    padding: 10px 15px;
    border-radius: 50px; /* Maakt de knop mooi rond */
    display: flex;
    align-items: center;
    gap: 8px; /* Ruimte tussen icoon en tekst */
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Zachte schaduw */
    z-index: 1001; /* Zorg dat het boven andere elementen ligt */
    transition: transform 0.2s ease-in-out, background-color 0.2s ease;
}

.whatsapp-button:hover {
    background-color: #1DA851; /* Iets donkerder groen bij hover */
    transform: translateY(-3px); /* Licht omhoog bewegen bij hover */
}

.whatsapp-button i {
    font-size: 1.5em; /* Grootte van het icoon */
}

/* Voor extra kleine schermen, bijv. als de knop te breed wordt */
@media (max-width: 480px) {
    .whatsapp-button {
        font-size: 0.9em;
        padding: 8px 12px;
        left: 10px; /* iets minder marge links */
        top: 10px; /* iets minder marge boven */
    }
    .whatsapp-button span {
        display: none; /* Verberg de tekst op zeer kleine schermen, alleen icoon */
    }
}