@font-face {
    font-family: "IBM Plex medium";
    src: url("/fonts/IBMPlexSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "IBM Plex bold";
    src: url("/fonts/IBMPlexSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

:root {
    --text-color: #000;
    --background-color: #fff;
    --heading-color-primary: #0021a5;
    --heading-color-secondary: #fa4616;
    --link-color: #5d2d5d;
    --small-text-color: #666;
    --drop-zone-border: #ccc;
    --drop-zone-bg: #f5f5f5;
    --drop-zone-hover-bg: #ebebeb;
    --drop-zone-active-bg: #fffbe6;
    --drop-zone-active-border: #fa4616;
    --file-item-bg: #f9f9f9;
    --file-name-bg: #f0f0f0;
    --file-name-color: #000;
    --directions-bg: #fdfdfd;
    --directions-border: #e0e0e0;
    --hr-color: #ddd;
    --footer-bg: #0021a5;
    --footer-text: white;
    --button-primary-bg: #0021a5;
    --button-primary-hover: #001a84;
    --button-primary-active: #001563;
    --button-primary-border: #fa4616;
    --button-primary-text: #fff;
    --button-secondary-bg: #0021a5;
    --button-secondary-hover: #001a84;
    --button-secondary-active: #001563;
    --box-shadow: rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    --text-color: #e0e0e0;
    --background-color: #121212;
    --heading-color-primary: #4d7aff;
    --heading-color-secondary: #ff7d5e;
    --link-color: #b47db4;
    --small-text-color: #aaa;
    --drop-zone-border: #444;
    --drop-zone-bg: #1e1e1e;
    --drop-zone-hover-bg: #252525;
    --drop-zone-active-bg: #2d2d1e;
    --drop-zone-active-border: #ff7d5e;
    --file-item-bg: #1e1e1e;
    --file-name-bg: #2a2a2a;
    --file-name-color: #e0e0e0;
    --directions-bg: #1a1a1a;
    --directions-border: #333;
    --hr-color: #444;
    --footer-bg: #001563;
    --footer-text: #e0e0e0;
    --button-primary-bg: #2b4399;
    --button-primary-hover: #1f3270;
    --button-primary-active: #162450;
    --button-primary-border: #ff7d5e;
    --button-primary-text: #fff;
    --button-secondary-bg: #4d7aff;
    --button-secondary-hover: #3d62cc;
    --button-secondary-active: #3456b3;
    --button-secondary-text: #000;
    --box-shadow: rgba(0, 0, 0, 0.2);
}

body {
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

main.container {
    margin-bottom: 0;
    padding-bottom: 0;
}

h1,
h2,
h3,
h4 {
    font-family: "IBM Plex medium", sans-serif;
    font-weight: 500;
    color: var(--heading-color-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
    margin-top: 1rem;
    font-family: "IBM Plex bold", sans-serif;
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: var(--heading-color-secondary);
    font-family: "IBM Plex bold", sans-serif;
}

h2.directions {
    color: var(--heading-color-primary);
    margin-bottom: 0.5rem;
}

h3,
h4 {
    font-family: "IBM Plex bold", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.3px;
}

p,
li {
    font-family: "IBM Plex medium", sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

ul {
    list-style: disc inside;
    padding-left: 1rem;
}

.li-no-marker {
    list-style: none;
}

.ul-padding-fix {
    padding-left: 0;
}

.small {
    font-size: 0.875rem;
    color: var(--small-text-color);
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

a:hover {
    border-color: var(--link-color);
}

img {
    width: 100%;
    max-width: 600px;
    margin: 1rem 0;
    border-radius: 8px;
}

.logo-container {
    display: flex;
    justify-content: center;
}

.navigator-logo {
    width: 10rem;
}

.neo-button {
    background-color: var(--button-primary-bg);
    color: #fff;
    border: 2px solid var(--button-primary-border);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
    min-width: 7rem;
}

.neo-button:hover {
    background-color: var(--button-primary-hover);
}

.neo-button:active {
    background-color: var(--button-primary-active);
}

body.dark-mode .neo-button {
    color: var(--button-primary-text);
}

body.dark-mode .neo-button-blue {
    color: var(--button-secondary-text);
}

body.dark-mode .download-button {
    color: var(--button-secondary-text);
}

.neo-button-blue {
    background-color: var(--button-secondary-bg);
    color: #fff;
    border: none;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
    min-width: 7rem;
}

.neo-button-blue:hover {
    background-color: var(--button-secondary-hover);
}

.neo-button-blue:active {
    background-color: var(--button-secondary-active);
}

.drop-zone {
    border: 2px dashed var(--drop-zone-border);
    background-color: var(--drop-zone-bg);
    text-align: center;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    min-height: 20em;
    width: 40rem;
    margin: 0 auto;
    padding: 1rem;
}

.drop-zone:hover {
    background-color: var(--drop-zone-hover-bg);
}

.drop-zone.dragover {
    background-color: var(--drop-zone-active-bg);
    border-color: var(--drop-zone-active-border);
    color: var(--heading-color-secondary);
}

.file-name {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--file-name-bg);
    color: var(--file-name-color);
    border-radius: 4px;
    margin-top: 0.5rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-container {
    margin-top: 2rem;
}

.directions-container {
    background-color: var(--directions-bg);
    border: 1px solid var(--directions-border);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2em;
    box-shadow: 0 2px 8px var(--box-shadow);
}

.padding-fix {
    padding: 0;
    padding-right: 16px;
}

.neo-hr {
    border: none;
    border-top: 2px solid var(--hr-color);
    margin: 2rem 0;
}

.neo-hr-directions {
    border: none;
    border-top: 2px solid var(--hr-color);
    margin: 0 1rem 0 0;
}

.button-description,
.single-download-button-description {
    font-size: 0.875rem;
    color: var(--small-text-color);
}

.button-description {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.single-download-button-description {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-button-container {
    text-align: center;
    margin-top: 1rem;
}

.upload-button {
    display: inline-block;
    margin-top: 0.5rem;
}

.file-list {
    margin-top: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    background-color: var(--file-item-bg);
}

.download-button {
    background-color: var(--button-secondary-bg);
    color: #fff;
    border: none;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.download-button:hover {
    background-color: var(--button-secondary-hover);
}

.download-button:active {
    background-color: var(--button-secondary-active);
}

.directions-link-container,
.back-link-container {
    text-align: center;
    margin-top: 1rem;
}

.directions-link-container {
    padding-top: 0.5rem;
    margin-bottom: 1rem;
}

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 1rem 0;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    margin: 0.25rem 0;
    font-size: 1rem;
}

/* Auth button container */
.page-wrapper>a.neo-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
}

.directions-outer-container {
    margin: 0 5rem;
}

/* Dark mode toggle button */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: var(--background-color);
    border: 1px solid var(--small-text-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--box-shadow);
    z-index: 1000;
    transition: background-color 0.3s, color 0.3s;
}

.theme-toggle:hover {
    background-color: var(--drop-zone-hover-bg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
}


form button[type="submit"] {
    background-color: var(--button-primary-bg) !important;
    color: var(--button-primary-text) !important;
    border: 2px solid var(--button-primary-border) !important;
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease-in-out !important;
    min-width: 7rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    justify-content: center !important;
}

form button[type="submit"]:hover {
    background-color: var(--button-primary-hover) !important;
}

form button[type="submit"]:active {
    background-color: var(--button-primary-active) !important;
}