@font-face {
    font-family: IBM Model3x;
    src: url("fonts/Ac437_IBM_Model3x_Alt1.ttf") format("truetype");
}
@font-face {
    font-family: 'My Little Pony';
    src:url("https://dl.dropbox.com/s/gaofrrphg2es3od/PONY%20-%20MLP%202%20-%20Version%202.ttf") format("truetype");
}

@counter-style fancy-arrows {
    system: fixed;
    symbols: ┊ ╰┈┈➤ ╰┈┈➤ ╰┈┈➤ ╰┈┈➤;
    suffix: " "

}

:root {
	--primary-color: rgb(240, 245, 255);
	--secondary-color: rgb(235, 255, 242);
	--tertiary-color: rgb(223, 255, 208);
	--accent: #8e76e3;
	--body-gradient: white;
	--body-img: url("imgs/backgrounds/telephone-cloud.jpg");
	--content-img: transparent;
	--cursor: url("imgs/cursors/normal-select-2-yellow.gif");
	--pointer: url("imgs/cursors/link-select.gif");
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
	cursor: var(--cursor), auto;
	height: 100vh;
}
body {
	font-size: 16px;
	font-family: IBM Model3x, MS UI Gothic, Noto Sans JP;
	background: radial-gradient(circle,rgba(255, 255, 255, 0) 58%, rgba(255, 209, 209, 1) 66%, rgba(255, 241, 214, 1) 69%, rgba(253, 255, 219, 1) 72%, rgba(227, 255, 225, 1) 76%, rgba(230, 254, 255, 1) 79%, rgba(243, 234, 255, 1) 82%, rgba(254, 238, 255, 1) 86%, rgba(255, 255, 255, 1) 100%), var(--body-img);
	color: var(--accent);
	background-size: cover, contain;
	height: 100vh;
	display: flex;
    align-items: center;
}

::selection {
	background: rgb(255, 239, 100);
}
ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    cursor: var(--pointer), default;
}


#sitemap ul {
    list-style-type: fancy-arrows;
    list-style-position: inside;
}

#button {
    display: flex;
    justify-content: center;
    image-rendering: pixelated;
}
#button a {
    padding: 0;
    background: none;
}
#button img:hover {
    filter: contrast(1.1);
}

.gridContainer {
	display: grid;
	grid-template: "head head head" "leftBar main rightBar" "foot foot foot";
	grid-template-rows: 30px 500px 30px;
	grid-template-columns: 1fr 12fr 1fr;
	margin: 0 auto;
	max-width: 850px;
	container: grid-container / inline-size;
	scrollbar-color: var(--primary-color) transparent;
	width: 100%;
}

header {
    grid-area: head;
	text-align: center;
	font-size: 7px;
	font-family: My Little Pony;
	color: white;
	text-shadow: 1px 1px 10px #ffdb95, -1px 1px #9dc8ff, -1px -1px #e7ffe7;
}



hr {
    border-style: dashed;
}

#leftBar {
    grid-area: leftBar;
}

nav ul li a {
	display: block;
	border: 2px ridge var(--secondary-color);
	border-radius: 5px;
	background: var(--primary-color);
	text-align: center;
	margin-bottom: 11px;
	height: 60px;
	line-height: 57px;
	font-size: 17px;
	white-space: nowrap;
	color: var(--accent);
}

nav ul li a:hover {
	background: linear-gradient(var(--secondary-color), var(--tertiary-color));
	border-color: var(--primary-color);
}

#leftBar ul li a {
    margin-right: 7px;
}

#rightBar ul li a {
    margin-left: 7px;
}

.withAside {
	grid-area: main;
	display: grid;
	grid-template: ". ." "a ." "a b" ". .";
	grid-template-rows: 0.2fr 5fr 2fr 0.2fr;
	grid-template-columns: 1.2fr 1fr;
	border: 3px ridge var(--tertiary-color);
	border-radius: 15px;
	background: var(--content-img);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top left;
}

.microBlog {
	grid-area: main;
	border: 40px solid;
	border-image: url("imgs/frame2.png") 50;
	background-image: url("imgs/october\ 2nd.png");
	background-repeat: no-repeat;
	background-position-x: -70px;
	background-color: #d0d2ca;
	background-position-y: -1px;
	image-rendering: pixelated;
	background-size: 330px;
}

.microBlog main {
	display: grid;
	height: 354px;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	overflow-y: scroll;
	scrollbar-width: none;
	grid-gap: 1rem;
	grid-auto-rows: 50px;
	border: none;
	background: none;
	margin: 0;
	margin-left: 34%;
	padding: 0;
}
.status {
	background-image: url("imgs/backgrounds/linedpaper.jpg");
	background-repeat: repeat-y;
	border-radius: 0px 10px 10px 0px;
	background-size: 100% 120px;
	font-size: 14px;
	border: 2px dotted #4c95ab;
	padding: 5%;
	line-height: 1.5;
	align-content: center;
	grid-row: span 6;
}

.onlyMain,
.halfMain,
.gallery,
.library {
    grid-area: main;
    border: 3px ridge var(--tertiary-color);
    border-radius: 15px;
    background-image: var(--content-img);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top left;
}

.onlyMain main {
    width: 80%;
    height: 97%;
    margin: 5px auto 0 auto;
}

.halfMain main {
    width: 60%;
    height: 97%;
}

.withAside ul,
.withAside ol {
    list-style: inside;
    list-style-image: url("imgs/icons/favicon-png.png");
}

.withAside a, footer a {
	text-decoration: none;
	background: linear-gradient(var(--tertiary-color), var(--secondary-color));
	border-radius: 26px;
	padding: 3px;
	margin-left: 2px;
	margin-right: 2px;
	font-size: 1rem;
	margin-bottom: 7px;
}

.withAside a:hover,
footer a:hover {
    background: linear-gradient(var(--accent), var(--secondary-color));
    border-color: var(--accent);
    color: var(--primary-color);
}

.journal {
    grid-area: main;
    display: grid;
    grid-template: "a b";
    grid-template-columns: 4fr 1fr;
    background-image: url("imgs/backgrounds/linedpaper.jpg");
    border-radius: 10px;
    background-size: 200px;
}

.gallery {
    background-color: var(--secondary-color);
    background-image: none;
    overflow-y: scroll;
}

.library {
	display: flex;
	text-align: center;
	background-size: 539px;
	background-repeat: no-repeat;
	background-position-x: -144px;
	background-position-y: -95px;
	overflow-y: scroll;
	flex-flow: column;
	align-items: center;
}

.library iframe {
	height: 370px;
	width: 314px;
	max-width: 100%;
	cursor: var(--cursor);
}



#bio {
	background-image: url("imgs/tira-shy-opt.gif"), url("imgs/backgrounds/clouds5.jpg"), url("imgs/backgrounds/brown-dot.gif");
	background-size: 25%, cover, auto;
	background-repeat: no-repeat, no-repeat, repeat;
	background-position-x: 85%, 0px, 0px;
	background-position-y: 10%, 0px, 0px;
	image-rendering: crisp-edges;
}

main {
    grid-area: a;
    overflow-y: scroll;
}

#chat {
    display: block;
    width: 80%;
    height: 280px;
    margin: 0 auto;
    border: hidden;
}
aside {
    grid-area: b;
    overflow-y: scroll;
}

main, aside {
	background-color: var(--primary-color);
	border: 2px ridge var(--secondary-color);
	margin: 5px;
	padding: 5px;
	scrollbar-width: thin;
	overflow-wrap: break-word;
	backdrop-filter: blur(20px);
}

.journal main,
.journal aside {
    background: none;
    border: none;
    color: black;
    backdrop-filter: none;
}

.journal aside img {
	width: 68px;
	height: auto;
}

.journal aside img:nth-child(odd) {
    rotate: 20deg;
}
.journal aside img:nth-child(even) {
    rotate: -10deg;
}

.journal ol {
    list-style: decimal inside;
}

.journal a {
	text-decoration: rgb(69, 159, 203) wavy underline;
	color: #3b71a0;
}

.journal a:hover {
	text-decoration: rgb(192, 169, 228) wavy underline;
	color: #63a9a6;
}

/* journal archive filters */

.archiveItem {
  display: block;
}

input:checked + label {
  color: rgb(30, 121, 178)
}
input:checked ~ .archiveItem {
  display: none;
}

/* tag list */
@keyframes fadeIn {
   0% {opacity: 0;}
   100% {opacity: 1;} 
}

input[value="reading"]:checked ~ .archiveItem[data-tags*="reading"],
input[value="daily-life"]:checked ~ .archiveItem[data-tags*="daily-life"],
input[value="queer"]:checked ~ .archiveItem[data-tags*="queer"],
input[value="food"]:checked ~ .archiveItem[data-tags*="food"],
input[value="games"]:checked ~ .archiveItem[data-tags*="games"],
input[value="vent"]:checked ~ .archiveItem[data-tags*="vent"] {
    display: block;
    animation: fadeIn 1s;
}


.gallery main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	overflow-y: hidden;
	border: none;
	margin: 0;
	background: none;
	gap: 8px;
}



#rightBar {
    grid-area: rightBar;
}

#leftBar,
#rightBar {
    margin-top: 10px;
}

#leftBar a::before, #rightBar a::before {
	content: "/"
}

footer {
    grid-area: foot;
    text-align: center;
    color: var(--primary-color);
    padding: 10px;
    font-size: 0.938rem;
}

footer small {
	display: inline-block;
	background-color: var(--secondary-color);
	box-shadow: 2px 1px 1px black;
    color: var(--accent);
}

/*picrew marquee */
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-scroll-sc {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.onlyMain.picrew {
    overflow-y:scroll;
    scrollbar-width:auto ;
}

.picrew img {
    width: 200px;
    height: auto;
    border-radius: 25px;
}

.picrew img.horizontal {
    width: 300px;
}

.marquee {
    --gap: 1rem;
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
}

.bio.marquee img {
    width: 130px;
    height: auto;
}


.picrew.marquee {
    width: 700px;
}
.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: marquee-scroll 15s linear infinite;
}

.marquee-pause:hover .marquee-content {
  animation-play-state: paused;
}



/*status cafe */
#statuscafe, #statuscafe a {
    color: white;
	text-shadow: 1px 1px 5px black;
}
#statuscafe a {
    background: none;
    border: none;
}
#statuscafe-username {
    margin-bottom: .5em;
}

.marquee.statuscafe {
    width: 200px;
    margin: 0 auto;
}
#statuscafe-content {
	flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: var(--gap);
    min-width: 100%;
    animation: marquee-scroll-sc 10s linear infinite;
}

.checked {
    list-style-image: url("imgs/icons/checked_icon.png");
    text-decoration: line-through;
}

.unchecked {
    list-style-image: url("imgs/icons/unchecked_icon.png");
}

img {
    display: inline;
}

.gallery img:hover {
    filter: contrast(1.1);
    cursor: var(--pointer), pointer;
}

.journal img {
    width: 288px;
    height: 288px;
    object-fit: contain;
    margin: 0 auto;
    border: 1px dashed black;
}

.journal .landscape {
    width: 90%;
    height: auto;
}

/* music player */
.draggable {
    position: absolute;
    cursor: var(--pointer);
    top: 20px;
    right: 20px;
    z-index: 1;
    width: 215px;
    height: 350px;
    align-content: center;
}
.music-container {
    width: 200px;
    height: 303px;
    padding: 5px;
    background-color: transparent;
    font-weight: 300;
    font-style: normal;
    position: relative;
    font-size: 0.7em;
    border-style: solid;
    border-image-slice: 126 140 125 140;
    border-image-width: 70px;
    border-image-repeat: repeat repeat;
    border-image-source: url("imgs/border-crow-peaches.png");
    border-image-outset: 13px;
    pointer-events: none;
}

#player-top {
    background-color: black;
    width: 143px;
    height: 180px;
    margin-bottom: 4px;
    position: absolute;
    top: 30px;
    left: 28px;
    z-index: -1;
    pointer-events: all;
}

#player-bottom {
	background-color: rgb(168, 191, 117);
	width: 143px;
	height: 72px;
	overflow-y: scroll;
	overflow-x: clip;
	z-index: -1;
	position: absolute;
	top: 210px;
	left: 28px;
	pointer-events: all;
	scrollbar-width: none;
	color: black;
}

#player-top,
#player-bottom {
    border: 4px ridge #a1a02f;
}

.playlist-item {
    margin-bottom: 4px;
    cursor: crosshair;
    padding-left: 2px;
    text-align: center;
}

.playlist-item:hover {
    background-color: #bbe57d;
    color: #893a00;
}

.selected {
    background-color: #3b6e48;
    color: #fff;
}

#title {
    width: 135px;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;

    color: white;
    text-align: center;
}

#title span {
    position: absolute;
    will-change: transform;
    transition: transform 5s linear;
}

.album-cover {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 27px;
    left: 21px;
}

@keyframes coverRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.album-cover img {
	width: 100%;
	height: 100%;
	border-radius: 100px;
    animation: coverRotate 2s infinite linear;
    border: 1px solid white;
}

.album-cover::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;        /* circle size */
    height: 25px;
    background: black;  /* circle color */
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.navigation {
    position: absolute;
    top: 122px;
    left: 0px;
    display: flex;
    z-index: 10;
    cursor: var(--pointer), pointer;
}

.action-btn {
    background-color: transparent;
    border: 0;
    color: rgb(228, 127, 73);

    margin: 15px;
    cursor: var(--pointer), pointer;
}

.progress-container {
    background: white;
    cursor: var(--pointer), pointer;
    height: 4px;
    width: 106px;
    position: absolute;
    top: 159px;
    left: 16px;
    z-index: 10;
}

.progress {
    background-color: #1ea0d8;
    height: 100%;
    width: 0%;
    transition: width 0.1s;
}

.play-btn {
	background-image: url("imgs/icons/playbutton-16.png");
	background-repeat: no-repeat;
	background-size: contain;
	width: 16px;
	height: 16px;
}

.pause-btn {
    background-image: url("imgs/icons/pausebutton-16.png");
	background-repeat: no-repeat;
	background-size: contain;
	width: 16px;
	height: 16px;
}



/*container queries */

@container grid-container (width < 661px) {
    nav ul li a {
        font-size: 1rem;
    }
}

@container grid-container (width < 488px) {
}

@container grid-container (width < 515px) {
    .onlyMain main {
        width: 100%;
        margin: 0;
        height: 100%;
        border-radius: 5px;
    }
    .onlyMain {
        padding: 3px;
    }
    .withAside {
        grid-template: "a" "b";
        grid-template-rows: 2fr 1fr;
        background-size: contain;
        background-repeat: repeat;
    }
    .halfMain main {
        width: 97%;
        height: 99%;
    }
    .microBlog main {
        margin: 0;
    }
    .library {
        align-items: initial;
    }
}

@container grid-container (width < 561px) {
    .journal {
        grid-template: "a" "b";
    }
    .journal aside ul {
        display: flex;
        justify-content: space-around;
    }
    .journal main img {
        width: 90%;
    }
    .journal aside img {
        width: 20%;
    }
}

@container grid-container (width < 571px) {
    #chat {
        width: 100%;
    }
}

@media only screen and (max-width: 431px) {
    * {
        margin: 0;
        padding: 0;
    }
    .gridContainer {
        grid-template: "head" "main" "foot";
        grid-template-rows: 1fr 1fr 1fr;
        height: 100vh;
    }

    #leftBar {
        grid-area: head;
        margin-top: 32px;
    }
    #rightBar {
        grid-area: foot;
        margin-top: 109px;
    }
    #leftBar ul li a,
    #rightBar ul li a {
        margin: 0px;
        width: 78px;
    }

    #leftBar ul,
    #rightBar ul {
        display: flex;
        flex-flow: row wrap;
    }

    .withAside,
    .onlyMain {
        background-size: contain;
        background-repeat: repeat;
    }

    .gallery {
        overflow-y: visible;
    }
    .microBlog main {
        margin-left: 0;
        grid-template-columns: 100%;
    }

    main,
    aside {
        overflow-y: visible;
    }
    header h1 {
        display: inline-block;
    }

    #chat {
        width: 100%;
    }
}
