@font-face {
  font-family: xfont;
  src: url(iransans.ttf);
}
* {
  font-family: xfont, sans-serif;
  font-weight: 500;
  box-sizing: border-box;
}
body {
  background: #2c2c38;
  color: #fff;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 500px;
  width: 100%;
  background: #3a3a47;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

h2 {
  text-align: center;
  color: #ff9800; /* نارنجی */
  margin-bottom: 15px;
}

#todo-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-bottom: 15px;
  font-size: 15px;
  outline: none;
  background: #2c2c38;
  color: #00ccae;
}
#todo-input::placeholder {
  color: #ccc;
}

#todo-list .todo {
  background: #4b4b5a;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.todo span {
  flex-grow: 1;
}

.time {
  font-size: 12px;
  color: #00ccae;
  margin: 0 10px;
}

.delete {
  background: #9c27b0;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: 0.2s;
}

.delete:hover {
  background: #7b1fa2;
}

@media (max-width: 500px) {
  .todo {
    flex-direction: column;
    align-items: flex-start;
  }
  .time {
    margin: 5px 0;
  }
}
