body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.top-half {
    background-color: #4500e9;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    font-size: 2em;
    color: #660000;
}

.bottom-half {
    background-color: #fffeff;
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 20px;
    font-size: 18px;
    color: black;
}

h1 {
    padding-top: 10px;
    font-weight: 300;
    text-align: center;
    color: #fffeff;
    font-size: 60px;
}


.todo-container {
    margin-top: -120px;
    z-index: 10;
    width: 1000px;
    max-width: 90%;
    padding: 10px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.todo-container input:-webkit-autofill,
.todo-container input:-webkit-autofill:hover,
.todo-container input:-webkit-autofill:focus,
.todo-container input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #d1ccd1 inset !important;
  -webkit-text-fill-color: black !important;
  transition: background-color 5000s ease-in-out 0s;
}

.todo-form {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
    width: 100%;
    color: black;
}

.form-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.todo-input {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    background-color: #d1ccd1;
    outline: none;
}

input::placeholder {
    color: black;
}

button[type="submit"] {
    margin-left: auto;
    width: 150px;
    height: 54px;
    padding: 10px 15px;
    background-color: rgb(185, 184, 184);
    cursor: pointer;
    font-size: 1em;
    border: 1px solid #333;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: grey;
}

.trash-bin:hover {
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(30%) sepia(100%) saturate(500%) hue-rotate(180deg);
}

.task-list {
    list-style: none;
    width: 1000px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid black;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f3ecf3;
}

.task-item.completed {
    text-decoration: line-through;
    background-color: #d1ccd1;
}

.task-item > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-item > div span {
  word-break: break-word;
}

.checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox:checked {
  background-color: black;
  border-color: black;
}

select {
    justify-content: left;
    text-align: left;
    font-size: 16px;
    border-radius: 4px;
    background-color: #f3ecf3;
}

.selector {
    margin-top: 20px;
    background-color: #f3ecf3;
    border-radius: 6px;
    border: 1px solid black;
    padding: 5px 5px;
    font-size: 16px;
}

.tasks-count {
    display: flex;
    width: 1000px;
    max-width: 90%;
    justify-content: space-between;
    padding: 20px 20px;
}

.no-tasks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.invisible {
    display: none;
}