body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
}

h1 {
    background-color: #b3b3b3;
    color: rgb(110, 73, 211);
    padding: 10px;
    margin: 0;
}

form {
    margin: 10px;
    padding: 10px;
}

input[type="text"] {
    width: 10%;
    padding: 10px;
    border-radius: 8px;
    margin-right: 10px;
}

input[type="date"] {
    width: 9%;
    padding: 1px;
    border-radius: 5px;
    margin-right: 10px;
}

textarea {
    max-width: 30%;
    min-width: 20%;
    max-height: 50vh;
    padding: 5px 0px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    margin-right: 10px;
}

button {
    background-color: #4b4b4b;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 8px;
}

button:hover {
    background-color: #000;
}

#toggleButton {
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
}
  
#toggleButton:hover {
    background-color: #fff;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    background-color: #fff;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
}

.card {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    width: 30%;
    display: inline-block;
    box-sizing: border-box;
    margin-left: 15px;
}

.task-low {
    background-color: rgb(173, 255, 47);
}

.task-medium {
    background-color: rgb(244, 244, 134);
}

.task-high {
    background-color: rgb(240, 128, 128);
}

.card-content {
    margin-bottom: 10px;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
}

.card-actions button {
    margin-left: 5px;
}


#sortButton {
    padding: 9px;
    border-radius: 8px;
    margin-left: 10px;
}

#editModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(5px);
    background-color: rgba(116, 205, 247, 0.5);
}

#editModal h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}

#editModal textarea{
        padding: 10px;
        border-radius: 8px;
        min-height: 50px;
        min-width: 40%;
        max-width: 40%;
}

#editModal input[type="text"]{
    width: 15%;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

#editModal input[type="date"]{
    width: 15%;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
}

#editModal button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    margin-left: 35vh;
    border-radius: 8px;
}

#editModal button:hover {
    background-color: #000;
}

#editModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 10px;
    margin-top: -10px;
}

#editModal .close:hover,
#editModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.darkmode {
    position: fixed;
    background-color: #fff;
    border-radius: 8px;
    top: 10px;
    right: 10px;
}

.bx {
    display: inline-block;
    font-size: 20px;
}

.bx-moon {
    color: #000
}

.dark-mode {
    background-color: #333;
    color: #000;
    text-color: white;
}
