
* {
    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: #555;
}

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 */
}

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: #222;
}

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

.tma-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
    max-width: none;
    margin: auto;
   
}

.tma {
    background-color: #777;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: clamp(0.2rem, 2vw, 0.2rem);
    text-align: center;
    width: calc(25% - 2rem);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Content secties */
.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    background: #b1b7b8;
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
    height: 240px; /* Zorgt ervoor dat alle blokken even groot zijn */
    overflow:hidden; /* zorgt dat de inhoud niet uitsteekt */ 
    
}

.section-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display:block; 
    margin:0 auto 10px;
}

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

img.clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(102, 191, 226, 0.767);
}

/* 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: 20px;
            padding-top: 90px; /* Houd rekening met de vaste headerhoogte */
            max-width: 1000px;
            background: rgba(0, 0, 0, 0.8);
            opacity: 0.8;
            border-radius: 5px;
            font-size: 19px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            overflow-y: auto;
            height: calc(100vh - 105px);
            /* Dynamische hoogte: header 90px + footer 90px */
            box-sizing: border-box;
        }

        .blog {
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background: #edf2f4;
            opacity: 0.9;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .blog h2 {
            margin: 0 0 10px;
        }

         #scroll-top {
            margin-top: auto;
            padding: 10px;
            text-align: center;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
         }

        #scroll-top button {
        padding: 10px 10px;
        font-size: 16px;
        background: gold;
        color: #000;
        border: none;
         border-radius: 5px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }


@media screen and (max-width: 768px) {
    .themes-container {
        grid-template-columns: 1fr 1fr;
        /* Twee kolommen op mobiel */
    }

    .tma {
        flex: 1 1 calc(50% - 2rem);
    }

    header,
    footer {
        height: 60px;
    }

    main {
        margin: 35px 0 40px 0;
        /* Ruimte vrijmaken voor de header en footer */
    }

    .logo img {
        height: 60px;
        /* Pas de grootte van het logo aan op mobiel */
    }

    .header-text {
        font-size: 1.3rem;
        /* Optioneel: pas ook de tekstgrootte aan */
    }
}

@media (max-width: 300px) {
    .tma {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 480px) {
    #blog-container {
        padding-top: 25px;
        /* Minder ruimte bovenaan op mobiel */
        height: calc(100vh - 110px);
        /* Hoogte aanpassen voor header (50px) en footer (60px) */
    }
}