@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000,#14213d);
}

#container {
    max-height: 400px;
    width: max-content;
    padding: 30px 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: #ffffff;
    overflow: auto;
    overflow-x: hidden;
}

#container::-webkit-scrollbar{
    width: 1px;
    background: transparent;
}

#app-name {
    font-size: 2rem;
    font-family: "Archivo Black", sans-serif;
    color: #00d9ff;
}

#container .add-task{
    background-color: #e5e5e5;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
}

#container .add-task .input {
    font-family: "Josefin Sans", sans-serif;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    background-color: #e5e5e5;
    backdrop-filter: blur(2px);
    color: rgba(128, 90, 213);
    outline: none;
    font-weight: 800;
    width: max-content;
}

#container .add-task .input::placeholder {
    color: rgba(128, 90, 213);
}

#container .add-task button {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 800;
    padding: 10px 15px;
    border-radius: 15px;
    border: none;
    background: rgba(128, 90, 213);
    backdrop-filter: blur(2px);
    color: white;
}

ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 250px;
}

ul li{
    list-style: none;
    font-size: 17px;
    padding: 8px 16px 8px 32px;
    border-radius: 20px;
    width: 100%;
    color: rgba(128, 90, 213);
    font-family: "Josefin Sans";
    cursor: pointer;
    user-select: none;
    position: relative;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

ul li::before{
    content: '';
    position: absolute;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background-image: url(uncheck.png);
    background-size: cover;
    background-position: center;
    top: 3px;
    left: 2px;
}

ul li.checked{
    text-decoration: line-through;
    font-weight: 400;
}

ul li.checked::before{
    background-image: url(check.png);
}

ul li span{
    font-size: 25px;
    position: absolute;
    right: 0px;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    text-align: center;
    font-family: 'math';
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

ul li span:hover{
    background-color: #e5e5e5;
}

@media (max-width: 400px) {
    #container {
        max-height: 100vh;
        height: 100%;
        width: 100%;
        border-radius: 0px;
        overflow-x: hidden;
    }
}