@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@300;400&display=swap");

:root {
  --bg-color: #f4f1ea;
  --text-color: #4a4945;
  --accent-color: #1a1a1a;
  --input-placeholder: #3c3c3c;
  --task-bg: #f2ede7aa;
  --border-line: #d7d2c8;
}

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

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(#b0aba0 0.5px, transparent 0.5px),
    radial-gradient(#b0aba0 0.5px, var(--bg-color) 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-blend-mode: multiply;

  opacity: 1;

  color: var(--text-color);
  font-family: "Cormorant Garamond", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 60px;
}

.container {
  width: 100%;
  max-width: 90%;
  text-align: center;

  background-color: rgba(244, 241, 234, 0.51); /* 93% opaque paper color */
  padding: 40px 30px;
  border-radius: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
}

.logo-box {
  border: 2px solid var(--accent-color);
  display: inline-block;
  padding: 10px 25px;
  margin-bottom: 15px;
  background: transparent;
}

.kanji {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  font-family: "Yu Mincho", "SimSun", serif;
}

.app-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #210707;
  margin-bottom: 60px;
}

.input-group {
  width: 100%;
  margin-bottom: 40px;
  position: relative;
}

input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-line);
  padding: 15px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  text-align: center;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.3s ease;
}

input[type="text"]::placeholder {
  color: var(--input-placeholder);
  font-style: italic;
}

input[type="text"]:focus {
  border-bottom-color: #a09d95;
}

.task-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.task-item {
  background-color: var(--task-bg);
  padding: 20px 25px;
  display: flex;
  align-items: start;
  justify-content: flex-start;
  gap: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, opacity 0.3s ease;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
}

.task-item:hover {
  transform: translateY(-1px);
}

.task-item.completed {
  opacity: 0.5 !important;
  text-decoration: line-through;
}

.circle-check {
  width: 24px;
  height: 24px;
  border: 2px solid #999;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}

.task-item:hover .circle-check {
  border-color: #666;
}

.task-item.completed .circle-check {
  background-color: #ddd;
  border-color: #ddd;
}

.task-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #4a4a4a;
  letter-spacing: 0.05em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-item.new {
  animation: fadeIn 0.4s ease-out forwards;
}

.delete-btn {
  margin-left: auto;
  border: none;
  background: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 0 10px;
}

.task-item:hover .delete-btn {
  opacity: 1;
}

.wallpaper-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-line);
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.wallpaper-btn:hover {
  background-color: var(--bg-color);
  border-color: var(--accent-color);
  transform: rotate(90deg);
}
