@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Fira Code", monospace;
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #dedede;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */

.logo-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img{
    width: 50px;
    height: 50px;
    margin: 10px 20px;
}

.heading {
    text-align: center;
    font-size: 2.5rem;
    color: #3a86ff;
    font-weight: bold;
    /* margin-bottom: 20px; */
}

/* Form Styles */
.form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.input {
    flex: 1 1 70%;
    max-width: 500px;
    height: 50px;
    font-size: 18px;
    padding: 0 10px;
    border: 2px solid #dedede;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.input:focus {
    border-color: #3a86ff;
}

.btn {
    flex: 1 1 20%;
    max-width: 150px;
    height: 50px;
    background-color: #3a86ff;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

.btn:active {
    transform: scale(0.95);
}

/* Delete All Button */
.delalltodos {
    width: auto;
    height: auto;
    padding: 10px 20px;
    margin-top: 10px;
}

/* Todo Container */
.container2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px;
    border-top: 2px solid #dedede;
    margin-top: 20px;
}

/* Todo Card */
.todo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 200px;
    min-height: 200px;
    padding: 15px;
    background-color: #f0f8ff;
    border: 2px solid #3a86ff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.todo:hover {
    transform: scale(1.05);
}

.todo_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.todo_title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #3a86ff;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
}

.todo_text {
    font-size: 1rem;
    color: #333;
    text-align: center;
    word-wrap: break-word;
    margin: 10px 0;
    overflow: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .heading {
        font-size: 2rem;
    }

    .form {
        flex-direction: column;
    }

    .input {
        max-width: 100%;
        padding: 8px;
    }

    .btn {
        max-width: 100%;
        padding: 8px;
    }

    .container2 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .heading {
        font-size: 1.8rem;
    }

    .todo {
        width: 100%;
        min-height: auto;
        padding: 10px;
    }

    .todo_title {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .todo_text {
        font-size: 0.9rem;
    }
}
