body {
    padding: 0;
    background-color: #d9e7e2;
    font-family: 'Poppins';
    max-width: 100%;
    margin: 0;
}

/* Header */
header {
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
}

h1 {
    text-align: center;
    color: #23362f;
    width: 100%;
    padding-top: 50px;
}

/* Main section mobile phone */

main {
    padding: 10px;
}

.categories {
    display: flex;
    justify-content: space-evenly;
    max-width: 100%;
    padding: 20px 0 20px 0;
    border-radius: 5px 5px 0 0;
    border-bottom: 2px solid gray;
    gap: 2px;
    flex-direction: column;
}

h2 {
    text-align: center;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* Filter on Kitchen for mobile phone*/

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

#filterDropdown {
    cursor: pointer;
    border-radius: 10px;
    background-color: whitesmoke;
    max-width: 80%;
    font-weight: 700;
    margin: 10px;
    padding: 10px;
    border: none;
    box-shadow: 10px 5px 5px grey;
    color: black; 
}

/* Sort Container */

.sort-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0px 25px 25px 25px;
}

/* buttons */
.shortest,
.longest,
.decending,
.ascending {
    border-radius: 10px;
    background-color: whitesmoke;
    max-width: 100px;
    font-weight: 700;
    margin: 10px;
    padding: 10px;
    border: none;
    box-shadow: 10px 5px 5px grey;
    cursor: pointer;
}

.ascending:hover,
.shortest:hover,
.longest:hover,
.decending:hover {
    background-color: rgb(96, 96, 122);
    color: white;
}

.random-container {
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.random-button {
    border-radius: 10px;
    background-color: #74c2a8;
    max-width: 200px;
    font-weight: 700;
    margin: 10px;
    padding: 10px;
    border: none;
    border: none;
    box-shadow: 10px 5px 5px grey;
    cursor: pointer;
}

.random-button:hover {
    background-color: rgb(96, 96, 122);
    color: white;
}

button {
    appearance: none;
    color: black; 
}

/* Tablet and iPads */
@media (min-width: 667px) {
    form {
        flex-direction: row;
    }

    .categories {
        flex-direction: row;
    }
}



/* Card Contents */

section {
    display: grid;
    gap: 15px;
    background: #d9e7e2;
    grid-template-columns: repeat(auto-fit, minmax(300px, 3fr));
    padding: 20px;
    border: red;
}

.card {
    display: flex;
    border-radius: 50px 0px 50px 0px;
    padding: 7px;
    max-width: 300px;
    flex-direction: column;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card h3 {
    font-size: 20px;
}

.card ul {
    font-size: 12px;
}

.card:hover {
    background-color: rgb(96, 96, 122);
    color: white;
    box-shadow: 10px 5px 5px grey;
}

.card-image {
    width: 100%;
    height: 280px;
    border-radius: 50px 0px 50px 0px;
    overflow: hidden;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.titleIngredients {
    font-weight: bolder;
}
