body {
    margin: 0;
    background-color: #444444;
}

h1 {
    font-size: 64px;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 36px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 18px;
}

main {
    display: flex;
    flex-direction: column;
    width: 75vw;
    margin-left: 22vw;
}

aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 19vw;
    width: 100%;
    height: 100vh;
    padding-inline: 30px;
    position: fixed;
    border-right: 1px solid;
    border-color: rgba(180, 180, 180, 0.2);
    overflow-y: auto;
}

/* Main Section */
#token {
    margin-bottom: 50px;
    color: white;
    align-self: center;
}

#search-stuff {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    gap: 1vw;
}

#recipe-searchbar {
    align-self: left;
    width: 65vw;
    height: 45px;
    padding-left: 20px;
    margin-left: 50px;
    border-radius: 99px;
    border: none;
}

#no-results {
    color: red;
    font-size: 20px;
    margin-left: 80px;
    margin-top: -10px;
}

#button-filter {
    align-self: center;
    width: 100px;
    height: 45px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    background-color: #2c2c2c;
    color: white;
    font-size: 15px;
}

#recipe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 140px;
    margin-left: 150px;
    margin-bottom: 10px
}

.recipe {
    display: flex;
    align-self: left;
    width: 28vw;
    background-color: #D9D9D9;
    border-radius: 15px;
}

.recipe-image {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    width: 50%;
}

.recipe-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 25px;
    width: 10dvw;
}

.recipe-name {
    margin-bottom: -5px;
}

.recipe-link {
    font-size: 16px;
    overflow-wrap: break-word;
    color: grey;
    padding-top: 10px;
}

.bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 15vw;
}

/* Aside Section */
#aside-title {
    color: white;
    margin-bottom: 20px;

}

#ingredients-searchbar {
    width: 18vw;
    min-height: 45px;
    padding-left: 20px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border: none;
    margin-bottom: 20px;
}

.ing-search-result {
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    width: 19.1vw;
    height: 40px;
    text-align: left;
    padding-left: 20px;
    border: none;
    border-top: 1px solid grey;
}

.ingredients {
    font-size: 14px;
}

#ingredient-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px 40px;
    margin-block: 40px;
}

.ingredient {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding-inline: 8px;
    background-color: #2c2c2c;
    color: white;
    border-radius: 6px;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 35px;
}

#clear-ingredients {
    background-color: #2c2c2c;
    color: white;
    border: none;
    border-radius: 6px;
    height: 45px;
    width: 18vw;
    cursor: pointer;
}

.linebreak {
    height: 0px;
    border: 1px solid white;
    padding-inline: 30px;
    margin-block: 20px -5px;
    width: 19vw;
}

#filter-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.filter-title-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11vw;
    padding-block: 10px;
}

#clear-filters {
    color: white;
    font-size: 20px;
    text-decoration: underline;
    cursor: pointer;
}

.filter-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -17px;
    padding-block: 10px;
    padding-bottom: 20px;
}

.filter-seperator {
    color: white;
    height: 0px;
    border: 0.5px solid;
    margin-top: -35px;
    width: 18.25vw;
}

.filter-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 18.25vw;
    width: 100%;
}

.filter-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: left;
    width: 100%;
}

.fa-chevron-down,
.fa-chevron-up {
    cursor: pointer;
    color: white;
}

.minimum,
.maximum {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding-left: 20px;
}

.minimum {
    margin-top: -20px;
}

.filter-input {
    width: 40px;
    height: 30px;
}

#intolerances {
    width: 10vw;
    height: 50px;
    margin-bottom: 10px;
    font-size: 16px;
}

.min-text {
    color: white;
    font-size: 18px;
}

.filter {
    color: white;
    font-size: 20px;
    text-wrap: nowrap;
}

#show-aside {
    height: 50px;
    background-color: white;
    font-size: 16px;
    border: none;
    margin-block: -20px 20px;
    border-radius: 99px;
    padding-inline: 10px;
    display: none;
}

#show-aside2 {
    height: 40px;
    background-color: white;
    border: none;
    margin-block: 20px;
    border-radius: 99px;
    padding-inline: 10px;
    display: none;
}

@media (max-width: 1322px) {
    main {
        align-items: center;
    }

    #recipe-searchbar {
        width: 60vw;
    }

    #recipe-container {
        align-items: center;
        margin-left: 16vw;
        gap: 10px 0px;
    }

    .recipe {
        width: 50vw;
        height: 35vh;
    }
}

@media (max-width: 958px) {
    #recipe-searchbar {
        width: 50vw;
        margin-left: 0px;
    }
}

@media (max-width: 1000px) {
    main {
        width: 100vw;
        justify-content: center;
        align-self: center;
        margin-left: 0px;
        margin-right: 0px;
    }

    #show-aside,
    #show-aside2 {
        display: block;
        cursor: pointer;
    }

    aside {
        display: none;
        max-width: 100vw;
        padding-inline: 0px;
    }

    #aside-title {
        font-size: 32px;
        margin-bottom: 0px;
    }

    #ingredients-searchbar {
        width: 80vw;
        border-radius: 99px;
    }

    #clear-ingredients {
        margin-top: -50px;
    }

    .linebreak,.filter-seperator {
        width: 100vw;
    }

    .filter-name {
        max-width: 80vw;
    }

    #filter-list {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 40px;
    }

    .filter-title-section {
        gap: 40px;
        justify-content: center;
    }

    #recipe-container {
        align-items: center;
        margin-left: 0px;
        width: 70vw;
    }

    .recipe {
        width: 100%;
        height: 40vh;
        flex-direction: column;
    }

    .recipe-image {
        width: 100%;
        height: 60%;
        border-top-right-radius: 99px;
    }

    .recipe-info {
        align-items: center;
        justify-content: center;
        padding-inline: 10px;
        width: 75%;
        align-self: center;
    }

    .bottom-row {
        align-self: center;
        justify-content: center;
        width: 100%;
    }

    .recipe-name,
    .recipe-link,
    .diet-type {
        text-align: center;
    }
}

@media (max-width: 802px) {
    .diet-type {
        margin-bottom: 20px;
    }

}

@media (max-width: 613px) {
    .recipe {
        height: 50vh;
    }
    .recipe-link {
        width: 75%;
    }
    .ing-search-result {
        text-align: center;
        padding-left: 0px;
    }
}