@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Pretendard/Pretendard.css');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo.css');

body {
	margin: 0;
	font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: #121212;
	color: #fff;
	/* display: flex; */
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}
container {
	display: flex;
	flex-direction: row;
	gap: 2rem;
	padding: 2rem;
	max-width: 90rem;
	margin: 0 auto;
}
.preview {
	background: black;
	padding: 10px;
	border-radius: 8px;
	font-family: 'Pretendard';
}
.aspect-square {
	aspect-ratio: 1 / 1;
}
#left-panel {
	display: flex;
	flex-direction: column;
	align-items: center;

	flex: 0 0 24rem;
	padding: 1.5rem;
	border-radius: 0.75rem;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	background-color: #1E1E1E;
	border: 1px solid #333333;
}
#image-panel {
	width: 100%;
	margin-bottom: 1rem;
	position: relative;
}
#image-info {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}
#image-options {
	width: 100%;
}
#image-options > * + * {
	margin-top: 0.75rem;
}
#right-panel {
	flex: 1;
	min-width: 0;
	padding-left: 1rem;
	overflow-y: auto;
	margin-left: 0;
	padding-top: 0;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-use-select: none;
	-o-user-drag: none;
	user-select: none;
}
#cover {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	border-radius: 0.75rem;
}
#canvasLoadingOverlay {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
  
	align-items: center;
	justify-content: center;
  
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	color: white;
	font-size: 1rem;
	z-index: 10;
}
#canvasLoadingOverlay:not(.hidden) {
	display: flex;
}
#mini-image-thumnail {
	width: 8rem;
	height: 8rem;
	border-radius: 0.75rem;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
#imageTitle {
	font-size: 16px;
	font-weight: 400;
	padding-left: 0.4rem;
}
#imageSource {
	color: #9CA3AF;
	font-size: 14px;
	font-weight: 400;
	padding-left: 0.4rem;
}
#imageAuthor {
	color: #6B7280;
	font-size: 13px;
	font-weight: 300;
	padding-left: 0.4rem;
}
#themeSelect {
	width: 100%;
	color: #fff;
	padding: 0.5rem;
	border-radius: 4px;
}
button.theme-button:hover {
	background-color: #D75461;
}
#image-options select, input[type="text"] {
	width: 100%;
	padding: 0.75rem;
	border-radius: 0.75rem;
	color: white;
	background-color: #1E1E1E;
	border: 1px solid #333333;
	outline: none;
	transition: all 0.2s ease;
	font-size: 0.9rem;
}

#image-options select:focus, input[type="text"]:focus {
	border-color: #D75461;
	box-shadow: 0 0 0 3px rgba(215, 84, 97, 0.1);
}
#usernameWarning, #titleWarning, #subtitleWarning, #footerWarning {
	color: #FBBC05;
	font-size: 0.875rem;
	margin-top: 0.25rem;
}
#download-btn{
	border: none;
	cursor: pointer;
	width: 100%;
	background-color: #D75461;
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	margin-top: 1rem;
	transition: all 0.2s ease;
	font-weight: 600;
	font-size: 1rem;
	box-shadow: 0 4px 12px rgba(215, 84, 97, 0.3);
}
#download-btn:hover {
	background-color: #C04552;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(215, 84, 97, 0.4);
}
#menu-btn {
	background-color: #1E1E1E;
	border-radius: 0.5rem;
	padding: 1rem;
	display: flex;
	justify-content: space-around;
	margin-bottom: 1rem;
}
#image-selector {
	background-color: #1E1E1E;
	border-radius: 0.75rem;
	padding: 1rem;
}
#color-selector {
	background-color: #1E1E1E;
	margin-top: 1rem;
	border-radius: 0.75rem;
	padding: 1rem;
}
#color-picker {
	background-color: #1E1E1E;
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 0.75rem;
	padding: 1rem;
}
#unsplash-searchBar {
	background-color: #1E1E1E;
	border-radius: 0.75rem;
	padding: 1rem;
}
#unsplash-search{
	background-color: #1E1E1E;
	border-radius: 0.5rem;
	padding: 0.75rem;
}
#unsplash-selector {
	background-color: #1E1E1E;
	border-radius: 0.75rem;
	padding: 1rem;
	min-height: 20rem;
}
#file-selector {
	background-color: #1E1E1E;
	border-radius: 0.75rem;
	padding: 1rem;
}
#hexInput {
	width: 450px;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}
#svPointer {
	position: absolute;
	width: 14px; height: 14px;
	border: 2px solid white;
	border-radius: 50%;
	box-shadow: 0 0 4px black;
	pointer-events: none;
	transform: translate(-50%, -50%);
	display: none;
}
.check-box, .check-box * {
	user-select: none;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-use-select: none;
}
.custom-checkbox {
	display: none;
}
.checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	user-select: none;
}
.filled {
	font-variation-settings: 'FILL' 1;
}
.checkbox-label .material-symbols-outlined {
	font-size: 36px;
	color: white;
}
.checkbox-label-checked {
	display: none;
}
.custom-checkbox:checked + .checkbox-label .checkbox-label-checked {
	display: inline-block;
}
.custom-checkbox:checked + .checkbox-label .checkbox-label-unchecked {
	display: none;
}
/* .img-wrapper,
.color-wrapper {
	width: 100%;
	max-width: 112px;
	aspect-ratio: 1 / 1;
} */
#image-selector .img-wrapper:hover {
	transform: scale(1.1);
	transition: transform 0.2s ease, border 0.2s ease;
}
#color-selector .color-wrapper:hover {
	transform: scale(1.1);
	transition: transform 0.2s ease, border 0.2s ease;
}
#unsplash-selector .unsplash-wrapper:hover {
	transform: scale(1.1);
	transition: transform 0.2s ease, border 0.2s ease;
}
#copyright {
	text-align: center;
	color: #9ca3af;
	padding: 1rem;
	font-size: 0.875rem;
	flex-shrink: 0;
}
#copyright a {
	text-decoration: none;
	color: inherit;
	font-weight: normal;
	transition: text-decoration 0.2s ease;
}

#copyright a:hover,
#copyright a:focus {
	color: inherit;
	text-decoration: underline;
	font-weight: normal;
}

@media (max-width: 900px) {
	container {
		flex-direction: column !important;
	}
	#right-panel {
		padding: 0;
		padding-top: 1rem;
	}
}


#canvas-wrapper.ios-blur {
  filter: blur(6px);
  transform: scale(1.05); /* blur로 인해 경계가 잘리는 걸 방지 */
}

/* Estilos mejorados para elementos modernos */
button.theme-button {
	border: none;
	cursor: pointer;
	padding: 0.75rem;
	border-radius: 0.75rem;
	background-color: #1E1E1E;
	color: white;
	transition: all 0.2s ease;
	font-weight: 500;
	border: 1px solid #333333;
}

button.theme-button:hover {
	background-color: #D75461;
	border-color: #D75461;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(215, 84, 97, 0.2);
}

/* Mejoras para grid items */
.img-wrapper, .color-wrapper {
	transition: all 0.2s ease;
	background-color: #1A1A1A;
	border-radius: 0.75rem;
	overflow: hidden;
}

.img-wrapper:hover, .color-wrapper:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.3);
	border-color: #D75461 !important;
}

/* Panel derecho más moderno */
#right-panel {
	background-color: #1E1E1E;
	border-radius: 0.75rem;
	border: 1px solid #333333;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Tabs mejorados */
.tab-button {
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	background-color: transparent;
	color: #B0B0B0;
}

.tab-button.active {
	background-color: #D75461;
	color: white;
	border-color: #D75461;
	box-shadow: 0 2px 8px rgba(215, 84, 97, 0.3);
}