@font-face {
    font-family: 'Recbold';
    src: url('../fonts/recbold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 600px) {
    .link {
        width: 90%;
    }

    header h1 {
        margin-bottom: 0 !important;
        font-size: 6rem !important;
    }

    .link {
        max-width: 400px !important;
        font-size: 1.4em !important;
    }
}

html {
    background-color: #000000;
}

body {
    font-family: 'Recbold';
    margin: 0;
    padding: 0;
    text-align: center;
    color: #f1f1f1;
    background: url('../img/background.gif');
    overflow-x: hidden;
    position: relative;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

header {
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 8rem;
    color: #f1f1f1;
    text-shadow: 3px 3px 0 #ff007b, -3px -3px 0 #00ffff;
    position: relative;
    z-index: 2;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    text-transform: uppercase;
    overflow: hidden;
}

main {
    padding: 20px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.link {
    display: block;
    width: 80%;
    max-width: 500px;
    padding: 15px;
    text-decoration: none;
    color: #f1f1f1;
    border-radius: 5px;
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
    text-shadow: 1.5px 1.5px 0 #ff007b, -1.5px -1.5px 0 #00ffff;
    transition: background-color 0.3s ease;
    border: 3px solid #ff007b;
    background-clip: padding-box;
    transition: 
        background-color 0.3s ease,
        border 0.3s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1)
}

.link:hover {
    background-color: #ff007b3b;
    border: 3px solid #f1f1f1;
    transform: scale(1.035);
}

.link::after,
.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transform: translate(0, 0);
    mix-blend-mode: screen;
    opacity: 0.5;
}

.link::after {
    transform: translate(2px, 2px);
    filter: hue-rotate(60deg);
}

.link::before {
    transform: translate(-2px, -2px);
    filter: hue-rotate(-60deg);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 4px);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

footer {
    text-align: center;
}

/* flicker overlay */
header h1::before,
header h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #f1f1f1;
    background: transparent;
    pointer-events: none;
}

/* magenta offset layer */
header h1::before {
    left: 2px;
    text-shadow: -2px 0 #ff007b;
    animation: glitchNoise 6s infinite linear alternate-reverse;
    clip-path: inset(0 0 50% 0);
    opacity: 0.5;
}

/* cyan offset layer */
header h1::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    animation: glitchNoise 7s infinite linear alternate-reverse;
    clip-path: inset(50% 0 0 0);
    opacity: 0.5;
}

/* Keyframes for random cuts/static */
@keyframes glitchNoise {
    0%   { clip-path: inset(0% 0 0% 0); }
    20%  { clip-path: inset(10% 0 30% 0); }
    40%  { clip-path: inset(40% 0 10% 0); }
    60%  { clip-path: inset(20% 0 50% 0); }
    80%  { clip-path: inset(60% 0 0% 0); }
    100% { clip-path: inset(0% 0 0% 0); }
}