:root {
  --color: #7f8c8d;
}

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

.hidden{
  display: none!important;
}

input:focus, button:focus{
  outline: none;
}

body{
  text-align: center;
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  background-color: var(--color);
  font-size: larger;
  font-weight: 600;
}

/* 主页面 */
#main{
  padding: 0px 5% 0 5%;
  position: relative;
}
#add-button{
  height: 40px;
  border-radius: 5px;
  width: 85%;
  border: #fff solid 3px;
  margin: 0 auto;
  margin-top: 20px;
  font-size: x-large;
}

#container{
  align-items: center;
  text-align: center;
  margin:0 auto;
}

/* 顶部导航栏 */
#nav-top{
  background-color: #ffffff;
  z-index: 100;
  transition: all 0.8s cubic-bezier(0,0,1,1);
  box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.06);
  width: 100%;
  top:0;
  padding: 10px;
  height: 20%;
}

#search-container{
  position: relative;
  display: flex;
  margin-bottom: 10px;
  height: 100%;
}
#search-input{
  flex-grow: 1;
  width: 1%;
  border: #c1c3c5 solid 1px;
  vertical-align: middle;
}

#search-button{
  width: 20%;
}

#item-count{
  height: 100%;
  flex:none;
  font-size: x-large;
}

.operation{
  margin-top:10px
}
.operation-style button{
  width: 15px;
  height: 20px;
}
#style-1{
  background-color: #7f8c8d;
}
#style-2{
  background-color: #ea8685;
}
#style-3{
  background-color: #48dbfb;
}
#complete-all-button{
  border: rgb(100, 99, 99) solid 3px;
  color:rgb(192, 185, 185);
  width: 30px;
  height: 30px;
}

.operation{
  display: inline-block;
  width: 80%;
  height: 80%;
}
.operation img{
  width: 30px;
  height: 30px;
}
#title{
  font-weight: 600;
  font-size: 1.6rem;
  margin:0 auto;
}
.nav-row{
  display: flex;
  justify-content: space-between;
  padding-left: 3%;
  padding-right: 3%;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  height: 28px;
}

#nav-bottom{
  position: fixed;
  background-color: #ffffff;
  z-index: 100;
  padding: 0rem 1rem 1rem 1rem;
  transition: all 0.8s cubic-bezier(0,0,1,1);
  box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.06);
  width: 100%;
  z-index:20;
  bottom: 0;
}

/* item 相关样式设置 */
#item-container{
  width: 100%;
  border-radius: 5px;
  margin-top: 20px;
  margin-bottom: 100px;
  min-height: 80%;
}

.item {
  background: #fff;
  border-radius: 2pt;
  position: relative;
  width: 90%;
  perspective: 1000pt;
  box-shadow: 0 6px 8px rgba(99, 101, 109, 0.555);
  overflow: hidden;
  display:inline-flex;
  margin:8px 0;
  height: 35px;
}

.item-complete{
  width:35px; 
  height:100%;
  background:rgb(138, 225, 231);
  color:rgb(138, 225, 231);
  flex:none;
}

.item-name{
  width: auto;
  height: 100%;
  transform: translateY(10%);
  flex:1;
}

.item-date{
  height: 100%;
  font-size: x-small;
  transform: translateY(25%);
  flex:none;
  float:right;
  width: 100px;
}
.timeout{
  color:red;
}
.item-delete{
  height:100%;
  width: 35px;
  background:rgb(231, 175, 138);
  float:right;
  flex:none;
}

.completed{
  opacity: 0.6;
  color:black;
}
.line{
  color:black;
  text-decoration:line-through;
}

/* add edit form input */
#form-div{
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
}

#form-container{
  position: relative;
  background-color: white;
  width: 80%;
  height: 200px;
  top:30%;
  padding: 20px;
  text-align: left;
  border-radius: 1%;
}
.form-item{
  position: relative;
  margin:20px
}

.form-item input{
  width: 70%;
  border: 1px solid #204c77;
  box-shadow: 0 1px 1em rgb(113, 187, 209);
}
/* form button */
#form-cancel{
  position: absolute;
  float: right;
  right: 10px;
  width: 10%;
  height: 10%;
}

#form-submit{
  position: absolute;
  float: right;
  right: 20px;
  width: 20%;
  height: 20%;
}
