* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: fixed;
}

.pdf-viewer {
    width: 100vw;
    height: 100vh;
    border: none;
    background: #000000;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    /* Ensure it doesn't exceed screen */
    max-width: 100%;
    max-height: 100%;
    /* Force hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.pdf-viewer-object {
    width: 100%;
    height: 100vh;
    /* Fit to width on mobile */
    object-fit: contain;
}

.pdf-viewer-iframe {
    width: 100vw;
    height: 100vh;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .pdf-viewer-object {
        width: 100%;
        height: 100%;
        /* Ensure it fits screen width */
        max-width: 100vw;
        overflow: hidden;
    }
    
    .pdf-viewer-iframe {
        width: 100%;
        height: 100%;
        /* Prevent any overflow on mobile */
        overflow: hidden;
    }
}
