
body {
  background: #f7f7f7;
}

body,
input,
button {
  font-family: "Roboto", sans-serif;
}

/* Menu lateral */
#sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: -10px;
  background-color: darkolivegreen;
  box-shadow: 2px 0px 4px 2px rgba(33, 33, 33, 0.4);
  overflow-x: hidden;
  padding-top: 3em; 
  transition: 0.5s;
}

/* Links del menu lateral */
#sidenav a {
  padding: 10px 25px 10px 45px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8em;
  font-weight: 500;
  color: #ccc;
  display: block;
  transition: 0.3s;
}

/* Cuando movemos el mouse por encima cambia de color */
#sidenav a:hover {
  color: #fff;
}

/* Posición y estilo del boton "X" del menu */
#sidenav .closebtn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2em;
  text-decoration: none;
  color: #ddd;
}


/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left 0.5s;
}

/* Menu */
/* the burger menu icon */
.burgermenu {
  padding: 1em;
  color: darkolivegreen;
}

.titulo {
  font-size: 1.1em;
  margin-left: 0.5em;
}

/* 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;
  }
}

header {
  width: 100%;
  height: 80px;
  padding: 15px;
  top: 0;
  left: 0;
  z-index: 5;
  background: darkolivegreen;
  box-shadow: 0px 2px 4px rgba(44, 62, 80, 0.15);
}

header input {
  width: 100%;
  height: 50px;
  float: left;
  color: #fff;
  font-size: 1em;
  font-weight: 500;
  text-indent: 18px;
  padding: 0 6em 0 0;
  /* overflow: scroll; */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  border: 0px;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

header input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.75);
}

header input:-moz-input-placeholder {
  color: rgba(255, 255, 255, 0.75);
}

header input::-moz-input-placeholder {
  color: rgba(255, 255, 255, 0.75);
}

header input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.75);
}

header button {
  position: absolute;
  /* top: 70px; */
  right: 0;
  z-index: 2;
  margin: 0.5em 2em;
  /* padding: 0.8em 1.5em; */
  width: 75px;
  height: 35px;
  border-radius: 5px;
  color: white;
  font-weight: 500;
  background: darkolivegreen;
  border: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  -webkit-appearance: none;
  -moz-appearance: none;
}

header button:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.container {
  width: 100%;
  float: left;
  padding: 15px;
}

ul.todo {
  width: 100%;
  float: left;
}

ul.todo li {
  width: 100%;
  min-height: 50px;
  float: left;
  font-size: 0.9em;
  font-weight: 500;
  color: #444;
  line-height: 22px;
  background: white;
  border-radius: 5px;
  position: relative;
  box-shadow: 0px 1px 2px rgba(44, 62, 80, 0.1);
  margin: 0 0 10px 0;
  padding: 14px 170px 14px 14px;
  word-break: break-word;
}

ul.todo li:last-of-type {
  margin: 0;
}

ul.todo li .buttons {
  /* width: 150px; */
  /* border: 1px solid; */
  /* height: 80px; */
  /* padding: 0 .5em; */
  margin: 0.2em;
  position: absolute;
  top: 0;
  right: 0;
}

ul.todo li .buttons button {
  width: 50px;
  height: 50px;
  float: left;
  background: none;
  position: relative;
  border: 0px;
  box-shadow: none;
  outline: none;
  cursor: pointer;

  -webkit-appearance: none;
  -moz-appearance: none;
}

ul.todo li .buttons button {
  /* position: absolute; */
  /* top: 50%; */
  /* left: 0; */
  margin: 0.5em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: none;
  outline: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  background-color: #f7f7f7;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
}

ul.todo li .buttons button:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

ul.todo li .buttons button.complete {
  width: 65px;
  height: 30px;
  border-radius: 5px;
  color: darkgreen;
  font-weight: 500;
}

ul.todo li .buttons button.remove {
  width: 60px;
  height: 30px;
  border-radius: 5px;
  color: darkred;
  font-weight: 500;
}

ul.todo#completed li .buttons button.complete {
  background: lightgray;
  color: whitesmoke;
}

ul.todo:not(#completed) li .buttons button.complete:hover {
  /* background: darkseagreen; */
}

ul.todo#completed {
  position: relative;
  padding: 60px 0 0 0;
}

ul.todo#completed:before {
  content: "";
  width: 150px;
  height: 1px;
  background: #d8e5e0;

  position: absolute;
  top: 30px;
  left: 50%;

  margin: 0 0 0 -75px;
}

ul.todo#todo:empty:after {
  content: "No hay nada por hacer!";
  margin: 15px 0 0 0;
}

ul.todo#completed:empty:after {
  content: "No has completado ninguna tarea aún.";
}

ul.todo#todo:after,
ul.todo#completed:after {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 0.8em;
  color: gray;
}

/* Footer */
#footer {
  width: 100%;
  display: inline-block;
  font-size: 0.7em;
}

.atribution {
  text-align: center;
  border-top: 1px solid #ddd;
  margin: 2em;
  padding: 2em;
  color: #aaa;
}
