/* 1. The Blackout Overlay (Used for PrtScn) */
#protection-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2147483647; /* Max Z-Index */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* 2. The Content inside the blackout */
.lock-content {
    color: #ff3333;
    text-align: center;
    font-family: 'Courier New', monospace;
    background: #111;
    padding: 30px;
    border: 2px solid #ff3333;
    border-radius: 10px;
}

.lock-content button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #ff3333;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* 3. PRINT PREVIEW FIX (The "Ctrl+P" Hack) */
@media print {
    body > * {
        display: none !important; /* Hide EVERYTHING in the body */
    }
    
    /* Reveal ONLY the protection overlay */
    #protection-overlay {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white; /* Save ink */
        color: black;
        z-index: 9999999;
    }
    
    /* Hide the button when printing */
    .lock-content button {
        display: none;
    }
}
