@import url("https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  /* font-family: Georgia, times, serif; */
  color: rgb(255, 255, 255);
  background: rgb(25, 0, 52);
  background: linear-gradient(
    180deg,
    rgba(25, 0, 52, 1) 0%,
    rgba(85, 48, 0, 1) 100%
  );
  zoom: auto;
  background-position: center;
  background-image: url(background.jpg);
  background-size: 1800px 1350px; /* reduces the size of the background image to 50% */
  /* !!! WIDTH !!! */ /* !!! HEIGHT !!! */
  overflow: auto;
  line-height: 1.6px;
  margin: 0;
  padding: 0;
}

/* Main Container  */

.container {
  background-color: rgba(0, 42, 255, 0.443);
  border: 2px solid black;
  max-width: 650px;
  min-width: 350px;
  margin: 20px;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-radius: 20px;
  gap: 25px;
  box-shadow: -2px 5px 60px black;
}

#main-heading {
  color: darkorange;
  text-shadow: -2px 2px 20px black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 40px;
  font-weight: 900;
  margin: 0%;
  word-spacing: 5px;
  letter-spacing: 2px;
}

/* Task Input Container  */

.input-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  column-gap: 5px;
  row-gap: 10px;
  padding: 5px 6px;
}

#task-input {
  width: 300px;
  height: 40px;
  border-radius: 20px;
  font-size: 20px;
  color: darkblue;
  background-color: white;
  border: none;
  outline: none;
  font-weight: 600;
}

#task-input:hover {
  border: 3px solid darkblue;
  scale: 1.01;
}

#task-input:focus {
  border: 3px solid darkblue;
  scale: 1.02;
}

#task-push-btn {
  width: fit-content;
  height: fit-content;
  height: 50px;
  font-size: 17px;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: darkorange;
  border: 2px solid black;
  color: #fff;
  font-weight: 600;
  box-shadow: -2px 5px 60px black;
  outline: none;
}

#task-push-btn:hover {
  scale: 1.05;
  transition: scale 0.2s;
}

/* Task List Container  */

#list-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#list-container > .listItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  position: relative;
}

.listItem:hover {
  border: 3px solid darkorange;
}

/* Task Output Container  */
#task-output-container {
  width: fit-content;
  /* border: 2px solid red; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

#task-output-container > #outputPara {
  width: 100%;
  height: fit-content;
  text-align: left;
  font-size: 20px;
  margin: 0;
  color: darkorange;
  font-weight: 600;
}

#task-output-container > #editTaskInput {
  font-weight: 600;
  width: 180px;
  height: 35px;
  font-size: 18px;
  color: #000;
  border: none;
  outline: none;
  border-radius: 5px;
  padding: 2px 10px;
  display: none;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

#task-output-container > #editTaskInput:hover {
  border: 2px solid darkorange;
}

#task-output-container > #editTaskInput:focus {
  border: 2px solid darkorange;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

/* List Item Button Container  */

.listItem > .listItembutton {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 5px;
}

.listItembutton > #edit-button {
  background-color: #fff;
  border: 1px solid darkorange;
  font-size: 20px;
  padding: 4px 6px;
  border-radius: 5px;
}

.listItembutton > #delete-button {
  background-color: #fff;
  color: darkorange;
  border: 1px solid darkorange;
  font-size: 24px;
  padding: 4px 6px;
  border-radius: 5px;
}
