/* Core Layout */
body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
}

/* The Glitching Title Style (used for Header and Footer) */
.animated-title {
    font-family: 'Press Start 2P', cursive;
    position: relative;
    display: inline-block;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin: 20px 0;
    z-index: 1;
}

/* This creates the RGB split/glitch effect using the data-text attribute */
.animated-title::before,
.animated-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.animated-title::before {
    color: #ff3333; /* Red Glitch */
    animation: glitch 3s infinite;
    left: -3px;
    text-shadow: 2px 0 #9d4edd;
}

.animated-title::after {
    color: #9d4edd; /* Purple Glitch */
    animation: glitch 2s infinite reverse;
    left: 3px;
    text-shadow: -2px 0 #ffcc00;
}

@keyframes glitch {
    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); }
}

/* Footer Specific Styling */
footer {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    margin-top: 30px;
}

.footer-link {
    font-size: 16px; /* Scaled down from the main title */
    text-decoration: none;
    letter-spacing: 1px;
    transition: filter 0.3s ease;
}

.footer-link:hover {
    filter: brightness(1.5) drop-shadow(0 0 10px #ff3333);
}

/* CRT Overlay for that retro scanline look */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 100;
}body {
  margin: 0;
  padding: 40px;
  background-color: #000000;
  color: #d1d5db;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

main {
  max-width: 600px;
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;/* Core Layout */
body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
}

/* The Glitching Title Style (used for Header and Footer) */
.animated-title {
    font-family: 'Press Start 2P', cursive;
    position: relative;
    display: inline-block;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin: 20px 0;
    z-index: 1;
}

/* This creates the RGB split/glitch effect using the data-text attribute */
.animated-title::before,
.animated-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.animated-title::before {
    color: #ff3333; /* Red Glitch */
    animation: glitch 3s infinite;
    left: -3px;
    text-shadow: 2px 0 #9d4edd;
}

.animated-title::after {
    color: #9d4edd; /* Purple Glitch */
    animation: glitch 2s infinite reverse;
    left: 3px;
    text-shadow: -2px 0 #ffcc00;
}

@keyframes glitch {
    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); }
}

/* Footer Specific Styling */
footer {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    margin-top: 30px;
}

.footer-link {
    font-size: 16px; /* Scaled down from the main title */
    text-decoration: none;
    letter-spacing: 1px;
    transition: filter 0.3s ease;
}

.footer-link:hover {
    filter: brightness(1.5) drop-shadow(0 0 10px #ff3333);
}

/* CRT Overlay for that retro scanline look */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 100;
}
}

p {
  margin-bottom: 30px;
}

a {
  color: #d1d5db;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 10px;
}
