#matrixRain {
    position: fixed;  /* Use fixed positioning to keep it in the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;  /* Keep it behind other content */
    pointer-events: none;
    overflow: hidden;  /* Prevent the page from growing */
}

.matrix-line {
    position: absolute;
    top: 0px;
    width: 100px;
    height: 100px;  /* Keep fixed height */
    font-family: monospace;
    font-size: 20px;
    opacity: 1;
    animation: rain 5s infinite linear;
}

@keyframes rain {
    0% {
        top: -100px;
        opacity: 1;  /* Set full visibility */
    }
    100% {
        top: 100%;  /* Ensures lines move out of view without affecting page size */
        opacity: 0;  /* Fade out at the end */
    }
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;  /* Ensure the body takes up full height */
    width: 100%;   /* Ensures viewport is fully utilized */
    overflow: auto; /* Allow scrolling */
}
