/*GENERAL*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Roboto, sans-serif;
  background: #4B79A1; /* fallback for old browsers */
  background: linear-gradient(to left, #4B79A1 , #283E51);
  padding: 10% 15px;
}

.container {
  background-color: #f7f7f7;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

h1 {
  color: white;
  background-color: #2980e9;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  padding: 10px 20px;
}

/*HEADER*/

.header h1 span {
  float: right;
}

.header span .fa-edit {
  position: relative;
  left: 4px;
  top: 2px;
  transition: color 0.2s linear;
}

.header span .fa-times {
  color: #e74c3c;
  transition: color 0.2s linear;
}

/*EDIT*/

.edit {
  position: relative;
  display: none;
}

.edit span {
  color: #2980e9;
  background-color: white;
  font-size: 18px;
  text-align: center;
  line-height: 40px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 0;
  height: 40px;
  transition: 0.2s linear;
}

.edit:hover span {
  width: 40px;
  opacity: 1;
}

.edit:hover #create {
  text-indent: 40px;
}

.edit span .fa-keyboard-o {
  transition: color 0.2s linear;
}

.edit span .fa-plus {
  color: limegreen;
  transition: color 0.2s linear;
}

/*CREATE*/

#create {
  color: #2980e9;
  font-size: 18px;
  line-height: 40px;
  width: 100%;
  height: 40px;
  padding: 0 20px;
  border: 2px solid transparent;
  transition: 0.2s linear;
}

#create::-webkit-input-placeholder {
  color: #2980e9;
}

#create::-moz-placeholder {
  color: #2980e9;
}

#create:hover {
  color: black;
}

#create:focus::-webkit-input-placeholder {
  color: black;
}

#create:focus::-moz-placeholder {
  color: black;
}

#create:focus {
  color: black;
  border: 2px solid #2980e9;
  outline: none;
  text-indent: 40px;
}

#create:focus + span {
  width: 40px;
  opacity: 1;
  color: white;
  background-color: #2980e9;
}

/*TASKS*/

#tasks {
  list-style: none;
}

#tasks li {
  color: #666;
  min-height: 40px;
  line-height: 40px;
  transition: color 0.5s, background-color 2s;
}

#tasks li:nth-of-type(even) {
  background-color: white;
}

#tasks li.new {
  color: white;
  background-color: #2980e9;
}

#tasks li.completed {
  text-decoration: line-through;
  color: #DDDDDD;
}

#tasks li span {
  color: white;
  background-color: #e74c3c;
  opacity: 0;
  font-size: 18px;
  text-align: center;
  display: inline-block;
  width: 0;
  height: 41px;
  margin-right: 16px;
  transition: 0.2s linear;
}

#tasks li:hover span {
  width: 40px;
  opacity: 1;
}

#tasks li .help-icon {
  color: #2980e9;
}
