body{
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}
p, h1, h2, h3, a, ul{
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: #222;
}

/* nav & footer styles */
nav{
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  text-transform: uppercase;
}
nav ul{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
nav li{
  list-style-type: none;
  margin-left: 20px;
}
nav h1{
  font-size: 3em;
}
nav p, nav a{
  color: #777;
  font-weight: 300;
}
footer{
  color: #777;
  text-align: center;
  margin: 80px auto 20px;
}
h2{
  margin-bottom: 40px;
}
h3{
  margin-bottom: 8px;
}
.mr5{
  margin-right:5px;
}
.content{
  margin-left: 20px;
  margin-top: 20px;
}

/* create */
.create-blog form{
  max-width: 400px;
  margin: 0 auto;
}
.create-blog input,
.create-blog textarea{
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 8px;
}
.create-blog label{
  display: block;
  margin-top: 24px;
}
textarea{
  height: 120px;
}
.create-blog button{
  margin-top: 20px;
  background: crimson;
  color: white;
  padding: 6px;
  border: 0;
  font-size: 1.2em;
  cursor: pointer;
}

.list-item{
  border-left: 6px solid rgb(13, 204, 131);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items:  center;
  padding-left: 30px;
}

.list-item:last-child{
  margin-bottom: 0;
}

.blogs a:hover h3{
  color: rgb(13, 204, 131);
}

.operate-btn{
  padding: 6px 8px;
  border-radius: 5px;
  background: #4e6ef2;
  color:white;
  font-weight: 400;
  cursor: pointer;
}

.details{
  position: relative;
}
.delete{
  position: absolute;
  top: 0;
  right: 0;
}
.delete:hover{
  cursor: pointer;
  box-shadow: 1px 2px 3px rgba(0,0,0,0.2);
}