/* 初始化 */
* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box; /* 怪异盒模型 */
}

/* 变量的设置 */
:root {
  /* 标准主题的背景与文本色 */
  --standart-bg: linear-gradient(100deg, #575656, #062e3f);
  --standart-text: #ffdfdb;

  /* 亮色主题的背景与文本色 */
  --light-bg: linear-gradient(100deg, #d4f1ff, #fff);
  --light-text: #1a150e;

  /* 暗色主题的背景与文本色 */
  --darker-bg: linear-gradient(100deg, #001214, #001f29);
  --darker-text: #fff;
}

/* 页面设置 */
body {
  min-height: 100vh;  /* 跟视口的高度相同 */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3%;
}

/* 元素的设置 */
/* 页面背景主题 */
.standard {
  background: var(--standart-bg);
  color: var(--standart-text);
  transition: .3s linear;
}
.light {
  background: var(--light-bg);
  color: var(--light-text);
  transition: .3s linear;
}
.darker {
  background: var(--darker-bg);
  transition: .3s linear;
  color: var(--darker-text);
}

/* 主题选择器 */
header {
  display: flex;
  align-self: flex-end;
  margin-right: 3%;
}
.theme-selector {
  border: 1px solid #d1dae3;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  margin: 0 8px;
  transition: transform 150ms ease-in-out, box-shadow 200ms ease-in-out;
}
.theme-selector:hover {
  box-shadow: 0 0 8px #fff;
  cursor: pointer;
}
.theme-selector:active {
  transform: scale(.95);
}
.standard-theme {
  background: var(--standart-bg);
}
.light-theme {
  background: var(--light-bg);
}
.darker-theme {
  background: var(--darker-bg);
}

/* 标题 */
#title {
  font-size: 6rem;  /* rem: 根元素文字的大小 */
  border-right: 3px solid rgba(0, 0, 0, .75);
  white-space: pre;
  max-width: 500px; /* 跟字数有关 */
  overflow: hidden;
  letter-spacing: .2rem;
  margin-top: 50px;
  margin-bottom: 20px;
  animation: animated-text 2s steps(5, end) 0.5s 1 normal both, animated-cursor 750ms steps(5, end) infinite;
}
@keyframes animated-text {
	from {
		width: 0%;
	}
	to {
		width: 500px;
	}
}
@keyframes animated-cursor {
  from {
    border-right-color: rgba(0, 0, 0, .75);
  }
  to {
    border-right-color: transparent;
  }
}

/* 表单 */
#form {
  display: flex;
  font-size: 1.7rem;
  justify-content: center;
  margin: 15px 0;
  padding: .8rem;
  width: 100%;
}
#form>input {
  padding: 10px;
  font-size: 17px;
  border: none;
  outline: none;
  border-top-left-radius: 17px;
  border-bottom-left-radius: 17px;
  max-width: 500px;
  width: 100%;
  transition: background-color 200ms ease-in-out;
}
/* input主题 */
#form>input.standard-input {
  background-color: #181a1a;
  color: var(--standart-text);
}
#form>input.standard-input:hover {
  background-color: #000;
}
#form>input.light-input {
  background-color: #aeb1b4;
  color: var(--light-text);
}
#form>input.light-input:hover {
  background-color: #919699;
}
#form>input.darker-input {
  background-color: #01394c;
  color: var(--darker-text);
}
#form>input.darker-input:hover {
  background-color: #013141;
}
#form>input.darker-input::placeholder {
  color: #fff;
  opacity: .7;
}

button {
  border: none;
  outline: none;
  transition: box-shadow 200ms ease, background-color 200ms ease-in-out;
}
#form>button {
  padding: 10px;
  font-size: 17px;
  border-top-right-radius: 17px;
  border-bottom-right-radius: 17px;
}
/* button主题 */
button.standard-button {
  background-color: rgb(247, 226, 223);
  color: #000;
}
button.standard-button:hover {
  background-color: #fff;
  box-shadow: #f8f8f8 0 0 10px;
}
button.light-button {
  background-color: #fff;
  color: #1a150e;
}
button.light-button:hover {
  background-color: #f0f0f0;
  box-shadow: #f8f8f8 0 0 10px;
}
button.darker-button {
  background-color: #002837;
  color: #fff;
}
button.darker-button:hover {
  background-color: #001f29;
  box-shadow: #f8f8f8 0 0 10px;
}

/* 日期时间 */
#datetime {
  font-weight: 200;
}

/* 待办事项列表 */
#todolist {
  max-width: 1200px;
  width: 100%;
}
.todo-list {
  min-width: 70%;
}
.todo {
  margin: 1rem;
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25em 0.5em;
  border-radius: 30px;
  transition: background-color 200ms ease-in-out;
}
.todo li {
  padding: 7px;
  font-size: 20px;
  flex: 1;    /* 剩余空间的分配 */
}
.todo li>span {
  font-size: 0.7em;
  color: rgba(255, 255, 0, .7);
}
.check-btn,
.delete-btn {
  font-size: 19px;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  margin: 0 5px;
}
.completed {
  transition: .2s;
  opacity: .5;
}
.completed>li {
  text-decoration: line-through;
}

/* 列表主题 */
.standard-todo {
  background-color: rgb(26, 27, 27);
}
.light-todo {
  background-color: #aeb1b4;
}
.darker-todo {
  background-color: #01394c;
}

/* 删除 */
.fall {
  transition: .5s;
  transform: translateY(45rem) rotateZ(45deg);
  opacity: 0;
}