* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: none;
	outline: none;
	position: relative;
}

body {
	margin-inline: auto;
	max-width: 1000px;
	padding: 2rem;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: start;
}

#zones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	width: 100%;
}

#drop-zone, #logo-zone {
	width: 100%;
	height: 100%;
	border: 2px dashed #aaa;
	border-radius: 6px;
	background-color: #fafbfc;
	padding: 1rem 2rem;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
	color: #333;
	font-family: 'Segoe UI', Arial, sans-serif;
}

#drop-zone:hover, #logo-zone:hover,
#drop-zone.dragover, #logo-zone.dragover {
	border-color: #0078d4;
	background-color: #f0f6ff;
}

input[type="file"] {
	display: none;
}

#previews {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

#previews canvas {
	width: 100%;
	height: 100%;
	border-radius: 6px;
	image-rendering: smooth;
}

.preview-wrapper {
	border-radius: 6px;
	width: 210px;
	background: #eee;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#previews button {
	position: absolute;
	top: 0.2rem;
	right: 0.2rem;
	width: 20px;
	height: 20px;
	background: #d5d5d5;
	border-radius: 4px;
	color: #444;
	transition: scale 0.2s;
	opacity: 0.9;
}
#previews button:hover {
	scale: 1.1;
}

.reset-button {
	left: 0.2rem;
	font-size: 20px;
	line-height: 0;
}

#download-all {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-size: 16px;
	background: #959595;
	color: #fff;
	font-family: inherit;
	transition: background-color 0.2s;
	text-wrap: nowrap;
}
#download-all:hover {
	background-color: #666;
}

button {
	cursor: pointer;
}

#reset-btn {
	padding: 0.6rem 0.8rem;
	background-color: #e74c3c;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	transition: background-color 0.2s;
	cursor: pointer;
}

#reset-btn:hover {
	background-color: #c0392b;
}

input[type="range"] {
	margin-block: 0.6rem;
	margin-left: 0.5rem;
	width: 80%;
	appearance: none;
	background: #ccc;
	height: 6px;
	border-radius: 4px;
	box-shadow: none;
}

input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 14px;
	height: 14px;
	background: var(--color);
	border-radius: 4px;
	box-shadow: none;
}

input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: var(--color);
	border-radius: 4px;
}

input[type="range"]::-moz-range-track {
	background: #ccc;
	height: 8px;
	border-radius: 4px;
}

.scale {
	--color: #3c5be7;
	
	&::before {
		content: 'S';
		position: absolute;
		left: -1rem;
		top: 50%;
		transform: translateY(-50%);
	}
}

.offsetX {
	--color: #41c450;

	&::before {
		content: 'X';
		position: absolute;
		left: -1rem;
		top: 50%;
		transform: translateY(-50%);
	}
}

.offsetY {
	--color: #e74c3c;

	&::before {
		content: 'Y';
		position: absolute;
		left: -1rem;
		top: 50%;
		transform: translateY(-50%);
	}
}

#top-section {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 1rem;
}