@font-face {
	font-family: "Alte Haas Grotesk";
	src: url("../fonts/AlteHaasGroteskRegular.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--background-hex: #fafafa;
	--dark-blue-hex: #212842;
	--box-background: #EAEBEB;
	--boder-hex: #D6D6D6;
	--content-width: 50%;
}

* {
	padding: 0px;
	margin: 0px;
	color: var(--dark-blue-hex);
}

body {
	height: auto;
	min-height: 100vh;
	width: 100vw;
	max-width: 100vw;
	min-width: 320px;
	background-color: var(--background-hex);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
	font-family: "Alte Haas Grotesk", Arial, sans-serif;
}


header {
	height: 8vh;
	min-height: 70px;
	width: 100%;
	background-color: var(--dark-blue-hex);
	display: flex;
	align-items: start;
	justify-content: center;
}

.header-content {
	width: var(--content-width);
	height: 100%;
	display: flex;
	align-items: center;
	height: 100%;
}


.logo {
	color: var(--background-hex);
}

.content {
	width: var(--content-width);
	height: 80%;
	min-height: 80vh;
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: start;
	gap: 20px;
	min-height: 400px;
	padding: 50px 0px;
}

.body-header {
	font-size: 18px;
	height: 3vh;
}

.body-image-selector {
	width: 100%;
	height: 25vh;
	min-height: 200px;
}



.upload-box {
	width: 100%;
	height: 100%;
	border-radius: 12px;
	border: 2px dashed var(--dark-blue-hex);
	box-sizing: border-box;
	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center
}

.upload-content {
	background-color: var(--dark-blue-hex);
	padding: 10px 20px;
	border-radius: 12px;
}

.upload-content>span {
	color: var(--background-hex);
}

.body-image-info {
	background-color: var(--background-hex);
	width: 100%;
	height: 44vh;
	border-radius: 12px;
	display: flex;
	max-height: 500px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
	min-height: 400px;
}

.preview-div {
	width: 50%;
	height: 100%;
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: space-between;
	padding: 5%;
	box-sizing: border-box;
}

#preview {
	max-width: 100%;
	max-height: 60%;
	touch-action: none;
	user-select: none;
	-webkit-user-drag: none;
}

.preview-image-footer {
	font-size: 18px;
}

.image-info-div {
	width: 50%;
	height: 100%;
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 35px;
	padding: 5%;
	box-sizing: border-box;
	align-items: start;
	justify-content: space-between;
}

.image-info-header {
	font-size: 20px;
	font-weight: bold;
}

.color-inputs {
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-sizing: border-box;
	align-items: start;
	justify-content: center;
	width: 100%;
	height: 60%;
	position: relative;
}

.color-box {
	width: 100%;
	height: 45px;
	border-radius: 12px;
	box-sizing: border-box;
}

.image-info-input {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: start;
	position: relative;
	cursor: pointer;
}



.image-info-input>input {
	width: 65%;
	padding: 12px 0px 12px 15px;
	box-sizing: border-box;
	border: 1px solid var(--border-hex);
	margin-left: 20%;
	font-size: 16px;
	background-color: var(--box-background);
	cursor: pointer;
}

.image-info-input input:focus {
	outline: none;
}

.image-info-input-header {
	position: absolute;
	background-color: var(--dark-blue-hex);
	color: var(--background-hex);
	width: 20%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
	left: 0px;
}

.input-copy {
	background-color: var(--box-background);
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	height: 100%;
	width: 15%;
	right: 0px;
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
}

.copy-icon {
	width: 25px;

}

#loupe {
	position: fixed;
	width: 140px;
	height: 140px;
	border-radius: 999px;
	border: 2px solid #212842;
	background: #fff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
	pointer-events: none;
	display: none;
	overflow: hidden;
	z-index: 9999;
}

#loupeCanvas {
	width: 140px;
	height: 140px;
	image-rendering: pixelated;
}

#toast-container {
	position: fixed;
	top: calc(8% + 15px);
	right: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 99999;
	pointer-events: none;
}

.toast {
	min-width: 220px;
	max-width: 320px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(33, 40, 66, 0.95);
	color: #fafafa;
	font-size: 14px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);

	transform: translateY(-6px);
	opacity: 0;
	transition: opacity 160ms ease, transform 160ms ease;
	text-align: center
}

.toast.show {
	opacity: 1;
	transform: translateY(0);
}

.toast.success {
	background: rgba(16, 148, 92, 0.95);
}

.toast.error {
	background: rgba(200, 50, 50, 0.95);
}

.toast.info {
	background: rgba(33, 40, 66, 0.95);
}

@media (max-width: 1250px) {
	:root {
		--content-width: 70%;
	}
}

@media (max-width: 1100px) {
	:root {
		--content-width: 80%;
	}
}

@media (max-width: 900px) {
	:root {
		--content-width: 80%;
	}
}


@media (max-width: 840px) {
	body {
		height: auto;
		max-width: 100vw;
	}

	header {
		height: 100px;
	}


	.upload-box {
		height: 150px;
		margin: 30px 0px;
	}

	.body-image-info {
		flex-direction: column;
		align-items: center;
		justify-content: start;
		height: auto;
		max-height: none;
	}

	.preview-div,
	.image-info-div {
		width: 100%;
		height: 50%;
		align-items: center;
		gap: 20px;
	}


}
