@font-face {
    font-family: 'Pretendard Variable';
    src: url('fonts/PretendardVariable.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
  }
html, body {
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif;
  background-color: #19181D;
}
#todolist-app {
  width: 100vw;
  max-width: 375px;
  min-height: 100vh;
  height: auto;
  margin: 0 auto;
  background: #111;
  box-shadow: 0 0 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
   padding-bottom: 110px; 
  position: relative;
  overflow: visible;
}

.todolist-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 375px;
  height: 520px;
  background: url('/images/todo.png') no-repeat center/cover;
  z-index: 0;
}
.todolist-bg-gradient {
  position: absolute;
  top: 215px;
  left: 0;
  width: 375px;
  height: 482px;
  background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,0.4) 8%, rgba(17,17,17,0.8) 32%, rgba(17,17,17,0.99) 49%, #111 73%);
  z-index: 1;
  pointer-events: none;
}
.todolist-frame > *:not(.todolist-bg):not(.todolist-bg-gradient) {
  position: relative;
  z-index: 2;
}
.todo_topbar {
  display: flex;
  align-items: center;
  height: 50px;
  /* background: #f5f5f7; */
  border-bottom: 0px solid #ececec;
  padding: 0 16px;
  position: relative;
  top: 0;
  z-index: 10;
}
.todo_topbar-left {
  flex: 0 0 40px;
  z-index: 2;
}
.chevron-left {
  width: 28px;
  height: 28px;
  background: url('/images/back.png') no-repeat center/contain;
  border: none;
  outline: none;
  cursor: pointer;
}
.todo_topbar-logo {
   width: 32px;
  height: 32px;
  /* background: #fff; */
  border-radius: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.todo_topbar-logo img {
 width: 100%;
  height: 100%;
  object-fit: contain;
}
.background {
  background: none;
  width: 100%;
  min-height: 100vh;
  height: auto; 
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}
.todo-container {
  margin-top: 282px;
  width: 327px;
}
.todo-header {
  text-align: left;
}
.todo-header h1 {
  font-size: 26px;
  margin: 0 0 8px;
}
.todo-header p {
  font-size: 14px;
  color: #ccc;
  margin: 0;
}
.todo-list {
  margin-top: 24px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px; 
  max-height: none;
  overflow-y: visible;
}
.todo-item {
  display: flex;
  align-items: center;
  height: 56px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.todo-item:last-child {
  border-bottom: none;
}
.checkbox {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1.5px solid #000;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background-color 0.2s, color 0.2s;
}
.checkbox.checked {
  background-color: #000;
  color: #fff;
}
/*.checkbox.checked::after {
  content: '✔';
  font-size: 14px;
}*/
.todo-label {
  font-size: 15px;
  font-weight: 500;
  color: #111;
}
.todo-label.checked {
  text-decoration: line-through;
  color: #888;
}
.arrow {
  margin-left: auto;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.arrow-button {
  all: unset;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.arrow-button svg {
  width: 24px;
  height: 24px;
}

.celebrate-gif {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: none;
}
 
    @keyframes scaleFade {
      0% { transform: scale(0.5); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

    #congrats-message {
      min-width: 270px;
      position: fixed;
      top: 30%;
      left: 50%;
      transform: translate(-50%, -30%);
      display: flex;
      flex-direction: column;
      align-items: center;
      z-index: 1000;
      background: rgba(255,255,255,0.95);
      padding: 24px;
      border-radius: 16px;
      background-color: #FFFFB3;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      animation: scaleFade 0.5s ease-out;
    }

    #congrats-message p {
      font-size: 20px;
      font-weight: 600;
      color: #9966CC;
      background: none;
      padding: 6px 20px;
      border-radius: 16px;
      margin-bottom: 14px;
       text-align: center;
      font-family: 'Pretendard Variable', 'Arial', sans-serif;
      
    }

    #congrats-message img {
      width: 240px;
      height: auto;
      border-radius: 24px;
    }

    #close-btn {
      margin-top: 16px;
      width: 32px;
      height: 32px;
      background: #333;
      color: #fff;
      border: none;
      border-radius: 50%;
      font-size: 18px;
      line-height: 32px;
      text-align: center;
      cursor: pointer;
      padding: 0;
    }

    /* 팝업 배경 */
.taemate-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 팝업 내용 박스 */
.taemate-popup-content {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  max-width: 320px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Pretendard Variable', 'Arial', sans-serif;
}

/* 닫기 버튼 */
.taemate-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 28px;         /* 크기 업! */
  width: 40px;              /* 버튼 클릭 영역 넓게 */
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 메시지 텍스트 */
.taemate-message {
  font-size: 18px;
  margin-bottom: 16px;
  line-height: 1.6;
  color: #222;
   font-family: 'Pretendard Variable', 'Arial', sans-serif;
}

/* 이미지 */
.taemate-popup-img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 8px;
}
