/* --------------------- */
/* Variables for Theming */
/* --------------------- */

:root {
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --bg-tertiary: rgb(255, 255, 255);
    --text-primary: #333333;
    --text-secondary: #666666;
    --nav-bg: #333;
    --nav-text: white;
    --accent-primary: rgba(162, 0, 255, 0.466);
    --border-color: #ddd;
}

:root.dark-theme {
    /* Dark theme */
    --bg-primary: #1e1e1e;
    --bg-secondary: rgba(30, 30, 30, 0.9);
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --nav-bg: #62269d;
    --nav-text: #ffffff;
    --accent-primary: #ebc7ff;
    --border-color: #444;
}

/* ---------- */
/* Page Setup */
/* ---------- */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    padding-bottom: 10px; /* space for footer */
}

.content {
    margin: 0 20px;
}

a {
    color: var(--accent-primary);
}

/* -------------- */
/* Navigation Bar */
/* -------------- */

nav {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--nav-text);
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* ------ */
/* Footer */
/* ------ */

footer {
    margin-top: auto;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    opacity: 0.5;
    background-image: linear-gradient(rgba(255, 255, 255, 0), var(--bg-primary));
    transition: opacity 0.3s;
}

footer small {
    font-size: 0.8em;
    color: var(--accent-primary);
}

footer:hover {
    margin-top: auto;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    opacity: 1;
    transition: opacity 0.2s;
}

/* ------- */
/* Modal   */
/* ------- */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    cursor: pointer;
}

#options-container {
    position: relative;
    z-index: 1001;
}