/* 1. ROOT RESET - This kills the white frame in Chrome */
html {
    background-color: #000000; /* Ensures the browser 'canvas' is black */
    margin: 0;
    padding: 0;
    /* Prevents white flashing during overscroll on mobile/Mac */
    overscroll-behavior: none; 
}

/* THEME: High-Contrast Braille-First
   Colors: Black (#000), Gold (#FFD700), White (#FFF) */

body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* Ensures the body stretches to the full height of the window */
    min-height: 100vh; 
}

/* NAVIGATION */
.main-nav {
    background: #111;
    border-bottom: 2px solid #FFD700;
    padding: 1rem;
    /* Ensures the nav spans the full width even if content is centered below */
    width: 100%;
    box-sizing: border-box;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    /* Centers the nav items if you want them aligned with the 800px content */
    max-width: 800px;
    margin: 0 auto;
}

.main-nav a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover, .main-nav a:focus {
    text-decoration: underline;
    color: #fff;
}

/* LAYOUT */
/* We keep the max-width here so the text is readable, 
   but the background remains black because the body/html handle it. */
header, main, footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: #FFD700; /* Gold Headings */
}

.card {
    background: #111;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* BUTTONS */
.btn-bmac, .btn-github {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    background-color: #FFDD00; /* Yellow */
    color: #000;
    text-align: center;
}



/* FORM STYLING */
input, textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    background: #222;
    border: 1px solid #FFD700;
    color: white;
    border-radius: 4px;
    box-sizing: border-box; /* Prevents inputs from overflowing their container */
}

.btn-submit {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-weight: bold;
    cursor: pointer;
}

/* ACCESSIBILITY */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #FFD700;
    color: #000;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
