/*.......................... 

You are welcome to use my HTML/CSS to study or use to learn/edit your own. - B. 

part of this layout was inspired by repth's template (https://repth2.neocities.org/ & https://repth.neocities.org/themei) and livejournal

...........................*/

@import url('https://fonts.bunny.net/css2?family=Aleo');
@import url('https://fonts.bunny.net/css2?family=Amiko');
@import url('https://fonts.bunny.net/css2?family=Coustard');

:root {
    --bg-color: #cda1bb;
    --bg-image: url('/assets/backgrounds/pinkplaidbg.jpg');
    --cursor-image: url('/assets/cursors/pink_bow.png');

    --text-color: #514e4f;
    --link-color: #6d6660;
    --link-visited: #201f1f;
    --link-bg: #e2c6c3;

    --accent: #e78394;
    --accent-soft: #f0c6cc;
    --italics: #caa9ac;

    --box-bg: #ffffff;
    --sidebar-text: #4f5457;
    --sidebar-link-bg: #dfc0c5;

    --scrollbar-track: #505455;
    --scrollbar-thumb: #e3c3c6;

    --heading-color: #524343;
    --heading-accent: #db7575;
    --entry-border: #f5d1e1;
    --entry-date: #fb9898;
    --entry-title: #6c3e3e;

    --blockquote-bg: #f7f5f5;
    --blockquote-border: #ead5d5;
    --blockquote-shadow: #e0bbbb;
    --gallery-border: #000000;
}

html, a {
     cursor: var(--cursor-image), auto;
}
body {
     background: var(--bg-color) var(--bg-image) fixed;
     line-height: 1.6;
     font-family: 'Amiko';
     font-size: 14px;
     text-align: justify;
     letter-spacing: 1px;
     color: var(--text-color);
}
h1, h2, h3 {
     font-family: 'Aleo';
     text-shadow: 1px 1px 1px #fff;
     margin: 1em 0 0.5em;
     text-align: center;
}
h4 {
     font-family: 'Aleo';
     text-shadow: 1px 1px 1px #fff;
     margin: 1em 0 0.5em;
}
img {
     object-fit: contain;
     max-width: 100%;
}
.centering {
     text-align: center;
}
img, video, iframe, audio {
     display: block;
     margin-inline: auto;
}
strong, b {
     color: #4f443d;
}
em, i {
    color: var(--italics);
}
article, section {
    margin-bottom: 1em;
}
 ::-webkit-scrollbar {
     width: 11px;
}
 ::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track);
}
 ::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
}

/*---------------------------------------- 

      footnotes

----------------------------------------*/

sup {
    font-size: 0.75em;
    line-height: 0;
}

sup a {
    font-size: 1em;
    text-decoration: none;
}
.footnotes {
    margin-top: 2em;
    border-top: 1px solid #ccc;
    padding-top: 1em;
    font-size: 0.9em;
}
.footnotes ol {
    counter-reset: footnotes;
    list-style: none;
    padding-left: 0;
}
.footnotes li {
    counter-increment: footnotes;
    margin: 0.65em 0;
    list-style: none;
    padding-left: 0;
}
.footnotes li::before {
    content: "\279F " counter(footnotes) ". ";
    margin-right: 0.4ch;
    font-weight: bold;
    color: var(--text-color);
}
.footnotes .back-link {
    margin-left: 0.5em;
    text-decoration: none;
    font-weight: bold;
}
.footnotes .back-link::before {
    content: " ";
}
.footnote-number {
     font-weight: bold;
}
.back-link {
     margin-left: 0.5em;
     text-decoration: none;
}

/*---------------------------------------- 

       links 

----------------------------------------*/

a {
    text-decoration: none;
    color: var(--link-color);
}
a:visited {
    color: var(--link-visited);
}
a:hover, a:active {
    font-style: italic;
}
main a {
    display: inline;
    padding: 0.02em 0.3em;
    border: 1px solid var(--accent-soft);
    border-radius: 0.35em;
    background:
      linear-gradient(
         to bottom,
         var(--blockquote-bg),
         var(--link-bg)
        );
    box-shadow: 1px 1px 1px var(--blockquote-shadow);
    line-height: 1.6;
}
main a:hover, main a:active {
    color: var(--heading-accent);
    border-color: var(--accent);
    font-style: italic;
}
#sidebar li a {
    display: block;
    padding: 0.1em 0;
    color: var(--link-color);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
#sidebar li a:hover, #sidebar li a:active {
    font-style: italic;
}

/*---------------------------------------- 

list styling 

----------------------------------------*/

main ul {
    padding-left: 1.2em;
}
main li {
    margin: 0.2rem 0;
    list-style: none;
}
main li::before {
    content: "\279F";
    margin-right: 0.5ch;
}

/*---------------------------------------- 

main 

----------------------------------------*/

#bigcontainer {
     display: flex;
     align-items: flex-start;
     gap: 2em;
     width: 89vw;
     margin: 20px auto;
     min-height: 90vh;
}
main {
     flex: 1;
     min-width: 0;
}
#sidebar, main, #footer {
     box-sizing: border-box;
     padding: 1em;
     border-radius: 1em;
     box-shadow: 0.25em 0.25em 0.5em rgba(0,0,0,0.4);
     background-color: var(--box-bg);
     border: 2px solid var(--accent);
}
#paulblend-small-img {
     border-radius: 0.5em;
     display: block;
     margin: 0 auto;
     max-width: 100%;
     height: auto;
     border: 2px solid #644331;
     box-shadow: 0.25em 0.25em 0.5em rgba(0,0,0,0.4);
}
main hr {
     border: none;
    border-bottom: 2px solid var(--accent-soft);
     margin: 0.5em auto;
     width: 100%;
}

/*---------------------------------------- 

sidebar 

----------------------------------------*/

#sidebar {
     width: 17vw;
     color: #4f5457;
     position: sticky;
     top: 1em;
}
#sidebar p {
     font-size: 0.8em;
     max-width: 30ch;
     text-align: center;
     margin: 1em auto;
     line-height: 1.3;
}
#sidebar ul {
     padding-left: 0;
     margin: 0;
}
#sidebar li {
     display: flex;
     margin: 0.40em 0;
     line-height: 1.1em;
}
#sidebar li::before {
     content: url('/assets/graphics/ribbon.png');
     margin-right: 0.3ch;
}
#profimg {
     display: flex;
     justify-content: center;
}
#profimg img {
     max-width: 300px;
     width: 100%;
     border-radius: 0.5em 0.5em 0 0;
}
#sidebar .centering img {
     display: block;
     margin: 0.25em auto;
}
#sidebar hr {
     border: none;
     border-bottom: 2px solid var(--accent-soft);
     margin: 0.5em auto;
     width: 90%;
}
#links {
     display: flex;
     justify-content: center;
     padding: 0.75em 1em;
     font-family: 'Coustard';
     font-size: 1.1em;
     background-color: var(--sidebar-link-bg);
     border-bottom-left-radius: 0.5em;
     border-bottom-right-radius: 0.5em;
}

/*---------------------------------------- 

flex 2 the flexening becomes flex ONE (no I don't know why)

----------------------------------------*/

#content {
     flex: 1;
     min-width: 0;
     display: flex;
     flex-direction: column;
     gap: 2em;
}
h1 {
     font-size: 29px;
     color: var(--heading-color);
     text-align: center;
}
h2 {
     font-size: 27px;
     color: var(--heading-color);
     text-decoration: underline;
}
h3 {
     font-size: 23px;
     color: var(--heading-accent);
     text-align: center;
     text-decoration: underline;
}
h4 {
     font-size: 20px;
     color: var(--accent-soft);
     text-align: center;
     text-decoration: underline;
}

/*---------------------------------------- 

LJ modernized thank u repth

----------------------------------------*/

.entryhead {
     display: flex;
     align-items: flex-end;
     gap: 0.75em;
     border-bottom: 1px solid var(--entry-border);
     padding-bottom: 0.5em;
     margin-bottom: 1em;
}
.icon {
     flex: 0 0 100px;
}
.icon img {
     width: 100%;
     height: auto;
     display: block;
}
.date {
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
     gap: 0.2em;
}
.date p {
     margin: 0;
     color: var(--entry-date);
     font-size: 0.9em;
}
.header {
    margin-left: auto;
    text-align: right;
    flex: 1;
    min-width: 0;
}
.header h1 {
    font-family: 'Aleo';
    font-size: clamp(16px, 2.2vw, 25px);
    color: var(--entry-title);
    margin: 0;
    transform: translateY(7px);
}

/*---------------------------------------- 

fansite specific

----------------------------------------*/
.translation-meta {
    font-size: 0.85em;
    color: var(--italics);
    margin-left: 0.35ch;
}
.bree-note {
    max-width: 100ch;
    margin: 2em auto;
    padding: 1.25em;
    background-color: var(--blockquote-bg);
    border: 1px solid var(--blockquote-border);
    border-left: 4px solid var(--heading-accent);
    border-right: 4px solid var(--heading-accent);
    border-radius: 0.75em;
    box-shadow: 1px 1px 1px var(--blockquote-shadow);
}
.bree-note h3, .bree-note h4 {
    margin-top: 0;
    text-align: center;
    color: var(--entry-title);
}
.research-nav {
    max-width: 80ch;
    margin: 1.5em auto;
    padding: 1em;
    text-align: center;
    background-color: var(--blockquote-bg);
    border: 1px solid var(--blockquote-border);
    border-left: 3px solid var(--heading-accent);
    border-right: 3px solid var(--heading-accent);
    border-radius: 6px;
}
.research-nav a {
    display: inline;
    padding: 0.02em 0.3em;
    border: 1px solid var(--accent-soft);
    border-radius: 0.35em;
    background:
      linear-gradient(
         to bottom,
         var(--blockquote-bg),
         var(--link-bg)
        );
    box-shadow: 1px 1px 1px var(--blockquote-shadow);
    line-height: 1.6;
}
.research-nav a:hover {
    color: var(--heading-accent);
    border-color: var(--accent);
    font-style: italic;
}
.photo-set {
    margin: 1.25em auto;
    text-align: center;
}
.photo-set img {
    max-height: 300px;
    max-width: 800px;
    width: auto;
    border: 2px solid var(--gallery-border);
    border-radius: 0.4em;
    box-shadow: 0.2em 0.2em 0.4em rgba(0,0,0,0.25);
}
.photo-set figcaption {
    max-width: 110ch;
    margin: 0.75em auto 0;
    font-size: 0.9em;
    color: var(--text-color);
    text-align: center;
}
.photo-set-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}
.photo-set-grid img, .photo-set-grid video, .photo-set-grid iframe {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 300px);
    max-height: 320px;
    object-fit: contain;
    border: 2px solid var(--gallery-border);
    border-radius: 0.4em;
    box-shadow: 0.2em 0.2em 0.4em rgba(0,0,0,0.25);
}
.video-set {
    margin: 1.25em auto;
    text-align: center;
}
.video-set-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75em;
}
.video-set-grid video, .video-set-grid iframe {
    display: block;
    max-width: min(100%, 350px);
    max-height: 425px;
    border: 2px solid var(--gallery-border);
    border-radius: 0.4em;
    box-shadow: 0.2em 0.2em 0.4em rgba(0,0,0,0.25);
}
.video-set figcaption {
    max-width: 110ch;
    margin: 0.75em auto 0;
    font-size: 0.9em;
    color: var(--text-color);
    text-align: center;
}
.video-set video {
    display: block;
    max-width: min(100%, 350px);
    max-height: 425px;
    border: 2px solid var(--gallery-border);
    border-radius: 0.4em;
    box-shadow: 0.2em 0.2em 0.4em rgba(0,0,0,0.25);
}
.image-sequence {
    margin: 1.25em auto;
    text-align: center;
}
.image-sequence-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75em;
}
.image-panel {
    max-width: 260px;
    text-align: center;
}
.image-panel img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 399px;
    object-fit: contain;
    border: 2px solid var(--gallery-border);
    border-radius: 0.4em;
    box-shadow: 0.2em 0.2em 0.4em rgba(0,0,0,0.25);
}
.image-panel p {
    margin: 0.35em 0;
    font-size: 0.9em;
    font-style: italic;
}
.image-sequence figcaption {
    max-width: 90ch;
    margin: 0.75em auto 0;
    font-size: 0.9em;
}

/*---------------------------------------- 

extra stuff

----------------------------------------*/

blockquote {
  margin: 0px 45px;
  padding: 30px 30px 30px 50px;
  background-color: var(--blockquote-bg);
  border: 1px solid var(--blockquote-border);
  border-radius: 6px;
  box-shadow: 1px 1px 1px var(--blockquote-shadow);
  border-left: 3px solid var(--heading-accent);
  border-right: 3px solid var(--heading-accent);
  margin-bottom: 1.5rem;
}
.quote-cite {
  display: block;
  margin-top: 0.75em;
  font-size: 0.9em;
  text-align: right;
}
.quote-cite::before {
  content: "↳ ";
}
.spoiler {
     background-color: black;
     color: transparent;
     user-select: none;
}
.spoiler:hover {
     background-color: inherit;
     color: inherit;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.gallery img {
    display: block;
    margin: 0;
    max-height: 130px;
    max-width: 100%;
    height: auto;
    width: auto;
    border: 2px solid var(--gallery-border);
    border-radius: 2px;
}
.decor {
    position: fixed;
    bottom: 0;
    right: 0;
}
.decor a {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
}
.decor img {
    max-width: 100px;
    height: auto;
    display: block;
}
code {
    background-color: #efedeb;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
}
pre {
    background-color: #efedeb;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1em;
    overflow: auto;
    margin: 1.5em auto;
    line-height: 1.5;
    max-width: 90%;
    word-wrap: break-word;
    white-space: pre-wrap;  
}
pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
    color: inherit;
    display: block;
}
.code-block {
    overflow-x: auto;
    white-space: pre;
    padding: 1rem;
    border: 1px solid var(--gallery-border);
    background: var(--blockquote-bg);
    border-radius: 6px;
    font-family: Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/*----------------------------------------

    theme switcher

----------------------------------------*/

#theme-switcher {
    border-top: 2px solid var(--accent-soft);
    text-align: center;
}

#theme-switcher button {
    margin: 0.2em;
    padding: 0.3em 0.6em;
    border-radius: 0.5em;
    border: 1px solid var(--accent);
    background: var(--link-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.8em;
}

#theme-switcher button:hover {
    font-style: italic;
}

.theme-blue {
    --bg-color: #E6E6E6;
    --bg-image: url('/assets/backgrounds/blueplaid.jpg');
    --cursor-image: url('/assets/cursors/blue_bow.png');

    --text-color: #0F1720;
    --link-color: #0F1720;
    --link-visited: #1e1d1d;
    --link-bg: #E6E6E6;

    --accent: #0D8ECF;
    --accent-soft: #0A5F8A;
    --italics: #6a969b;

    --box-bg: #ffffff;
    --sidebar-text: #285b85;
    --sidebar-link-bg: #dceff8c9;

    --scrollbar-track: #1A1A1D;
    --scrollbar-thumb: #CFCFCF;

    --heading-color: #2f4f4f;
    --heading-accent: #1f8bac;
    --entry-border: #6f959a;
    --entry-date: #436885;
    --entry-title: #1e3c4d;

    --blockquote-bg: #f0f4f4;
    --blockquote-border: #68c2d2;
    --blockquote-shadow: #6f879a;
    --gallery-border: #0e506c;
}

.theme-tan {
    --bg-color: #c0bcbd;
    --bg-image: url('/assets/backgrounds/burberry.gif');
    --cursor-image: url('/assets/cursors/tan_bow.png');

    --text-color: #4e4747;
    --link-color: #787777;
    --link-visited: #383434;
    --link-bg: #cab29a;

    --accent: #815c62;
    --accent-soft: #cab29a;
    --italics: #978579;

    --box-bg: #ffffff;
    --sidebar-text: #636262;
    --sidebar-link-bg: #cab29a;

    --scrollbar-track: #ffffff;
    --scrollbar-thumb: #d89ea5;

    --heading-color: #4e4747;
    --heading-accent: #815c62;
    --entry-border: #cab29a;
    --entry-date: #a06f78;
    --entry-title: #685243;

    --blockquote-bg: #f4ede7;
    --blockquote-border: #cab29a;
    --blockquote-shadow: #b8a38c;
    --gallery-border: #815c62;
}

/*---------------------------------------- 

people who design for mobile are insane

----------------------------------------*/

@media (max-width: 1180px) and (min-width: 1025px) {
    .entryhead {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .date {
        flex: 1 1 34ch;
        min-width: 0;
    }
    .header {
        flex: 1 1 100%;
        margin-left: 0;
        text-align: left;
    }
    .header h1 {
        transform: none;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}
 @media (max-width: 1024px) {

     body {
         font-size: 15px;
         text-align: left;
    }
     #bigcontainer {
         flex-direction: column;
         width: 95svw;
         gap: 1.5em;
    }

     #sidebar {
         width: 100%;
         position: relative;
         top: auto;
    }
     #sidebar p {
         font-size: 0.9em;
         max-width: 95%;
         margin: 0.5em auto;
    }
     #sidebar hr {
         width: 95%;
         margin: 0.5em auto;
    }
     #profimg {
         display: flex;
         justify-content: center;
         align-items: center;
         margin-bottom: 1em;
    }
     #profimg img {
         max-width: 300px;
         height: auto;
    }
     #sidebar li {
         margin: 0.1rem 0;
         list-style-type: none;
    }
     #sidebar li::before {
         margin-right: 0.3ch;
    }
     #sidebar a {
         font-size: 0.95em;
    }
     main {
         width: 100%;
         padding: 1em;
    }
     h1 {
         font-size: 25px;
    }
     h2 {
         font-size: 25px;
    }
     h3 {
         font-size: 21px;
    }
     h4 {
         font-size: 18px;
    }
     .entryhead {
         flex-direction: column;
         align-items: flex-start;
         gap: 0.5em;
         padding-bottom: 1em;
         margin-bottom: 1em;
    }
     .icon {
         width: 70px;
    }
     .date {
         flex-direction: row;
         justify-content: flex-start;
         gap: 0.5em;
         font-size: 0.85em;
         padding: 0;
    }
     .header {
         margin-left: 0;
         text-align: left;
         max-width: 100%;
    }
     .header h1 {
         font-size: 20px;
         transform: none;
         margin-top: 0.25em;
    }
     .gallery img {
         height: auto;
         max-width: 45%;
    }
     blockquote {
         margin: 1em;
         padding: 1em;
    }
     video, iframe {
         max-width: 100%;
         height: auto;
    }
     img {
         max-width: 100%;
         max-height: 85vh;
    }
     .decor {
         display: none;
    }
    .photo-set-grid {
        gap: 0.4em;
    }
    .photo-set-grid img {
        max-width: 100%;
        max-height: 35vh;
    }
    /* gallery thumbnails from turning into giant stacks */
    .photo-set .gallery img {
    max-width: min(45%, 180px);
    max-height: 35vh;
    width: auto;
    height: auto;
    }
    /* comparison grids compact on mobile */
    .photo-set .photo-set-grid img, .photo-set .photo-set-grid video, .photo-set .photo-set-grid iframe {
    max-width: min(48%, 300px);
    max-height: 35vh;
    width: auto;
    height: auto;
    }

@media (max-width: 560px) {
    .photo-set .photo-set-grid img,
    .photo-set .photo-set-grid video,
    .photo-set .photo-set-grid iframe {
        max-width: 100%;
    }
    .photo-set .gallery img {
        max-width: min(47%, 160px);
    }
}
}
