/* lessc styles.less styles.css */

@import url('https://fonts.googleapis.com/css2?family=Eagle+Lake&family=Itim&family=Macondo&display=swap');

/* auto battler */
@import url('./auto battler.css');

:root {
	--popup-time: 0s;
	--ncbg1: url('../img/mn0CD8R3hBAuWHHqptKx--0--3hjha.png');
	--lightgold: #c8b796;
}

body {
	font-family: "Itim", serif;
	font-size: 18px;

	overflow: hidden;
	touch-action: none;
	user-select: none;
	background: black;
	background: var(--ncbg1);
	background-position: center;
	background-size: cover;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	width: 100%;
	height: 100%;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	text-rendering: optimizespeed;
}

x-main {
	position: relative;
	background: var(--ncbg1);
	background-position: center;
	background-size: cover;
	min-width: 300px;
	min-height: 600px;
	max-width: 500px;
	max-height: 700px;
	width: 100%;
	height: 100%;
	bborder: 1px solid grey;
	border-radius: 6px;
	margin: 0px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: space-between;
}

x-button {
	font-family: Itim;
	font-size: 18px;
	cursor: pointer;
	margin: 2px;
	padding: 0 9px;
	border-radius: 6px;
	border: 6px inset rgba(0, 0, 0, 0.5);
	box-shadow: inset 0 0 3px rgb(68 68 68), 0 0 9px rgb(50 50 50);
	background: linear-gradient(180deg, rgb(127 127 127 / 0%) 0%, rgba(127 127 127 / 30%) 100%)
		/*, url('../img/darkly.png') */
	;
	background-origin: border-box;
	background-size: 128px;
	background-position: 0px 0px;
	height: 28px;
	box-sizing: border-box;
	display: flex;
	align-items: center;

	&[see-through] {
		background: linear-gradient(180deg, rgb(127 127 127 / 0%) 0%, rgba(127 127 127 / 30%) 100%);
	}

	&:active {
		ttext-decoration: wavy underline;
		font-weight: bold;
		color: white !important;
	}

	&[selected] {
		outline: 2px solid green;
	}

	&[small] {
		width: 150px;
	}

	&[confirm] {
		color: #dacead;
		height: 50px;
		border-radius: 16px;
	}

	&[blue] {
		background: blue;
	}

	&[icon] {
		height: auto;
		width: auto;
		padding: 3px;
		border: 6px inset rgba(0, 0, 0, 0.5);
	}
}

[nowrap] {
	white-space: nowrap;
}

[bold] {
	font-weight: bold;
}

[center] {
	justify-content: center;
}

[uppercase] {
	text-transform: uppercase;
}

x-text {
	position: relative;
	color: red;
	font-style: normal;
	text-align: center;
}

span[boost] {
	text-decoration: wavy underline;
}

::-webkit-scrollbar {
	width: 9px;
	height: 20px;
}

/* Track */
::-webkit-scrollbar-track {
	background: rgba(48, 48, 48, 0.66);
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: rgba(168, 168, 168, 0.66);
	border-radius: 3px;
}

::-webkit-scrollbar-corner {
	bbackground: #16b63e;
}

@keyframes appear {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}


@keyframes disappear {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

x-quick-bar {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;

	x-action {
		display: flex;
		margin: 6px;
		width: 32px;
		height: 32px;
		font-size: 24px;
	}
}

[ancient],
.ancient {
	ffont-family: "Macondo";
}

x-popup {
	position: absolute;

	bborder-image: url(../img/rocks.jpg) 30;
	bborder-style: solid;
	bborder-width: 1px;

	margin: 10px;
	display: flex;
	flex-direction: column;
	background: rgb(32 132 128 / 80%);
	width: 80%;
	margin: 10%;

	box-sizing: border-box;
	background: url('../img/darkly.png');
	background-size: 256px;

	color: #cacaca;
	text-shadow: -3px 0px 2px #000000, 0px 0px 3px rgb(62 62 62);
	box-shadow: inset 0 0px 12px 0 rgb(255 255 255 / 20%), 0 0 6px 0 rgb(0 0 0 / 50%);
	border-radius: 3px;

	animation: appear var(--popup-time) ease-in-out;

	&[exit] {
		animation: disappear var(--popup-time) ease forwards;
	}

	& x-title-bar {
		display: flex;
		align-items: center;

		font-family: Itim;
		font-size: 18px;

		text-align: center;
		margin-bottom: 6px;

		ttext-decoration: underline;

		&[isABar] {
			border-image: url(../img/rocks.jpg) 30;
			bborder-style: solid;
			border-width: 1px;
			bbox-shadow: inset 0 0px 10px 0 rgb(255 255 255 / 30%);
		}

		x-title {
			width: 100%;
			padding: 4px;
			text-align: left;
			ttext-transform: uppercase;
			tfont-family: Itim;
		}

		x-close {
			padding: 12px 20px;
			border-radius: 3px;
			border: 5px solid #7c7c7c;
			border-radius: 6px;
			bbox-shadow: -2px 2px 6px #4f2f067a;
		}
	}

	& x-content {
		flex: 1;
		padding: 10px;
	}

	&.popup-act-screen {
		bbackground: url('../img/titlebar8.jpg');
		bbackground-size: 256px;
	}

	&.popup-character-creation {
		wwidth: 80%;
		hheight: 70%;
	}

	&.popup-lore {
		margin: 10px;
		width: 70%;
		box-shadow: 0 0px 40px 0 rgb(0 0 0 / 50%);

		& x-title-bar {
			x-title {
				ccolor: #d5bf67;
			}
		}
	}

	&.popup-stash {
		margin: 10px;
		width: 70%;
		box-shadow: 0 0px 40px 0 rgb(0 0 0 / 50%);

		& x-title-bar {
			x-title {
				ccolor: #d5bf67;
			}
		}
	}
}

x-row {
	display: flex;
	flex-direction: row;
	align-items: center;

	&[center] {
		width: 100%;
		text-align: center;
	}
}

x-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 50%;
}

.x-act {
	color: var(--lightgold);
	display: flex;
	ffont-style: italic;
	justify-content: center;
}

x-list {
	overflow: auto;
	display: flex;
	flex-direction: column;

	&[short] {
		height: 180px;
	}

	&>x-item {
		font-family: Itim;
		font-size: 18px;
		cursor: pointer;

		display: flex;
		jjustify-content: center;
		padding: 6px;
		mmargin: 3px 0px;
		border-radius: 3px;
		background: rgb(0 0 0 / 20%);
		box-shadow: 0 0px 6px 0 rgb(0 0 0 / 20%);

		&:nth-child(even) {
			background: none;
			bbackground: rgb(255 255 255 / 20%);
		}

		&:active {
			color: white !important;
			ffont-weight: bold;
		}
	}
}

x-table {
	display: flex;
	flex-direction: column;

	>x-table-row {
		display: flex;
		/* width: 100%; */
		justify-content: space-around;
		flex-direction: row;

		>x-table-cell {
			display: flex;
			width: 100%;
		}
	}

}

x-mob-icon {
	display: flex;
	flex-direction: column;
	padding: 6px;
	font-size: 32px;
	text-shadow: none;

	x-icon {
		&:hover {
			animation: shake 1s ease infinite forwards;
		}
	}

	>x-health-bar {
		/* width: 100%; */
		height: 9px;
		/* border: 1px solid #939393; */
		border-radius: 3px;
		background: #ad4242;
		bbox-shadow: inset 0 0 3px rgb(255 255 255 / 50%);
	}
}

/* Make a faint shaking animation */
@keyframes shake {
	0% {
		transform: translate(1px, 1px) rotate(0deg);
	}

	25% {
		transform: translate(-1px, -1px) rotate(-3deg);
	}

	50% {
		transform: translate(-1px, 1px) rotate(3deg);
	}

	75% {
		transform: translate(1px, 1px) rotate(0deg);
	}

	100% {
		transform: translate(1px, 1px) rotate(3deg);
	}
}

x-value-pair {
	display: flex;
	align-items: center;
	ccolor: var(--lightgold);

	&:last-child {
		border: none;
	}

	&>x-key {
		ffont-weight: bold;
	}

	&>x-value {
		font-family: 'Itim';
		font-size: 18px;
		padding: 0 4px;
		margin-left: 1ex;
		text-align: right;
		border: 6px outset rgba(0, 0, 0, 0.343);
		box-shadow: inset 0 0 3px rgb(68 68 68), 0 0 3px rgb(50 50 50);
	}
}

x-location-tile-empty {
	width: 100%;
	height: 100px;
	margin: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

x-location-tile {
	font-family: Itim;
	font-size: 18px;
	cursor: pointer;

	width: 100%;
	height: 100px;
	box-sizing: border-box;
	margin: 1px;
	ppadding: 6px;
	border-radius: 9px;
	border: 6px inset rgba(0, 0, 0, 0.4);
	box-shadow: inset 0 0 3px rgb(68 68 68), 0 0 9px rgb(50 50 50);

	background: linear-gradient(180deg, rgb(127 127 127 / 0%) 0%, rgba(127 127 127 / 25%) 100%)
		/*, url('../img/darkly.png') */
	;
	background-origin: border-box;
	bbackground: url('../img/titlebar8.jpg');
	bbackground-size: 256px;

	display: flex;
	flex-direction: column;
	align-content: center;
	justify-content: center;
	align-items: stretch;
	text-align: center;

	&:hover {
        box-shadow: inset 0 0 20px rgb(255 255 255 / 20%), 0 0 3px rgb(0 0 0);
        position: relative;
        z-index: 2;
	}

	&[selected] {
		outline: 2px solid green;
	}
}

x-heading {
	display: flex;
	padding: 6px;
	ttext-decoration: underline;
}

x-area {
	display: flex;
	flex-direction: column;
	margin: 6px 0;
	padding: 0;
	border-radius: 9px;
	border: 6px outset rgba(0, 0, 0, 0.343);
	box-shadow: inset 0 0 3px rgb(68 68 68), 0 0 6px rgb(50 50 50);
	/* background: linear-gradient(0deg, rgb(127 127 127 / 50%) 0%, rgba(127, 127, 127, 0) 100%), url(img/darkly.png); */

	&[poem] {
		color: #4f9edd;
		font-style: italic;
		text-shadow: -1px 0px 1px rgb(24 32 47);

	}

	&[scroll] {
		overflow: auto;
		max-height: 200px;
	}
}

x-poem {
	display: flex;
	flex-direction: column;
	margin: 6px 0;
	padding: 0;
	color: #5998d1;
	font-style: italic;
	text-shadow: -3px 0px 1px rgb(8 15 27), 3px -3px 2px rgb(83 83 83);
}

x-fieldset {
	display: flex;

	&[shadow] {
		padding: 12px 3px;
		border-radius: 9px;
		box-shadow: inset 0 0 2px rgb(50 50 50), 0 0 2px rgb(50 50 50);
	}

	&[right] {
		justify-content: flex-end;
	}
}

.stone {}

x-inventory {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;

	>x-slot {
		display: flex;
		width: 44px;
		height: 44px;
		padding: 5px;
		align-items: center;
		justify-content: center;
	}
}

x-floater {
	position: absolute;
	top: 0;
	left: 0;
	font-family: Itim;
	font-size: 18px;
	color: white;
	transform: translateX(-50%);
	animation: disappear 0.5s 0.66s ease forwards, rise 1s ease forwards;
}

@keyframes rise {
	from {
		transform: translateX(-50%) translateY(0);
	}

	to {
		transform: translateX(-50%) translateY(-20px);
	}
}

x-scrolling-area {
	ccolor: #dfdfdf;
	display: flex;
	flex-direction: column;
	margin: 6px 0;
	padding: 0;
	border: 9px outset rgba(0, 0, 0, 0.343);
	border-radius: 6px;
	box-shadow: inset 0 0 3px rgb(68 68 68), 0 0 6px rgb(50 50 50);
	background: linear-gradient(180deg, rgb(127 127 127 / 0%) 0%, rgba(127 127 127 / 30%) 100%), url(img/darkly.png);
	background-origin: border-box;
	overflow: auto;
	max-height: 200px;
}

x-author {
	font-size: 14px;
	text-align: right;
	margin-top: 6px;
}

x-arena {
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: row;
	justify-content: center;
}