@import url(reset.css);

body {
    background-color: rgb(249, 251, 255);
    padding: 20px;
}

html, * {
    font-family: "main";
}

h1 {
    font-weight: 1000;
    font-size: 28px;
    margin-bottom: 10px;
}

button {
    font-weight: 600;
    transition: transform 0.1s;
    background-color: rgb(245, 245, 245);
    border-radius: 5px;
    border: 2px solid black;
}

button:hover, input[type=date]:hover {
    transform: scale(1.05);
}

label {
    font-weight: 600;
}

input {
    font-weight: 500;
}

input:focus {
    outline: 2px solid rgb(187, 187, 187);
}

input[type=date] {
    background-color: rgb(245, 245, 245);
    border-radius: 5px;
    border: 2px solid black;
    transition: all 0.1s;
}

/* Classes */

.task {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgb(250, 250, 250);
    max-width: 90%;
    font-size: 24px;
    border-radius: 10px;
    padding: 10px;
    box-shadow:
    0 0 4px rgb(140, 140, 140);
}

.icon, #edit, #delete, #complete {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    background-position: 50% 50%;
    background-size: 100% 100%;
}

/* IDs */

#main {
    background-color: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    min-width: 300px;
    width: 90%;
    margin: auto;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow:
    0 0 3px rgb(187, 187, 187);
}

#inputs {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
    gap: 10px;
}

#inputs > input {
    padding: 5px;
    font-size: 16px;
    background-color: rgb(220, 220, 220);
    border: none;
    border-radius: 5px;
}

#add {
    width: 100px;
}

#display-incomplete, #display-completed {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 10px;
}

#incomplete-toggle, #completed-toggle {
    width: 150px;
}

#completed-toggle {
    margin-top: 10px;
}

#values {
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#task-buttons {
    display: flex;
    gap: 10px;
}

#toggleInputs {
    background-image: url(images/add-task.svg);
}

#edit {
    background-image: url(images/edit.svg);
}

#delete {
    background-image: url(images/delete.svg);
}

#complete {
    background-image: url(images/complete.svg);
}

#buttons {
    display: flex;
    align-items: center;
    height: 30px;
    gap: 5px;
}

#clear {
    display: block;
    margin: auto;
}

#secret {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    top: 0;
    left: 0;
    opacity: 0.8;
}

/* Fonts */

@font-face {
    font-family: "main";
    src: url(fonts/main.ttf);
}