/* Root variables for dark theme */
:root {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --link-color: #00ff41;
    --link-hover: #64ffda;
    --heading-color: #00ff41;
    --section-gap: 2rem;
    --callsign: "NytWolf";
}

/* Full page layout */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Courier New", monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

/* Sticky top navigation bar */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 2px solid #333;
    background-color: #1a1a1a;
    flex-direction: row;
}

/* Navigation link styles */
nav a,
nav a:visited,
nav a:focus,
nav a:active {
    color: var(--link-color);
    text-decoration: none !important;
    text-decoration-skip-ink: none;
    font-weight: bold;
    position: relative;
    outline: none;
}

nav a:hover {
    color: #66ff99;
}

nav a::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 2px;
    background: var(--link-color);
    width: 0%;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Main scrollable content */
main {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 1.5rem 0 1.5rem;
    background-color: var(--background-color);
}

/* Embedded iframe */
iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #1e1e1e;
}

/* Sticky footer */
footer {
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    background-color: var(--background-color);
    padding: 0 1rem 1rem 1rem;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
}

/* Hyperlinks */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

/* Sections and layout spacing */
section {
    margin-bottom: var(--section-gap);
}

.question {
    font-weight: bold;
    margin-top: 1.5rem;
    color: #ffffff;
}

.answer {
    margin-left: 1rem;
    margin-top: 0.5rem;
    color: #cccccc;
}

ul {
    padding-left: 1.2rem;
}

/* Code and preformatted blocks */
code {
    font-family: monospace;
    background-color: #272727;
    color: #ffeb3b;
    padding: 3px 6px;
    border-radius: 4px;
}

pre {
    background-color: #272727;
    color: #ffffff;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}
