/* Interstitial styles - include these in your project */
.interstitial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.interstitial-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    height: 90%;
    max-height: 600px;
    background-color: #fff;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.interstitial-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    z-index: 10000;
    transition: all 0.2s ease;
}

.interstitial-close:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.interstitial-close:active {
    transform: scale(0.95);
}

.interstitial-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .interstitial-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .interstitial-close {
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
    }
}

/* Animation classes */
.interstitial-show {
    display: block !important;
}

.interstitial-visible {
    opacity: 1 !important;
}