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

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #111;
}

header, footer {
    position: fixed;
    width: 100%;
    z-index: 10;
    background-color: #000;
    color: white;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    background-color: #000;
    color: white;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
padding: 0 1rem;
}

.logo img {
    height: 80px; /* Pas dit aan naar de gewenste hoogte */
    margin-right: auto; /* Logo blijft helemaal links */

}

.header-text {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight:bold;
    color:#fff;
}


header {
    top: 0;
    height: 90px; /* Vaste hoogte voor de header */
}


/* */ 


/* Stijlen voor announcement */
header .announcement {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    border-radius: 5px;
    overflow: hidden;
    /* Zorgt ervoor dat tekst netjes binnen blijft */
    position: relative;
}

/* Bewegende tekst in de announcement */
header .announcement .moving-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 18px;
    animation: scroll-text-right-left 65s linear infinite;
    /* Van links naar rechts */
    will-change: transform;
}

@keyframes scroll-text-right-left {
    from {
        transform: translateX(40%);
        /* Start buiten beeld, rechts */
    }

    to {
        transform: translateX(-100%);
        /* Eindigt buiten beeld, links */
    }
}


/*  */



footer {
    bottom: 0;
    height: 90px; /* Vaste hoogte voor de footer */
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    flex: 1;
    margin: 0;  /* Ruimte vrijmaken voor vaste header en footer */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    background-color: #111;
}

.content {
    max-width: 1200px;
    text-align: center;
    padding: 4px;
    background: url("https://gedichten.ballpinnetje.nl/gedicht.png") no-repeat center center fixed;
    border: 3px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Verwijder onderstreping van links */
a {
    text-decoration: none;
    /* Geen onderstreping */
    color: inherit;
    /* Neem de tekstkleur van de parent over */
}

/* Geen rode kleur bij hover */
a:hover {
    color: inherit;
    /* Houd de kleur gelijk aan de normale tekstkleur */
}
     #blog-container {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            position: relative;
            margin: auto;
            padding: 5px;
            padding-top: 90px; /* Houd rekening met de vaste headerhoogte */
            max-width: 1000px;
            background: hsl(225, 57%, 97%);
            opacity: 0.88;
            border-radius: 5px;
            font-size: 18px;
            box-shadow: 0 2px 5px rgba(200, 242, 242, 0.3);
            overflow-y: auto;
            height: calc(100vh - 105px);
            /* Dynamische hoogte: header 90px + footer 90px */
            box-sizing: border-box;
        }

       #carousel-container {
    height:auto;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3px;
    margin: auto;
    background-color: #333;
    gap: 10px;
    border-radius: 8px;
    overflow: auto;
	min-height:65vh;
}


/* Stijlen voor announcement */
header .announcement {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    text-align: center;
    font-size: 0.9em;
    border-radius: 5px;
    overflow: hidden;
    /* Zorgt ervoor dat tekst netjes binnen blijft */
    position: relative;
}

/* Bewegende tekst in de announcement */
header .announcement .moving-text a {
    color:#4da6FF;
    display: inline-block;
    white-space: nowrap;
    font-size: 18px;
    animation: scroll-text-right-left 90s linear infinite;
    /* Van links naar rechts */
    will-change: transform;
}

header .announcement .moving-text  {
    display: inline-block;
    white-space: nowrap;
    font-size: 18px;
    animation: scroll-text-right-left 90s linear infinite;
    /* Van links naar rechts */
    will-change: transform;
}


@keyframes scroll-text-right-left {
    from {
        transform: translateX(60%);
        /* Start buiten beeld, rechts */
    }

    to {
        transform: translateX(-100%);
        /* Eindigt buiten beeld, links */
    }
}

#carousel-content {
    width: 100%;
    height: 640px;
    background:#969DB0;
    background-size: cover;
    border: 2px solid #635E5A;
    border-radius: 10px;
    opacity: 0.9;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

#poem-title {
    margin: 0;
    padding: 10px 0;
    font-size: 28px;
    color: #FFF;
    text-align: center;
    background: rgba(0, 0, 0, 0.63);
    border-bottom: 2px solid rgb(84, 127, 184);
    flex-shrink: 0;
}

#poem-text {
    margin-top: 15px;
    padding: 15px;
    width: 100%;
    height: calc(100% - 60px);
    /* Titelruimte aftrekken */
    overflow-y: auto;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    text-align: center;
    color: #111;
}

#carousel-buttons {
    margin-top: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 10px;
    margin: auto;
    width: 100%;
}

#carousel-buttons button {
    padding: 10px 20px;
    background: #7c8394;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

#carousel-buttons button:hover {
    background: #000;
}


/* Hover-effecten */
.content-section:hover {
    background-color: #ffffff;
}


a {
    text-decoration: none;
    /* Geen onderstreping */
    color: inherit;
    /* Neem de tekstkleur van de parent over */
}

/* Geen rode kleur bij hover */
a:hover {
    color: #FFF;
    /* Houd de kleur gelijk aan de normale tekstkleur */

}

@media screen and (max-width:768px) {

    header {
        height: 50px !important;
        padding: 5px !important;
    }

.header-text {
    
    color:#DB5F58;
}
	
    footer {
        height: 50px !important;
        padding: 5px !important;
		color:#DB5F58;
    }
    .logo img {
        height: 55px !important;
    }
    .header-text {
        font-size: 22px !important;
    }
    main {
        margin-top: 55px !important;
        margin-bottom: 55px !important;
    }
    #carousel-container {
        padding: 3px !important;
        min-height: auto !important;
		background-color:#AAA;
    }
    #carousel-content {
        height: auto !important;
        min-height: 500px !important;
        padding: 4px !important;
    }
#poem-title {
        font-size: 24px !important;
        padding: 8px !important;
    }
    #poem-text {
        font-size: 16px !important;
        line-height: 28px !important;
        padding: 8px !important;
    }
    #carousel-buttons button {
        font-size: 16px !important;
        padding: 8px 12px !important;
    }

	#blog-container {
		padding-top:  1px !important;
	}
}

    #prev::before {
        content: "« ";
    }

    #next::after {
        content: " »";
    }
