:root {
    --bg-color: rgb(20, 20, 20);
    --main-color: rgb(200, 200, 200);
    --text-color: rgb(175, 175, 175);
    --text-link-color: rgb(100, 149, 237);
    --text-link-visited-color: rgb(100, 121, 237);
    --text-title-color: rgb(255, 255, 255);
    --selection-bg-color: rgba(32, 121, 255, 0.637);
    --selection-text-color: rgb(255, 255, 255);
    --overlay-color: rgba(0, 0, 0, 0.75);
    --separator: "";
    --input-bg-color: rgb(225, 225, 225);
    --input-bg-color-focus: rgb(255, 255, 255);
    --input-text-color: rgb(20, 20, 20);
}

* {
    font-family: inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    height: 100%;
    background-color: var(--bg-color);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    color: var(--main-color);
    font-family: inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    min-width: 100vw;
    box-sizing: border-box;
}

.header {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.content {
    /* text-align: center; */
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    flex: 1;
    /* Take up remaining vertical space */
}

.footer {
    background-color: var(--footer-bg);
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    margin-top: auto;
    /* Push footer to the bottom */
}

.content-text {
    width: 80%;
    max-width: 600px;
    text-align: justify;
}

p a {
    color: var(--text-link-color);
    text-decoration: none;
    font-style: italic;
}

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

p a:visited {
    color: var(--text-link-visited-color);
}

.logo-svg {
    height: clamp(1rem, 5vw, 4rem);
    fill: var(--text-title-color);
    margin: 25px 0;
}

.footer-element {
    padding: 15px 25px;
    color: var(--text-color);
}

::selection {
    background-color: var(--selection-bg-color);
    color: var(--selection-text-color);
    padding: 6px;
    margin: 6px;
}

::-moz-selection {
    background-color: var(--selection-bg-color);
    color: var(--selection-text-color);
    padding: 6px;
    margin: 6px;
}

button {
    background-color: var(--input-bg-color);
    color: var(--input-text-color);
    border: none;
    padding: 5px 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: normal;
}

button:hover {
    background-color: var(--input-bg-color-focus);
}

button:disabled {
    background-color: gray;
    opacity: 0.5;
    cursor: not-allowed;
}

input::placeholder {
    font-weight: normal;
    font-size: 0.8rem;
}

/* --------------------------------------- */
/* ---------- React Auth styles ---------- */
/* --------------------------------------- */
.auth-menu {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-box {
    background-color: var(--bg-color);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: var(--main-color);
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-title-color);
}

.auth-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.auth-link {
    color: var(--text-link-color);
    text-decoration: none;
    font-style: italic;
    cursor: pointer;
    display: inline-block;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-field {
    margin-bottom: 15px;
    width: 100%;
}

.auth-field label {
    display: block;
    margin-bottom: 5px;
    user-select: none;
}

.auth-field input {
    background-color: var(--input-bg-color);
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    border: none;
}

.auth-field input:focus {
    outline: none;
    border: none;
}

.auth-field input:focus {
    background-color: var(--input-bg-color-focus);
}

.auth-field input:hover {
    background-color: var(--input-bg-color-focus);
}

input[aria-invalid="true"] {
    outline: 2px solid red;
    color: red;
}

.auth-error-message {
    color: red;
}