* {
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #f0f0f0;
}

section {
    min-height: 100vh;
    background-image: url('https://image.freepik.com/free-photo/top-view-workspace-with-stationery-book-flower-copy-space-purple-background_67155-13719.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 450px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.container:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.container h1 {
    text-align: center;
    color: #521a87;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: bold;
}
.tagline {
    font-size: 0.6em;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

#todo-input {
    flex: 1;
    padding: 10px;
    font-size: 20px;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    color: #51108e;
    outline: none;
}

button[type="submit"] {
    padding: 10px 15px;
    font-size: 18px;
    background-color: #a57acf;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #a169d8;
}

ul#todo-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.todo-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
}

.todo-item .task-text {
    flex: 1;
    font-size: 18px;
    word-wrap: break-word;
}

.todo-item .task-text.completed {
    text-decoration: line-through;
    color: #555;
}

/* Chrome, Edge, Safari */
#todo-list::-webkit-scrollbar {
    width: 8px;
}

#todo-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

#todo-list::-webkit-scrollbar-thumb {
    background-color: #895db4;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

#todo-list::-webkit-scrollbar-thumb:hover {
    background-color: #754aa0;
}

.actions button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    color: white;
}

.actions button:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 15px;
    }

    .container h1 {
        font-size: 1.8rem;
    }

    #todo-input {
        font-size: 16px;
    }

    button[type="submit"] {
        font-size: 16px;
        padding: 8px 12px;
    }

    .todo-item .task-text {
        font-size: 16px;
    }

    .actions button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.5em;
    }

    .todo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .actions {
        align-self: flex-end;
    }
}
