.ths-themegen-container {
	display: flex;
	width: 100%;
	justify-content: center;
}

.ths-themegen-main {
	width: 90%;
	background-color: var(--clevel-1);
	border-radius: 15px;
	padding: var(--half-spacing);
}

.ths-themegen-section {
	display: flex;
	background-color: var(--clevel-2);
	border-radius: 10px;
	padding: var(--half-spacing);
	margin-bottom: var(--quarter-spacing);
}
.ths-themegen-section:last-of-type { margin-bottom: 0; }

#ths-themegen-tinput {
	display: flex;
	justify-content: space-around;
}

.tinput-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 4px;
}

.tinput-wrap input {
	margin-left: 10px;
	height: 30px;
	border: none;
	border-radius: 4px;
	background: var(--clevel-3);
	text-align: center;
}

.tinput-wrap input[type="file"] {
	height: initial !important;
	background: none;
	max-width: 250px;
}

.ths-themegen-descriptor-wrap {
	width: 50%;
	padding: 4px;
	display: flex;
	flex-direction: column;
}

.ths-themegen-descriptor {
	display: flex;
	flex: 1;
	background-color: var(--clevel-3);
	border-radius: 5px;
	padding: 10px;
}

.ths-themegen-descriptor input[type="checkbox"] {
	transform: scale(1.5, 1.5);
	margin: 5px 15px 0 5px;
	align-self: flex-start;
	cursor: pointer;
}

.ths-themegen-descriptor input[type="file"] {
	margin-top: 10px;
	max-width: 100%;
}

.ths-themegen-descriptor input[type="color"] {
	align-self: center;
	width: 60px;
	height: 60px;
	padding: 0px;
	cursor: pointer;
	background: none;
	flex-shrink: 0;
	margin-bottom: 5px;
}

.ths-themegen-colourcfg {
	display: flex;
	flex-direction: column;
}

.ths-themegen-colourcfg > input[type="text"] {
	background-color: var(--clevel-2);
	width: 100px;
	height: 30px;
	border: 1px solid var(--green);
	border-radius: 6px;
	font-size: 1.25em;
	text-align: center;
}

.ths-themegen-descriptor img {
	margin-top: 10px;
	max-width: 100%;
	align-self: center;
}

#ths-themegen-colourdescs, #ths-themegen-imgdescs {
	flex-wrap: wrap;
}

#generate-btn {
	border: none;
	height: 40px;
	border-radius: 8px;
	background-color: var(--clevel-3);
	cursor: pointer;
	padding: 5px 10px;
	font-size: var(--basic-font-size);
	border: 2px solid var(--green);
}

#ths-themegen-submitbtn {
	justify-content: center;
}

.desc-meta {
	display: flex;
	flex: 1;
	flex-direction: column;
	margin-right: 10px;
}

.ths-themegen-main,
.ths-themegen-section,
.ths-themegen-descriptor,
.ths-themegen-colourcfg > input[type="text"],
#generate-btn {
	transition: var(--fade);
}

@media only screen and (max-width: 1200px) {
	.ths-themegen-main {
		width: 100%;
		padding: var(--quarter-spacing);
	}

	#ths-themegen-tinput {flex-direction: column; }

	.tinput-wrap {
		width: 100%;
		justify-content: center;
	}

	.tinput-wrap input { flex: 1; max-width: 400px; }
	.tinput-wrap input[type="file"] { max-width: 300px !important; }

	.ths-themegen-section {
		flex-direction: column;
		align-items: center;
		padding: var(--quarter-spacing);
	}

	.ths-themegen-descriptor-wrap {
		width: 100%;
		max-width: 500px;
	}
}