body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f3f8ff;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.title {
  text-align: center;
  color: #0A6EFF;
  margin-bottom: 20px;
}

.upload-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.upload-btn {
  display: inline-block;
  background: #0A6EFF;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.file-name-box {
  background-color: #eee;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: #444;
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

canvas {
  width: 100%;
  max-width: 100%;
  border: 2px dashed #ccc;
  margin: 20px 0;
  display: block;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

button {
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: background 0.2s ease;
}

button:focus {
  outline: none;
}

select {
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 150px;
  margin-top: 10px;
}

input[type="range"] {
  width: 100%;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.action-btn {
  padding: 12px 20px;
  background: #eee;
  color: #000;
  border: 1px solid #ccc;
  flex: 1;
  font-weight: bold;
}

.action-btn.primary {
  background: #0A6EFF;
  color: white;
  border-color: #0A6EFF;
}

.action-btn.active {
  background-color: #0A6EFF;
  color: white;
  border-color: #0A6EFF;
}
/* ===== Footer (site-footer) ===== */
.site-footer{
  margin-top: 28px;
  padding: 14px 0 24px;
  border-top: 1px solid rgba(0,0,0,.06);   /* 상단 얇은 구분선 */
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b7280;                           /* 차분한 회색 텍스트 */
}

/* 링크 기본 상태 */
.site-footer a{
  display: inline-block;
  margin: 0 8px;
  text-decoration: none;
  color: #0A6EFF;                           /* 메인 블루와 통일 */
  padding: 2px 4px;
  border-radius: 8px;                       /* 전체 라운드 톤과 매칭 */
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

/* 호버/포커스(접근성 포함) */
.site-footer a:hover{
  text-decoration: underline;
  background-color: rgba(10,110,255,.06);
}
.site-footer a:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(10,110,255,.25);
  background-color: rgba(10,110,255,.08);
}

/* 비활성/방문 상태도 자연스럽게 */
.site-footer a:visited{
  color: #0A6EFF;
}

/* 좁은 화면 대응 */
@media (max-width: 560px){
  .site-footer{
    font-size: 12.5px;
    padding-bottom: 20px;
  }
  .site-footer a{
    margin: 4px 6px;
  }
}

/* 선택: 컨테이너 폭에 맞는 정렬을 원하면 아래를 사용
   (메인 .container와 동일한 최대폭이라면 자연스럽게 맞춤) */
.container .site-footer{
  margin-left: auto;
  margin-right: auto;
  max-width: 960px; /* 메인 컨테이너 폭과 동일하게 맞춰주세요 */
}
/* ===== Intro Text (service description) ===== */
.intro-text {
  text-align: center;
  margin: 12px 0 22px;   /* 위쪽은 조금, 아래쪽은 넉넉하게 */
  font-size: 15.5px;
  line-height: 1.6;
  color: #374151;        /* 차분한 다크 그레이 (본문용) */
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
}

/* 좁은 화면(모바일) 대응 */
@media (max-width: 560px) {
  .intro-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 18px;
  }
}
