body {
    background-image: url(https://c4.wallpaperflare.com/wallpaper/175/524/956/digital-digital-art-artwork-fantasy-art-drawing-hd-wallpaper-preview.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.todo-wrapper {
    margin: 20px;
    max-width: 90%;
    width: 600px;
    background-color: rgba(30, 33, 64, 0.9);
    color: white;
    border-radius: 15px;
    padding: 30px;
    font-weight: 300;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    overflow-y: auto;
    max-height: 80vh;
}

.todo-wrapper h2 {
    margin: 0;
}

.todo-wrapper p {
    font-style: italic;
    color: #666;
    margin: 5px 0;
}

.todo-wrapper ul {
    list-style-type: none;
    padding: 0;
}

.todo-wrapper ul li {
    display: flex;
    align-items: center;
    margin: 10px 0;
    background-color: #2d325a;
    padding: 10px;
    border-radius: 5px;
}

.todo-wrapper .checkbox {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.todo-wrapper .completed {
    text-decoration: line-through;
    color: #666;
}

.todo-wrapper ul li span {
    flex-grow: 1;
}

.todo-wrapper .button-group {
    display: flex;
    margin-left: auto;
}

.todo-wrapper .edit-button,
.todo-wrapper .save-button,
.todo-wrapper .delete-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.todo-wrapper .edit-button:hover,
.todo-wrapper .save-button:hover,
.todo-wrapper .delete-button:hover {
    opacity: 0.7;
}

.todo-wrapper ul li span:focus {
    outline: 2px solid #4a90e2;
    background-color: #3a4374;
    padding: 2px 5px;
    border-radius: 3px;
}

.todo-wrapper input {
    background-color: #2d325a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
}

.todo-wrapper form {
    display: inline-block;
}

#task-count {
    text-align: right;
    margin-bottom: 10px;
}

#control-wrapper {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.todo-wrapper #clear-button {
    background-color: #49B749;
}

.todo-wrapper #empty-button {
    background-color: #9B1C20;
}

.todo-wrapper .pretty-button {
    margin: 10px 2px;
    padding: 5px 20px;
    border-radius: 15px;
    background-color: #0093D5;
    border: none;
    color: #fff;
    text-align: center;
    display: inline-block;
    font-size: small;
}

.todo-wrapper .pretty-button:hover {
    cursor: pointer;
    opacity: 0.75;
}

@media only screen and (min-width: 1400px) {
    .todo-wrapper {
        width: 50%;
    }

    .todo-wrapper input {
        width: 600px;
    }
    
}

@media only screen and (max-width: 1399px) and (min-width: 750px) {
    .todo-wrapper {
        width: 75%;
    }

    .todo-wrapper input {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .todo-wrapper {
        width: 90%;
        padding: 20px;
    }
}

.footer {
    background-color: rgba(30, 33, 64, 0.9);
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin-top: auto;
}

.footer p {
    margin: 0;
    color: #fff;
}

.todo-wrapper::-webkit-scrollbar {
    width: 8px;
}

.todo-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.todo-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.todo-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}