* {
    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;
	padding:90px 0;
}

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 {

	display:flex;
	align-items: center;
}

.logo img {
    height: 84px;
	display: block;
	width: auto;
}


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

.header-text span:not(.start):nth-child(odd){
    color: rgba(53, 110, 164, 0.8);
}

.header-text span:not(.start):nth-child(even){
    color: rgba(242, 212, 52, 0.8); 
}


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 25s 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;
	color:#AAA;
}

main {
	flex: 1;
	min-height: 0;
	margin:0;
	overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    background-color: #111;

}

.content {
    max-width: 1200px;
	height: 100%;
    text-align: center;
    padding: 0.5rem;
    background: url("https://portfolio.ballpinnetje.nl/Ingo17.png") no-repeat center center fixed;
    border: 5px solid #DDD;
    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 */
}


a:hover {
    color: #FFF;
    /* Houd de kleur gelijk aan de normale tekstkleur */
}
     #blog-container {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            position: relative;
            margin: 0 auto;
            padding: 15px;
            padding-top: 15px; /* Houd rekening met de vaste headerhoogte */
            max-width: 1000px;
            background: rgba(0, 0, 0, 0.8);
            opacity: 0.81;
            border-radius: 5px;
            font-size: 19px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            overflow-y: auto;
            height: calc(100vh - 205px);
            /* Dynamische hoogte: header 90px + footer 90px */
            box-sizing: border-box;
        }

        .blog {
            margin-bottom: 5px;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background: #969DB0;
			text-align: left;
            opacity: 0.8;
            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: #7C8394;
        color: #000;
		font-weight:bold;
        border: none;
         border-radius: 5px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }


/* Laptop met beperkte schermhoogte, bijvoorbeeld 1366 × 768 */

@media (min-width: 1000px) and (max-width: 1400px) and (max-height: 850px) {

    header {
        height: 90px;
    }
    .logo img {
        height: 90px;
    }
    .header-text {
        font-size: 3.0rem;
    }
    .header-text .start {
        font-size: 1.4rem;
        margin-left: 20px;
    }
    footer {
        height: 90px;
	
    }
    .content {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .tma-container {
        gap: 10px;
    }

    .content-section {

        height: 205px;
    }
    .content-section img {
        width: 85px;
        height: 85px;
    }
	main {
		margin: 30px 0 25px 0;
	}

}

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

    body {
        padding: 55px 0 50px;
    }
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 55px;
        z-index: 1000;
    }
    footer {
        height: 50px;
        color: #AAA;
    }
    main {
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
        overflow: hidden;
        align-items: stretch;
    }
    .content {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
    }
    #blog-container {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .blog {
        width: 100%;
        margin: 0 0 10px;
        padding: 10px;
        box-sizing: border-box;
        font-size: 19px;
    }
    .blog h2 {
        margin: 0 0 8px;
        font-size: 1.85rem;
        line-height: 1.1;
    }
    .blog p {
        margin: 6px 0;
        line-height: 1.25;
    }
    .logo img {
        height: 56px;
    }
    .header-text {
        flex: 1;
        text-align: center;
        font-size: 2.2rem;
        font-weight: bold;
        white-space: nowrap;
    }
    .header-text span:not(.start):nth-child(odd) {
        color: rgba(53, 110, 164, 0.8);
    }
    .header-text span:not(.start):nth-child(even) {
        color: rgba(242, 212, 52, 0.8);
    }
    .header-text .start {
        display: inline-block;
        margin-left: 10px;
        font-size: 1rem;
        color: #AAA;
    }
    .themes-container {
        grid-template-columns: 1fr 1fr;
    }
    .tma {
        flex: 1 1 calc(50% - 2rem);
    }
}

@media screen and (max-width: 480px) {
    main {
        padding: 4px;
    }
    .content {
        padding: 3px;
    }
    #blog-container {
        padding: 3px;
    }
    .blog {
        margin-bottom: 8px;
        padding: 5px;
        font-size: 23px;
		opacity: 0.87;
		text-align:left;
    }
    .blog h2 {
        font-size: 1.6rem;
    }
    .header-text {
        font-size: 2.2rem;
    }
}
@media screen and (max-width: 300px) {
    .tma {
        flex: 1 1 100%;
    }
    .blog h2 {
        font-size: 1.15rem;
    }
}

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

    header {
        height: 55px;
    }
    .header-content {
        height: 55px;
        display: flex;
        align-items: center;          /* verticaal midden */
        justify-content: flex-start;  /* links uitgelijnd */
        padding: 0 0 0 12px;
        box-sizing: border-box;

    }

    .logo {
        display: flex;
        align-items: center;
        height: 55px;
        margin: 0;
        padding: 0;
    }

    .logo img {
        display: block;
        height: 53px;
        width: auto;
        margin: 0;
    }
}


