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

html {
  scroll-behavior: smooth;
}

/*Fonts*/
/* Italic style (if supported) */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/pretendard/PretendardVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
}
/* Normal style */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/pretendard/PretendardVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

body {
  background-color: #fff;
  color: #0a0a0a;
  font-family: "Pretendard", sans-serif;
}

.header-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 24px;
}
.container {
  max-width: 1248px !important;
  margin: 0 auto;
  padding: 0 24px;
}

@media all and (max-width: 768px) {
  .header-container,
  .container {
    padding: 0 16px;
  }
}

.gd-bg {
  background: linear-gradient(
    92deg,
    var(--Blue-500, #3b82f6) -3.24%,
    var(--Brand-700, #00a8c2) 100%
  );
}

.btn {
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  padding: 13px;
  transition: all 0.3s ease-in-out;
}
@media all and (max-width: 768px) {
  .btn {
    padding: 12px;
    font-size: 14px;
  }
}
.dark-btn {
  background: #212121;
}
.disabled-btn {
  background: #eee;
  color: #bdbdbd;
  cursor: disabled;
}

.light-bg.btn {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #0a0a0a;
}

.btn:hover {
  transform: scale(0.95);
  opacity: 0.9;
}

.no-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

button {
  transition: all 0.3s ease-in-out;
}

button:hover {
  opacity: 0.7;
}
/* Custom CSS for the toggle switch if needed, though Tailwind mostly handles it */
.toggle-switch-container input:checked + .toggle-track {
  background-color: #0770e9; /* Blue for checked state */
}
.toggle-switch-container input:checked + .toggle-track .toggle-thumb {
  transform: translateX(1.4rem); /* Move thumb to the right */
}
.toggle-thumb {
  filter: drop-shadow(2px 1px 4px rgba(0, 0, 0, 0.15))
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.04));
}
/* Hide the default checkbox */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Style the custom checkbox indicator */
.custom-checkbox .checkmark {
  display: inline-block;
  width: 1.25rem;
  /* 20px */
  height: 1.25rem;
  /* 20px */
  border: 2px solid #d1d5db;
  /* Tailwind gray-300 */
  border-radius: 0.25rem;
  /* Tailwind rounded-md */
  background-color: #fff;
  position: relative;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* Tailwind shadow-sm */
}

/* Style the checkmark when checked */
.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: #3b82f6;
  /* Tailwind blue-500 */
  border-color: #3b82f6;
  /* Tailwind blue-500 */
}

/* Create the checkmark icon */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  /* Further adjusted for better centering */
  left: 0.29rem;
  /* Moved slightly left */
  top: 0.12rem;
  /* Moved slightly up */
  width: 0.35rem;
  height: 0.65rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Show the checkmark when checked */
.custom-checkbox input[type="checkbox"]:checked + .checkmark:after {
  display: block;
}

textarea {
  resize: none !important;
}

/* Shrink state */
.shrink .step-circle {
  width: 20px !important;
  height: 20px !important;
  font-size: 10px !important;
  transition: all 0.3s ease;
  color: transparent;
}

.shrink .step-text {
  display: none !important;
}

#stepsContainer {
  transition: all 0.3s ease;
}
#stepsContainer .step-circle{
  cursor: pointer;
}

#checkerboard {
  /* 포토샵 스타일 체커보드 (캔버스 영역만) */
  background-color: #eee;
  background-image:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
#canvas-stage { touch-action: none; } /* 터치 줌/스크롤 충돌 방지 */