/* Include the padding and border in an element's total width and height */
* {
  box-sizing: border-box;
}

/* Style the close button */
.close {
  position: absolute;
  right: 0;
  top: 0;
  padding: 12px 16px 12px 16px;
}

.close:hover {
  background-color: crimson;
  color: white;
}

/* Style the header */
.header {
  background-color: #5a3d2b;
  /*dark olive green */
  padding: 10px 10px;
  margin-bottom: 10px;
  color: #fdebb4;
  /* moccasin */
  text-align: center;
  font-size: 24px;
  display: flexbox;
}

/* Clear floats after the header */
.header:after {
  content: "";
  display: table;
  clear: both;
}

h3 {
  margin-bottom: 16px;
  margin-top: 16px;
}

/* Style the input */
input {
  border: none;
  min-width: 0;
  border-radius: 5px;
  padding: 10px;
  flex: 1;
  font-size: 16px;
  border: 2px solid gray;
}

/* Style the "Add" button */
button {
  border: 2px solid #5a3d2b;
  padding: 10px;
  margin-left: 10px;
  color: #36251a;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
  white-space: nowrap;
}

button:hover {
  background-color: #5a3d2b;
  color: #fdebb4;
  /* moccasin */
}

/* Style the menu button */
.button-bars {
  background-color: transparent;
  border: none;
  color: #fdebb4;
  /* moccasin */
  font-size: 16px;
  cursor: pointer;
  display: flex;
  width: 5%;
}

.button-bars:hover {
  background-color: transparent;
}

/*signout button*/
.signOut {
  background-color: transparent;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-header {
  padding: 2px 16px;
  background-color: #5a3d2b;
  color: #fdebb4;
  /*moccasin*/
}

.modal-body {
  padding: 2px 16px;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 10px;
  border: 1px solid #888;
  width: 80%;
}

/* Add Animation */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

.close-modal {
  color: #5a3d2b;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.container {
  -webkit-column-count: 3;
  /* Chrome, Safari, Opera */
  -moz-column-count: 3;
  /* Firefox */
  column-count: 3;
  -webkit-column-gap: 0.5rem;
  /* Chrome, Safari, Opera */
  -moz-column-gap: 0.5rem;
  /* Firefox */
  column-gap: 0.5rem;
}

.listItem {
  cursor: pointer;
  position: relative;
  width: 100%;
  padding: 12px 8px 12px 40px;
  margin: 0 auto;
  margin-top: 10px;
  background: #eee;
  font-size: 18px;
  transition: 0.2s;
  height: 46px;
  display: inline-flex;

  /* make the list items unselectable */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox {
  visibility: hidden;
}

.label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  transition: all 0.5s;
  padding-left: 10px;
}

.checkbox:checked + .label {
  background: #888;
  color: #fff;
  text-decoration: line-through;
}

.new-item-form {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.new-list-form {
  display: flex;
}

/*chips for emails*/
.chip {
  display: flex;
  padding: 0 25px;
  margin-top: 10px;
  display: inline-flex;
  font-size: 18px;
  line-height: 50px;
  border-radius: 25px;
  background-color: #f1f1f1;
}

.closebtn {
  padding-left: 10px;
  color: #888;
  font-weight: bold;
  float: right;
  font-size: 20px;
  cursor: pointer;
}

.closebtn:hover {
  color: #000;
}

/* The side navigation menu */
.sidenav {
  height: 100%;
  width: 250px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #5a3d2b;
  overflow-x: hidden;
  padding-top: 60px;
  transition: 0.5s;
  transform: translateX(-250px);
}

.sidenav.show {
  transform: translateX(0);
}

section {
  position: relative;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  text-decoration: none;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }

  .sidenav a {
    font-size: 18px;
  }
}
