body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #c3c9cd;
}
     h1 {
    position:fixed;
    display:top;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 10vh;
    max-height: 10vh; /* toegevoegd */
    margin: 0;
    animation: scaleTitle 10s infinite alternate ease-in-out;
    z-index: 1;
    overflow:hidden; /* toegevoegd */
}


@keyframes rotateWheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes titleAnimation {
    0% { color: white; transform: rotate(0deg); }
    50% { color: rgb(93, 99, 100); }
    100% { color: lightblue; transform: rotate(360deg); }
}
@keyframes scaleTitle {
    0% { font-size: 1.5rem; opacity: 1; }
    50% { font-size: 4rem; opacity: 0; }
    100% { font-size: 2rem; opacity: 1; }
}



.wheel-container {
    position:relative;
    width: 70vmin;  /* Responsive */
    height: 70vmin; /* Responsive */
    
    
}
.wheel-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 10px 20px 30px rgba(101, 107, 109, 0.9);
}
.wheel {
    position:absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#9aa0a9, #5f6670, #3e434b, #9aa0a9);
   
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate 30s linear infinite;

    box-shadow: 10px 20px 30px rgba(101, 107, 109, 0.9);
}

.slice {
    position: absolute;
    width: 12vmin;  /* Responsive */
    height: 12vmin; /* Responsive */
    background: #8a8d8f;
    color: white;
    text-align: center;
    line-height: 12vmin;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    font-size: 6vmin;
	min-width: 50px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
   
    transform-origin: center center;
    border-radius: 50px;
box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.9);
z-index: 1;
animation: fadeInfoButton 6s infinite alternate ease-in-out;
}


@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.slice span {
    display: inline-block;
    animation: rotateText 30s linear infinite;
}

.slice span {
   
    transition: color 1s ease-in-out;
    animation: titleAnimation 6s infinite alternate ease-in-out;
}

@keyframes rotateWheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

 /* Plaats de slices aan de binnenrand van de cirkel */
 .slice:nth-child(1) { transform: rotate(0deg) translate(33vmin) rotate(0deg); }
 .slice:nth-child(2) { transform: rotate(45deg) translate(33vmin) rotate(-45deg); }
 .slice:nth-child(3) { transform: rotate(90deg) translate(33vmin) rotate(-90deg); }
 .slice:nth-child(4) { transform: rotate(135deg) translate(33vmin) rotate(-135deg); }
 .slice:nth-child(5) { transform: rotate(180deg) translate(33vmin) rotate(-180deg); }
 .slice:nth-child(6) { transform: rotate(225deg) translate(33vmin) rotate(-225deg); }
 .slice:nth-child(7) { transform: rotate(270deg) translate(33vmin) rotate(-270deg); }
 .slice:nth-child(8) { transform: rotate(315deg) translate(33vmin) rotate(-315deg); }
 /* Animatie voor het draaien */
 @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Hover effect */
.slice:hover {
    background: #0056b3;
}

.popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 97vw;
            height: 97vh;
            background-color: #bcc1c4;  
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: transform 2s ease-out, opacity 2s ease-out;
           
            z-index: 1;
        }

        .popup img {
            max-width: 90%;
            max-height: 90%;
        }
        .popup {
            display: flex;
            flex-direction: column; /* Stapel de elementen verticaal */
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        
       
        
        .popup.active {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        
        .close-btn {
            position: absolute;
            top: 10px;
            left: 10px;
            background: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            font-size: 16px;
            border-radius: 30px;
        }
        #popup-text {
            color: #444; /* Donkergrijs */
            font-weight: bold;
            text-decoration: none; /* Geen onderstreping */
            text-align: center;
            margin-top: 10px;
            font-size: 18px;
            cursor: pointer;
            display: block; /* Zorgt ervoor dat het op een nieuwe regel staat */
        }

/* Extra schaalbaarheid voor kleine schermen */
@media (max-width: 600px) {
    .slice {
        width: 10vmin;
        height: 10vmin;
        line-height: 10vmin;
        font-size: 4vmin;
    }
    @keyframes scaleTitle {
        0% { font-size: 0.5rem; opacity: 1; }
        50% { font-size: 2.5rem; opacity: 0; }
        100% { font-size: 1.2rem; opacity: 1; }
        }
        .close-btn {
            position: absolute;
            top: 5px;
            left: 5px;
            background: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            font-size: 10px;
            border-radius: 30px;
        }
    
}

    .bottom-container {
        position:absolute;
        bottom: 20px; /* Afstand vanaf de onderkant */
        
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    
    .home-link {
        margin-bottom: 10px; /* Ruimte tussen HOME en de footer */
    }
    
    .home-link a {
        font-size: 1.5rem;
        font-weight: bold;
        color: #3b404d;
        text-decoration: none;
    }
    
    .home-link a:hover {
        text-decoration: underline;
    }
    
    footer {
        font-size: 0.7rem;
        color: #363434;
    }
    
    .home-link a {
        font-size: 1.5rem;
        font-weight: bold;
        color: #3b404d;
        text-decoration: none;
    }
    
    .home-link a:hover {
        text-decoration: underline;
    }

    .popup p {
        color: blue;
        text-decoration: underline;
        cursor: pointer;
        margin-top: 10px;
    }
    
    #website-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        width: 97vw;
        height: 97vh;
        background-color: #bcc1c4;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
        z-index: 2;
        flex-direction: column;
    }
    
    #popup-iframe {
        width: 95vw;
        height: 85vh;
    }
    