/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Satisfy&display=swap');



/* ROOT DEFINITIONS */
:root {
    --primary-color: #222831;
    --secondary-color: #010202;
    --third-color: #00ADB5;
    --fourth-color: #EEEEEE;
    --error-color: #850505; 

    --gradient-1-color: #eeaeca;
    --gradient-2-color: #94bbe9;

    --rounded-md: 10px;

    --primary-font: "Roboto";
    --secondary-font: "Montserrat";
    --third-font: "Satisfy"
}


/* BODY & MAIN & HEADER */
body{
    font-family: var(--primary-font);
    background: radial-gradient(circle, var(--gradient-1-color) 0%, var(--gradient-2-color) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    padding: 3rem 5rem 1rem 5rem ;
    color: var(--primary-color);
}

main{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

header h1{
    font-weight: bold;
    font-family: var(--third-font);
    text-align: center;
}

h1{
    font-size: 40px;
}

h2{
    font-size: 30px;
}


/* FORM SECTION */
.form-section form{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-section form label{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.form-section form input{
    border: 1px solid var(--primary-color);
    border-radius: var(--rounded-md);
    padding: 1rem 1rem;
    width: 100%;
}

.form-section form .radio{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
}

.form-section form .radio span{
    margin-right: 1rem;
}

.form-section form .radio label{
    display: flex;
    justify-content: flex-start;
    gap:0;
    font-size: smaller;
    font-weight: 300;
    cursor: pointer;
}


/* BUTTONS */
.btn{
    text-align: center;
    border: 1px solid var(--primary-color);
    border-radius: var(--rounded-md);
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 3rem;
    margin: 0 auto;
    font-weight: bold;
    transition:  all 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    background-color: var(--gradient-1-color);
    color: black;
}


/* TASK SECTION */
.task-section{
    display: flex;
    flex-direction: column;
    gap: 4rem;
    min-width: 45%;
    transition: all 0.3s ease;
}

.task-section .task{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    border-bottom: 1px solid black;
    border-radius: var(--rounded-md) var(--rounded-md) 0 0;
    padding: 1rem;
    transition: all 0.3s ease;
}

.task-section .task h2{
    margin-bottom: 1rem;
}

.task-section .task span{
    border: 1px solid var(--error-color);
    border-radius: var(--rounded-md);
    width: 5rem;
    text-align: center;
    font-size: smaller;
    padding: 0.3rem 1rem;
}

.task-section .task .info-container{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.task-section .task button{
    padding: 0.3rem 1rem;
    border: 1px solid black;
    border-radius: var(--rounded-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-section .task button:hover{
    background-color: var(--error-color);
    color: white;
}

.task-section .task input{
    scale: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-section .task:has(input:checked){
    background-color: rgb(227, 245, 227);
}


/* FORM VALIDATION */
.error-container{
    font-size: smaller;
    color: var(--error-color);
    display: flex;
    flex-direction: column;
    gap:0.2rem;
    margin-top: 2rem;
}


/* TASK-SECTION FILTER & SORT BUTTONS */
.task-section-nav{
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.task-section-nav select{
    border: 1px solid black;
    border-radius: var(--rounded-md);
    padding: 0.3rem 1rem;
    cursor: pointer;
}

.task-section-nav button{
    border: 1px solid black;
    border-radius: var(--rounded-md);
    padding: 0.3rem 1rem;
    cursor: pointer;
}


/* MEDIA QUERY */
@media screen and (max-width:1000px) {
    main{
        flex-direction: column;
    }
    .form-section{
        margin-bottom: 8rem;
    }
}

@media screen and (max-width:600px) {
    body{
        padding: 3rem 1rem 1rem 1rem ;
    }
}
