/**
 * Popup Banner Frontend Styles
 */

#popup-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: -100px; /* Start hidden above the viewport */
    width: 100%;
    background-color: #021D3D;
    color: #FFFFFF;
    z-index: 1000;
    padding: 10px 0;
    transition: top 0.5s ease-in-out; /* Sliding animation */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#popup-content {
    text-align: center;
    margin: 0 20px; /* Reduce margins */
}

#popup-headline {
    font-family: Roboto, sans-serif;
    font-size: 28px; /* Reduced font size */
    font-weight: bold;
    margin: 0; /* Remove margins */
}

#popup-subheadline {
    font-family: Roboto, sans-serif;
    font-size: 18px; /* Reduced font size */
    font-weight: 400;
    margin: 5px 0 0 0; /* Reduce margins */
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 25px; /* Increase font size */
}

#close-popup:hover {
    opacity: 0.8;
}

@media (max-width: 640px) {
    #popup-banner p {
        font-size: 18px; /* Adjust font size for mobile */
    }
    
    #popup-headline {
        font-size: 22px;
    }
    
    #popup-subheadline {
        font-size: 16px;
    }
}

@keyframes slideIn {
    from {
        top: -100px;
    }
    to {
        top: 0;
    }
}

#popup-banner.slide-in {
    animation: slideIn 0.5s ease-in-out forwards;
}