* {
    margin: 0px;

}

body {
    background-color: rgb(205, 215, 222);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    color: white;

}

input {
    padding: 10px;
    margin: 0px 10px;
    font-size: 20px;
    border-radius: 180px;
    border: none;
}


.all-category {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: start;

}

.all-category span {
    padding: 5px 10px;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    transition: .3s;
}

.all-category span:hover {

    color: white;
    background-color: black;
}


main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px;

}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: .3s;
    position: relative;

}

.card:hover {
    box-shadow: 1px 1px 10px 5px rgba(128, 128, 128, 0.526);
    transform: scale(1.03);
}

.card::before {
    content: "";
    height: 80px;
    width: 3px;
    background-color: rgb(73, 74, 116);
    position: absolute;
    bottom: 110px;
    left: 10px;
}

.card img {
    border-radius: 10px;
    box-shadow: 1px 1px 10px rgba(128, 128, 128, 0.475);
}

.card span {
    background-color: rgb(213, 205, 251);
    padding: 10px;
    border-radius: 10px;
}

.card .des {
    line-height: 1.5em;
    max-height: calc(1.5em * 3);
    overflow: hidden;
    position: relative;
}

.card .des::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding-left: 5px;
}

button {
    padding: 10px;
    background-color: rgb(190, 190, 234);
    border: none;
    border-radius: 18px;
    color: rgb(33, 41, 92);
    transition: .5s;

}

button:hover {
    background-color: black;
    color: white;

}