/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    height: 100vh;
    overflow: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
/* Page structure */
.display-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    position: relative;
}
/* Top and bottom bars shared styles */
.top-bar,
.bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #270047;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}
.top-bar {
    top: 0;
}
.bottom-bar {
    bottom: 0;
}
.top-bar h1 {
    color: white;
    font-size: 1.8rem;
    text-align: center;
}
.bottom-bar img {
    height: 40px;
    width: auto;
}
/* Message container and content - AANGEPAST VOOR VOLLEDIGE BREEDTE */
.message-container {
   flex: 1;
   display: flex;
   height: calc(100vh - 160px);
   justify-content: center;
   align-items: center;
   padding: 0;
   margin-top: 80px;
   margin-bottom: 60px;
   overflow: hidden;
   width: 100% !important; /* Volledige breedte */
   max-width: 100% !important;
   background-color: #ffffff;
}
.message {
   width: 100% !important; /* Volledige breedte */
   max-width: 100% !important;
   height: calc(100vh - 120px);
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: center;
   margin: 0;
   text-align: center;
   background-color: #ffffff;
}

/* Specifiek voor PDF containers */
.message.fade-in {
   position: relative; /* Voor positionering van pseudo-element */
   background-color: transparent !important; /* Maak container transparant */
}

/* Creëer een grotere witte achtergrond */
.message.fade-in::before {
   content: "";
   position: absolute;
   left: -50px; /* Uitbreiden naar links */
   right: -50px; /* Uitbreiden naar rechts */
   top: 0;
   bottom: 0;
   background-color: #ffffff;
   z-index: -1; /* Achter de inhoud plaatsen */
}

/* Media elements shared styles */
.message img,
.message video {
   width: 90%;
   height: 90%;
   object-fit: contain;
   margin: auto;
   padding: 0;
}
.message h2 {
   font-size: 2.5rem;
   margin-bottom: 1.5rem;
   color: #270047;
}
.message .content {
   padding: 20px;
   margin-top: -15px; /* Negatieve margin om tekst omhoog te halen */
   font-size: 25px;
   line-height: 1.8;
}
/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .top-bar,
    .bottom-bar {
        height: 40px;
    }
    
    .top-bar h1 {
        font-size: 1.5rem;
    }
    
    .bottom-bar img {
        height: 30px;
    }
    
    .message-container {
        padding: 60px 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .message h2 {
        font-size: 2rem;
    }
    
    .message .content {
        font-size: 1.1rem;
    }
}
@media (max-width: 480px) {
    .top-bar,
    .bottom-bar {
        height: 30px;
    }
    
    .top-bar h1 {
        font-size: 1.2rem;
    }
    
    .bottom-bar img {
        height: 20px;
    }
    
    .message h2 {
        font-size: 1.75rem;
    }
}

/* PDF container behouden zoals het is */
.pdf-container {
   position: relative;
   z-index: 1; /* Boven de witte achtergrond */
   background-color: #ffffff;
}

/* Bestaande CSS behouden */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    height: 100vh;
    overflow: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
/* Page structure */
.display-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    position: relative;
}
/* Top and bottom bars shared styles */
.top-bar,
.bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #270047;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}
.top-bar {
    top: 0;
}
.bottom-bar {
    bottom: 0;
}
.top-bar h1 {
    color: white;
    font-size: 1.8rem;
    text-align: center;
}
.bottom-bar img {
    height: 40px;
    width: auto;
}
/* Message container and content */
.message-container {
   flex: 1;
   display: flex;
   height: calc(100vh - 160px);
   justify-content: center;
   align-items: center;
   padding: 0;
   margin-top: 80px;
   margin-bottom: 60px;
   overflow: hidden;
   background-color: #ffffff;
}

/* NIEUWE CSS: Aanpassing voor de fade-in klasse en PDF container */
/* Maak de .message.fade-in smaller (80% van scherm) maar hou PDF groot */
.message.fade-in {
   width: 80% !important; /* Maak container smaller */
   margin: 0 auto !important; /* Center horizontaal */
   background-color: #ffffff !important;
}

/* Zorg dat de PDF container 100% van zijn parent inneemt */
.pdf-container {
   width: 100% !important;
   height: 100% !important;
   max-width: none !important;
   background-color: #ffffff !important;
}

/* Zorg dat de embed binnen de PDF container ook 100% is */
.pdf-container embed {
   width: 100% !important;
   height: 100% !important;
   transform: scale(1) !important; /* Verwijder eventuele schaling */
}

/* Originele CSS verder */
.message {
   width: 100%;
   height: calc(100vh - 120px);
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: center;
   margin: 0;
   text-align: center;
   background-color: #ffffff;
}
/* Media elements shared styles */
.message img,
.message video {
   width: 90%;
   height: 90%;
   object-fit: contain;
   margin: auto;
   padding: 0;
}
.message h2 {
   font-size: 2.5rem;
   margin-bottom: 1.5rem;
   color: #270047;
}
.message .content {
   padding: 20px;
   margin-top: -15px;
   font-size: 25px;
   line-height: 1.8;
}
/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .top-bar,
    .bottom-bar {
        height: 40px;
    }
    
    .top-bar h1 {
        font-size: 1.5rem;
    }
    
    .bottom-bar img {
        height: 30px;
    }
    
    .message-container {
        padding: 60px 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .message h2 {
        font-size: 2rem;
    }
    
    .message .content {
        font-size: 1.1rem;
    }
}
@media (max-width: 480px) {
    .top-bar,
    .bottom-bar {
        height: 30px;
    }
    
    .top-bar h1 {
        font-size: 1.2rem;
    }
    
    .bottom-bar img {
        height: 20px;
    }
    
    .message h2 {
        font-size: 1.75rem;
    }
}