@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --bg-color: #000000;
    --accent-color: #859A25;
    --text-color: #ffffff;
    --transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* No scroll on parent */
    background: var(--bg-color);
    font-family: 'Outfit', sans-serif;
}

#iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    /* Mask the overflow */
}

iframe {
    width: 100%;
    height: calc(100% + 55px);
    /* Increased offset to hide branding toolbar */
    border: none;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    /* Improve sharpness */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Premium Download Button Styles */
.download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.6);
    /* Darker background for better contrast */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: slideIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.download-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border-color: var(--accent-color);
}

.btn-icon {
    font-size: 1.2rem;
    line-height: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    iframe {
        height: calc(100% + 70px);
        /* Increased crop for mobile Canva toolbar */
    }

    .download-btn {
        bottom: 50px;
        /* Higher to avoid overlap with Canva progress */
        right: 50%;
        transform: translateX(50%);
        padding: 10px 20px;
        font-size: 0.85rem;
        width: max-content;
        animation: slideInMobile 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    .download-btn:hover {
        transform: translateX(50%) translateY(-5px) scale(1.05);
    }

    @keyframes slideInMobile {
        from {
            opacity: 0;
            transform: translateX(50%) translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateX(50%) translateY(0);
        }
    }
}