@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --default-font: "Karla", sans-serif;
    --bg-color: black;
    --text-color: white;
    --link-color: white;
    --bg-img: none;
}


[data-writing=default] {
    --text-color: white;
    --bg-color: black;
    --link-color: white;
    --bg-img: none;
}

[data-writing=light] {
    --text-color: black;
    --bg-color: white;
    --link-color: var(--text-color);
    --bg-img: none;
}

[data-writing=console] {
    --text-color: rgb(159, 255, 33);
    --bg-color: rgb(9, 68, 9);
    --link-color: var(--text-color);
    --bg-img: none;
}

[data-writing=sepia] {
    --text-color: #403126;
    --bg-color: #e3ceb9;
    --link-color: #403126;
    --bg-img: none;
}

.layout-credit {
    display: none;
}

.ratings {
    display: none;
}

#aob-header {
    display: none;
}

.category-desc {
    font-size:smaller; text-align: center; font-style: italic;
}

    .story-tags, .story-categories {
      display: none;
    }

[data-writing="aob"] {
    --text-color: #DDDAD6;
    --bg-color: #181A1B;
    --link-color: var(--text-color);
    --bg-img: none;

    --cursor: auto;
    --cursor-hover: pointer;

    .story-categories{
        margin: 0;
        padding: 0;
    }

    .story-categories,
    .story-tags {
        list-style-type: none;
        display: inline-block;
    }

    .story-tags {
        display: inline-block;
        margin: 5px 0;
        padding: 0;
    }

    #default-header {
        display: none;
    }
    .story-categories li,
    .story-tags li  {
        display: inline;
    }

    .story-tags li,
    .story-categories li {
        text-decoration: underline dotted var(--text-color);
    }

    .story-tags li:not(:last-child)::after,
    .story-categories li:not(:last-child)::after {
        content: ", ";
        display: inline-block;
    }

    .story-tags li p,
    .story-categories li p  {
        margin: 0;
        padding: 0;
        
    }

    .story-tag:hover,
    .story-categories li p:hover  {
        background-color: #2E6C6E;
        cursor: var(--cursor-hover);
    }

    .story {
        border: 1px gray solid;
        padding: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .category-works{
        gap: 1rem;    
        padding-top: 1rem;
        padding-bottom: 1rem;
        box-shadow: inset 0 0 .5em black;
    }

    .story-desc {
        margin-left: 0;
    }

    .ratings {
        display: flex;
        width: 60px;
        height: 60px;
        background-color: red;
    }

    #aob-header {
        display: block;
        position: relative;
        margin-bottom: 2rem;
    }

    #aob-bar {
        display: flex;
        background: #1b6380;
        background: linear-gradient(0deg, rgba(27, 99, 128, 1) 0%, #2E6C6E 100%);
        justify-content: space-between;
        align-items: stretch;
        flex-wrap: wrap;
    }

    #aob-nav {
        display: flex;
        gap: 1rem;
        align-items: center;
        flex-wrap: wrap;
    }

    #aob-bar div {
        display: flex;
        align-items: center;
    }

    #aob-bar a {
        text-decoration: none;
    }

    .aob-disclaimer {
        font-size: x-small;
    }
    #aob-bar a:hover {
        background-color: rgb(187, 187, 187);
        color: black;
    }

    #aob-site-title {
        height: 4rem;
        font-size: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #83c3c4;
    }

    .super {
        vertical-align: super;
        font-size: .7rem;
        font-style: italic;
    }

    #aob-search {
        background-color: lightgray;
        color: black;
        border-radius: 15px;
    }

    .story-title-cont {
        display: flex;
        align-content: start;
        gap: 1rem;
        text-align: left;
        margin-bottom: .5em;
    }

    #aob-site-title,
    .category-title,
    .story-title {
        font-family: 'Georgia', serif;
    }

    .story-title h3,
    .story-title p,
    .category-title-header,
    .category-desc {
        padding: 0;
        margin: 0;
    }

    .block {
        border: 2px solid gray;
        gap: 0;
        margin: 0;
    }

    .category-title-header {
        text-align: left;
    }

    .category-title {
        background-color: #2B2F31;
        padding: 1rem;
    }

    .category-desc {
        text-align: left;
    }

    #blocks-cont {
        gap: 3rem;
        padding-top: 3rem;
    }

    .layout-credit {
        display: block;
        font-size: .7em;
        font-style: italic;
    }
    
}


html {
    background-color: var(--bg-color);
    background-image: var(--bg-img);
    color: var(--text-color);
    text-align: justify;
    font-family: var(--default-font);
    margin: 0;
    padding: 0;
}

p {
    font-size: 1em;
}

a:hover {
    cursor: var(--cursor-hover);
}

a,
a:visited,
a:active {
    color: var(--link-color);
    cursor: var(--cursor-hover);
}

h1,
h2,
h3 {
    text-indent: 0;
    text-align: center;
}

h1 {
    text-transform: uppercase;
    font-size: 3rem;
    line-height: 3rem;word-break: break-word;
    text-wrap: wrap;
}

.round {
    border-radius: 50%;
}

#text-cont {
    width: 50%;
    margin: auto;
    line-height: 2em;
    margin-top: 6rem;
}

#text-cont p {
    text-indent: 2rem;
}

blockquote p {
    text-indent: 0rem !important;
}

.sano-quote {
    text-align: center;
    margin-top: 14rem;
    margin-bottom: 10rem;
}

#default-header {
    display: block;
}

#footer {
    position: relative;
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 6rem;

}

#footer p {
    text-indent: 0 !important;
}

#nav {
    margin-top: 6rem;
    margin-bottom: 3rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;

}

.previous,
.next,
.home,
.index {
    padding: 1rem;
    text-transform: uppercase;
    width: 10rem;
}

.previous::after {
    content: "Previous";
}

.next::after {
    content: "Next";
}

.index::after {
    content: "Index";
}

.home::after {
    content: "Home";
}


.disabled,
.disabled:hover {
    color: gray;
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
}

.disabled>a {
    pointer-events: none;
}

.previous:hover,
.next:hover,
.home:hover,
.index:hover {
    text-decoration: none;
}

figure {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.break {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 2em;
    opacity: .5;

    margin-top: 6rem;
    margin-bottom: 6rem;

    &:before {
        content: '';
        background: linear-gradient(to right, transparent, #818078, transparent);
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
    }

    &:after {
        content: attr(data-content);
        position: relative;
        display: inline-block;
        color: rgb(255, 255, 255);
        font-size: 2em;

        padding: 0 .5em;
        line-height: 1em;
        color: #818078;
        background-color: var(--bg-color);
    }
}

.article-image {
    width: 75%;
    margin: auto;
}

.image {
    display: block;
    width: 75%;
    margin: auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.story-img {
    display: block;
    max-width: 100%;
    margin: auto;
    margin-top: 3rem;
    margin-bottom: 3rem;

}

.horiz {
    max-width: 80%;
}

.vert {
    max-width: 50%;
}

.quote {
    margin-top: 6rem;
}

.quote p {
    text-indent: 0 !important;
    font-style: italic;
    text-align: center;
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 768px) {
    #text-cont {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
        width: 100%;
    }

    .article-image,
    .image {
        width: 100%;
    }

    #text-cont {
        margin-top: 6rem;
    }

    [data-writing="aob"] #aob-bar {
        padding: .5rem;
    }
    h1 {
        font-size: 2rem;
        line-height: 2rem;
    }
    h2 {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
    h3 {
        font-size: 1rem;
    }
}

/* // Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    #text-cont {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
    }

    .article-image,
    .image {
        width: 100%;
    }

    [data-writing="aob"] #aob-bar {
        padding-left: 5rem;
        padding-right: 5rem;
    }

}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #text-cont {
        width: 50%;
        margin: auto;
        margin-top: 6rem;
    }

    .article-image {
        width: 75%;
    }
    [data-writing="aob"] #aob-bar {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}