:root {
    --size-checkbox: clamp(15px, 2vw, 20px);
}

* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    font-size: max(1vw, 15px);
    color: #024CAA;
}


.container {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
}

.main {
    width: clamp(20px, 80%, 600px);
    background-color: #BCF2F6;
    padding: 10px;
    border-radius: 20px 5px 20px 5px;
}

h1 {
    font-size: 2rem;
    text-align: center;
    outline: none;
    margin-bottom: 1vh;
    color: #024CAA;
}

.content-task {
    outline: none;
    font-size: 1.5rem;
    border: none;
    background-color: transparent;
    overflow: hidden;
    resize: none;
}


h1:focus,
.content-task:focus {
    border-bottom: 2px solid #006BFF;
}

.task {
    display: grid;
    grid-template-columns: 5% 86% 5%;
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    column-gap: max(3px, 2%);
}

.task+.task {
    margin-top: 10px;
}

input[type="checkbox"] {
    appearance: none;
    width: var(--size-checkbox);
    height: var(--size-checkbox);
    border: 0.15em solid #006BFF;
    transition: box-shadow, transform 0.5s ease;
}

input[type="checkbox"]:hover {

    box-shadow: 0 0 5px rgb(36, 22, 240);
}

input[type="checkbox"]:checked {
    transform: rotate(15deg);
    box-shadow: 5px 5px rgb(36, 22, 240), -5px -5px rgb(26, 26, 206);
}


@media only screen and (max-width:820px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .daystreak {
        width: 90%;
        background-color: aqua;
        border-radius: 10px;
        display: flex;
        align-items: center;
    }

    .num {
        font-size: 10rem;
    }

    .daystreak :nth-child(2) {
        font-size: 3rem;
    }



}

@media only screen and (min-width:820px) {
    .daystreak {
        width: 200px;
        height: 360px;
        border-radius: 20px;
        background-color: aquamarine;
        text-align: center;
    }

    .num {
        font-size: 10rem;
    }

    #completebtn {
        height: 50px;
        background-color: #BCF2F6;
        padding: 10px;
        border-radius: 10px;
    }

    .daystreak :nth-child(2n) {
        font-size: 4rem;

    }

}

button,
input[type="button"] {
    border: none;
    background-color: transparent;
}

.deletebtn {
    color: rgb(241, 45, 45);
}

.deletebtn:hover {
    font-weight: 900;
}

#btnAdd {
    background-color: #024CAA;
    padding: 10px;
    width: 80%;
    border-radius: 10px;
    margin: 10%;
    color: white;

}