@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&subset=latin-ext");

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

html {
  font-size: 10px;
}

body {
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  color: #ccc;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  user-select: none;
}

.background {
  position: fixed;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #034686 0%,
    #034686 50%,
    #034382 50%,
    #034382 100%
  );
}

#todoApp {
  z-index: 1;
  margin-top: 5rem;
  margin-bottom: 5rem;
  display: flex;
  color: #ddd;
  background-color: #3c424a;
  box-shadow: 0px 5px 17px -1px rgba(0, 0, 0, 0.41);
  border-radius: 4px;
  width: 420px;
  min-height: 400px;
  text-align: center;
  font-family: "Roboto", sans-serif;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

#todoApp > .heading {
  margin: 5rem 2rem;
  font-size: 2.2rem;
  font-weight: 500;
}

#todoApp > .addTask {
  position: relative;
  margin: 0 4rem;
  width: 80%;
  color: #666;
}

#todoApp > .addTask .editing {
  position: absolute;
  display: none;
  top: -2rem;
  color: #c08811;
  font-size: 1.4rem;
}

#todoApp > .addTask input {
  padding: 0 4rem;
  width: 100%;
  font-family: "Roboto";
  font-size: 1.5rem;
  line-height: 3.4rem;
  border-radius: 4px;
  color: #888;
  background-color: #343a40;
  border: 2px solid #2f3339;
}

#todoApp > .addTask input:focus {
  outline: none;
}

#todoApp > .addTask input:hover {
  background-color: #393f45;
}

#todoApp > .addTask i {
  position: absolute;
  margin-left: 1.3rem;
  line-height: 3.4rem;
  transform: translateY(0.2rem);
}

#todoApp .taskListContainer {
  margin-top: 2.6rem;
  margin-bottom: 2.6rem;
  width: 80%;
}

#todoApp .taskList-info {
  display: none;
}

#todoApp .taskList {
  text-align: left;
  list-style: none;
  font-size: 1.5rem;
  line-height: 1.8rem;
}

#todoApp .taskList li {
  position: relative;
  margin-bottom: 1.4rem;
  padding-left: 3rem;
}

#todoApp .taskList li input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 4px;
  background-color: #484f59;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}

#todoApp .taskList .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.8rem;
  width: 1.8rem;
  color: #888;
  background-color: #484f59;
  border: 2px solid #2f3339;
  border-radius: 2px;
  cursor: pointer;
}

#todoApp .taskList input:hover ~ .checkmark {
  background-color: #636a74;
}

#todoApp .taskList .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

#todoApp .taskList input:checked ~ .checkmark:after {
  display: block;
}

#todoApp .taskList .checkmark:after {
  left: 5px;
  top: 0;
  width: 5px;
  height: 9px;
  border: solid #ddd;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(1);
}

@keyframes checkmarkZoom {
  0% {
    transform: rotate(45deg) scale(0.5);
  }
  50% {
    transform: rotate(45deg) scale(2);
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}

#todoApp .taskList .animate.checkmark:after {
  animation: checkmarkZoom 0.5s;
}

#todoApp .taskList li .delete-task,
#todoApp .taskList li .edit-task {
  color: #636a74;
  margin-left: 2.2rem;
  transform: scale(1.2) translateY(0.1rem);
  cursor: pointer;
  opacity: 0;
}

#todoApp .taskList li .edit-task {
  transform: scale(1) translateY(0.1rem);
}

#todoApp .taskList li .delete-task:hover {
  color: #a31818;
}

#todoApp .taskList li .edit-task:hover {
  color: #c08811;
}

#todoApp .taskList li:hover .delete-task,
#todoApp .taskList li:hover .edit-task {
  opacity: 1;
  margin-left: 1.2rem;
  transition: 0.2s;
}

.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd;
  margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 440px) {
  #todoApp {
    width: 360px;
  }
}

@media (max-width: 380px) {
  #todoApp {
    width: 300px;
  }
}

@media (max-width: 319px) {
  #todoApp {
    width: 260px;
  }
}
