body {
    background-color: #0d1117; /* Dark background */
    color: #00ff00; /* Retro green text */
    font-family: 'Courier New', Courier, monospace; /* Monospace for retro feel */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Prevent scrollbars */
    perspective: 1000px; /* For 3D transformations */
}

.container {
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.5); /* Glow effect */
    border: 5px solid #00ff00;
    padding: 20px;
    background-color: #1a1e23;
}

.monitor-frame {
    border: 10px solid #282c34;
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0, 255, 0, 0.3), 0 0 30px rgba(0, 255, 0, 0.5);
    padding: 20px;
    background-color: #000;
    transform: rotateX(5deg) rotateY(-5deg); /* Slight 3D tilt */
}

.screen {
    background-color: #0a0a0a;
    border: 2px solid #00ff00;
    padding: 30px;
    min-height: 400px;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.5);
    overflow: hidden; /* For glitch effect */
}

.email-header .label {
    color: #90ee90; /* Lighter green for labels */
    font-weight: bold;
}

.email-header .value {
    color: #00ff00;
}

.email-body {
    margin-top: 20px;
    border-top: 1px dashed #008000;
    padding-top: 20px;
}

.email-body p {
    line-height: 1.6;
    font-size: 1.1em;
}

.keyword {
    cursor: pointer;
    text-decoration: underline;
    color: #ff00ff; /* Magenta for keywords */
    transition: color 0.3s ease;
}

.keyword:hover {
    color: #ffff00; /* Yellow on hover */
    text-shadow: 0 0 5px #ffff00;
}

.footer-info {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px dashed #008000;
    padding-top: 15px;
    color: #90ee90;
}

.flicker-link {
    color: #00ffff; /* Cyan for links */
    text-decoration: none;
    animation: flicker-light 1.5s infinite alternate;
}

.flicker-link:hover {
    text-decoration: underline;
}

/* Flicker Effect */
@keyframes flicker-effect {
    0% { opacity: 1; }
    5% { opacity: 0.8; }
    10% { opacity: 1; }
    15% { opacity: 0.9; }
    20% { opacity: 1; }
    25% { opacity: 0.7; }
    30% { opacity: 1; }
    100% { opacity: 1; }
}

.flicker-effect {
    animation: flicker-effect 5s infinite step-end;
}

@keyframes flicker-light {
    0% { opacity: 1; text-shadow: none; }
    20% { opacity: 0.9; text-shadow: 0 0 2px #00ffff; }
    40% { opacity: 1; text-shadow: none; }
    60% { opacity: 0.8; text-shadow: 0 0 4px #00ffff; }
    80% { opacity: 1; text-shadow: none; }
    100% { opacity: 0.9; text-shadow: 0 0 2px #00ffff; }
}

/* Glitch Effect */
@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-effect {
    animation: glitch-effect 0.5s infinite alternate;
}

/* Popup Styles */
.info-popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #1a1e23;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    padding: 30px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: popup-appear 0.3s ease-out;
}

@keyframes popup-appear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-button {
    color: #ff00ff;
    font-size: 2em;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover {
    color: #ffff00;
}

.popup-content h3 {
    color: #00ffff;
    margin-top: 0;
    border-bottom: 1px dashed #008080;
    padding-bottom: 10px;
    animation: flicker-light 2s infinite alternate;
}

.popup-content p {
    color: #90ee90;
    line-height: 1.5;
}

#popup-additional-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #008080;
    font-size: 0.9em;
    color: #00ff00;
}