/* Header */
:root {
	--top-height: 46px;
	--top-s-width: 345px;
}
html { scroll-behavior: smooth; }
html body {
	margin: 0px;
	overflow-x: hidden; overflow-y: auto;
}
html body header {
	position: fixed; top: 0px; z-index: 2;
	width: 100%; height: var(--top-height);
	background-color: #EEB808; box-shadow: 0px 0px 2.3px #555;
}
html body header.scrolled { box-shadow: 0px 1.25px 6.25px 2.5px rgb(32 32 32 / 25%); }
html body header div.head-item {
	position: relative; float: left;
	height: 100%;
	overflow-y: hidden;
}
html body header div.head-item.logo, html body header div.head-item.my {
	width: var(--top-height); height: var(--top-height);
}
html body header div.head-item.logo a img, html body header div.head-item.my img {
	position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 80.5%; height: 80.5%;
	transition-duration: 0.115s;
}
html body header div.head-item.logo:hover a img {
	width: 92%; height: 92%;
}
html body header div.head-item.search div.box {
	position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: var(--top-s-width); max-width: 100%; height: 80.5%;
	background-color: #F7D66A; border-radius: 4.6px;
}
html body header div.head-item.search:focus-within div.box { border-radius: 4.6px 4.6px 0px 4.6px; }
html body header div.head-item.search div.box form {
	padding: 1.008px 5.75px 1.008px 0px;
	position: absolute;
	width: calc(100% - 5.75px); height: calc(100% - 2.016px);
	overflow: hidden;
}
html body header div.head-item.search div.box form img {
	margin: 2.875px;
	position: absolute; top: -1.008px;
	width: calc(var(--top-height) * 35 / 46 * 0.92); height: calc(var(--top-height) * 35 / 46 * 0.92);
}
html body header div.head-item.search div.box form input[type=submit] {
	margin: 0px; padding: 0px;
	position: relative; top: 1.008px; left: 0px;
	width: calc(var(--top-height) * 35 / 46); height: calc(var(--top-height) * 35 / 46);
	background-color: transparent;
	border: none; cursor: not-allowed;
}
html body header div.head-item.search div.box form input[type=search] {
	margin: 2.875px 5.75px; padding: 1px 1px 0px 1px;
	position: absolute; top: 2.233px; left: calc(var(--top-height) * 35 / 46);
	width: var(--search-width); height: calc((var(--top-height) - 11px) * 25.8 / 35);
	background-color: transparent; color: #7D620A;
	border: none; border-bottom: 1.15px solid #C38A13;
	font-size: calc(var(--top-height) * (40 / 3) / 46); font-family: 'THSarabunNew', sans-serif;
}
html body header div.head-item.search div.box form input[type=search]::placeholder { color: #A99862; opacity: 100%; }
html body header div.head-item.search div.box form input[type=search]:-ms-input-placeholder { color: #A99862; }
html body header div.head-item.search div.box form input[type=search]::-ms-input-placeholder { color: #A99862; }
html body header div.head-item.search div.box form input[type=search]::selection { background-color: #A17D07; color: #F5E8BD; }
html body header div.head-item.search div.box form input[type=search]::-moz-selection { background-color: #A17D07; color: #F5E8BD; }
html body header div.head-item.search div.ls {
	position: fixed;
	width: calc(var(--top-s-width) - (var(--top-height) * 35 / 46 * 0.92) - 5.75px); max-width: 100%; height: auto; max-height: calc(3.875px + 27px * 7);
	background-color: #F7D66A; border-radius: 0px 0px 4.6px 4.6px; /*box-shadow: 0 0 2.3px #555;*/
	overflow: hidden;
}
html body header div.head-item.search div.ls ul { margin: 0px; padding: 1px 0px 2.875px 0px; }
html body header div.head-item.search div.ls ul li { list-style-type: none; padding: 0px 5.75px 0px 3.875px; }
html body header div.head-item.search div.ls ul li:hover { background-color: #EECB57; }
html body header div.head-item.search div.ls ul li span {
	font-size: calc(var(--top-height) * (40 / 3) / 46); font-family: 'THSarabunNew', sans-serif;
	width: calc(100% - 25.875px); height: 23px;
	display: inline-block; float: left;
}
html body header div.head-item.search div.ls ul li img {
	width: 23px; height: 23px;
	border-radius: 50%;
	transform: rotate(45deg) translateX(2.875px); filter: grayscale(80.5%);
}
html body header div.head-item.search div.ls ul li img:hover { filter: none; background-color: #EDD586; }
html body header div.head-item.theme {
	padding: 5.75px 2.875px 5.75px 5.75px;
	width: 11.5px; height: calc(var(--top-height) - 11.5px);
}
html body header div.head-item.lang {
	padding: 5.75px 5.75px 5.75px 2.875px;
	width: 11.5px; height: calc(var(--top-height) - 11.5px);
}
html body header div.head-item.theme img, html body header div.head-item.lang img {
	margin: calc((var(--top-height) - 11.5px - (var(--top-height) * 0.25) * 2) / 4) 0px;
	position: relative; float: left;
	width: calc(var(--top-height) * 0.25); height: calc(var(--top-height) * 0.25);
	border-radius: 50%; cursor: pointer;
}
html body header div.head-item.theme img {
	margin: calc((var(--top-height) - 11.5px - (var(--top-height) * 0.25)) / 2) 0px;
	float: right;
}
html body header div.head-item.button {
	padding: 4.15px 2.875px;
	height: calc(var(--top-height) - 8.3px);
}
html body header div.head-item.button a span {
	margin: calc((var(--top-height) - 8.3px - 22px) / 2) 0px;
	position: absolute; z-index: 3;
	width: calc(100% - 5.75px);
	text-align: center; font-family: 'Dosis', sans-serif; font-size: 17.25px;
	color: #8F7212;
}
html body header div.head-item.button a img.head {
	position: absolute;
	width: calc(100% - 5.75px); height: calc(var(--top-height) - 8.3px);
}
html body header div.head-item.button a:hover img.head { filter: hue-rotate(-5.75deg); }
html body header div.head-item.button.login { width: 69px; }
html body header div.head-item.button.register { width: 80.5px; }
html body header div.head-item.name {
	padding: 5.75px;
	height: calc(var(--top-height) - 11.5px);
}
html body header div.head-item.name span {
	font-size: 23px; line-height: calc((var(--top-height) - 11.5px) * 0.92);
	color: #6B5202;
}
html body header div.head-item.my img.menu {
	object-fit: contain;
	background-color: #C19507; border-radius: 50%;
	cursor: cell;
}
html body header div.head-item.my div.prof-block {
	position: fixed; top: 0px; right: 0px; z-index: -1;
	width: calc(172.5px + 11.5px + 1.38px); height: var(--top-height);
	background-color: #EEB808;
}
html body header div.head-item.my div.prof-menu {
	padding: 5.75px;
	position: fixed; top: var(--top-height); right: 0px; transform: translateY(-100%); z-index: -2;
	width: 172.5px;
	background-color: #FFE89D; opacity: 0%; box-shadow: -1.15px 1.15px 0.23px 0.23px #D5BF78;
	transition: 0.23s;
}
@media only screen and (min-width: 768.003px) { html body header div.head-item.my.force-menu div.prof-menu, html body header div.head-item.my:hover div.prof-menu { transform: translateY(0%); opacity: 100%; } }
@media only screen and (max-width: 768px) { html body header div.head-item.my.force-menu:hover div.prof-menu { transform: translateY(0%); opacity: 100%; } html body header div.head-item.my:not(.force-menu):hover div.prof-menu { transform: translateY(-100%); opacity: 0%; } }
html body header div.head-item.my div.prof-menu div {
	padding: 1.4375px 0px;
	position: relative;
	width: 100%; height: 34.5px;
	cursor: pointer;
}
html body header div.head-item.my div.prof-menu div img.icon {
	position: absolute; left: calc(17.25px + 5.75px);
	width: 34.5px; height: 34.5px;
}
html body header div.head-item.my div.prof-menu div span {
	padding: 2.875px;
	position: absolute; left: 40.25px;
	width: auto; height: 100%;
	font-size: 17.25px; line-height: 166.67%; font-family: 'Kanit', sans-serif;
}
html body header div.head-item.my div.prof-menu div img.button {
	position: absolute; z-index: -1;
	width: 100%; height: 34.5px;
}
html body header div.head-item.my div.prof-menu div:hover img.button {
	filter: hue-rotate(-8.625deg);
}
@media only screen and (max-width: 768px) {
	:root { --top-height: 46px /*34.5px */; }	
	html body header div.head-item.name span { font-size: 11.5px; }
}
/* Presets */
html body.nohbar main { margin-top: 0px; min-height: 100vh; }
html body.nohbar aside.fm { top: 7.5px; max-height: calc(100vh - 30px); }
/* Main */
html body main {
	position: relative; margin-top: var(--top-height);
	width: 100%; height: calc(var(--scr-height) - var(--top-height)); min-height: calc(100vh - var(--top-height));
	background-color: #F2E1AA;
}
/* Modalbox */
html body section.modal {
	padding: 15px 15px 5px;
	position: fixed; bottom: 0px; left: 50%; transform: translate(-50%, calc(100% + 25px)); z-index: 4;
	min-width: 270px; max-width: 85vw; max-height: 80vh;
	border-radius: 25px 25px 0px 0px; box-shadow: 0px 0px 12.5px 7.5px rgb(0 0 0 / 50%); /* 0px 0px 25px 7.5px rgba(0, 0, 0, 0.5); */
	background-color: #EEE;
	display: none; --bh: 30px;
}
html body section.modal[show] {
	transform: translate(-50%, 0px);
	display: block; animation: display_modal var(--time-tst-slow) linear;
}
@keyframes display_modal {
	from { transform: translate(-50%, calc(100% + 25px)); display: none; }
	to { transform: translate(-50%, 0px); display: block; }
}
html body section.modal label {
	position: relative; left: calc(100% - 20px);
	width: 20px; height: 20px;
	font-size: 15px; line-height: 20px; font-family: 'Roboto', serif; font-weight: bold;
	text-align: center; border-radius: 50%;
	display: block; cursor: pointer; transition: var(--time-tst-xfast);
}
html body section.modal label:hover { background-color: rgba(150, 150, 150, 0.25); }
html body section.modal span.ctxt { font-size: 15px; font-family: 'Sarabun', sans-serif; font-weight: bold; }
html body section.modal span.ctxt input {
	margin: 10px 6.25px 0px; padding: 2.5px 5px;
	width: calc(100% - 10px - 12.5px - 2.5px); height: 20px;
	border-radius: 2.5px; border: 1.25px solid var(--clr-gg-blue-700);
	font-size: 15px; font-family: 'Sarabun', sans-serif;
	display: block; transition: var(--time-tst-medium);
}
html body section.modal span.ctxt input:focus { box-shadow: 0px 0px 12.5px 7.5px rgb(0 0 0 / 50%); }
html body section.modal div {
	padding: 10px 0px;
	width: 100%; height: calc(var(--bh) + 5px);
	display: flex; flex-direction: row; justify-content: space-between;
}
html body section.modal div span { display: block; }
html body section.modal div span:last-child { overflow-y: auto; }
html body section.modal div span a[role="button"] {
	margin: 0px 6.25px; padding: 0px 10px;
	width: auto; height: var(--bh);
	text-decoration: none;
	box-shadow: 0px 2px 1px -1px rgb(103 58 183 / 20%), 0px 1px 1px 0px rgb(103 58 183 / 14%), 0px 1px 3px 0px rgb(103 58 183 / 12%); border: none;
	border-radius: 5px;
	display: inline-block; cursor: pointer; overflow: hidden; transition: var(--time-tst-xfast);
}
html body section.modal div span a.filled[role="button"] { background-color: var(--clr-main-high-dark-blue); }
html body section.modal div span a[role="button"]:not(.filled) { border: 0.5px solid var(--clr-main-high-dark-blue); }
html body section.modal div span a[role="button"]:before {
	position: relative; left: calc(50% - 8.5px); transform: scale(0);
	width: auto; height: var(--bh);
	background-color: var(--clr-main-low-dark-blue); border-radius: calc(var(--bh) / 2);
	display: block; content: ""; pointer-events: none; transition: var(--time-tst-xfast);
}
html body section.modal div span a[role="button"]:not(.filled):before { background-color: rgba(160, 160, 200, 0.5); }
html body section.modal div span a[role="button"]:active:before {
	transform: scale(5, 1.25); border-radius: 5px;
	animation: btn_pressed var(--time-tst-xfast) 1 linear;
}
@keyframes btn_pressed {
	0% { transform: scale(0); border-radius: 15px; }
	80%,100% { transform: scale(5, 1.25); border-radius: 5px; }
}
html body section.modal div span a[role="button"]:after {
	position: relative; top: -100%;
	font-size: 12.5px; line-height: var(--bh); font-family: 'Quicksand', sans-serif;
	color: #111; text-overflow: ellipsis; white-space: nowrap;
	display: block; content: attr(data-text); pointer-events: none; overflow: hidden;
}
html body section.modal div span a.filled[role="button"]:after { color: #FEFEFE; }
html body section.modal div span a[role="button"]:hover { background-color: rgba(200, 200, 250, 0.5); }
html body section.modal div span a.filled[role="button"]:hover { background-color: var(--clr-main-dark-blue); }
/* Lightbox */
html body section.lightbox {
	position: fixed; top: 0px; left: 0px; z-index: 6;
	width: 100%; height: 100%;
	pointer-events: none;
}
html body section.lightbox[ding] { pointer-events: auto; }
html body section.lightbox span.fadebg {
	position: absolute;
	width: 100%; height: 100%;
	background-color: rgba(0,0,0,0);
	transition: var(--time-tst-xslow);
}
html body section.lightbox[ding] span.fadebg { background-color: rgba(0,0,0,0.75); }
html body section.lightbox div.displayer {
	padding: 5px;
	position: absolute; left: 50%; transform: translate(-50%, 0px);
	min-width: 300px; min-height: 100px; max-width: 95%; max-height: calc(100vh - 100px);
	background-color: var(--clr-main-dim-white); filter: opacity(0);
	border-radius: 5px; border: 2.5px solid #999;
	overflow-x: hidden; overflow-y: auto;
	transition: filter var(--time-tst-medium) var(--time-tst-fast) linear; animation-delay: var(--time-tst-fast);
}
html body section.lightbox[ding] div.displayer { filter: opacity(1); }
html body section.lightbox[ding="top"] div.displayer {
	top: 25px;
	animation: fly_in_top var(--time-tst-medium) 1 linear;
}
html body section.lightbox[ding="mid"] div.displayer {
	top: 50%; transform: translate(-50%, -50%) scale(1);
	animation: fly_in_mid var(--time-tst-medium) 1 linear;
}
html body section.lightbox[ding="btm"] div.displayer {
	bottom: 25px;
	animation: fly_in_btm var(--time-tst-medium) 1 linear;
}
@keyframes fly_in_top { from { top: 0px; } to { top: 25px; } }
@keyframes fly_in_mid { from { top: 50%; transform: translate(-50%, -50%) scale(0); } to { top: 50%; transform: translate(-50%, -50%) scale(1); } }
@keyframes fly_in_btm { from { bottom: 0px; } to { bottom: 25px; } }
html body section.lightbox[ded="top"] div.displayer {
	top: 0px;
	animation: fly_out_top var(--time-tst-medium) 1 linear;
}
html body section.lightbox[ded="mid"] div.displayer {
	top: 50%; transform: translate(-50%, -50%) scale(0);
	animation: fly_out_mid var(--time-tst-medium) 1 linear;
}
html body section.lightbox[ded="btm"] div.displayer {
	bottom: 0px;
	animation: fly_out_btm var(--time-tst-medium) 1 linear;
}
@keyframes fly_out_top { from { top: 25px; } to { top: 0px; } }
@keyframes fly_out_mid { from { top: 50%; transform: translate(-50%, -50%) scale(1); } to { top: 50%; transform: translate(-50%, -50%) scale(0); } }
@keyframes fly_out_btm { from { bottom: 25px; } to { bottom: 0px; } }
html body section.lightbox div.displayer div.content div.head {
	height: 29px;
	font-size: 18.75px; font-family: 'Sarabun'; font-weight: bold;
	border-bottom: 1px solid #555;
	white-space: nowrap;
}
html body section.lightbox div.displayer div.content div.head span {
	max-width: calc(100% - 26px);
	vertical-align: top;
	display: inline-block;
}
html body section.lightbox div.displayer div.content div.head label {
	float: right;
	width: 24px; height: 24px;
	text-align: center; line-height: 20.5px;
	border-radius: 50%; color: #555;
	cursor: pointer; transition: var(--time-tst-xfast);
}
html body section.lightbox div.displayer div.content div.head label:hover { background-color: rgba(150, 150, 150, 0.25); }
html body section.lightbox div.displayer div.content div.body {
	margin-top: 5px;
	font-size: 12.5px; font-family: 'Sarabun';
}
@media only screen and (max-width: 768px) { html body section.lightbox div.displayer div.content div.head label { line-height: 24px; } }
/* Context menu */
html body nav.cm {
	position: fixed; z-index: 9;
	width: 230px; height: 0px;
	background-color: rgba(247, 237, 202, 0.69);
	overflow: hidden;
}
html body nav.cm div.divider {
	transform: translateX(1.125%);
	width: 97.75%; height: 0.23px;
	background-color: #DBC377;
}
html body nav.cm ul { margin: 0px; padding: 0px; }
html body nav.cm ul li {
	padding: 0px 5.75px;
	width: calc(100% - 11.5px); height: 23px;
	list-style-type: none;
}
html body nav.cm ul li:hover { background-color: rgba(242, 224, 159, 0.575); }
html body nav.cm ul li img { width: 23px; height: 23px; }
html body nav.cm ul li span {
	position: absolute; left: 34.5px;
	max-width: calc(100% - 23px - 5.75px);
	font-size: 14.375px; line-height: 23px; font-family: 'Kanit', sans-serif;
	cursor: context-menu;
}
/* Floating message box */
html body aside.fm {
	padding: 2.5px 0px;
	position: fixed; top: calc(var(--top-height) + 7.5px); right: 5px; z-index: 7;
	width: 225px;  max-height: calc(100vh - var(--top-height) - 30px);
	overflow: visible; overflow-y: auto;
}
html body aside.fm div.msg {
	padding: 5px; margin: 2.5px 0px;
	position: relative; left: 50%; transform: translateY(0%);
	width: calc(100% - 25px); min-height: 60px;
	border-radius: 5px; border: 0.25px solid #C2970E; box-shadow: 0px 0px 3.125px 2.5px rgba(94, 79, 30, 0.23);
	animation: new_fm calc(var(--time-tst-xfast)/0.75) ease-in-out 1; animation-fill-mode: forwards;
}
@keyframes new_fm {
	from { transform: translateX(calc(100% + 25px)); }
	to { transform: translateX(-50%); }
}
html body aside.fm div.msg.done { background-color: rgba(99, 235, 40, 0.75); }
html body aside.fm div.msg.info { background-color: rgba(84, 219, 249, 0.75); }
html body aside.fm div.msg.warn { background-color: rgba(253, 235, 69, 0.7); }
html body aside.fm div.msg.error { background-color: rgba(225, 150, 150, 0.8); }
html body aside.fm div.msg div {
	position: absolute; top: 5px; left: 5px;
	width: 25px; height: 25px;
	font-family: 'Kanit', sans-serif; color: #92720B; text-align: center; line-height: 22.5px; font-size: 25px; font-weight: bold;
	border-radius: 50%;
	cursor: pointer; transition: var(--time-tst-xfast);
}
html body aside.fm div.msg div:hover { background-color: rgba(150, 150, 150, 0.25); }
html body aside.fm div.msg img {
	position: absolute; top: 35px; left: 5px;
	width: 25px; height: 25px;
}
html body aside.fm div.msg label {
	padding-left: 5px;
	position: absolute; top: 5px; left: 30px;
	width: 160px;
	word-wrap: normal; font-family: 'THSarabunNew', sans-serif; line-height: 25px;
}
/* Back up button */
html body aside.up {
	position: fixed; bottom: 25px; right: 25px; z-index: 5;
	width: 35px; height: 35px;
	background-color: #FEFEFE;
	border-radius: 50%; border: 0.25px solid rgba(185, 148, 4, 0.69); box-shadow: 0px 0px 3.125px 2.5px rgba(247, 237, 202, 0.69);
	overflow: hidden; display: none;
}
html body aside.up a div {
	position: absolute;
	width: 100%; height: 100%;
}
html body aside.up a div img {
	position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg);
	width: 70%; height: 70%;
}
/* Referer */
html body nav.rfr {
	position: fixed; bottom: 25px; left:25px; z-index: 8;
	max-width: calc(100% - 50px); height: 20px;
	font-size: 12.5px; line-height: 20px;
	display: none;
}
/* Footer */
html body footer {
	position: relative; z-index: 3;
	width: 100%; height: 250px;
	background-color: #C69F1F;
	transition: var(--time-tst-fast) ease
}
/* Print up */
@media only print {
	html body nav.cm { display: none; }
	html body nav.rfr { display: block; }
	html body footer { display: none; }
}