@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;1,300&display=swap');

:root {
	--fadeStart: #7434eb;
	--fadeEnd: #f808fc;
	--accent: #fdb3fe;
	--background: #1e1f22;
	--card: #2b2d31;
	--input: #383a40;
	--text: #61626b;
	--secondinput: #4b4b4b;
	--linkHover: #9a689b;
}

html,
body {
	height: 100%;
	font-family: 'Kanit', sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--background);
	color: white;
}

.colorpicker {
	background-color: var(--input);
	border: 1px solid var(--input);
	border-radius: 3px;
	padding: 0.5em;
	color: white;
	display: inline-block;
	vertical-align: middle;
	margin-left: 2px;
	border: none;
	outline: none;
	width: calc(100% - 35px);
}
.title {
	width: 90%;
	margin: auto;
	display: flex;
}
canvas {
	position: relative;
	top: 0;
	left: 0;
}

#gl {
	width: 70%;
	height: 100%;
	float: left;
	cursor: move;
	position: fixed;
}
.container {
	background-color: #2b2d31;
	box-shadow: 0 2px 4px #353535;
	margin: 0.5em;
	border-radius: 3px;
	padding: 1em 0.5em;
	margin-left: 70%;
}
.credits {
	margin: 0;
	padding: 2rem 0 0 0;
}
.credit {
	text-align: center;
	margin: 0 0 0 0;
	padding: 0.2rem 0;
	font-family: monospace;
}
.padding {
	padding: 1em;
}
.section {
	padding: 1em;
	border-bottom: 1px outset #ddd;
}
.code {
	word-wrap: break-word;
	padding: 1em;
	font-family: monospace;
	background-color: #383a40;
	border-radius: 3px;
}

.section_content {
	display: flex;
	padding: 0.1rem 0rem;
	justify-content: center;
	align-items: baseline;
}

.section_content_main {
	flex: content;
}

.content_info {
	margin-right: 1rem;
	min-width: 6rem;
}


/* info styling */
.sectionInfo {
	margin: 0;
	padding: 5px 0px 10px 0px;
	text-align: center;
}

.info {
	padding: 0px 0px 5px 0px;
	margin: 0;
	font-size: 16px;
}
.info_title {
	margin: 0px;
}

.command {
	margin: 0px;
	padding: 10px;
	background: var(--input);
	border-radius: 5px;
	font-family: monospace;
}

.note {
	margin: 0px;
	font-size: 12px;
}

.infoSection {
	margin-bottom: 2rem;
}



/* Input styling */
.text_input {
	width: 100%;
}
.modeldata_input {
	width: 100%;
}
input[type="text"],
select {
	background-color: var(--input);
	border: 1px solid var(--input);
	border-radius: 3px;
	padding: 0.5em;
	color: white;
}
input[type="text"]:not(:last-child) {
	margin-bottom: 0.5em;
}
input[type="range"] {
	accent-color: var(--accent);
	border: none
}
input[type=range]::-webkit-slider-runnable-track {
	cursor: pointer;
	background: var(--input);
	border-radius: 8px;
}
input:focus-visible {
	outline: none;
	border: none;
}



/* Checkbox styling*/
.b-contain *,
.b-contain *::before,
.b-contain *::after {
	box-sizing: content-box !important;
}

.b-contain input {
	position: absolute;
	z-index: -1;
	opacity: 0;
}

.b-contain span {
	line-height: 1.5;
	font-size: 1rem;
}

.b-contain {
	display: inline;
	position: relative;
	padding-left: 2rem;
	cursor: pointer;
	margin-bottom: 0.4rem;
}

.b-contain input[type="checkbox"]~.b-input {
	position: absolute;
	top: 0;
	left: 0;
	height: 1.25rem;
	width: 1.25rem;
	background: rgb(56, 58, 64);
	transition: background 250ms;
	border: none;
	border-radius: 0.2rem;
}

.b-contain input[type="checkbox"]~.b-input::after {
	content: "";
	position: absolute;
	display: none;
	left: 7px;
	top: 3px;
	width: 0.3rem;
	height: 0.6rem;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transition: background 250ms;
	transform: rotate(45deg);
}

.b-contain input:checked~.b-input::after {
	display: block;
}

.b-contain:hover input[type="checkbox"]:not([disabled])~.b-input,
.b-contain input[type="checkbox"]:focus~.b-input {
	background: var(--text);
	border-color: var(--input);
}

.b-contain input[type="checkbox"]:checked~.b-input {
	background: var(--accent);
	border-color: var(--input);
}

.b-contain:hover input[type="checkbox"]:not([disabled]):checked~.b-input,
.b-contain input[type="checkbox"]:checked:focus~.b-input {
	background: var(--accent);
}




/* Table styling */
td . {
	text-align: start;
	padding: 0.5em 0.0em 0.5em 2.8em !important;
	max-width: 8em;
}
.color_container {
	min-width: 26%;
}

#particle_trans_color,
#particle_trans_color_to,
#particle_spell_color,
#particle_dust_color {
	max-width: 89%;
}

td .text_input {
	max-width: 97%;
}
.table {
	width: 100%;
	display: flex;
	justify-content: flex-start;
}
.table input {
	width: 100%;
}
tr {
	display: flex;
	justify-content: space-between;
	margin-bottom: 3px;
}
.row2 td:nth-child(1) {
	width: 15rem;
	margin: auto;
}
.row2 td:nth-child(2) {
	width: 100%;
}


.rotation_table td:nth-child(1) {
	width: 20rem;
	margin: auto;
}
.rotation_table td {
	width: 100%;
}


.equipment_table td:nth-child(1) {
	width: 100%;
	margin: auto;
}
.equipment_table td:nth-child(2) {
	width: 10rem;
	margin: 0px 20px 0px 15px;
}

tbody {
	width: 100%;
}
.rotation_title {
	width: 6.7rem !important;
}
.rotation_slider {
	width: 100%;
}

/* button styling */
.controls {
	display: flex;
	justify-content: center;
}

/* button styling */
.btn {
	align-items: center;
	background-image: linear-gradient(144deg, var(--fadeStart), var(--fadeEnd));
	border: 0;
	border-radius: 8px;
	box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
	box-sizing: border-box;
	color: #FFFFFF;
	display: flex;
	font-family: monospace;
	font-size: 20px;
	justify-content: center;
	line-height: 1em;
	max-width: 100%;
	min-width: 140px;
	padding: 2px;
	text-decoration: none;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	white-space: nowrap;
	cursor: pointer;
	margin: 5px;
}

.btn:active,
.btn:hover {
	outline: 0;
}

.btn span {
	background-color: rgb(5, 6, 45);
	padding: 10px 15px;
	border-radius: 6px;
	width: 100%;
	height: 100%;
	transition: 300ms;
}

.btn:hover span {
	background: none;
}

@media (min-width: 768px) {
	.btn {
		font-size: 14px;
		min-width: 120px;
	}
}

/* Link styling */
a {
	color: var(--accent);
}
a:hover {
	color: var(--linkHover);
}
a:active {
	color: var(--linkHover);
}
a:focus {
	color: var(--linkHover);
}
