* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
button {
    all: unset;
    cursor: pointer;
    box-sizing: border-box;
}
body {
    background-color: #111111;
    margin: 0;
    overflow-x: hidden;
    font-family: "Orbitron", "Courier New", monospace;
    color: red;
    min-height: 100vh;
}

a[href^='http']::after {
    content: url('IMAGES/external.png');
    margin-left: 0.25em; /* Adjust spacing */
}

/* MAIN CONTAINER */
.maincontainer {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    min-height: 100vh;
    z-index: 1;
}
/* GO BACK BUTTON */
nav {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
}
nav a {
    color: red !important;
    text-decoration: none;
    border: 2px solid red;
    background: black;
    padding: 10px 20px;
    font-weight: bold;
    font-family: "Audiowide", "Courier New", monospace;
    transition: all 0.2s ease-in-out;
    position: relative;
    display: inline-block;
}
nav a:visited {
    color: red !important;
}
@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px red) drop-shadow(0 0 6px red);
    }
    50% {
        filter: drop-shadow(0 0 6px red) drop-shadow(0 0 12px red);
    }
}
nav a:hover {
    background: #111111; 
    color: red !important; 
    transform: translateY(-3px);
    animation: pulseGlow 2s ease-in-out infinite alternate;
}
/* NOISE BUTTON */
.noisebutton {
    position: fixed;
    top: 97px;
    left: 30px;
    color: red;
    border: 2px solid red;
    background: black;
    padding: 10px 20px;
    font-weight: bold;
    font-family: "Audiowide", "Courier New", monospace;
    transition: all 0.2s ease-in-out;
    z-index: 100;
    font-size: 12px;
}
.noisebutton:hover{
    background: #111111;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 6px red);
}

/* ============================================ */
/* ACCESSIBILITY PANEL POSITIONING FOR CONNECT PAGE */
/* ============================================ */
/* Override the default top-left positioning from global.css */
.accessibility-panel {
    top: 164px !important;  /* Position below the noise button */
    left: 30px !important;  /* Align with nav and noise button */
}

/* HEADER SECTION */
.header {
    text-align: center;
    margin-bottom: 30px;
}
.title {
    font-family: "Audiowide", "Courier New", monospace;
    font-size: 48px;
    color: red;
    letter-spacing: 8px;
    margin-bottom: 15px;
    text-shadow: 
        0 0 10px red;
}
.subtitle {
    font-family: "Orbitron", monospace;
    font-size: 14px;
    color: red;
    letter-spacing: 3px;
    opacity: 0.8;
}
/* LINKS GRID */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}
/* LINK CARDS */
.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    font-family: "Audiowide", "Courier New", monospace;
    text-align: center;
    position: relative;
}
.link-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}
/* FOOTER */
footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    color: red;
    background: transparent;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}
footer p {
    margin: 0;
    padding: 10px;
    background: transparent;
    font-size: 10px;
}
/* RESPONSIVE STUFF */
@media (max-width: 768px) {
    .maincontainer {
        padding: 100px 15px 60px;
    }
    
    .title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .links-grid {
        max-width: 100%;
    }
}
/* HIGH CONTRAST MODE SUPPORT */
.high-contrast-loading body,
html.high-contrast-loading body {
    background-color: black;
    color: white;
}
.high-contrast-loading .link-card {
    border-color: white;
    color: white;
}
.high-contrast-loading .title,
.high-contrast-loading .subtitle,
.high-contrast-loading nav a,
.high-contrast-loading .noisebutton {
    color: white;
    border-color: white;
    text-shadow: none;
}
.high-contrast-loading footer p {
    color: white;
    border-color: white;
}