body {
  /* background-color: #00303d; */
  background-image: linear-gradient(45deg, #00303d, #004c3c);
  background-size: contain;
  color: #fff;
  height: 100%;
  padding-bottom: 1000px;
  width: 100%;
}

.title {
  text-align: center;
  width: 100%;
  padding: 10px;
  color: #00303d;
  font-size: 50px;
  background: rgba(255, 255, 255, 0.22);
  /* border-radius: 16px; */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.2px);
  -webkit-backdrop-filter: blur(5.2px);
  /* border: 1px solid rgba(255, 255, 255, 1); */
  margin: 15px 0;
  text-shadow: 1px 1px 10px #fff;
}

/* TODO-ITEM Container */

.li-container {
  display: grid;
  grid-template-columns: 40px auto 173px 50px 50px;
  padding: 10px 20px;
  border-radius: 8px;
  margin: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.li-container input[type="checkbox"] {
  accent-color: #00b4d8;
  height: 20px;
  width: 20px;
  cursor: pointer;
}
.li-container li {
  list-style: none;
  justify-self: start;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 98%;
}
.li-container .delete-btn,
.li-container .subtask-btn {
  cursor: pointer;
  justify-self: end;
  font-weight: bold;
}

/* Main Container */
.todos-container {
  width: 70%;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.2px);
  -webkit-backdrop-filter: blur(5.2px);
  border: 1px solid rgba(255, 255, 255, 1);
  color: black;
  border-radius: 16px;
  padding: 20px;
}
.todos-container h2 {
  color: #fff;
  text-align: center;
  font-size: 40px;
}

.li-container.completed {
  background-color: #00b38c !important;
}
.li-container.neutral {
  background-color: bisque;
}
#priority {
  background-color: bisque;
}
#priority.high {
  background-color: red;
}

#priority.medium {
  background-color: yellow;
}

#priority.low {
  background-color: rgba(0, 174, 255, 0.764);
}

#form {
  width: 60%;
  margin: 50px auto;
  display: flex;
  justify-content: space-between;
  position: relative;
}
#form input,
#form select {
  height: 40px;
  width: 180px;
  text-align: center;
}
#form input[type="text"],
#modal-form input[type="text"],
#modal-form input,
#modal-form select {
  width: 250px;
  text-align: left;
  padding: 0 10px;
}
#form label,
#modal-form label {
  position: absolute;
  top: -25px;
}
.optional {
  font-size: 10px;
}

#submit-btn {
  width: 120px;
  height: 40px;
  border-radius: 8px;
  border: solid white;
  background-color: transparent;
  color: white;
  transition: all 0.3s ease-in-out;
}

#submit-btn:hover {
  border-color: #00b38c;
  background-color: white;
  color: #004c3c;
}

/* MODAL */
#modal-container {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

#modal-form {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 35%; /* Could be more or less, depending on screen size */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
}

.li-container.subtask-container {
  position: relative;
  margin: 3px 0 0 5%;
  width: 95%;
}

#submit-subtask-btn {
  width: 120px;
  height: 40px;
  border-radius: 8px;
  border: solid #004c3c;
  background-color: transparent;
  color: #00b38c;
  transition: all 0.3s ease-in-out;
}

#submit-subtask-btn:hover {
  border-color: #004c3c;
  background-color: #00b38c;
  color: white;
}

#modal-form div {
  position: relative;
}
#modal-form h3 {
  color: #004c3c;
}
