:root {
  --main-color: #e8e6e2b3;
  --second-color: #ffebc711;
  --navbar-color: #3f60c5;
}

body {
  margin: 0px;
  padding: 0px;
  direction: rtl;
  background-color: var(--main-color);
  font-family: "Cairo", sans-serif;
}

.container {
  width: min(90%, 1000px);
  height: min(100vh, 90vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title {
  width: min(1200px, 100%);
  color: var(--navbra-color);
  font-size: 30px;
  margin-top: 20px;
  padding: 0px 30px;
  overflow: hidden; 
  white-space: nowrap;
  animation: typing 3.5s steps(100, end), blink-caret 0.75s step-end infinite;
}

.title img {
  mix-blend-mode: multiply;
  /* background-blend-mode: multiply; */
  filter: contrast(1.2) brightness(1.1);
  width: 50px;
  height: 50px;
  background-color: #1ba959;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: orange;
  }
}

#table-task {
  width: min(1000px, 90%);
  max-height: 650px;
  background-color: var(--second-color);
  overflow: auto;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.08), 
  -5px -5px 5px rgb(225, 224, 224);
  padding: 10px;
  margin-bottom: 30px;
  border-radius: 5%;
}

#navbar {
  background-color: var(--navbar-color);
  color: rgb(255, 255, 255);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 30px;
  margin-top: 20px;
  flex-wrap: wrap; 
}

#info {
  width: 100%;
  text-align: center;
}

#input-task {
  box-sizing: border-box;
  outline: none;
  width: 100%;
  padding: 15px;
  background: none;
  border: 3px solid var(--navbar-color);
  border-radius: 100px;
  font-size: 18px;
  caret-color: #0400ff;
}

form {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#BtnAddTask {
  height: 50px;
  width: 100%;
  max-width: 200px;
  font-size: 18px;
  color: #efefef;
  border-radius: 50px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

#BtnAddTask:hover {
  transform: scale(1.05);
}

#tasks {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  padding: 20px;
  align-items: center;
}

/* ======for task =============================== */
.task {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #fcfcfc;
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 20px;
  border-bottom: 5px solid #ddd;
  box-shadow: 3px 3px 0px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.task:hover {
  background-color: #efefef;
  box-shadow: 3px 3px 0px 3px rgba(177, 67, 67, 0.08);
  transform: translateY(-10px);
}
.task:active {
  transform: translateY(5px);
  /* box-shadow: 0px 5px 15px rgba(177, 67, 67, 0.15);  */
}

.done {
  background-color: #1ba959;
  color: #f1f1f1;
}

.done:hover {
  background-color: #34bb6e;
  box-shadow: 3px 3px 0px 3px rgba(177, 67, 67, 0.08);
  transform: translateY(-10px);
}
/* ================================================ */

.actions-btn {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  gap: 20px;
}

.actions-btn button {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

#deleteAllTask {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  #navbar {
    flex-direction: column;
    min-height: auto;
    padding: 15px;
  }

  #tasks {
    padding: 10px;
  }

  .task {
    flex-direction: column;
    padding: 15px;
    align-items: center;
    text-align: center;
  }

  .actions-btn {
    justify-content: center;
  }
}
