body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction:column;
    align-items: center;
    text-align: center;
    background-color: #e0e0e0;
    background: linear-gradient(250deg, #eae8e2, #2e3a43);
    height: 100vh;
    justify-content:stretch;
}

h1 {
    font-size: 4rem;
    color: #80838a;
    margin-bottom: 20px;
}
h2 {
    font-size: 4rem;
    color: #3b404d;
    margin-bottom: 20px;
    display: inline-block;
    animation: trillen 0.8s infinite linear;
}

.container {
    position:absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 800px;
    flex-wrap: wrap;
    top: 40%; /* Verticaal centreren */
  
}

.button {
    width: 20vw;
    height: 20vw;
    max-width: 150px;
    max-height: 150px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
    z-index: 2;
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: scale(1.3);
}

.blue-button {
    background-color: blue;
}

.red-button {
    background-color: red;
}

.image-container {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
   
    display: flex;
    justify-content: center;
}

.image-container img {
    width: 30vw;
    max-width: 400px;
    min-width: 150px;
    height: auto;
    animation: moveAndRotate 6s infinite alternate ease-in-out;
    border-radius: 5%;
}

@keyframes moveAndRotate {
    0% { transform: translateX(0px) rotate(0deg); }
    10% { transform: translateX(0px) rotate(0deg); }
    50% { transform: translateX(-300px) rotate(180deg); }
    100% { transform: translateX(300px) rotate(360deg); }
}

@keyframes trillen {
    0% { transform: translateX(0); }
    25% { transform: translateX(-40px); }
    50% { transform: translateX(40px); }
    75% { transform: translateX(-40px); }
    100% { transform: translateX(0); }
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: white;
    box-shadow: 8px 3px 30px rgba(0, 0, 0, 10);
    z-index: 1000;
    border-radius: 10px;
    overflow: hidden;
}

.popup-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.popup iframe {
    flex-grow: 1;
    border: none;
    width: 100%;
    height: 100%;
}

.close {
    padding: 10px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-size: 1rem;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999;
}
footer {

color: white;
text-align: center;
padding: 10px;
font-size: xx-small;
width: 100%;
}
@media (max-width: 400px) {
       
        .image-container {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    display: flex;
    justify-content: center;
    
}
h2 {
    font-size: 2rem;
    color: #3b404d;
    margin-bottom: 20px;
    display: inline-block;
    animation: trillen 2s infinite linear;
}
@keyframes trillen {
    0% { transform: translateX(0); }
    25% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
    75% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}
h1 {
    font-size: 2rem;
    color: #80838a;
    margin-bottom: 20px;
}
.container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 400px;
    flex-wrap: wrap;
    top: 20%; /* Verticaal centreren */
}
@keyframes moveAndRotate {
    0% { transform: translateX(0px) rotate(0deg); }
    10% { transform: translateX(0px) rotate(0deg); }
    50% { transform: translateX(-100px) rotate(180deg); }
    100% { transform: translateX(100px) rotate(360deg); }
}
}

footer {

    color: white;
    text-align: center;
    padding: 10px;
    font-size: xx-small;
    width: 100%;
    }
    
    .bottom-container {
        position:absolute;
        bottom: 20px; /* Afstand vanaf de onderkant */
        
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        z-index: 1000;
    }
    
    .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;
    }


       
  