* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7e8aa;
    background-image: url(../images/back.png);
}

ul {
    list-style: none;
}

/*顶部*/
.top {
    width: 100%;
    height: 60px;
    background-color: #eed045;
}

.top h1 {
    padding-left: 20px;
    line-height: 60px;
}

/*主体部分*/
.content {
    /* display: flex; */
    /* position: relative; */
}

/*左边*/
.content .left {
    position: absolute;
    width: 20%;
    height: 120%;
    background-color: #f8df70;
}

.content .left h2 {
    text-align: center;
    margin: 10px;
}

.content .left hr {
    margin: 10px;
    background-color: #fff;

}

.content.left ul {
    list-style: none;
    margin: 10px;
}

.content .left .bnt {
    display: flex;
    position: absolute;
    /* 在主轴上的对齐方式 */
    justify-content: center;
    /* 在垂直轴上的对齐方式 */
    align-items: center;
    left: 8%;
    width: 80%;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    background-color: #eed045;
    transition: all 0.3s ease-in-out;
}

.content .left .bnt:hover {
    background-color: #f8d86a;
    transform: translate(0, 5px);
}

/*右边*/
.content .right {
    position: absolute;
    width: 80%;
    /* height: 93.4%; */
    left: 20%;
}

.content .right h2 {
    text-align: center;
    margin: 20px;
}

.content .right hr {
    margin: 10px 100px;
    background-color: #fff;
}

/*右边主体*/
.content .right .content {
    margin: 20px 100px;
}

/*代办和已完成部分*/
.content .right .content .errand,
.content .right .content .completed {
    margin-bottom: 20px;
}

.content .right .content .errand>b,
.content .right .content .completed>b {
    font-size: 20px;
}

.content .right .content .errand>.item,
.content .right .content .completed>.item {
    /* display: flex;
    justify-content: center;
    align-items: center; */
    margin: 10px 0px;

}

.content .right .content .errand>.item ul,
.content .right .content .completed>.item ul {
    display: flex;
    justify-content: center;
    /* align-items: stretch; */
    align-items: center;
    /* 指定 flex 元素单行显示还是多行显示 */
    /* 被打断到多个行中 */
    flex-wrap: wrap;
    /* 换行 */
    word-wrap: break-word;

}


.content .right .content .errand>.item ul li,
.content .right .content .completed>.item ul li {
    display: inline-block;
    width: 250px;
    margin: 0px 10px;
    padding: 20px 100px;
    margin-bottom: 10px;
    border-radius: 10px;
    /* box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3); */
    /* line-height: 60px; */
    text-align: center;
    line-height: 25px;
    /* cursor: pointer; */
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.content .right .content .completed>.item ul li {
    background-color: #d8e3e7;
    text-decoration: line-through;
}

.content .right .content .errand>.item ul li span,
.content .right .content .completed>.item ul li span {
    line-height: 10px;
}

.content .right .content .errand>.item ul li:hover,
.content .right .content .completed>.item ul li:hover {
    /* cursor: pointer; */
    transform: translateY(-5px);
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
}

.content .right .content .errand>.item ul li input,
.content .right .content .completed>.item ul li input {
    /* position: absolute; */
    /* display: block; */
    width: 18px;
    height: 18px;
    margin: 0px 5px;
    /* 用于控制 UI 控件的基于操作系统主题的原生外观 */
    appearance: none;
    vertical-align: middle;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: pointer;
}

.content .right .content .errand>.item ul li input:checked,
.content .right .content .completed>.item ul li input:checked {
    background-color: #ccc;
    background-image: url(../images/bnt_back.png);
    background-size: 80% 80%;
    background-position: center;
}

.content .right .content .errand>.item ul li button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 10px;
    width: 50%;
    height: 25px;
    border: none;
    border-radius: 10px;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.5s;
}

.content .right .content .errand>.item ul li button:hover {
    background-color: #f7e8aa;
    transition: all 0.5s;
}

/*添加内容模块*/
.content .right .content .add {
    position: absolute;
    left: 10%;
    margin: 5px 100px;
    bottom: -150px;
    width: 65%;
    height: 150px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
}

.content .right .content .add textarea {
    display: flex;
    margin: 10px;
    padding: 10px;
    /* 禁止用户缩放控件 */
    resize: none;
    border: none;
    /* 移除输入轮廓 */
    outline: none;
    width: 95%;
    height: 50px;
    font-size: 15px;
}

.content .right .content .add button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    padding: 10px;
    width: 100px;
    height: 30px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

.content .right .content .add button:hover {
    background-color: #f8d86a;
    transition: all 0.3s ease-in-out;
}