@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Press Start 2P",monospace;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
    color: #0ff;
    text-align: center;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to right, #333 0px, #333 1px, transparent 1px, transparent 50px
    ), repeating-linear-gradient(
        to bottom, #333 0px, #333 1px, transparent 1px, transparent 50px
    );
    opacity: 0.15;
    z-index: -1;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    from { transform: translate(0, 0); }
    to { transform: translate(10px, 10px); }
}

h1 {
    font-size: 5rem;
    color: #ff00ff;
    text-shadow: 2px 2px 0 #0ff, -2px -2px 0 #ff00ff;
    animation: flicker 1.5s infinite alternate;
    margin-bottom: 20px;
}

div > h1 {
    display: inline-block;
}

div > h1.off {
    all: unset;
    font-size: 3rem;
    color: white;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

.message {
    font-size: 1.2rem;
    color: #0ff;
    margin-bottom: 30px;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 5%, 10%, 100% { transform: translate(0, 0); }
    3%, 8% { transform: translate(-3px, -3px); }
    6%, 9% { transform: translate(3px, 3px); }
}

.btn {
    text-decoration: none;
    color: #000;
    background-color: #ff00ff;
    padding: 10px 15px;
    border: 2px solid #0ff;
    border-radius: 3px;
    font-size: 1rem;
    margin: 5px;
    transition: 0.2s ease;
}

.btn:hover {
    background-color: #0ff;
    color: #ff00ff;
    transform: scale(1.1);
}
