:root {
    --accent: #5c5fcd;
    --accent-light: #f2f2f2;
    --accent-opaque: rgba(92, 92, 205, 0.7);
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

body {
    font-family: 'Noto Sans', sans-serif;
    text-justify: inter-word;
    margin: 0px;
    min-height: 100vh;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--accent);
    height: fit-content;
}

hr {
    border: 0.5px gray solid;
    margin: 1em 0;
}

.content {
    border-width: 0.5px;
    border-radius: 5px;
    margin: auto;
    height: 100vh;
    overflow-y: scroll;
    width: 100%;
    overflow-x: clip;
}

.homepage-content {
    display: flex;
    max-width: 90ch;
}

.tag {
    background: var(--accent-light);
    color: var(--accent);
    margin-right: 0.4em;
    padding: 0.2em 0.6em;
    width: fit-content;
    margin-bottom: 0.3em;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9em;
    border: 1px solid var(--accent);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent);
    color: white;
    cursor: pointer;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin: .5em 0;
}

.title-highlight {
    margin-left: 0.2em;
    color: var(--accent);
}

.beta {
    display: inline-block;
    padding: 4px 8px;
    margin: .5em;
    border: 3px solid #5c5fcd;
    border-radius: 20px;
    font-size: .75em;
    color: #5c5fcd;
}

.infobox {
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
}

.head:after {
    content: "";
    width: 80%;
    display: block;
    margin: 0 auto;
    margin-top: 2em;
}

.list-infobox {
    display: flex;
    flex-direction: column;
    gap: 0px;
    border-bottom: 0.5px gray solid;
}

.list-infobox:first-child {
    border-top: 0.5px gray solid;
}

.save-button {
    background: none;
    border-radius: 5px;
    color: var(--accent);
    border: none;
    cursor: pointer;
    align-self: center;
    font-size: 120%;
}

.save-button:hover {
    color: white;
    background-color: #cd5c5c;
}

.clicked::before {
    color: #cd5c5c;
}

.story-button-clicked::before {
    color: #cd5c5c;
}

.filter-button {
    padding: 0.2em;
    padding-right: 0.5em;
    padding-left: 0.5em;
    width: fit-content;
    text-decoration: none;
    font-family: sans-serif;
    margin: 0.1em;
}

.filter-button:hover {
    cursor: pointer;
}

.year-asc::before {
    content: "▲"
}

.year-desc::before {
    content: "▼"
}

.words-desc::before {
    content: "▼"
}

.words-asc::before {
    content: "▲"
}

.authors-asc::before {
    content: "▲"
}

.authors-desc::before {
    content: "▼"
}

.title-asc::before {
    content: "▲"
}

.title-desc::before {
    content: "▼"
}

.list-infobox:hover {
    transition: background-color .05s;
}

.key {
    color: #5A5A5A;
    font-weight: 400;
    margin-bottom: 0.5em;
}

.value {
    color: black;
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
}

.metadata {
    max-width: 100%;
    margin-right: 1.1em;
    margin-bottom: 1.1em;
}

.subtitle {
    font-size: 1em;
    color: #5A5A5A;
    font-weight: 400;
}

.logline {
    padding-top: 0em;
    max-width: 90ch;
    font-size: 1.05em;
    color: black;
}

.description {
    padding-top: 0em;
    padding-bottom: 0.5em;
    max-width: 90ch;
    font-size: 1.05em;
    color: black;
}

.description-source {
    font-size: .8em;
    display: block;
    text-align: right;
}

.story-logline {
    padding-right: 1em;
    padding-left: 1em;
    color: black;
    margin-top: 0;
}

.story-info {
    display: flex;
    flex-direction: column;
    padding-right: 1em;
    padding-left: 1em;
    padding-top: 1em;
}

.story-tags-box {
    padding-bottom: 1em;
}

.story-title {
    font-size: 1.3em;
    font-weight: bold;
    padding: 0.1em;
    text-decoration: none;
    color: black;
    align-items: center;
    height: auto;
}

.story-title:hover {
    color: #cd5c5c;
}

.story-tags {
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    margin-right: 1em;
    margin-left: 1em;
    margin-bottom: 1em;
}

.story-info-metadata {
    color: grey;
    font-weight: 400;
    gap: 0.2em;
    flex-wrap: wrap;
    padding-bottom: 1em;
    padding-top: 1em;
}

.story-info-text {
    color: black;
}

.story-info-text:hover {
    color: #cd5c5c;
}

.link-text {
    color: var(--accent);
}

.link-text:hover {
    color: #cd5c5c;
}

.browse-all {
    background: var(--accent);
    width: 16ch;
    color: white;
    text-align: center;
    padding: 0.4em;
    font-weight: 600;
    font-size: 90%;
    margin-top: 1em;
}

.browse-all:hover {
    color: white;
    background: #cd5c5c;
}

.topnav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    top: 0;
    z-index: 100;
    padding: 0.5em;
    position: sticky;
    background: var(--accent);
    display: flex;
    flex-direction: column;
    min-width: 15em;
    max-width: 15em;
    overflow-y: auto;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

#drawer-toggle {
    z-index: 1000;
    user-select: none;
    display: none;
}

#drawer-toggle-label {
    z-index: 1000;
    display: none;
}

.head-container {
    flex-direction: row;
}

.detail-cover {
    max-width: 170px;
    max-height: 170px;
}

.topnav-content {
    display: flex;
    flex-direction: column;
    margin: auto;
    align-items: center;
    z-index: 999;
    padding: 0.3em;
    gap: 0.5em;
}

.topnav a {
    float: left;
    color: white;
    text-align: center;
    text-decoration: none;
    z-index: 400;
}

.topnav a:hover {
    color: white;
}

.topnav-left {
    font-weight: 700;
    font-size: 1.3em;
    z-index: 999;
    margin: auto;
    padding: 0.25em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.topnav-left:hover {
    background: #cd5c5c;
    border-radius: 5px;
}

.topnav-center a {
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0);
    border-style: none;
    border-width: 0.5px;
    padding: 8px 10px;
    border-radius: 5px;
    width: fit-content;
    z-index: 999;
    font-weight: 400;
    margin-left: 0.3em;
}

.topnav-center a:hover {
    color: white !important;
    background: #cd5c5c;
}

.topnav-right a {
    float: left;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border-width: 0.5px;
    border-radius: 5px;
    color: black;
}

.topnav-right a:hover {
    color: #E76F51;
    background: var(--accent-light);
    cursor: pointer;
}

.search {
    float: left;
    width: 100%;
    text-overflow: ellipsis;
    font-weight: 300;
    font-size: .8em;
}

.search-button {
    cursor: pointer;
    background: #5c5fcd;
    color: white;
    margin: 2px;
}

.search:focus {
    outline: none;
}

.search-suggestion-container {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 800px;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}

.search-suggestion-container > div {
    border: 1px solid #5c5fcd;
    color: #5c5fcd;
    border-radius: 5px;
    background: transparent;
    white-space: nowrap;
    padding: .3em .5em;
    cursor: pointer;
}

.search-suggestion-container > div:hover {
    color: #cd5c5c;
}

.enhanced-search-button-container {
    display: flex;
    border-top: 1px solid #a3a5ff;
    padding: .8em 0;
}

a.enhanced-search-button {
    margin: 0 auto;
    display: block;
    padding: .5em 1em;
    font-size: .75em;
    border: none; 
    border-radius: 10px; 
    position: relative;
    text-decoration: none;
    color: #5c5fcd;
    background-color: transparent;
    z-index: 1;
    width: fit-content;
}

a.enhanced-search-button img {
    vertical-align: middle;
}

a.enhanced-search-button:hover {
    color: #5c5fcd;
}

a.enhanced-search-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 3px;
    background: linear-gradient(45deg, #ffb3b6, #fbded3, #fccff3, #fccff3, #b5d4ff, #d2effe, #b5d4ff, #fccff3, #fbded3, #ffb3b6);
    background-size: 400% 400%;
    z-index: -1;
}

a.enhanced-search-button:before {
    animation: moveGradient 10s infinite linear alternate;
}

a.enhanced-search-button:hover::before {
    animation: moveGradient 1s infinite linear alternate;
}

@keyframes slideIn {
    0% { transform: translateX(100%); }
    10% { transform: translateX(0); }
    90% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#loading-indicator.loading-activated {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#loading-indicator .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #eee;
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.enhanced-search .loading-message {
    margin-top: 1em;
    font-style: italic;
    font-weight: 600;
    font-size: 1.2em;
    color: #5c5fcd;
}

input, textarea {
    padding: 0.5em;
    font-size: 100%;
    border-radius: 5px;
    border-style: none;
}

input[type="checkbox"] {
    accent-color: var(--accent);
}

form {
    border-width: 0.5px;
    border-radius: 5px;
    display: flex;
}

.homepage {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    font-size: 1em;
    margin-left: auto;
    justify-content: center;
    padding: 1em;
    border-style: none;
    margin: auto;
    border-width: 0.5px;
    border-radius: 10px;
    text-justify: none;
    font-size: 110%;
}

.vision {
    max-width: 60ch;
    color: black;
    border-radius: 5px;
    margin: 0px;
}

.about {
    margin: auto;
    line-height: 0.5;
}

.about-title {
    font-size: 1.5em;
    font-weight: bold;
}

.mainpage-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0em;
    margin-top: 0px;
    outline-width: 2px;
    border-radius: 5px;
}

.browse-collection {
    text-decoration: none;
    margin: auto;
    color: var(--accent);
    padding: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border-radius: 5px;
    margin-bottom: 2em;
    font-size: 120%;
    text-align: center;
}

.browse-collection:hover {
    color: #cd5c5c;
}

.footer-content {
    max-width: 50ch;
    display: flex;
    color: white;
    border-style: none;
    padding: 0.25em;
    border-width: 0.5px;
    max-width: 50ch;
    margin: auto;
    margin-bottom: auto;
    font-size: 90%;
    display: flex;
    flex-direction: column;
    padding: 1em;
}

.topnav-right {
    max-width: fit-content;
    flex-grow: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    flex-wrap: nowrap;
    margin: auto;
}

.browse-div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 5%;
    margin-right: 5%;
}

.homepage-infobox {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
    min-width: 50%;
}

.head-elements {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
}

.story-info-head {
    display: flex;
    flex-direction: row;
    margin-bottom: -0.4em;
}

span {
    color: var(--accent);
}

.sort-buttons {
    display: flex;
    flex-direction: row;
    color: black;
    border-radius: 5px;
    padding: 1em;
    text-decoration: none;
    justify-content: center;
    flex-flow: wrap;
}

.button-group {
    margin-right: 1em;
    display: flex;
    align-items: center;
}

.year-group::before {
    content: "Year: ";
    margin-right: 0.2em;
}

.authors-group::before {
    content: "Author: ";
    margin-right: 0.2em;
}

.words-group::before {
    content: "Word Count: ";
    margin-right: 0.2em;
}

.title-group::before {
    content: "Title: ";
    margin-right: 0.2em;
}

.topnav-center {
    justify-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.feature-box {
    display: flex;
    align-items: center;
    height: 2.5em;
    flex-grow: 1;
    cursor: pointer;
    min-width: 21ch;
    max-width: 32%;
}

.homepage-features {
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    gap: 2em;
    font-size: 90%;
    margin-top: 0em;
    align-content: center;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: fit-content;
    margin: auto;
}

.feature-headline {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0;
    align-self: baseline;
}

.homepage-top {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.homepage-features h1 {
    font-size: 1.19em;
    font-weight: unset;
}

.feature-text h1 {
    font-weight: 500;
}

.feature-icon {
    background: var(--accent-light);
    border-radius: 5px;
    padding: 0.4em;
    padding-left: 6%;
    padding-right: 6%;
    padding-top: 4%;
    padding-bottom: 4%;
    font-size: 1.2em;
    border-width: 1px;
    box-shadow: 0 0 2px var(--accent);
}

.alert-error {
    color: red;
    margin: .5em 0;
}

.dailylit-links {
    display: flex;
    flex-direction: column;
    line-height: 2;
}

.dailylit-links a {
    color: var(--accent);
}

.dailylit-links a:hover {
    color: #cd5c5c;
}

.feature-text {
    font-weight: 600;
    text-align: center;
}

th:hover span {
    color: #cd5c5c;
}

.homepage-infobox .key {
    color: black;
}

.display\:flex {
    display: flex;
    gap: 0.2em;
    align-items: center;
    height: 1em;
}

.display\:flex p {
    white-space: nowrap;
}

.display\:flex+.display\:flex::before {
    content: "|";
    font-weight: 300;
}

.story-info-text-metadata {
    color: black;
}

.story-info-text-metadata:hover {
    color: #cd5c5c;
}

.story-info-metadata a {
    color: var(--accent);
}

table {
    border-collapse: collapse;
    width: 100%;
}

th {
    padding: 4px;
    text-align: left;
}

td {
    padding-left: 0.5em;
    border-radius: 10px;
    padding-bottom: 0.3em
}

.story-title {
    display: flex;
    font-size: 1.3em;
    font-weight: bold;
    flex-flow: wrap;
    color: black;
}

.list-head {
    display: flex;
    flex-direction: column;
}

.btn.btn-google {
    border-style: none;
    border-color: black;
    border-radius: 5px;
    padding: 6px;
    border-width: 0.5px;
    padding-left: 12px;
    padding-right: 12px;
    font-weight: 500;
    background: white;
    color: black;
    z-index: 999;
}

.btn.btn-google:hover {
    background: #cd5c5c;
    color: white;
    cursor: pointer;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.user-info img {
    border-radius: 60px;
    height: 32px;
}

.topnav .disabled {
    color: lightgrey;
}

.topnav .disabled:hover {
    color: lightgrey;
    cursor: default;
    background: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown:hover {
    color: #cd5c5c;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0.75em;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    color: white;
    font-weight: 400;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    border: none;
    left: -140%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-item {
    display: block;
    width: 10em;
    padding: 10px;
    border-style: none;
    font-size: 90%;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: var(--accent-light);
}

.ts-control {
    background-color: #eee !important;
}

.show {
    display: flex;
    flex-direction: column;
    z-index: 101;
    box-shadow: 0 0 5px grey;
}

.infobox.atlaspro {
    border-style: solid;
    border-width: 1px;
    border-color: var(--accent);
    background: var(--accent-light);
    padding: 1em;
}

.infobox.atlaspro:before {
    content: "Pro";
    background: gold;
    border-radius: 5px;
    padding: 3px;
    font-weight: 700;
    font-size: 80%;
    height: 1.5em;
    margin-right: 100%;
}

.superuser:before {
    content: "Superuser";
    color: white;
    background: #cd5c5c;
    border-radius: 5px;
    padding: 3px;
    font-weight: 700;
    font-size: 80%;
    height: 1.5em;
    margin-right: 100%;
}

.atlasProLogo {
    background: gold;
    border-radius: 5px;
    padding: 3px;
    font-weight: 700;
    font-size: 80%;
    color: black;
}

.dropdown:hover .atlasProLogo {
    color: black;
}

.hide {
    visibility: hidden;
}

.footer-top {
    display: flex;
    align-items: center;
    font-weight: 300;
    margin: auto;
    height: 1em;
    margin-top: 3em;
    font-size: 90%;
}

.footer-bottom {
    display: flex;
    margin-top: 1em;
    flex-direction: column;
    align-items: center;
}

.footer-bottom div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-bottom div p {
    font-weight: 600;
    height: 0.5em;
}

.footer-bottom div a {
    color: white;
    font-weight: 400;
    text-align: left;
}

.footer-bottom div a:hover {
    color: #E76F51;
}

.pagination {
    margin: auto;
    background: var(--accent-light);
    padding: 10px;
    border-radius: 10px;
}

.step-links {
    display: flex;
    flex-direction: row;
    gap: 1em;
    align-items: center;
}

.storycards {
    margin-bottom: 3em;
    display: flex;
    margin-top: 1em;
    flex-direction: column;
}

.match-level {
    display: inline-block;
    border-radius: 15px;
    font-weight: 600;
    font-size: 80%;
    padding: .1em .6em;
    margin: .5em .25em;
    border: 1px solid;
}

.match-level-good {
    background-color: #e6f4e6;
    border-color: #006400;
    color: #006400;
}

.match-level-partial {
    background-color: #f0fff0;
    border-color: #32cd32;
    color: #32cd32;
}

.match-level-slight {
    background-color: #fffde7;
    border-color: #ffd700;
    color: #ffd700;
}

.step-links a {
    color: black;
}

.step-links a:hover {
    color: #cd5c5c;
}

.account_button {
    margin: auto;
    margin-bottom: 1em;
    transition: background-color .3s, box-shadow .3s;
    padding: 12px 12px 12px 12px;
    border: none;
    border-radius: 3px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    color: black;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: white;
    background-repeat: no-repeat;
    background-position: 12px 11px;

    &:hover {
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
        cursor: pointer;
    }

    &:active {
        background-color: #eeeeee;
    }

    &:focus {
        outline: none;
        box-shadow:
            0 -1px 0 rgba(0, 0, 0, .04),
            0 2px 4px rgba(0, 0, 0, .25),
            0 0 0 3px #c8dafc;
    }

    &:disabled {
        filter: grayscale(100%);
        background-color: #ebebeb;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
        cursor: not-allowed;
    }
}

.login-with-google-btn {
    margin: auto;
    margin-bottom: 1em;
    transition: background-color .3s, box-shadow .3s;
    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 3px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    color: black;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
    background-color: white;
    background-repeat: no-repeat;
    background-position: 12px 11px;
}

.login-with-google-btn:hover {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.login-with-google-btn:active {
    background-color: #eeeeee;
}

.login-with-google-btn:focus {
    outline: none;
    box-shadow:
        0 -1px 0 rgba(0, 0, 0, .04),
        0 2px 4px rgba(0, 0, 0, .25),
        0 0 0 3px #c8dafc;
}

.login-with-google-btn:disabled {
    filter: grayscale(100%);
    background-color: #ebebeb;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    cursor: not-allowed;
}

.popup-sticky {
    display: flex;
    flex-direction: column;
    position: fixed;
    background: white;
    box-sizing: border-box;
    box-shadow: 0 0 5px black;
    padding: 1em;
    overflow: auto;
    max-height: 60vh;
    gap: 0.5em;
    overflow-x: hidden;
    max-width: 500px;
    min-width: 200px;
    z-index: 999999;
    right: 0;
    bottom: 0;
}

@media (max-width: 750px) {
    .popup-sticky {
        font-size: 80%;
        width: 100%;
        max-width: 100%;
        left: 0;
    }
}

.popup-sticky-contents {
    overflow: auto;
    flex-grow: 1;
    padding-right: 1em;
    padding-left: 1em;
}

@keyframes popup-sticky-animation {
    from {
        bottom: -100%;
    }
    to {
        bottom: 0;
    }
}

.popup-sticky {
    animation: 1s popup-sticky-animation;
}

.popup-internal {
    display: flex;
    flex-direction: column;
    position: fixed;
    background: white;
    padding: 1em;
    overflow: auto;
    max-height: 60vh;
    gap: 0.5em;
    overflow-x: hidden;
    max-width: 60vw;
    min-width: 300px;
    z-index: 1;
    box-shadow: 0 0 5px black;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-internal body {
    overflow: hidden;
}

#id_role {
    display: block;
    margin: auto;
    align-content: center;
    gap: 0.5em;
}

.slide-down {
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.slide-down.show {
    opacity: 1;
    transform: translateY(0);
}

.buttons {
    width: fit-content;
    border-radius: 10px;
    padding: 0.4em;
    display: flex;
}

button, .button {
    border-style: none;
    border-radius: 4px;
    padding: 0.4em;
    background: var(--accent);
    color: white;
    font-size: 80%;
    margin: .2em;
    width: fit-content;
    text-decoration: none;
    height: fit-content;
}

button:hover, .button:hover {
    cursor: pointer;
    background: #cd5c5c;
}

button.large, .button.large {
    font-size: 100%;
}

button.padded-button, .button.padded-button {
    padding: 0.75em;
    padding-left: 1em;
    padding-right: 1em;
}

.button-negative {
    background: #cd5c5c;
}

.button-negative:hover {
    background: #9e3d3d;
}


.loading {
    display: none;
    margin: auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--accent);
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    content: "dog'";
    margin: auto;
    margin-top: 3em;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.storycards .htmx-request {
    display: block;
}

.list-infobox .htmx-request {
    display: unset;
}

img {
    object-fit: cover;
    border-radius: 50px;
    max-width: 80px;
    max-height: 80px;
}

a:hover:not(.button) {
    color: #cd5c5c;
}

.stories-table th {
    width: 100%;
    font-size: 120%;
    padding-bottom: 0.5em;
    padding-left: 8px;
}

.user_form {
    display: flex;
    flex-direction: column;
}

.user_form p {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5em;
}

.user_form input:not(.button), .user_form textarea {
    border-style: none;
    background: #eee;
}

.user_form p input:not([type="checkbox"]), .user_form p textarea {
    display: block;
}

.user_form p input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    margin-left: .5em;
}

.content-internal {
    margin: auto;
    display: flex;
    box-sizing: border-box; 
    flex-direction: column;
    max-width: 90ch;
    border-radius: 5px;
    background: white;
    padding: 2em;
    min-height: 100vh;
}

input[type="submit"] {
    width: fit-content;
}

input[type="submit"]:hover {
    cursor: pointer;
    color: white;
    background: #cd5c5c;
}

.popdown p {
    text-align: center;
}

.popdown h1 {
    text-align: center;
}

.search-form {
    z-index: 999;
    background: white;
    margin: 0;
}

.enhanced-search {
    text-align: center;
}

.enhanced-search-form {
    display: block;
    padding: 1em;
    text-align: center;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fbc2eb, #fbc2eb, #a1c4fd, #c2e9fb, #a1c4fd, #fbc2eb, #fad0c4, #ff9a9e);
    background-size: 200% 200%;
    animation: moveGradient 20s infinite linear alternate;
}

.enhanced-search-form .search-enhanced {
    width: 300px;
}

.enhanced-search-form input:nth-child(1) {
    border-radius: 5px 0 0 5px;
}

.enhanced-search-form input:nth-child(2) {
    border-radius: 0 5px 5px 0;
}

.declaration-popdown form {
    gap: 1em;
    flex-direction: column;
}

.declaration-popdown p {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.5em;
    margin: auto;
}

.popup-internal h1 {
    margin: auto;
    text-align: center;
}

.list {
    display: flex;
    border-bottom-style: solid;
    border-bottom-width: 0.25px;
    border-bottom-color: black;
    padding-bottom: 0.25em;
}

.create-list {
    border: none;
    color: black;
    padding-right: 1em;
    padding-left: 1em;
    background: var(--accent);
    width: fit-content;
    margin: auto;
    font-size: 100%;
    padding: 0.5em;
    color: white;
    margin-top: 0.5em;
}

.create-list:hover {
    cursor: pointer;
    color: white;
    background: #cd5c5c;
}

.close-popup {
    border: none;
    background: var(--accent);
    color: white;
    width: fit-content;
    height: 2em;
    font-size: 70%;
    padding-left: 0.7em;
    align-self: flex-end;
    padding-right: 0.7em;
}

.close-popup:hover {
    background: #cd5c5c;
    cursor: pointer;
}

.close-popup-container {
    width: 100%;
    display: flex;
    height: fit-content;
    flex-direction: row-reverse;
}

.close-sticky-popup-container {
    width: fit-content;
    right: 1em;
    position: absolute;
}

.lists {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    margin-bottom: 0.5em;
}

.add-remove-item {
    font-size: 90%;
    margin: 0.2em;
    font-weight: 300;
    display: flex;
    height: 100%;
}

.add-remove-item:hover {
    cursor: pointer;
    color: #cd5c5c;
}

.newNameInput {
    background: none;
}

.list_name {
    font-size: 1.1em;
    font-weight: 600;
}

.lists-list {
    padding: 1em 0.25em 1em;
    border-bottom-style: solid;
    display: flex;
    border-bottom-width: 0.5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

@media only screen and (max-width: 1100px) {
    .lists-list {
        flex-direction: column;
    }
}

.list_number {
    margin-block-start: 0.25em;
    margin-block-end: 0.25em;
}

.list-title {
    flex-grow: 2;
}

.list_index_button {
    margin: unset;
}

footer {
    background: var(--accent);
}

.hover {
    background: var(--accent);
}

.hover:hover {
    background: #cd5c5c !important;
    cursor: pointer !important;
}

#stripe_button {
    width: fit-content;
    color: white;
    margin: auto;
    border: none;
    padding: 0.5em;
    padding: 0.75em;
    padding-left: 1em;
    padding-right: 1em;
    cursor: pointer;
    height: 1.5em;
}

textarea {
    background: #eee;
    border: none;
    border-radius: 5px;
    font-size: 100%;
    padding: 5px;
    resize: vertical;
}

#submission-form {
    max-width: 80ch;
    margin: auto;
}

.declaration-form p input {
    background: #eee;
    width: 100%;
}

.declaration-form {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: auto;
    gap: 1em;
}

.declaration-form p {
    display: flex;
    flex-direction: column;
    margin: auto;
    gap: 0.5em;
}

.browse-infobox {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
    min-width: 50%;
    padding: 1em;
}

.user_form label {
    order: 1;
    font-weight: 600;
    overflow: hidden;
    display: inline-block;
    width: fit-content;
}

select {
    font-size: 100%;
    background: #eee;
    border: none;
    padding: .4em;
}

select.selectized {
    display: none;
}

.errorlist {
    visibility: hidden;
    height: 0;
    position: absolute;
    pointer-events: none;
}

.form_box {
    background: #eee;
    padding-right: 1em;
    padding-left: 1em;
    border-radius: 5px;
    margin: .5em 0;
}

.form_box textarea, .form_box select, .form_box input {
    background: white !important;
}

.meta-section {
    background: var(--accent-light);
    padding: 1em;
    margin-top: 1.5em;
    border-style: solid;
    border-width: 1px;
    border-color: var(--accent);
}

.submission-note {
    border-left: 2px solid #5c5fcd;
    padding-left: .5em;
}

.comments {
    list-style-type: none;
    padding-left: 0;
}

.comment {
    background: #fff;
    padding: .5em .8em;
    margin: .8em 0;
    border-radius: 5px;
    width: 100%;
    font-size: .8em;
    box-sizing: border-box;
}

.comment p {
    padding-left: 10px;
}

.comment-form {
    background: #fff;
    border-radius: 5px;
    padding: 1em;
}

.comment-form p {
    margin: 0 0 .5em 0;
}

.comment-form label, .comment-form input {
    font-size: .8em;
}

.comment-badge {
    display: inline-block;
    border-radius: 15px;
    font-weight: 600;
    font-size: 80%;
    padding: .1em .6em;
    margin: .5em .25em;
}

.comment-badge-admin {
    background-color: #cdceff;
    border: 1px solid #5c5fcd;
    color: #5c5fcd;
}

@media only screen and (max-width: 768px) {
    .topnav {
        padding: 0em;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }

    .detail-cover {
        max-width: 100%;
        max-height: 100%;
    }

    .head-container {
        flex-direction: column;
    }

    .topnav {
        max-width: 0vw;
        min-width: 0vw;
        display: none;
    }

    #drawer-toggle {
        display: block;
        z-index: 1000;
        appearance: none;
        position: absolute;
        top: 10px;
        left: 10px;
        width: 3em;
        height: 2em;
        cursor: pointer;
    }

    #drawer-toggle-label {
        position: absolute;
        display: flex;
        pointer-events: none;
        top: 10px;
        left: 10px;
        width: 3em;
        height: 2em;
        color: white;
        background-color: var(--accent);
    }

    #drawer-toggle:checked~.topnav {
        max-width: 100vw;
        min-width: 100vw;
        display: flex;
    }

    #drawer-toggle:checked~#drawer-toggle-label {
        background-color: #cd5c5c;
    }

    #drawer-toggle-label p {
        align-self: center;
        text-align: center;
        width: 100%;
        font-size: 150%;
        height: 100%;
        margin-top: 0.8em;
    }

    .homepage {
        padding: 0px;
    }
}