html, body {
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

h1 {
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

p {
  color: #666;
  text-align: center;
}

.container {
  background: white;
  padding: 20px 30px 30px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

#imageUpload {
  margin-bottom: 20px;
}

.example-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.preview-container {
  position: relative;
  display: inline-block;
}

.example-image {
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.preview-label {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#canvas {
  max-width: 100%;
  border-radius: 5px;
  display: none; /* Initially hidden */
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  touch-action: none; /* 이 줄을 추가하세요! */
}

#label-container {
  margin-top: 20px;
  font-style: italic;
  color: #555;
  font-size: 40px;
  font-weight: 300;
}

.button-container {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#downloadBtn, #restartBtn, #changeCaptionBtn, #copyImageBtn, #shareKakaoBtn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#changeCaptionBtn {
  background-color: #28a745;
}

#changeCaptionBtn:hover {
  background-color: #1e7e34;
}

#downloadBtn {
  background-color: #007bff;
}

#downloadBtn:hover {
  background-color: #0056b3;
}

#restartBtn {
  background-color: #6c757d;
}

#restartBtn:hover {
  background-color: #545b62;
}

#copyImageBtn {
  background-color: #17a2b8;
}

#copyImageBtn:hover {
  background-color: #138496;
}

#shareKakaoBtn {
  background-color: #FEE500;
  color: #3C1E1E;
}

#shareKakaoBtn:hover {
  background-color: #FADA0A;
}
/* 드래그 앤 드롭 전용 영역 */
.drag-drop-area {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  margin: 20px 0;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drag-drop-area:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.drag-drop-area.drag-active {
  border-color: #007bff;
  background-color: #e3f2fd;
  transform: scale(1.02);
  border-style: solid;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.upload-text {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.upload-text strong {
  color: #333;
  font-size: 16px;
}

/* ===== 광고 컨테이너 스타일 ===== */
.ad-container {
  width: 100%;
  margin-top: 30px; /* 메인 앱과 광고 사이의 간격 */
  text-align: center; /* 내부 광고를 가운데 정렬 */
}