/* base page stuff */
body {
	background-color: #e0599f;
	background-image: url("/assets/style/geo/bg_yaku.jpg");
	color: #DDD;
	/* font-family: 'Courier New', Courier, monospace; */
	font-family: "Favorit", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
	text-shadow: #000 1px 1px;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center right;
	background-size: cover;
}

body.bg-roll {
	background-image: url("/assets/style/geo/bg_roll.jpg");
	background-color: #f15e86;
}

body.bg-mismagius {
	background-image: url("/assets/style/geo/bg_mismagius.jpg");
	background-color: #9c107d;
}

body.lock {
	overflow: hidden;
}

.container {
	margin: 0 auto;
	width: auto;
	max-width: 1280px;
}

img {
	image-rendering: pixelated;
}

.main-blog img {
	image-rendering: auto;
	max-width: 100%;
}

img.render-auto {
	image-rendering: auto;
}

hr {
	margin: 2px;
	border: 1px solid rgb(210, 79, 141);
}

ul li p {
	margin: 0;
}

blockquote, code {
	border-left: 2px solid rgb(210, 79, 141);
	padding: 1px 5px 1px 1em;
	background: #15060c4f;
	display: block;
}

h1:first-child, h2:first-child {
	margin-top: 0;
}

/* theme icon */
#theme-switch {
	position: fixed;
	right: 1em;
	top: 1em;
}

/* common main page stuff */
.main-page {
	display: block;
	/* background-color: #3b1523e0; */
	background-color: #5f1d35e5;
	/* margin: 25px; */
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
	padding: 25px;
	border-top: 5px rgb(235, 80, 158) solid;
	border-bottom: 5px rgb(235, 80, 158) solid;
	border-radius: 16px/12px;
	line-height: 1.5em;
	width: auto;
}

.background {
	background-color: #4d1228;
	border-style:inset;
	border-color:#ec4e9d;
}

/* add yakumono sprite background */
.main-yaku {
	background-image: url("/assets/style/geo/yakumono.png");
	background-origin: content-box;
	background-repeat: no-repeat;
	background-position: top right;
}

.main-yaku .main-yaku-margin {
	margin-right: 80px;
}

/* common main page link style */
.main-page a, .link-style a {
	color: #f5d4ea;
}

.main-page a::before, .link-style a::before {
	content: url("/assets/style/link.png");
}

.main-page a:hover, .link-style a:hover {
	color: #ec8ebd;
}

@media (max-width: 799px) {
	.main-page {
		margin-left: 0;
		font-size: 0.9em;
	}

	.main-page h1 {
		font-size: 1.5em;
	}

	.main-page h2 {
		font-size: 1.3em;
	}

	.main-page h3 {
		font-size: 1.1em;
	}

	.main-yaku {
		background-image: none;
	}

	.main-yaku .main-yaku-margin {
		margin-right: initial;
	}
}

/* footer */
footer {
	margin: 10px;
	text-align: center;
}

/* logo */
.yakulogo {
	overflow-x: hidden;
	overflow-y: clip;
}

.yakulogo center img {
	margin: 0;
}

/* navbar social */
nav {
	margin-bottom: 10px;
	padding: 5px;
	text-align: center;

	background: #a82253e3;
	color: #EEE;
	border-top: 3px rgb(235, 80, 158) solid;
	border-bottom: 3px rgb(235, 80, 158) solid;
	border-radius: 16px/12px;
	padding-bottom: 8px;
}

/* navigation bar */
.navbar a, .navmenu a {
	display: inline-block;
	background: #961f4bc0;
	color: #EEE;
	margin: 0;
	padding: 1px 5px;
	font-weight: lighter;
	text-decoration: none;
	font-size: 2rem;
	line-height: 1em;
}

.navbar a:hover, .navmenu a:hover {
	background: #ff71a5c0;
	color: #EEE;
}

.navbar img, .navmenu img {
	vertical-align: text-bottom;
}

.navbar div, .navmenu .menu-title {
	background: rgb(210, 79, 141);
	color: #FBFBFB;
	text-shadow: #000 1px 1px;
	text-align: center;
	margin: 2px;
	line-height: 18px;
	font-family: "Favorit", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: bold;
}

@media (max-width: 799px) {
	nav {
		float: none;
		margin-bottom: 10px;
		padding: 5px;
		text-align: center;
	}

	.navbar-social {
		display: none;
	}

	.navbar a {
		display: inline-block;
	}

	.navbar hr {
		display: none;
	}
}

/* nav menu */
.navmenu {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	text-align: center;
}

.navmenu .menu-cat {
	margin: 0 2px 2px 2px;
	flex: 1 1 400px;
}

.navmenu a {
	margin: 2px;
}

/* blog display on index */
.main-blog-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}

.main-blog-list ul {
	flex-basis: 47%;
	margin: 5px;
}

.main-blog-list .link-desc {
	display: inline-block;
}

@media (max-width: 799px) {
	.main-blog-list {
		flex-direction: column;
	}
}

/* list of links style */
.link-title {
	font-size: 1.5em;
	padding-left: 5px;
	font-weight: bolder;
}

.link-desc {
	font-size: 1em;
	font-style: italic;
	padding-left: 2em;
}

.style-links .style-links-div ul li {
	padding-bottom: 1em;
}

.style-links .style-links-div ul li a {
	text-decoration: none;
}

@media (max-width: 799px) {
	.link-title {
		font-size: 1.2em;
	}

	nav .link-title {
		font-size: 1.5em;
	}

	.link-icon {
		display: none;
	}
}

/* styled links for download page */
.style-links.style-download h2 {
	background: #b5437880;
	padding: 7px;
	border-top: #ff71ad solid 2px;
	margin: 0;
}

.style-links.style-download ul {
	margin: 0;
	list-style-type: none;
	padding: 0;
}

.style-links.style-download ul li {
	background: #5e233c80;
	padding: 5px;
	border-top: #823257 solid 2px;
}

.style-links.style-download p {
	padding-left: 0.5em;
	height: 0;
	overflow-y: hidden;
	margin: 0;
}

.style-links.style-download p.open {
	height: auto;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

/* desktop-link style */
.desktop-list {
	display: flex;
	text-align: center;
	flex-wrap: wrap;
}

.desktop-list a {
	display: block;
	margin: 10px;
	text-decoration: none;
	flex: 1 1 5em;
}

.desktop-list span {
	display: block;
}

/* avoid spaces between images */
.imgnospace {
	display: flex;
	flex-wrap: wrap;
}

/* vgm page */
.vgm-list {
	display: flex;
	justify-content: space-evenly;
	flex-direction: row;
	flex-wrap: wrap;
	font-weight: bold;
	text-align: center;
}

.vgm-list a {
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
	padding: 5px;
	margin: 5px;
	border-top: 5px rgb(235, 80, 158) solid;
	border-bottom: 5px rgb(235, 80, 158) solid;
	border-radius: 16px/12px;
	background: #662b4480;
	text-decoration: none;
}

.vgm-list a:hover {
	background: #be568380;
}

.vgm-list .vgm-list-img {
	border: rgb(235, 80, 158) solid 2px;
	border-radius: 10px;
	margin-bottom: 5px;
	image-rendering: auto;
	width: 256px;
	height: 224px;
}

.vgm-list .vgm-list-title {
	width: 256px;
	flex-grow: 2;
	align-content: center;
}

.vgm-list .vgm-list-class {
	font-size: 0.75em;
}

.vgm-list-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.vgm-list-buttons button {
	color: #f5d4ea;
	font-weight: bold;
	padding: 5px;
	margin: 5px;
	border: none;
	border-top: 5px rgb(235, 80, 158) solid;
	border-bottom: 5px rgb(235, 80, 158) solid;
	border-radius: 16px/12px;
	background: #662b4480;
	font-size: 1em;
	min-width: 75px;
}

.vgm-list-buttons button:hover {
	color: #dab5cd;
	background: #be568380;
}

@media (max-width: 799px) {
	.vgm-list {
		flex-direction: column;
	}

	.vgm-list a {
		flex-direction: row;
	}

	.vgm-list .vgm-list-img {
		width: 64px;
		height: 56px;
		margin-bottom: 0;
	}

	.vgm-list .vgm-list-title {
		width: auto;
		margin: 8px;
	}
}

/* remove link image */
.linknoimg a::before {
	content: "";
}

/* gallery scroll */
div.scroll-container {
	background-color: #410f21;
	overflow: auto;
	white-space: nowrap;
	padding: 5px;
	margin-bottom: 10px;
}

div.scroll-container img {
	margin: 5px;
}

/* window */
#window {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 101;
}

.window {
	position: relative;
	display: inline-block;
	/*top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);*/
	max-width: 90%;
	max-height: 90%;
  	overflow-y: auto;
	min-width: 210px;
}

.window, .window-style {
	background-color: #913e5d;
	color: #EEE;
	z-index: 103;
	border-top: 5px #ec4e9d solid;
	border-bottom: 5px #ec4e9d solid;
	border-radius: 16px/12px;
}

.window-antifocus {
	position: fixed;
	background: #00000080;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 102;
}

.window .close-btn-container {
	position: sticky;
	bottom: 0;
}

.window .close-btn {
	position: absolute;
	bottom: 8px;
	right: 8px;
}

.window .modal-btn {
	position: absolute;
	bottom: 8px;
	left: 8px;
}

.window button {
	background: #f27ab6;
	color: rgb(59, 0, 20);
	border: none;
	border-radius: 7px;
	font-weight: bolder;
	font-size: 1em;
	padding: 5px;
}

.window button:hover {
	background: #c91f74;
}

.window button:disabled {
	background: #a66686;
}

/* selection hover feedback */
.select-hover {
	transition: outline ease 100ms;
	outline: 0;
}

.select-hover:hover {
	outline: #fc64fc solid 4px;
	z-index: 100;
}

/* yaku pixel font */
@font-face {
	font-family: "Yaku Pixel";
	src: url('/assets/font/YakuPixel.ttf');
	src: url('/assets/font/YakuPixel.ttf') format('truetype');
}

.yakufont {
	font-family: "Yaku Pixel", 'Courier New', Courier, monospace;
	font-size: 2em;
	margin: 0px 0px;
}

/* almost white background */
.whitebg {
	background-color: rgb(231, 231, 231);
}

/* image description listing */
.imgInfo {
	line-height: 1em;
}

.imgInfo span {
	display: inline-block;
	text-align: center;
	margin-top: 5px;
}

/* game log specific bar */
#game-log-btn {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 0.2em 1em;
	background-color: #581838;
	border-left: solid #ec4e9d;
	border-right: solid #ec4e9d;
	border-bottom: solid #ec4e9d;
	margin: 0 auto;
	max-width: 1280px;
}

/* common simple styles */
.hidden, .secret, .display-none {
	display: none;
}

.float-right {
	float: right;
	margin: 0;
	margin-left: 10px;
	margin-bottom: 10px;
}

.float-left {
	float: left;
	margin: 0;
	margin-right: 10px;
	margin-bottom: 10px;
}

.clear-right {
	clear: right;
}

.clear-left {
	clear: left;
}

/* mario artist specific */
.ma2d1 {
	background-color: rgb(231, 231, 231);
}

.ma2d1-2x {
	background-color: rgb(231, 231, 231);
	width: 432px;
	height: 404px;
}

.ma2d1h-2x {
	background-color: rgb(231, 231, 231);
	width: 640px;
	height: 480px;
}
