/* css settings*/
:root {
    /* text colors */
    --text-color: #503317;
    --header-color: #235c2e;
    --header-shadow: 5px 5px #d0f0cc;
    --subheader-color: #492c10;
    --subheader-shadow: 5px 5px #eee7cc;
    --sidebar-text-color: #000000;
    --sidebar-title-color: #F0F8EA;
    --link-color: #0a6a9e;
    --link-color-hover: #d45d6d;
    --redlink: #b9283b;

    /* background colors 
    --background-color: url("/images/bg-divs-borders/bg-transparent-happy-shocked.png"),
        linear-gradient(180deg, rgba(179, 212, 82, 1) 0%, #6abf4a 15%, #38907c 100%);
    --main-background-color: #f3fad1;
    --sidebar-background-color: url(""),
        #caf8a4;
    --sidebar-title-bg-color: #407932; */

    /* fonts */
    --font: Georgia, serif;
    --header-font: header-font;
    --subheader-font: subheader-font;
    --sidebar-font: main-text-font;
    --cursive-font: caligraphy-font;
    --sidebar-font-size: 17px;
    --font-size: 14.5px;
    --margin: 10px;
    --padding: 20px;

    /* borders */
    --border: 2px solid #2c1906;
    --round-borders: 5px;
    --sidebar-round-borders: 30px;
}

/* fonts */
@font-face {
    font-family: "header-font-alt";
    src: url("/fonts/dumbledor/dum1/dum1.ttf") format("truetype");
}

@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

.poiret-one-regular {
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-style: normal;
}
@font-face {
    font-family: "header-font";
    src: url("/fonts/columbus/ColumbusPlain001000-R026.ttf") format("truetype");
}

@font-face {
    font-family: "main-text-font";
    src: url("/fonts/goudy-bookletter/GoudyBookletter1911-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "subheader-font";
    src: url("/fonts/blue-cashews/Blue_Cashews.otf") format("opentype");
}

@font-face {
    font-family: "webring-header-font";
    src: url("/fonts/mogilte/Mogilte.otf") format("opentype");
}

@font-face {
    font-family: "caligraphy-font";
    src: url("/fonts/signatra/Signatra.ttf") format("truetype");
}

/* borders */
.leaf-border {
    border-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAABJklEQVRYCe2WCwrCMBBEq3glbyQeqngjD6VEeFAmDqkgaadEkHV/SeZ1WztN43NQAvfH9VW+Tt7ZJfYWP+mBVNV8e35qiOPTRxwfSx15fPJY8vhYrc8j6pQ5ha1610cc69bJJ+oUqjLqsGuJUO8s67j9YmbUCdwsXshCd3mIQXRJY/zegoCbTc4SM6P2v949z1D4L/vtDi9r6/4xRC9KBiUoxde63n4uUUhCDH9rsrlEIdnLcqVaV24Q/fWKtMjGELXCy8wwN7aoYyKfaEdYB99qb7MJ7pgZrd5HUcAdz/ONeMvSp3WtdbRP63OJqjLIqELiWNdHHqvrtPqojyFaveGjfK2FCMrxtZ88ceqI45Mnjh9DlANXtihUlVVRx0A+0Y6wjrXVG7RHjllPakGIAAAAAElFTkSuQmCC') 14 / 14px / 0 round;
    border-width: 14px;
    border-style: solid;
}


/* cursor */
a:hover,
button:hover, summary:hover {
    cursor: url('/cursor-link-select.png'), auto;
}

body,
iframe {
    cursor: url('/cursor-default.png'), auto;
}


/* links */
a {
    text-decoration: underline;
}

a,
a:visited {
    color: var(--link-color);
}

a:hover,
a:focus {
    color: var(--link-color-hover);
    text-decoration: none;
    font-style: italic;
}

a.redlink {
    text-decoration: none;
    font-style: italic;
    color: var(--redlink);
}

a.redlink:hover {
    text-decoration: none !important;
    font-style: italic !important;
}

/* body settings */
html {
    background: var(--background-color);
}

#container {
    display: flex;
    flex-direction: column;
    font-size: var(--font-size);
    color: var(--text-color);
    font-family: "Sour GUmmy";
    line-height: 1.2;

    padding: var(--padding);

    margin: 0 auto;
    max-width: 1000px;
}

#middle-container {
    display: flex;
    flex-direction: row;
}

/* header settings*/

header {
    border: var(--border);
    border-radius: var(--round-borders);
    padding: var(--padding);
    background: var(--main-background-color);
}

h1 {
    margin-top: 15px;
    text-align: center;
    font-family: "Sour Gummy";
    font-size: 2.5em;
    color: var(--header-color);
    text-shadow: var(--header-shadow);
}

#header-container {
    height: fit-content !important;
    margin: auto;
    justify-content: space-around;
}

#header-container>img {
    height: fit-content;
    margin-top: auto;
    margin-bottom: auto;
}

/* footer settings */

footer {
    margin-top: 10px;
    border: var(--border);
    border-radius: var(--round-borders);
    overflow: hidden;
    padding: 15px;
    background: var(--main-background-color);
    display: flex;
    justify-content: center;
}

footer p {
    margin: 5px;
}

/* main content */

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.three-column-grid {
    margin-top: 10px;
    display: grid;
    justify-content: center;
    justify-content: space-evenly;
    grid-template-columns: auto auto auto;
}

.two-column-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: auto auto;
}

.heading-right {
    text-align: right;
}

.heading-left {
    text-align: left;
}

.heading-center {
    text-align: center;
}

ul {
    list-style: none;
}

details {
    margin-top: var(--margin);
}

main ul li {
    list-style: url("https://files.catbox.moe/jfyk2l.gif");
}

figure {
    margin: 0;
}

figcaption {
    margin-bottom: 10px;
    text-align: center;
}

.divider {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 20px !important;
}

/* specific settings */

/* code snippet from solaria */
.page {
    display: none;
}

.page:target {
    display: block;
}

.page:target~#home {
    display: none;
}

#spoiler-warning {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #633e1b;
    line-height: 0.1em;
    margin: 20px 0 10px;
}

#spoiler-warning span {
    background: #f3fad1;
    padding: 0 10px;
}

/* tooltip css */

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(68, 68, 68, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 5px;
    
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
  }
  
  .tooltip:hover .tooltiptext, .tooltip:focus .tooltiptext{
    visibility: visible;
  }

#anime-screenshot {
    border-radius: 10px;
    border: 2px outset rgb(102, 101, 101);
    background-color: rgba(255, 255, 255, 0.212);
}

fieldset {
    border: 1.5px dashed grey;
    background-color: rgba(255, 255, 255, 0.342);
}

fieldset {
    margin-top: 1em;
}

/*scrollbox codepen info*/
.scrolling-box {
    display: block;
    width: auto;
    height: 15em;
    padding: 0.5em;
    overflow-y: scroll;
    border-bottom-left-radius: 10px;
    margin-bottom: 10px;
}

.sidebar .scrolling-box {
    width: 100%;
}

/* images */
.right-image {
    float: right;
    clear: right;
    margin-left: 15px;
}

.left-image {
    clear: left;
    float: left;
    margin-right: 15px;
}

.center {
    margin: auto;
    display: block;
    
}

.width-full {
    width: 100%;
}

.flip-horizontally {
    transform: scaleX(-1);
}


/* sidebars */
.empty-sidebar {
    width: auto !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.sidebar {
    border: var(--border);
    padding: var(--padding);
    border-radius: var(--round-borders);
    background: var(--sidebar-background-color);
    color: var(--sidebar-text-color);
    font-family: "Sour Gummy";
    width: 150px;
    margin-top: 10px;
}

.sidebar:first-child {
    border-top-right-radius: var(--sidebar-round-borders);
    border-top-left-radius: var(--sidebar-round-borders);
}

.sidebar:last-child {
    border-bottom-right-radius: var(--sidebar-round-borders);
    border-bottom-left-radius: var(--sidebar-round-borders);
}

/* hehe im learning about pseudo classes */
:is(.sidebar) :is(marquee, li, p) {
    font-size: var(--sidebar-font-size);
}

.sidebar>.sidebar-heading {
    text-align: center;
    font-size: 1.3em;
    font-family: "Sour Gummy";
    background-color: var(--sidebar-title-bg-color);
    color: var(--sidebar-title-color);
    padding-top: 0.1em;
}

.sidebar li {
    margin-bottom: 0.8em;
}

/* nav */

#primary-nav ul {
    padding: 0;
    font-size: 1.2em;
    list-style: none !important;
    justify-content: space-evenly;
    font-family: "Sour Gummy";
}

#primary-nav a:hover {
    text-decoration: underline;
    font-style: normal;
}

#primary-nav a {
    text-decoration: none;
}

#primary-nav ul li {
    margin-bottom: 0;
}

#primary-nav ul li>a {
    padding: 10px;
}

header #primary-nav {
    margin-bottom: 0;
}

header #primary-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

header #primary-nav ul li:first-child>a {
    padding-left: 0;
}

header #primary-nav ul li:last-child>a {
    padding-right: 0;
}

#nightstand-nav ul {
    padding: 0;
    text-align: center;
    font-weight: bold;
}


/* main */

main {
    border: var(--border);
    border-radius: var(--round-borders);
    background: var(--main-background-color);
    padding: var(--padding);
    max-width: 780px;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    line-height: 1.5;
}

main h2:first-child {
    margin-top: 0;
}

h2,
h3,
h4,
h5,
h6 {
     font-family: 'Sour Gummy', sans-serif;
    color: var(--subheader-color);
    margin-bottom: 0;
    line-height: 1.5;
}

h2 {
    font-size: 1.7em;
}

main h2 {
    text-shadow: var(--subheader-shadow);
}

h3 {
    font-size: 1.3em;
}

h4 {
    font-size: 1.2em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: 1em;
}

/*jukebox info - solaria*/
.unordered-list {
    list-style: initial;
    margin: initial;
    padding: 0 0 0 40px;
}

.list {
    display: list-item;
}

.marquee {
    height: 60px;
    overflow: hidden;
    position: relative;
}

.marquee p,
.marquee img {
    position: absolute;
    width: max-content !important;
    height: 100%;
    margin: 0;
    line-height: 50px;
    text-align: center;
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -moz-animation: scroll-left 2s linear infinite;
    -webkit-animation: scroll-left 2s linear infinite;
    animation: scroll-left 8s linear infinite;
}

@-moz-keyframes scroll-left {
    0% {
        -moz-transform: translateX(100%);
    }

    100% {
        -moz-transform: translateX(-100%);
    }
}

@-webkit-keyframes scroll-left {
    0% {
        -webkit-transform: translateX(100%);
    }

    100% {
        -webkit-transform: translateX(-100%);
    }
}

@keyframes scroll-left {
    0% {
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }

    100% {
        -moz-transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

#marq {
    padding: 0px;
    font-family: sour-gummy;
}

.jukebox {
    position: relative;
    width: auto;
}

.jukebox button:first-of-type:not(.unordered-list button) {
    width: 100%;
    border: none;
    margin-top: 5px;
    background: transparent;
}

.jukebox .unordered-list button {
    background: transparent;
    width: 100%;
    font-size: 1em;
    font-family: sour-gummy;
    background-color: lavender;
}

.jukebox .unordered-list {
    display: none;
    list-style: none;
    position: absolute;
    top: 0px;
    left: 120px;
}

.jukebox:hover .unordered-list,
.activate:focus+.unordered-list,
.jukebox:focus-within>.unordered-list {
    display: inline-block;
}

/* show and hide on desktop */
/* pulled from stack overflow, allows to hide on desktop and show on mobile */
@media screen and (max-width: 480px) {
    .show-on-desktop {
        display: none;
    }
}

/* doesn't show on tablet screens */
@media screen and (max-width: 800px) {
    .show-on-desktop-wide {
        display: none;
    }
}

@media screen and (min-width: 700px) {
    .hide-on-desktop {
        display: none;
    }
}

/* 	mobile layout */

@media only screen and (max-width: 800px) {

    .jukebox,
    .sidebar,
    body,
    #container {
        width: auto;
    }

    #container {
        padding: 10px;
    }

    #middle-container {
        flex-direction: column;
    }

    #grid-container-fanlists {
        display: grid;
        grid-template-columns: auto auto !important;
    }

    #grid-container-photo-album {
        grid-template-columns: auto auto !important;
    }

    main {
        margin-left: 0;
        margin-right: 0;
    }

    #primary-nav ul {
        font-size: 1.1em;
    }

    figure img {
        display: block;
        margin: 0 auto;
        margin-bottom: 10px;
    }


    #sidebar-communities {
        width: 100% !important;
        margin-left: unset !important;
    }
}

@media only screen and (max-width: 500px) {
    #grid-container-my-room {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr !important;
    }

    #grid-container-fanlists {
        grid-template-columns: auto !important;
    }

    #grid-container-archive {
        grid-template-columns: 1fr !important;
        gap: 1em;
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    #grid-container-brainrot {
        margin-left: -10px;
        margin-right: -10px;
    }

    #grid-container-photo-album {
        grid-template-columns: auto !important;
    }

    .grid-container-right,
    .grid-container-left {
        grid-template-columns: auto !important;
        width: 100% !important;
    }

    .grid-container-right {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    #categories {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .two-column-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr !important;
    }

    .divider {
        width: 100%;
        image-rendering: pixelated;
    }

    #starry-pfp {
        float: none !important;
        margin: auto;
    }

    #spoiler-warning {
        line-height: normal !important;
    }
}