/* Basis stijlen voor alle apparaten */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    background-color: #e1b4a7;
    color: #333;
    line-height: 1.6;
    font-size: 1rem; 
}

header {
    background: #731E39;
    padding: 1rem 0; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5%; 
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    margin-right: 0;
}

.logo img {
    height: 6rem; 
    width: auto;
    max-height: 120px; 
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem; 
    width: 100%;
}

nav ul li {
    flex: 1;
    min-width: 7.5rem; 
    text-align: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem; 
    border-radius: 0.375rem; 
    display: block;
    transition: background 0.3s;
    font-size: 0.9rem;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
}

.banner {
    height: 25vh; 
    min-height: 150px; 
    max-height: 300px; 
    width: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section {
    max-width: 95%;
    margin: 2rem auto; 
    padding: 1.5rem; 
    background: rgb(250, 231, 231);
    border-radius: 0.625rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

section h2 {
    color: #731E39;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Knoppen */
.button {
    display: inline-block;
    background-color: #731E39;
    color: white;
    padding: 0.75rem 1.5rem; 
    border-radius: 0.375rem; 
    text-decoration: none;
    margin-top: 1rem; 
    transition: background 0.3s;
    font-size: 0.9rem;
}

.button:hover {
    background-color: #6f1977;
}

/* Footer */
footer {
    background: #731E39;
    color: white;
    text-align: center;
    padding: 1.5rem 5%; 
    margin-top: 3rem; 
    font-size: 0.9rem;
}

footer img {
    height: 4rem; 
    width: auto;
    margin-bottom: 0.75rem; 
    max-height: 80px; 
}

/* Sterrenbeelden sectie */
.sterrenbeelden-section {
    max-width: 95%;
    margin: 2rem auto;
    padding: 1.5rem; 
    background: rgb(250, 231, 231);
    border-radius: 0.625rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sterrenbeelden-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; 
    margin-top: 1.5rem;
}

.sterrenbeeld {
    background: linear-gradient(135deg, #cf6932, #681457);
    color: white;
    padding: 1.5rem; 
    border-radius: 0.5rem; 
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sterrenbeeld:hover {
    transform: translateY(-0.3125rem); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.sterrenbeeld h3 {
    margin: 0;
    font-size: 1.1rem;
}

.sterrenbeeld p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.sterrenbeeld-details {
    display: none;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    border-left: 0.25rem solid #814f17; 
    grid-column: 1 / -1;
}

.sterrenbeeld-details h3 {
    color: #2c3e50;
    margin-top: 0;
}

.sterrenbeeld-details.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Over mij sectie */
#profiel {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 0.625rem;
}

#wiebenik {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; 
    max-width: 95%;
    margin: 2rem auto;
}

#wiebenik img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 0.625rem;
}

#wiebenik .tekst {
    flex: 1;
    width: 100%;
}


@media (max-width: 47.9375rem) { /* 767px en kleiner */
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    footer img {
        height: 4rem;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        margin: 0;
    }
     .banner {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Media query voor tablets (768px en groter) */
@media (min-width: 48rem) { /* 768px = 48rem */
    nav {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    
    .logo {
        margin-right: 2rem;
    }
    
    nav ul {
        margin-top: 0;
        width: auto;
        justify-content: flex-start;
    }
    
    .banner {
        height: 30vh; /* Meer viewport height op tablet */
        min-height: 180px;
    }
    
    section {
        max-width: 90%;
        padding: 2rem;
        margin: 2.5rem auto;
    }
    
    .sterrenbeelden-section {
        max-width: 90%;
        padding: 2rem;
        margin: 2.5rem auto;
    }
    
    .sterrenbeelden-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    #wiebenik {
        flex-direction: row-reverse;
        max-width: 90%;
        margin: 2.5rem auto;
        gap: 2rem;
    }
    
    #wiebenik img {
        margin-top: 0;
        flex: 0 0 40%; 
        max-width: 40%;
    }
    
    #wiebenik .tekst {
        flex: 1;
    }
}

/* Media query voor desktop (1024px en groter) */
@media (min-width: 64rem) { /* 1024px = 64rem */
    .logo img {
        height: 7rem;
    }
    
    .banner {
        height: 35vh;
        min-height: 220px;
    }
    
    section {
        max-width: 900px;
        margin: 3rem auto;
    }
    
    .sterrenbeelden-section {
        max-width: 900px;
        margin: 3rem auto;
    }
    
    .sterrenbeelden-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.25rem;
    }
    
    nav ul {
        gap: 1.25rem;
    }
    
    nav ul li {
        flex: none;
        min-width: auto;
    }
    
    #wiebenik {
        max-width: 900px;
        margin: 3rem auto;
    }
    
    #wiebenik img {
        flex: 0 0 30%; 
        max-width: 30%;
    }
    
    footer img {
        height: 6rem;
    }
}