@font-face {
  font-family: PanasChill;
  src: url(../assets/font/PanasChill.woff) format("woff");
}

@font-face {
  font-family: "KosugiMari";
  src: url("../assets/font/KosugiMaru-Regular.woff") format("woff");
}

@font-face {
  font-family: "hand";
  src: url("../assets/font/handwriting.woff") format("woff");
}

@font-face {
  font-family: "msp";
  src: url("../assets/font/mspgothic.woff2") format("woff2");
}

body {
  font-family: msp;
  color: #232828;
  background-color: #878e9b;
  padding: 0px;
  margin: 0px;
}

h1,h2,h3,h4,h5,h6,p {
  padding: 0px;
  margin: 0px;
}

#search {
	width: 100%;
	height: 24px;
}

#blog {
	display: flex;
	color: #232525;
	width: 70%;
	margin: auto;
}

#ls {
	transform-origin: right;
}

#rs {
	transform-origin: left;
}

.side {
	display: flex;
	flex-direction: column;
	background-size: cover;
	box-sizing: border-box;
	padding-block: 64px;
	position: relative;
	&.r {
		width: 75%;
	}
	&.l {
		width: 25%;
	}
}

nav {
	display: inline-block;
	align-content: start;
	padding: 8px;
	border-radius: 24px;
	margin: 8px -8px;
    overflow-x: scroll;
    height: 515px;
	background: #333535;
}

.nav-item {
  display: flex;
	color: #f6f6f6;
	background-color: #131414;
	padding: 16px;
	border-radius: 16px;
	transition: 0.1s;
	font-family: KosugiMari;
	width: 100%;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
	.nav-icon {color: #ffffff;margin-right:10px;}

	&:hover {
		background-color: #295969;
		box-shadow: 4px 4px 0 #020202;
		transform: translate(-4px, -4px);
		position: relative;
		.nav-icon {color: #ffffff;margin-right:10px;}
	}

	&:active {
		background-color: #5a5c5c;
		color: #f3f3f3;
		transition: none;
	}
}

.nav-folder {
	padding-block: 12px;
	vertical-align: middle;
}

#entry {
	padding: 16px 40px;
	margin-inline: -16px;
	overflow: hidden auto;
	flex: 1;
}

main {
	line-height: 1.2;
	text-align: justify;
	hyphens: auto;
	overflow-y: scroll;
	height: 420px;
    scrollbar-color: black;
	p:not(:first-child) {text-indent: 1.5em}
}

#entry-title {
	font-family: PanasChill;
	margin-bottom: 2em;
}

#entry-name {
	font-size: 2.5em;
	font-weight: normal;
	line-height: 1;
	word-break: break-word;
	margin-block: -0.125em 0.125em;
	flex: 1;
}

#entry-author {
	font-size: 1em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0px;
	color: #505050;
}

#entry-date {
	font-size: 1em;
	letter-spacing: 0.1em;
	margin-block: 0;
}

h3, h4 {
	font: 1.5em/1 PanasChill;
	text-align: left;
	margin-block: 2em 1em;
}

h4 {
	font-size: 1em;
}

/* entry inline */

#entry a {
	color: #1a4176;
	text-decoration: underline;
}

b {
	font: bold 1.1em/0 msp;
}

/* entry block */

p, ul, ol, figcaption {
	padding-bottom: 0.2rem;
}

ul, ol {
	padding-left: 1.5em;
}
ul {
	list-style-type: "-";
}
li {
	padding-left: 1em;

	&::marker {
		color: #000000;
		font-size: 0.75em;
	}
}

aside {
	font-size: 0.75em;
	background-color: #c4452620;
	padding: 1em;
	border-radius: 4px;
	margin-block: 2rem;
}

details {
	margin-block: 2em;

	&[open] {
		padding: 1em;
		border-block: 1px dotted;
		margin-top: calc(3em - 1px);

		summary {
			margin-top: -2em;
			margin-left: -1em;
			background-color: var(--button);
		}
	}
}

summary {
	max-width: max-content;
	padding: 0.25em 1em;
	border: 1px dotted;
	border-radius: 1em;

	&:hover {background-color: var(--button)}
}

blockquote {
	padding: 0.5em 1em;
	border-left: 1px dotted;
	margin: 1em 0;
	border-radius: 4px;
}

pre {
	color: #ffffff;
	tab-size: 4;
	background-color: #000000;
	border: 1em solid #000000;
	border-radius: 4px;
	margin-block: 2em;
	overflow: auto hidden;
}

aside,
blockquote,
details {
	> *:first-child {margin-top: 0}
	> *:last-child {margin-bottom: 0}
}

dl {
	margin-block: 2em;
}
dt {
	font: bold 0.9em sans-serif;
	margin-top: 1em;
}
dd {
	margin-left: 1em;
}

/* entry embeds */

#entry img {
	max-width: 100%;
}

.emote {
	display: inline;
	vertical-align: 40%;
	margin-block: -10px;
	image-rendering: pixelated;
}

.photo {
	margin: 2em;

	iframe {
		width: calc(100% - 16px);
		padding: 8px;
		padding-bottom: 16px;
		box-shadow: 1px 2px 4px #00000040;
		background-color: #f6f1e7;
		image-rendering: auto;
	}

	iframe {
		height: 64px;
	}

	&:nth-of-type(even)::before {
		transform: scaleX(-1);
	}

	.flex & {margin-inline: 0}

	&:is(.float-left, .float-right)::before {scale: 0.75}

	&.bandcamp iframe, &.spotify iframe {
		width: calc(133.33% - 21.33px);
		height: 42px;
		padding: 10.67px;
		padding-bottom: 21.33px;
		scale: 0.75;
		transform-origin: top left;
	}
	&.bandcamp iframe {
		height: 42px;
		margin-bottom: -10.5px;
	}
	&.spotify iframe {
		height: 80px;
		margin-bottom: -20px;
	}
}

.caption {
	color: #201c10bf;
	font-size: 0.875em;
	text-align: center;
	margin: 0.5em
}

/* entry layout */

.float-left, .float-right {
	max-width: calc(50% - 1em);
	margin: 1em 0;
	position: relative;
	z-index: 1;
}
.float-left {float: left; clear: left; margin-right: 2em}
.float-right {float: right; clear: right; margin-left: 2em}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.flex {
	display: flex;
	align-items: center;
	gap: 1em;

	.photo::before {scale: 0.75}
}

.scroll-x {
	padding-inline: 2em;
	margin-inline: -2em;
	overflow: auto hidden;
}

.columned {
	columns: 2;
	column-gap: 1em;
}

.photo2 {
		width: calc(100% - 16px);
		padding: 8px;
		padding-bottom: 16px;
		box-shadow: 1px 2px 4px #00000040;
		background-color: #f6f1e7;
		image-rendering: auto;
		margin-bottom: 10px;
		p:not(:first-child) {text-indent: 0em;font-family: hand;font-size: 1.4rem;font-weight: bold;line-height: 0.9rem;}
}

censor {
  	background: black;
  	color: black;
  	padding: 1px;
  	display: inline-block;

  &::selection {
	color: black;
	background: black;
  }
}