body {
	font-family: Arial, sans-serif;
	margin: 20px;
	padding: 0;
	background-color: #f4f4f4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

h1 {
	text-align: center;
}

.file-upload {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 2px solid #ffa200;
	border-radius: 16px;
	padding: 20px;
}

input[type="file"] {
	display: block;
	margin-top: 20px;
	padding: 10px;
	background: white;
	border-radius: 8px;
}

button {
	display: block;
	margin: 20px auto;
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
}

textarea {
	width: 100%;
	max-width: 500px;
	height: 300px;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	font-family: monospace;
	font-size: 13px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: none;
}

.result-container {
	width: 100%;
	max-width: 500px;
	margin: 20px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.copy-button {
	margin-bottom: 10px;
	padding: 8px 16px;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: bold;
	transition: background-color 0.1s;
}

.copy-button:disabled {
	cursor: default;
	background-color: hsl(0, 0%, 81%);
}

.copy-button:not(:disabled) {
	cursor: pointer;
	background-color: hsl(203, 95%, 49%);
}

.copy-button:not(:disabled):hover {
	background-color: hsl(200, 100%, 52%);
}

.copy-button:not(:disabled):active {
	background-color: hsl(206, 95%, 49%);
}

.compression-result {
	margin-top: 25px;
	color: hsl(200, 2%, 60%);
	font-weight: bold;
	text-align: center;
}

.brightness-control {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 10px;

	> label {
		font-size: 12px;
		text-transform: uppercase;
		font-weight: bold;
		color: #919393;
	}

	> input[type="range"] {
		width: 200px;
		margin: 10px 0;
	}

	#brightnessValue {
		color: hsl(35, 100%, 46%);
	}
}

#previewCanvas {
	border: 10px solid hsl(41, 100%, 47%);
	border-radius: 10px;
}