@import "code-light.css"(prefers-color-scheme: light);
@import "code-dark.css"(prefers-color-scheme: dark);

:root {
    --main-background: #f5e3e0;
    --background: #e6bab2;
    --background-dim: #dff4f6;
    --background-dim-alt: #dde1e3;
    --foreground: #2B303A;
    --foreground-dim: #576379;
    --foreground-heavy: #191C22;
    --primary-color: #375287;
    --separator: " ✦ ";
    --separator-font-size: 0.8rem;
    --separator-margin: 0 0.5ex;
    --separator-position: relative;
    --separator-top: -0.1rem;
}

html {
    font-size: 18px;
    font-family: Arial;
}

body {
    margin: 0 auto;
    max-width: 650px;
    min-width: 400px;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    padding: 0rem 0.5rem;
}

h1.site-title {
    /* makes it look more centered with the emoji there */
    position: relative;
    left: -0.5rem;
}

main {
    background: var(--main-background);
    max-width: 100%;
    min-height: 70vh;
    padding: 2rem;
    border-radius: 15px;
}



aside {
    font-size: smaller;
    font-style: italic;
    color: var(--foreground-dim);
}

aside p {
    margin: 0;
}

img {
    max-width: 100%;
    border-radius: 5px;
    width: auto;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    color: var(--foreground-heavy);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline
        /*wavy*/
    ;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    text-decoration: none;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
    text-decoration: underline;
}

nav ul {
    list-style: none;
}

nav li {
    display: inline;
}

nav li+li:before {
    content: var(--separator);
    font-size: 0.8rem;
    margin: 0 0.5ex;
    position: relative;
    top: -0.1rem;
}

article {
    background: aliceblue;
    padding: 0px 10px;
    border-radius: 8px;
}

article header {
    margin: 0.5rem 0;
}

article header div {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

h2 {
    margin: 0px;
}

article header time {
    white-space: nowrap;
    color: var(--foreground-dim);
    font-style: italic;
    font-size: 0.7rem;
    margin-left: 7px;
    /* flex: 0 0 12ex; */
}

article header h2,
article header p {
    font-size: 1rem;
    display: inline;
}

code,
pre {
    background: var(--background-dim);
    border-radius: 0.3rem;
    font-family: monospace;
}

pre {
    padding: 1rem;
    border-left: 2px solid var(--primary-color);
    overflow: auto;
}

code {
    padding: 0.1rem 0.2rem;
}

/* reset the padding for code inside pre */
pre code {
    padding: 0;
}

blockquote {
    background: var(--background-dim);
    border-radius: 0 0.3rem 0.3rem 0;
    font-style: italic;
    border-left: 2px solid var(--primary-color);
    margin: 0;
    padding: 1rem;
}

/* reset the margin for p inside blockquotes */
blockquote p {
    margin: 0;
}

#turbo-encabulator-banner {
    background: var(--background-dim);
    border-radius: 0 0 5px 5px;
    border: 2px solid;
    border-top: none;
    position: fixed;
    top: 0;
    padding: 5px 10px;
    font-weight: bold;
}


header.site-header {
    text-align: center;
    padding: 2rem 0;
}

body footer {
    margin: 3rem 0;
    color: var(--foreground-dim);
    font-size: smaller;
    text-align: center;
    position: sticky;
    bottom: 0;
    background-color: var(--background-dim);
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

header nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

header nav ul {
    padding-left: 0;
    margin: auto;
}

header h1 {
    margin: 0 auto;
    color: var(--primary-color);
}

header h2 {
    display: inline;
    font-size: 1.2rem;
}

ol li::marker {
    content: var(--separator);
    font-size: 0.7rem;
    position: relative;
    top: -0.1rem;
}


/** Plate **/
.plate-item p {
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.plate-item img {
    border-radius: 5px;
    margin: 0 0 0.0rem 0;
}

/** Album **/
.album-wrapper {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    flex-direction: row;
}

.album-wrapper h3 {
    font-size: 1.25rem;
    margin: 0;
}

.album-wrapper h4 {
    font-size: 1.125rem;
    font-style: italic;
    margin: 0;
}

.album-header {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.album-link {
    margin-left: auto
}

.album-wrapper img {
    max-height: 14rem;
    max-width: 14rem;
    border-radius: 5px;
    margin: 0 1rem 0 0;
}

.album-wrapper p {
    margin: 0;
}

/** Movie **/
div.movie-item-wrapper {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    flex-direction: row;
}

.movie-item-wrapper p {
    margin: 0;
    width: 100%;
}


div.movie-item-title {
    flex-direction: column;
    flex-grow: 1;
}

.movie-item-wrapper img {
    float: right;
    max-width: 10rem;
    max-height: 10rem;
    border-radius: 5px;
    margin-top: -1.5rem;
}

.movie-detail p {
    display: flex;
    flex-direction: column-reverse;
}

.movie-detail img {
    margin-top: 10px;
}


/** Chat - Blockquote **/
blockquote.chat {
    border-radius: 10px 10px 10px 0px;
    max-width: 71%;
    padding: 0.2rem 0.4rem;
    width: fit-content;
    margin-bottom: 8px;
    border: 2px solid var(--primary-color);
    font-style: normal;
}

blockquote.chat.right-normal {
    border-radius: 10px 10px 0px 10px;
    text-align: right;
    margin-left: auto;
}

blockquote.chat.right {
    border-radius: 10px 10px 0px 10px;
    text-align: right;
    margin-left: auto;
    background: var(--background-dim-alt);
    font-style: italic;
}

/** Chat - List **/
:not(nav)>ul {
    padding: 0;
    margin: 0;
}

:not(nav)>ul li {
    list-style: none;
    border-radius: 10px;
    padding: 0.2rem 0.4rem;
    width: fit-content;
    margin-bottom: 8px;
    border: 2px solid var(--primary-color);
    font-style: normal;
    background: var(--background-dim);
    max-width: 25rem;
}

ul li:last-child {
    border-radius: 10px 10px 10px 0px;
}

/** Pagination **/
.pagination ol {
    padding: 0;
    text-align: center;
}

.pagination ol li:only-child:before {
    content: var(--separator);
    font-size: var(--separator-font-size);
    margin: var(--separator-margin);
    position: var(--separator-position);
    top: var(--separator-top);
}

.pagination ol li:only-child:after {
    content: var(--separator);
    font-size: var(--separator-font-size);
    margin: var(--separator-margin);
    position: var(--separator-position);
    top: var(--separator-top);
}
