/* Keyframes for glitchy flicker effect */
@keyframes glitch {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    20% {
        transform: scale(1.05) skewX(5deg);
        opacity: 0.9;
    }
    40% {
        transform: scale(0.95) skewX(-5deg);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.1) skewX(3deg);
        opacity: 0.9;
    }
    80% {
        transform: scale(0.98) skewX(-3deg);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Falling code animation */
@keyframes matrix-fall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200vh);
    }
}

/* Style for the title with green and glitch effects */
.matrix-title {
    font-size: 5em;
    font-weight: bold;
    color: #00ff00; /* Matrix green */
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
    animation: glitch 3s infinite;
    position: relative;
    margin-bottom: 50px;
    text-align: center;
    z-index: 1; /* Ensure it's above the background */
}

/* Falling code background effect */
.matrix-background {
    position: fixed; /* Use fixed to cover the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Remove the background color or set it to transparent */
    background: transparent;
    overflow: hidden;
    z-index: 0; /* Ensure it's behind other elements */
}

.matrix-background span {
    position: absolute;
    top: -50px;
    font-size: 20px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    animation: matrix-fall 10s linear infinite;
    white-space: nowrap; /* Prevent text wrapping */
}


body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: black;
    position: relative; /* To establish a stacking context */
    overflow: hidden; /* Prevent scrollbars from appearing */
}

.button-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 60%;
    z-index: 1; /* Ensure buttons are above the background */
}

/* Primary Button Style */
button {
    padding: 20px 40px;
    font-size: 2em;
    background-color: #00FF00; /* Neon Green */
    color: #000000; /* Black Text for Contrast */
    border: 2px solid #00FF00; /* Matching Border */
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 20px #00FF00, 0 0 30px #00FF00;
    animation: glitch-button 0.3s infinite;
    text-shadow: 0 0 5px #00FF00;
}

/* Hover State */
button:hover {
    background-color: #00CC00; /* Darker Neon Green */
    transform: scale(1.05);
    box-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00;
}

/* Glitch Animation */
@keyframes glitch-button {
    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); }
}

/* Responsive Design */
@media (max-width: 600px) {
    button {
        font-size: 1.5em;
        padding: 15px 30px;
    }
}
