/* ------------------------------------------------------
            Css Style Stylesheet
            Project :       VueJS-To-Do-List
            Version :       0.1
            Author :        Mohamed Yousef
            Primary use :   All purposes
------------------------------------------------------ */
/*===== General Style =====*/
* {
  box-sizing: border-box;
}

html,
body,
p,
a,
button,
h1,
h2,
h3,
h4,
h5,
input,
textarea,
ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
  font-family: arial;
  direction: ltr;
  line-height: 1;
}

body {
  background: #250642;
}

#app input[type="text"] {
  padding: 0 0px;
  margin-right: 50px;
}

#app input[type="text"]:focus,
#app input[type="text"]:active {
  border: none !important;
  outline: none !important;
}

/*===== Header =====*/
#app header {
  display: flex;
  margin: 0px auto 0px auto;
  padding: 10px 15%;
  justify-content: space-between;
  margin-top: 20px;
}

#app header h1 {
  text-align: left;
  color: #fff;
  margin-bottom: 30px;
}

#app header span {
  display: inline-block;
  margin-left: 10px;
}

/*===== Filters =====*/
#app header .filters {
  display: flex;
}

#app header .filters a {
  text-decoration: none;
  padding: 8px 18px;
  color: rgb(33 199 188);
  background-color: none;
  border-color: #19727b;
  margin: 0 3px;
  border-radius: 30px;
  display: inline-block;
  font-size: 18px;
  border: 2px solid rgb(33 199 188);
  animation: shadow 3s infinite;
}

#app header .filters li:first-child a {
  margin-left: 0;
}

#app header .filters .active {
  border-color: #f3aa15 !important;
  color: #f3aa15 !important;
}

/*===== App Container=====*/
#app .container {
  width: 70%;
  margin: 10px auto;
  min-height: 100%;
}

#app .container .completed p {
  text-decoration: line-through;
  color: #888;
}

#app .container p {
  padding: 5px;
}

/*===== Items =====*/
#app .items li {
  display: flex;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  background: #fff;
  height: 50px;
  justify-content: space-between;
  position: relative;
  align-items: center;
  border-radius: 30px;
  padding: 3px;
}

#app .items li p {
  width: 100%;
  position: relative;
  padding: 0 5px;
  height: 100%;
  display: flex;
  align-items: center;
  padding-right: 5px;
  word-break: break-all;
  line-height: 20px;
  margin-right: 50px;
}

#app .items li .delete {
  border: none;
  display: flex;
  align-self: flex-start;
  justify-content: center;
  background: #eb6c4f;
  color: #fff;
  height: 45px;
  width: 45px;
  font-weight: bold;
  font-size: 22px;
  font-family: arial;
  align-items: center;
  cursor: pointer;
  border-radius: 100%;
  position: absolute;
  right: 2px;
  top: 2px;
  transition: 1s;
}

#app .items li .delete:hover,
#app .items li .checkmark:hover,
#app .items li .running:hover {
  transform: rotate(360deg);
  transition: 1s;
}

/*===== Add New Item =====*/
#app .addnew-field {
  width: 100%;
  height: 50px;
  background: #f0f8ff24;
  border-radius: 30px;
  border: none;
  margin-right: 0;
  padding-left: 50px !important;
  color: #fff;
}

#app .addnew-btn {
  text-decoration: none;
  padding: 10px 18px;
  color: #fff;
  background: #cf2e87;
  border-color: #cf2e87;
  margin: 0 3px;
  border-radius: 30px;
  display: block;
  box-shadow: none;
  font-size: 16px;
  margin-top: 15px;
  color: #ffffffa1;
  border: none;
  position: relative;
  overflow: hidden;
  left: 0;
}

#app .addnew-btn:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 36px;
  bottom: -100%;
  box-shadow: 0px 0px 30px #f3aa15;
  animation: light 5s infinite;
}

#app #newItem {
  padding-right: 50px !important;
  padding-left: 50px !important;
}

/*===== Edit Item =====*/
#app .edit-field-container {
  width: 100%;
  position: relative;
}

#app .edit-field-container p {
  position: absolute;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
}

#app .edit-field {
  width: 100%;
  position: absolute;
  z-index: 0;
  height: 100%;
}

#app .hiden {
  display: none;
}

#app .edit .hiden {
  display: block;
}

/*===== Check Container =====*/
#app .check-container {
  position: relative;
  padding-left: 0px;
  margin-bottom: 0px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  height: 50px;
  width: 50px;
  text-align: center;
  color: #fff;
  border-radius: 100%;
}

#app .check-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

#app .check-container .checkmark,
#app .check-container .running {
  width: 45px;
  height: 45px;
  justify-content: center;
  align-content: center;
  align-items: center;
  border-radius: 30px;
  margin: 3px 0px;
  transition: 1s;
}

#app .check-container .checkmark {
  display: none;
}

#app .check-container .running {
  content: "";
  position: absolute;
  background-color: #21c7bc;
  top: 0;
  display: flex !important;
  color: #ffffff;
}

#app .check-container .checkmark:after {
  left: 17px;
  top: 15px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/*===== Completed =====*/
#app .completed .checkmark {
  background-color: #f3aa15;
  display: flex;
}

#app .completed .running {
  display: none !important;
}

/*===== Animation =====*/
@keyframes shadow {
  0% {
    box-shadow: 0px 0px 0px rgb(33 199 188);
  }

  50% {
    box-shadow: 0px 0px 15px #f3aa15;
  }

  0% {
    box-shadow: 0px 0px 5px rgb(33 199 188);
  }
}

@-webkit-keyframes shadow {
  0% {
    box-shadow: 0px 0px 0px rgb(33 199 188);
  }

  50% {
    box-shadow: 0px 0px 15px #f3aa15;
  }

  0% {
    box-shadow: 0px 0px 5px rgb(33 199 188);
  }
}

@keyframes light {
  0% {
    left: 0px;
  }

  50% {
    left: 70px;
  }

  100% {
    left: 0px;
  }
}

@-webkit-keyframes light {
  0% {
    left: 0px;
  }

  50% {
    left: 70px;
  }

  100% {
    left: 0px;
  }
}

/*===== Responsive =====*/
@media only screen and (max-width: 768px) {
  #app header {
    flex-flow: column;
  }

  #app .filters li a {
    margin-left: 2px;
  }
}
