:root {
    --bsod-blue: #0078d7;
    --text-white: #ffffff;
    --font-family: "Segoe UI", "Tahoma", "Geneva", "Verdana", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide cursor for immersion */
}

body,
html {
    width: 100%;
    height: 100%;
    background-color: #e6e6e6;
    /* Fallback */
    background-image: url('microsoft_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
    font-family: var(--font-family);
    overflow: hidden;
    /* Prevent scrollbars */
    user-select: none;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.bsod-container {
    display: none;
    /* Hidden until interaction */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10% 12%;
    height: 100%;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sad-face {
    font-size: 120px;
    margin-bottom: 30px;
    line-height: 1;
}

.primary-text {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 300;
    max-width: 900px;
    margin-bottom: 40px;
}

.percentage-container {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 50px;
}

.footer {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.qr-code {
    width: 100px;
    height: 100px;
    background-color: var(--text-white);
    padding: 5px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.footer-info {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 500px;
}

.footer-info p {
    margin-bottom: 8px;
}

.stop-code {
    margin-top: 15px;
    font-weight: 600;
}

/* Premium micro-animations */
.percentage-counter::after {
    content: "% complete";
}

/* Glassmorphism effect for the content (optional, added for "premium" feel) */
.bsod-container {
    background: radial-gradient(circle at center, rgba(0, 120, 215, 1) 0%, rgba(0, 100, 180, 1) 100%);
}

[data-fullscreen-active] {
    cursor: none !important;
}

body[data-popup-active] {
    cursor: default !important;
}

/* Windows Defender Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    /* Shown by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.defender-popup {
    width: 520px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-family: "Segoe UI", sans-serif;
    color: #333;
    overflow: hidden;
    animation: popupScale 0.2s ease-out;
    cursor: default;
    /* Show cursor for popup interaction */
}

@keyframes popupScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-header {
    background: #f9f9f9;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.defender-logo {
    width: 16px;
    height: 16px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/e/e0/Windows_Defender_logo.svg') no-repeat center;
    background-size: contain;
}

.activate-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
}

.popup-body {
    background: #004a8e;
    color: white;
    padding: 25px;
    position: relative;
}

.scanner-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 300;
}

.scanner-icon {
    width: 20px;
    height: 20px;
}

.main-threat {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 20px;
}

.threat-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.95;
    max-width: 350px;
}

.more-info {
    color: white;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
}

.warning-icon-large {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.8;
}

.popup-footer {
    background: #333d47;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 60px;
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #ccc;
}

.footer-icon i {
    font-size: 20px;
}

.close-x {
    font-size: 18px;
    color: #666;
    cursor: pointer;
}