/*
  See SASS fail kompileeritakse tavaliseks CSS failiks.
*/
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.done {
  background-color: green;
}

html {
  min-height: 100vh;
}

#app {
  width: 95%;
  margin: 5em auto;
  text-align: center;
}

#app #title {
  color: #fff;
}

#app #todos {
  width: 100%;
}

#app #todos .todo {
  background-color: #fff;
  padding: 2em;
  width: 80%;
  margin: 2em auto;
  border-radius: 5px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 85% 15%;
      grid-template-columns: 85% 15%;
}

#app #todos .todo p {
  width: 100%;
  word-wrap: break-word;
}

#app #todos .todo #actionsDiv {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
  -webkit-box-pack: right;
      -ms-flex-pack: right;
          justify-content: right;
}

#app #todos .todo #actionsDiv .action {
  margin: 0 4px;
  width: 24px;
  height: 24px;
  display: block;
  cursor: pointer;
  color: #000;
  -webkit-transition: color 0.2s ease-in-out, -webkit-transform 0.25s ease-in-out;
  transition: color 0.2s ease-in-out, -webkit-transform 0.25s ease-in-out;
  transition: color 0.2s ease-in-out, transform 0.25s ease-in-out;
  transition: color 0.2s ease-in-out, transform 0.25s ease-in-out, -webkit-transform 0.25s ease-in-out;
}

#app #todos .todo #actionsDiv .action:hover {
  -webkit-transform: scale(1.25);
          transform: scale(1.25);
}

#app #todos .todo.done {
  opacity: 0.7;
}

#app #todos .todo.done p {
  text-decoration: line-through;
}

#app #todos .todo:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

#app #newTodo {
  margin-top: 2em;
}

/* >= tablet */
@media (min-width: 750px) {
  #app {
    width: 75%;
  }
}

/* >= desktop */
@media (min-width: 1000px) {
  #app {
    width: 60%;
  }
}

#title {
  font-size: 3.5em;
  font-weight: normal;
}
