/* Matrix Pop-up Styles */
/* Initial state: hide page, show popup */
body.matrix-initial-load #page {
    display: none;
}
body.matrix-initial-load .matrix-popup-overlay {
    display: flex;
}

.matrix-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(32, 33, 36);
    display: none; /* Hidden by default, will be overridden by body.matrix-initial-load */
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

.matrix-popup-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.matrix-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    text-align: center;
}

.matrix-text {
    color: rgb(154, 160, 166); /* Lighter text color */
    font-family: 'monospace', sans-serif;
    font-size: 2vw; /* Responsive font size, made smaller */
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    background: transparent;
    padding: 0 1em;
    opacity: 0.5; /* Made fader as requested */
    direction: ltr;
    text-align: center;
}

.matrix-text.final-form {
    position: relative;
    color: #009900; /* Matrix Green */
    text-shadow: 0 0 5px rgba(0, 153, 0, 0.8), 0 0 25px rgba(0, 153, 0, 0.4); /* Re-added static glow with Matrix Green */
    opacity: 1; /* Ensure full opacity */
}


.matrix-text .cursor {
    display: inline-block;
    width: 0.4em; /* Narrower for a rectangle shape */
    height: 1em; /* Adjusted height */
    background-color: rgba(0, 255, 0, 0.6); /* Green with transparency */
    animation: blink 0.5s step-end infinite; /* Made faster as requested */
    vertical-align: middle;
    line-height: 1;
    position: relative;
    z-index: 1;
    border: none;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.6), 0 0 10px rgba(0, 255, 0, 0.6), 0 0 15px rgba(0, 255, 0, 0.6);
}

.matrix-text .cursor.typing {
    /* No change needed */
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Removed flicker animation as requested */