* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #292b2c;
}

button {
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    color: whitesmoke;
}

input[type="text"], input[type="search"], input[type="number"] {
    font-family: inherit;
    padding: 3px 7px;
}

a {
    text-decoration: none;
    color: whitesmoke;
}

header {
    background-color: #0275d8;
    color: whitesmoke;
    padding: 10px 20px;
}

main {
    padding: 0 20px;
    margin-top: 10px;
}

.search-form input[type="search"]{
    width: 50%;
}

.search-form button {
    background-color: #0275d8;
}

.card {
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    padding: 30px 80px;
}

section {
    margin-bottom: 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.rak {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-evenly;
}

.add-form {
    display: none;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.add-form input, .add-form button {
    width: 100%;
}

.item {
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    text-align: center;
    width: 20%;
    height: 230px;
}

.form-container {
    width: 100%;
    height: 100%;
}

.item i {
    font-size: 40px;
    cursor: pointer;
    display: flex;
    width: inherit;
    height: inherit;
    justify-content: center;
    align-items: center;
}

.item:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.rak-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.cancel-button {
    background-color: #d9534f;
    margin-top: 5px;
    width: 100%;
    display: none;
}

.selesai-button, .belum-selesai-button {
    background-color: #5cb85c;
}

.edit-button, .add-form button {
    background-color: #0275d8;
}

.delete-button {
    background-color: #d9534f;
}

#flashMessage {
    position: fixed;
    top: 75px;
    right: 20px;
    background-color: #5cb85c;
    color: whitesmoke;
    border-radius: 3px;
    padding: 15px 25px;
    transform: translateX(400px);
}

#flashMessage i {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 18px;
    cursor: pointer;
}

#flashMessage button {
    font-size: 12px;
    background-color: #f0ad4e;
}

.flash-button {
    display: none;
    width: 100%;
    text-align: center;
    margin-top: 2px;
}

.pop-up {
    animation: popUp 5s;
    animation-fill-mode: forwards;
}

.delete-notification {
    animation: deleteNotif 5s;
    animation-fill-mode: forwards;
}

@media screen and (max-width: 1279px) {
    .search-form input[type="search"]{
        width: 80%;
    }

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

    .item {
        width: 100%;
    }

    .card {
        padding: 30px;
    }
}

@media screen and (max-width: 300px) {
    .search-form input[type="search"]{
        width: 70%;
    }

    .card {
        padding: 10px;
    }
}

@keyframes popUp {
    10% {transform: translateX(0);}
    30% {transform: translateX(0);}
    70% {transform: translateX(2px);}
    80% {transform: translateX(0px);}
    85% {transform: translateX(5px);}
    100% {transform: translateX(400px);}
}

@keyframes deleteNotif {
    10% {transform: translateX(0);}
    100% {transform: translateX(0);}
}