* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
}

header {
    padding: 20px 10px;
    color: #6dbcca;
    text-align: center;
    font-weight: bold;
    font-size: clamp(32px, 8vw, 50px);
    text-decoration: underline;
}

div {
    display: flex;
    justify-content: center;
    padding: 15px 10px;
    flex-wrap: wrap;
}

.container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    width: 100%;
}

#taskInput {
    /* font-weight: bold; */
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: 12px 15px;
    font-size: clamp(14px, 4vw, 20px);
    border: none;
    outline: none;
    background-color: antiquewhite;
    border-radius: 5px;
    flex: 1;
    min-width: 200px;
}

#addButton {
    padding: 12px 20px;
    font-size: clamp(12px, 3vw, 18px);
    cursor: pointer;
    background-color: aliceblue;
    outline: none;
    border: 2px solid rgba(12, 171, 144, 0.857);
    border-radius: 5px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

#addButton:hover {
    background-color: rgb(218, 255, 251);
}

#taskbox {
    width: 90%;
    max-width: 800px;
    height: auto;
    max-height: 70vh;
    background-color: azure;
    border: 4px solid black;
    border-radius: 15px;
    margin: 15px auto;
    padding: 15px;
    overflow-y: auto;
    align-self: center;
}

#taskList {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.taskContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    flex-wrap: wrap;
}

.tasks {
    font-size: clamp(16px, 5vw, 24px);
    flex: 1;
    min-width: 150px;
    word-break: break-word;
    font-weight: bold;
}

.btns {
    width: clamp(36px, 8vw, 50px);
    height: auto;
    padding: 6px;
    margin: 3px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: clamp(18px, 5vw, 24px);
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

#complete:hover {
    background-color: rgb(175, 242, 74);
}

#delete:hover {
    background-color: rgb(237, 97, 97);
}

#edit:hover {
    background-color: rgb(116, 234, 245);
}

/* Tablet Styles */
@media (max-width: 768px) {
    header {
        padding: 15px 10px;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    #taskInput {
        width: 100%;
        max-width: 100%;
    }

    #addButton {
        width: 100%;
        max-width: 200px;
    }

    #taskbox {
        width: 95%;
        max-height: 60vh;
        padding: 12px;
    }

    .taskContainer {
        flex-direction: row;
    }

    .btns {
        width: 40px;
        height: 40px;
        padding: 4px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    header {
        padding: 12px 8px;
    }

    .container {
        padding: 8px;
    }

    #taskInput {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    #addButton {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    #taskbox {
        width: 96%;
        max-height: 55vh;
        padding: 10px;
        border-radius: 10px;
    }

    #taskList {
        gap: 8px;
    }

    .taskContainer {
        padding: 8px;
        gap: 6px;
    }

    .tasks {
        font-size: 18px;
        min-width: 120px;
    }

    .btns {
        width: 36px;
        height: 36px;
        padding: 2px;
        font-size: 16px;
    }
}