ul {
    list-style: none;
    width: 500px;
    margin: 20px auto;
    padding: 0;
}

body {
    background-color:#BFD7F7;
    text-align: center;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h1 {
    margin-top: 100px;
    color:#1F387A;
    margin-bottom: 50px;
}

div {
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 0;
    width: fit-content;
}

input[type = "text"] {
    width: 300px;
    padding: 8px;
    border: 1px solid #2D4CA3;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    background-color:#A6C2F3;
}

#taskInput {
    color: #1F387A;
    font-weight: normal;
    transition: color 0.4s east, font-weight 0.4s ease;
}

#taskInput::placeholder {
    color:#1F387A;
}

#addTaskButton {
    padding: 8px;
    background-color:royalblue;
    color:#FDF5E6;
    border: 1px solid black;
    border-left: none;
    border-radius: 0 25px 25px 0;
    font-size: 14px;
}

#prioritySelect {
    background-color:#FDF5E6;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    border-color: #1F387A;
    text-align: center;
    font:large;
    border-width: 1px;
    border-right: none;
    color:#1F387A;
    font-weight:500;
}

li {
    padding: 5px;
    margin: 5px 0;
    border: 1px solid gray;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 500px;
    box-sizing: border-box;
    text-align: center;
}

li span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:8px;
    text-align: center;
}

li.completed span {
    text-decoration: line-through;
    color:grey;
}

li.high {
    color: black;
    font-weight: bold;
    font-style: italic;
}

li.medium {
    color:navy;
    font-weight: bold;
}

li.low {
    color:royalblue;
}



li button:first-of-type {
    margin-right: 10px;
    background-color:#A6C2F3;
    border: 1px solid midnightblue;
    border-radius: 25px;
    color:midnightblue;
    padding: 2px 14px;
    flex-shrink: 0;
    margin-left: 5px;
}

li button.edit-button {
    margin-left: 10px;
    background-color:#7396EB;
    border: 1px solid #1F387A;
    border-radius: 5px;
    color: midnightblue;
    padding: 0;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
}



li button:last-of-type {
    margin-left: 5px;
    background-color: transparent;
    border: 1px solid midnightblue;
    border-radius: 0 25px 25px 0;
    color: midnightblue;
    padding: 2px 10px;
    flex-shrink: 0;
    height: 25px;
    display: flex;
    font-size: 16px;

}

input[type="date"] {
    padding:5px;
    border: 1px solid #2D4CA3;
    font-size: 12px;
    background-color:#A6C2F3;
    outline: none;
    color:#1F387A;
}

#dueDateInput {
    text-align: center;
    color:#1F387A;
}

.due-date {
  flex: 0 0 auto;
  display: inline-block; 
  box-sizing: border-box;
  font-size: 12px;
  background-color: #90B9F3;
  border: 1px solid #2D4CA3;
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 6px;
  white-space: nowrap; 
  vertical-align: middle;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}


.inline-edit {
  width: 60%;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #2D4CA3;
}