/* ==========================================================================
   Base Styles
   ========================================================================== */

/* Resets and Basic Box Model */
*,
*::before,
*::after {
    box-sizing: border-box; /* Use border-box for easier layout control */
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

html {
    font-size: 16px; /* Set a base font size */
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    color: #999;
    padding: 20px;
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    justify-content: space-between;
}

body {
    background-color: #121212;
    color: #999; /* Default text color */
    font-family: sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 20px;
    background-image: url('/img/cortex_bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    filter: contrast(150%);
}

.logo img {
    max-width: 200px;
}

.tagline {
    font-size: 1.2em;
    color: #999;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button {
    padding: 10px 20px;
    border: 2px solid #00bcd4;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #00bcd4;
    color: #121212;
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #999;
    text-align: center;
    padding: 20px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

footer a {
    color: #00bcd4;
    text-decoration: none;
    margin: 0 15px;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Containers
   ========================================================================== */

.logo-container img {
    max-height: 80px;
    margin-bottom: 10px;
}

.header-text-container {
    text-align: center;
}

.header-text-container h1 {
    font-size: 1.5em;
    margin-bottom: 0;
}

.header-text-container p {
    font-size: 1em;
    margin-top: 0;
}

.content-container,
.license-container,
.error-container {
    background-color: rgba(0, 0, 0, 0.7);
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    z-index: 1;
}

.content-container,
.license-container {
    text-align: left;
}

.error-container {
    text-align: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Header Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #999; /* Default header color */
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5 {
    font-size: 1em;
    /*font-weight: bold; /* You might want a bolder style for these */
}

h6 {
    font-size: 0.9em;
    /*font-style: italic; /* Or a different style to differentiate */
}

/* Paragraph Styles */
p {
    margin-bottom: 1em; /* Spacing between paragraphs */
    font-size: 15px; /* Paragraph text size */
    line-height: 1.5;
}

/* Line Break Styles */
br {
    display: block; /* Ensures consistent spacing */
    content: "";    /*clears any content from element*/
    margin-bottom: 0.5em; /* Spacing after line breaks */
}

.copyright {
    margin-top: 10px;
    font-size: 0.9em;
}

/* ==========================================================================
   Lists
   ========================================================================== */

/* List Reset (optional, but often useful) */
ol, ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Ordered List Styles */
ol {
    padding-left: 20px; /* Indent the list items */
}

ol li {
    margin-bottom: 0.5em; /* Spacing between list items */
}

/* Unordered List Styles */
ul {
    padding-left: 20px; /* Indent the list items */
}

ul li {
    margin-bottom: 0.5em; /* Spacing between list items */
    list-style-type: disc; /* Bullet point style */
}

/* Specific list item styling (from provided text) */
.list-item {
    margin-bottom: 0.5em;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    margin-bottom: 1em;
}

table, th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* ==========================================================================
   Sections (Example - Adjust as needed)
   ========================================================================== */

/* Example section styling - customize as needed for your layout */
.section {
    margin-bottom: 2em; /* Spacing between sections */
}

/* Context-specific header styling (from provided text) */
.section h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.section h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.section h3 {
    font-size: 1.2em;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* ==========================================================================
   Links
   ========================================================================== */
a {
    color: #00bcd4;
    text-decoration: none;
    margin: 0 15px;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Forms (Basic example - customize as needed)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button,
input[type="submit"] {
    padding: 0.5em 1em;
    background-color: #007bff; /* Example button color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    background-color: #0056b3; /* Darker shade on hover */
}