.hidden {
  display: none;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

/* 배경 이미지 */
body img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: opacity 0.5s ease;
}

/* 배경 어둡게 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

/* 기본 입력창 */
input {
  background: transparent;
  border: none;
  border-bottom: 2px solid white;
  color: white;
  font-size: 24px;
  padding: 10px;
  text-align: center;
  outline: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

/* 로그인 */
#login-form {
  margin-bottom: 15px;
}

#login-form input[type="submit"] {
  display: none;
}

/* 날짜 / 시계 / 인사말 */
#date {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 400;
  text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.4);
}

#clock {
  margin: 0 0 10px 0;
  font-size: 110px;
  font-weight: 700;
  text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
}

#greeting {
  margin: 0 0 30px 0;
  font-size: 48px;
  font-weight: 600;
  text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Todo form */
#todo-form {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#todo-form input {
  width: 65vw;
  max-width: 400px;
}

#todo-form button {
  border: none;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.9);
  color: #222;
  cursor: pointer;
}

/* Todo list */
#todo-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  max-height: 250px;
  overflow-y: auto;
}

#todo-list li {
  margin-bottom: 10px;
  font-size: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#todo-list li span {
  flex: 1;
}

#todo-list button {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

/* 명언 */
#quote {
  position: absolute;
  bottom: 30px;
  text-align: center;
  font-size: 24px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* 날씨 */
#weather {
  position: absolute;
  top: 20px;
  right: 20px;
  text-align: right;
  font-size: 24px;
  margin-top: 10px;
  text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.4);
}

/* 상단 버튼 */
#top-bar {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
}

#top-bar button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

#top-bar button:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

/* 모바일 */
@media screen and (max-width: 768px) {
  #top-bar {
    top: 10px;
    left: 10px;
    right: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  #top-bar button {
    font-size: 13px;
    padding: 8px 12px;
  }

  #weather {
    top: 10px;
    right: 10px;
    font-size: 18px;
  }

  #date {
    font-size: 20px;
    margin-bottom: 8px;
  }

  #clock {
    font-size: 64px;
    line-height: 1.1;
    text-align: center;
  }

  #greeting {
    font-size: 28px;
    padding: 0 20px;
  }

  #login-form input,
  #todo-form input {
    width: 80vw;
    font-size: 20px;
  }

  #todo-form {
    width: 90vw;
    gap: 8px;
  }

  #todo-form input {
    width: 65vw;
    max-width: none;
    font-size: 18px;
    padding: 10px 8px;
  }

  #todo-form button {
    display: inline-block;
    padding: 10px 14px;
    font-size: 16px;
  }

  #todo-list {
    width: 80vw;
    max-height: 180px;
  }

  #todo-list li {
    font-size: 18px;
  }

  #quote {
    bottom: 20px;
    font-size: 18px;
    padding: 0 20px;
  }
}