main section {
  width: 90%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

section .write-article {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

section .write-article h4 {
  font-size: 20px;
  margin: 30px 0;
}

section .write-article input,
section .write-article textarea {
  font-size: 18px;
  font-weight: normal;
  font-family: inherit;
  width: 100%;
  padding: 10px 5px;
  background-color: #c3cc4622;
  margin: 10px 0;
  border: 1px solid black;
}

section .write-article textarea {
  height: 80vh;
  margin-bottom: 30px;
}

section .write-article div.controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.btn-cancel:hover {
  background-color: rgb(206, 141, 141);
}

.btn {
  border: none;
  padding: 10px 40px;
  background-color: #c3cc46;
  cursor: pointer;
  font-size: 20px;
  font-weight: normal;
  font-family: inherit;
}

div.unauthorized-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

div.unauthorized-author h3 {
  font-size: 28px;
  margin: 30px;
}

div.unauthorized-author .btn {
  color: black;
  text-decoration: none;
}

.leave-modal,
.publish-modal {
  font-size: 20px;
  position: fixed;
  width: inherit;
  top: 0;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgb(206, 84, 84);
  z-index: 3;
}

.leave-modal p,
.publish-modal p {
  margin: 30px 0;
}

.leave-modal div,
.publish-modal div {
  display: flex;
  justify-content: space-around;
  width: 90%;
}

.publish-modal {
  background-color: #c3cc46;
}

.publish-modal .btn {
  background-color: #e7ebb5;
}

@media screen and (max-width: 640px) {
  main section {
    width: 100%;
  }

  section .write-article div.controls {
    flex-direction: column;
  }

  section .write-article div.controls button {
    margin: 20px 0;
  }
}

section div.hide {
  display: none;
}

.hide {
  display: none;
}
