@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap");

:root {
  font-size: 16px;

  --primary: #f4f4f4;
  --secondary: rgba(65, 179, 255, 1);
  --tertiary: rgb(226, 82, 255);
  --quaternary: rgba(25, 228, 18, 1);

  --font-color-basic: rgb(46, 46, 46);

  --padding-lg: 0.9rem 0.7rem;
  --padding-md: 0.4rem 0.7rem;
  --padding-sm: 0.2rem 0.4rem;

  --container-width: 70%;
}

::-webkit-scrollbar {
  visibility: hidden;
}

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  list-style: none;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

body {
  background: #effcff;
  font-family: "Roboto", "Open Sans", sans-serif;
  width: 100%;
  color: var(--font-color-basic);
}

main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 5rem 0 3rem 0;
  width: 100%;
}

.app-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.app-form {
  border-radius: 0.7rem;
  padding: 2rem;
  background: #fff;
  width: var(--container-width);
  min-width: 26rem;
  -webkit-box-shadow: 0 5px 2rem 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 2rem 0 rgba(0, 0, 0, 0.2);
}

.app-form > h3 {
  text-align: center;
  margin: 0.5rem 0 1.4rem 0;
  letter-spacing: 0.15rem;
}

.form-control {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.task-content {
  -webkit-box-flex: 1;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
  padding: var(--padding-lg);
  outline: none;
  border: none;
  background: rgb(236, 236, 236);
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 1rem;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
  border: 2px solid rgba(0, 0, 0, 0);
}

.task-content:focus {
  border: 2px solid rgba(0, 0, 0, 0.5);
}

.btn {
  font-family: "Open Sans", sans-serif;
  text-transform: capitalize;
  border: none;
  padding: var(--padding-md);
  border-radius: 0.5rem;
  cursor: pointer;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
}

.create-task-button {
  margin-left: 0;
  border-radius: 0 0.5rem 0.5rem 0;
  background: rgba(65, 179, 255, 1);
  font-size: 1.8rem;
  padding: 0 0.4rem;
}

.fa-circle-plus {
  color: #fff;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.fa-circle-plus:hover {
  color: #e7e7e7;
}

.buttons-container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 1rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 1rem;
}

.all-button {
  position: relative;
  background: var(--secondary);
  border: 3px solid var(--secondary);
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

/* border: 3px solid var(--secondary) */

.active-button {
  position: relative;
  border: 3px solid var(--font-color-basic);
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
/* --tertiary
--quaternary */
.completed-button {
  position: relative;
  border: 3px solid var(--font-color-basic);
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.all-button:hover {
  background: rgba(65, 179, 255, 0.3) !important;
}

.active-button:hover {
  background: rgba(226, 82, 255, 0.2) !important;
}

.completed-button:hover {
  background: rgba(25, 228, 18, 0.2) !important;
}

.task-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background: #fff;
  -webkit-box-shadow: 0 5px 2rem 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 2rem 0 rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
  width: var(--container-width);
  min-width: 26rem;
  padding: 2rem;
  border-radius: 0.7rem;
  gap: 1rem;
  visibility: hidden;
}

.task {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 0.5rem;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border-radius: 0.7rem;
  border: 3px dashed transparent;
  margin-bottom: 0.5rem;
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0);
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.important-task {
  border-color: var(--tertiary);
}

.task:hover {
  -webkit-box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.2);
}

.checkbox-task {
  margin-right: 0.5rem;
  cursor: pointer;
  width: 1.3rem;
  height: 1.3rem;
}

.task-description {
  width: 80%;
  text-align: justify;
  border: 2px solid transparent;
  border-radius: 0.8rem;
  padding: 0.5rem 0.6rem;
}

.task-btns-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.task-button {
  padding: 0.4rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
  margin: 0 0.2rem;
}

.btn-important {
  font-size: 1.4rem;
  margin-right: 1rem;
  padding: 0.3rem;
}

.btn-important:hover {
  color: var(--tertiary);
}

.btn-edit:hover {
  color: var(--quaternary);
}

.completed {
  opacity: 0.2;
  background: var(--quaternary);
}

.btn-delete:hover {
  color: rgb(255, 0, 0);
}

.show-task-container {
  visibility: visible;
}

.editing-task {
  border-color: var(--quaternary);
}

/* MEDIA QUERIES */

@media screen and (max-width: 768px) {
  .app-form,
  .task-container {
    width: 80%;
    padding: 2rem 1rem;
  }

  .task-button {
    font-size: 1.1rem;
    padding: 0.2rem;
  }
}

@media screen and (max-width: 530px) {
  .app-form,
  .task-container {
    width: 90%;
  }

  .app-form > h3 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 430px) {
  .btn {
    font-size: 0.9rem;
  }

  .create-task-button {
    font-size: 1.6rem;
  }
}
