/* import google font Jost */
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Jost", sans-serif;
}
/* add styling to header elements */
header div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  padding: 20px;
}
h1 {
  font-size: 50px;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: bold;
  color: orange;
}
h2 {
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: white;
}
/* add styling to body elements */
body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url("background.png");
  min-height: 100vh;
  background-size: cover;
  background-attachment: fixed;
}
#my-form {
  position: absolute;
  top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
}
#btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20%;
  width: 30px;
  height: 30px;
  background-color: white;
  color: green;
  cursor: pointer;
}

#my-task {
  outline: none;
  border: 1px solid black;
  border-radius: 20px;
  padding: 10px;
  width: 20vw;
}

#my-task::placeholder {
  color: black;
}
#main-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  width: 50vw;
  padding: 20%;
  border-radius: 30px;
  border: 5px white solid;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 1px 1px 10px 10px black;
}

#main-container:hover {
  box-shadow: 1px 1px 20px 20px white;
  transition: 1ms ease-in-out box-shadow;
  border: none;
  backdrop-filter: blur(0px);
}

#task-list {
  display: flex;
  justify-content: center;
  flex-direction: column;
  list-style-type: none;
  gap: 1.2rem;
  align-items: center;
}
#list-container {
  padding: 10%;
}
.li-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border: 5px solid black;
  border-radius: 20px;
  padding: 10px;
  width: fit-content;
  background-color: rgba(245, 241, 5, 0.433);
  gap: 1.5rem;
  font-weight: bold;
}

/* style remove button */
.remove {
  width: 30px;
  border-radius: 20%;
  padding: 3px;
  background-color: rgb(207, 225, 220);
  color: red;
  cursor: pointer;
}
/* style edit button */
.edit {
  width: 30px;
  border-radius: 20%;
  padding: 3px;
  background-color: rgb(207, 225, 220);
  color: navy;
  cursor: pointer;
}
#message {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  color: white;
}

.input-field {
  border: 1px solid black;
}

/* style footer element */
footer {
  color: white;
  position: absolute;
  bottom: 0;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* media queries */

/* //desktop size */
@media (max-width: 1200px) {
  #main-container {
    height: 60%;
    width: 50vw;
    box-shadow: 1px 1px 10px 10px white;
    font-size: 20px;
  }
  h1 {
    font-size: 30px;
    text-align: center;
  }
  h2 {
    font-size: 20px;
    text-align: center;
  }

  #list-container {
    padding-top: 15%;
  }
  #my-task::placeholder {
    color: red;
    font-size: 15px;
  }
  #message {
    font-size: 20px;
  }
  footer {
    font-size: 20px;
  }
}
/* //tablet screen size */
@media (max-width: 1000px) {
  #main-container {
    height: 50vh;
    width: 80vw;
    box-shadow: 1px 1px 10px 10px white;
    font-size: 15px;
  }
  h1 {
    font-size: 25px;
    text-align: center;
  }
  h2 {
    font-size: 15px;
    text-align: center;
  }

  #list-container {
    padding-top: 30%;
  }
  #my-task::placeholder {
    color: red;
    font-size: 15px;
  }
  #message {
    font-size: 15px;
  }
  footer {
    font-size: 15px;
  }
}

/* //mobile screen size */
@media (max-width: 400px) {
  #main-container {
    height: 50vh;
    box-shadow: 1px 1px 10px 10px white;
    font-size: 10px;
    width: 100vw;
    margin-bottom: 40px;
  }
  h1 {
    font-size: 20px;
    text-align: center;
  }
  h2 {
    font-size: 10px;
    text-align: center;
  }

  #my-task::placeholder {
    color: red;
    font-size: 10px;
  }

  #message {
    padding: 20px;

    font-size: 10px;
  }
  footer {
    font-size: 10px;
  }
  #list-container {
    margin-top: 30%;
  }
}
