@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    font-family: Raleway, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header,footer {
    background: #5F30E2;
    padding: 2px 0 2px 16px;
    color: white;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.wrapper .container {
    width: 1024px;
    border-radius: 8px;
    margin: 16px;
    background: #F8F9FA;
    padding: 16px;
    flex-grow: 1;
    height: fit-content;
}



.item {
    border-radius: 16px;
    margin-top: 16px;
    padding: 12px 24px 12px 24px;
    background: white;
    display: flex;
    align-items: center;
}

.item > .inner h2 {
    margin-bottom: unset;
}

.item > .inner p {
    margin-top: 5px;
}

.form {
    display: flex;
    padding: 16px;
    flex-direction: column;
    border-radius: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: lighter;
}

.shadow {
    box-shadow: 0 5px 10px rgba(154, 160, 185, .05), 0 15px 40px rgba(166, 173, 201, .2);
}

input[type=text], input[type=date],textarea {
    font-family: Raleway, sans-serif;
    background: #F5F1FF;
    border: 2px solid #9475EA;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    margin-bottom: 8px;
    font-size: 24px;
    width: 100%;
}

.btn-submit {
    width: fit-content;
    font-family: Raleway, sans-serif;
    border-radius: 16px;
    padding: 12px 24px;
    border: 2px solid #5F30E2;
    color: black;
    font-size: 24px;
    margin-top: auto;
    align-self: flex-end;
    cursor: pointer;
}

.btn-submit:hover {
    background: #5F30E2;
    color: white;
}

input[type=text], input[type=date], textarea, .btn-submit:focus {
    outline: none;
}

.text-center {
    text-align: center;
}

.form-title {
    margin: auto 0;
}

.check-button {
    width: 40px;
    height: 40px;
    background: url('../assets/check-outline.svg');
    background-size: contain;
    margin-left: auto;
    cursor: pointer;
    border: none;
}

.check-button:hover {
    background: url('../assets/check-solid.svg');
    background-size: contain;
}

.trash-button {
    width: 40px;
    height: 40px;
    background: url('../assets/trash-outline.svg');
    background-size: contain;
    margin-left: 16px;
    cursor: pointer;
    border: none;
}

.trash-button:hover {
    background: url('../assets/trash-fill.svg');
    background-size: contain;
}

.undo-button {
    width: 40px;
    height: 40px;
    background: url('../assets/undo-ouline.svg');
    background-size: contain;
    margin-left: auto;
    cursor: pointer;
    border: none;
}

.undo-button:hover {
    background: url('../assets/undo-ouline.svg');
    background-size: contain;
}

.check-button:focus, .trash-button {
    outline: none;
}

footer h3 {
    text-align: center;
}

footer h3 span {
    font-weight: 700;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

.detail-tugas {
    width: 350px;
    background-color: #5F30E2;
    border-radius: 12px;
    padding: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    transition:0.3s;
    animation: slideDown 0.5s forwards;
}

.detail-tugas h2 {
    color: white;
}

.detail-tugas p {
    color: white;
    margin-bottom: 50px;
}

.detail-tugas h4 {
    line-height: 2px;
    color: white;
}

.task-status-not-finish span {
    background-color: darkred;
    padding: 3px 5px;
    border-radius: 2px;
    font-size: 0.9rem;
}

.task-status-finish span {
    background-color: darkgreen;
    padding: 3px 5px;
    border-radius: 2px;
    font-size: 0.9rem;
}

.field-button-close-notif {
    float: right;
}

.button-close-notif {
    text-align: right;
    padding: 5px 17px;
    background-color: darkred;
    color: white;
    border: none;
    font-size: 1.1rem;
    border-radius: 5px;
    border: 1px sollid #5F30E2;
    margin-right: 4px;
    margin-top: 16px;
}


@media only screen and (max-width: 1024px) {
    .wrapper {
        margin: 0;
    }

    .wrapper .container {
        width: 100%;
    }

    .list-item {
        width: 95%;
    }

    .form {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    header {
        text-align: center;
    }

    .wrapper .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .input-tugas {
        max-width: 80%;
        text-align: center;
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .check-button {
        width: 40px;
        height: 39px;
    }

    .trash-button {
        width: 40px;
        height: 34.4px;
    }

    .undo-button {
        width: 40px;
        height: 34.4px;
    }

}