* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 100%;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

body {
	line-height: 1.5;
	font-family: "BalooTammudu", sans-serif;
	background-color: #202227;
	color: #fff;

	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

h1 {
	font-size: clamp(1.5rem, 4vw, 3rem);
	margin-bottom: 1rem;
}

@media (max-width: 768px) {
	body {
		padding: 0.5rem;
	}
}

@font-face {
	font-family: "BalooTammudu";
	src: url("fonts/BalooTammudu.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}

/*
    Components
*/

.mainComponents {
	background-color: #10131a;
	width: 100%;
	max-width: 95vw;
	min-height: 90vh;
	border-radius: 1.5625rem;
	gap: 2rem;

	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: auto;
	align-items: center;
	position: relative;
}

/*
			Left Side
	*/

.leftSide {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: flex-start;
	grid-column: 1 / 2;
	padding-left: 2rem;
}

.leftSide select {
	width: 100%;
	padding: 0.5rem 1rem;
	font-size: 1rem;
}

.leftSide button {
	width: 50%;
	padding: 0.5rem 1rem;
	font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.titleComponents h1 {
	top: clamp(2.5rem, 7.5vw, 7rem);
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.subline {
	display: block;
	margin-top: -0.25em;
	text-indent: 1em;
}

.version,
.modLoader {
	width: 75%;
	padding: 0.9375rem;
	background-color: #191b22;
	border-radius: 1.5625rem;
}

.version label,
.modLoader label {
	font-size: clamp(0.9rem, 1.5vw, 1.5rem);
}

.version select,
.modLoader select {
	padding: 0.3125rem;
	border: 0.0625rem solid #22242a;
	background-color: #22242a;
	color: #b0bac5;
	font-size: clamp(0.9rem, 1.5vw, 1rem);
	font-weight: bold;
}

#convertButton,
#downloadButton {
	width: 75%;
	height: 3rem;
	border-radius: 1.875rem;
	color: #fff;
}

#convertButton {
	border: 0.125rem #2f9645 solid;
	background-color: #4cce68;
}
#downloadButton {
	border: 0.125rem #966e1a solid;
	background-color: #b48725;
}

#downloadButton:hover,
#convertButton:hover,
.modLoader select:hover,
.version select:hover {
	cursor: pointer;
}

/*
		Middle
	*/

.middle {
	display: flex;
	flex-direction: column;
	grid-column: 2 / 3;
}

#modContainer {
	background-color: #191b22;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr));

	grid-auto-rows: 9.375rem;
	gap: 0.75rem;
	width: 100%;
	height: calc(9.375rem * 2 + 0.75rem * 4); /* 4 rows + 3 gaps */
	overflow-y: auto;
	padding: 1.25rem;
	margin: 0 auto;
}

.modBox {
	background-color: #22242a;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: clamp(0.75rem, 1.25vw, 1.25rem);
	font-weight: bold;
	position: relative;
	overflow: hidden;
}

.preview-wrapper {
	position: relative;
	width: 100%;
}

.preview-img {
	width: 100%;
	height: auto;
	cursor: pointer;
	display: block;
}

.preview-caption {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #1e2027;
	color: white;
	padding: 4px;
	text-align: center;
}

/*
		Right Side
	*/

.rightSide {
	display: flex;
	flex-direction: column;
	grid-column: 3 / 4;
	justify-self: end;
	gap: 1rem;
	padding-right: 2rem;
	width: 75%;
}

#temperaryDropInfo {
	position: absolute;
	bottom: 1rem;
	right: 2rem;
}

.creatorsTab,
.linksTab,
.detailsTab {
	border-radius: 1.5625rem;
	padding: 0.9375rem;
	border: 0.0625rem solid #191b22;
	background-color: #191b22;
	font-size: clamp(0.9rem, 1.5vw, 1.5rem);
	font-weight: normal;
	max-width: clamp(300px, 80vw, 800px);
}

#creators,
#links,
#details {
	max-height: 5rem;
	padding: 0.9375rem;
	background-color: #22242a;
	font-size: clamp(0.9rem, 1.5vw, 1rem);
	overflow-y: auto;
}

#creators a,
#links a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: #b0bac5;
	text-decoration: none;
}

/* this css runs on prayers */
#creators a span,
#details svg {
	position: relative;
	top: .2rem;
}

#creators a {
	gap: 0.25rem;
	margin-top: 0.25rem;
}

.pfp {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

#links a .external {
	width: 13px;
	height: 13px;
	margin-bottom: 0.75rem;
}

#links svg,
#details svg {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	flex-shrink: 0;
	margin-bottom: 0.5rem;
}

#details span {
	color: #b0bac5;
}