@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;
}


.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);
}









#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;
}








#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);
}



.marquee {
    --gap: 1rem;
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
}

.bio.marquee img {
    width: 130px;
    height: auto;
}



.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;
}

/*marquee */
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-scroll-sc {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/*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;
}


/* temporary user box styling*/
.userbox { width: 239px; font-family: sans-serif; border: 1px solid; border-collapse: collapse;}
.id { height: 45px; width: 45px; text-align: center; font-size:12pt; border: 1px solid; font-weight: bold;}
.info { padding: 0 4pt; border: 1px solid; font-size: 8pt;}

#resultid {
  border: 1px solid #d9fafc; color: rgb(0, 0, 0); background: #ede7ff; line-height: 1.2em;
}
#resultinfo {
  border: 1px solid #fcd9fa; color: rgb(0, 0, 0);  background: #fafcd9;     line-height: 1.2em;
}

/*container queries */

@container grid-container (width < 661px) {
    nav ul li a {
        font-size: 1rem;
    }
}

/* gallery query */
@media only screen and (max-width: 431px) {
    .gallery {
            overflow-y: visible;
    }
}

@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) */

@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;
    }

    
    .microBlog main {
        margin-left: 0;
        grid-template-columns: 100%;
    }

    main,
    aside {
        overflow-y: scroll;
    }
    header h1 {
        display: inline-block;
    }

    #chat {
        width: 100%;
    }
}
