/* 1. Global Reset & Box Model */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Theme System (Black, White, and Heavy Borders) */
:root {
    --bg: #ffffff;
    --text: #000000;
    --gray-bg: #eeeeee;
    --border-thickness: 2px;
    --border: var(--border-thickness) solid var(--text);
    --font-kindle: monospace;
}

/* 3. Page Layout Defaults */
html, body {
    height: 100%;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-kindle);
}

/* 4. Top Navigation Bar (Matches notes.html & sketchpad.html) */
.nav-bar {
    height: 40px;
    border-bottom: var(--border);
    background-color: var(--gray-bg);
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.nav-btn {
    border: var(--border);
    background-color: var(--bg);
    padding: 4px 12px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

.nav-btn:active {
    background-color: var(--gray-bg);
}

/* 5. Content Layout Helpers */
.container {
    padding: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* 6. Form & Interactive Element Resets */
button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* 7. Reusable Theme-Consistent Components */
.card-button {
    display: block;
    border: var(--border);
    background-color: var(--bg);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
}

.card-button:active {
    background-color: var(--gray-bg);
}

/* Center all main headings and add consistent theme spacing */
h1 {
    text-align: center;
    font-size: 24px;
    border-bottom: var(--border);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

p {
    margin: 0 15px 15px 15px;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
}

