@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.off-white {
    color: rgb(250, 250, 250) !important;
}

html {
    scroll-behavior: smooth;
}

.header {
    text-align: center;
    font-size: 48px;
    padding-top: 8px;
    /* color: rgb(255, 255, 255); */
}

section {
    /* background-color: rgb(245, 245, 245); */
    /* background-color: #81E09C; */
    background-color: #244D6A;
}

.container {
    padding: 50px 0;
    width: 100%;
}

.row {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

.searchform {
    height: 100%;
    width: 80%;
}

.searchbar {
    width: 100%;
    height: 64px;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 10px 0px;
    margin-bottom: 48px;
}

.searchbar__input {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    font-size: 2em;
}

.searchbar__icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12%;
    width: 24px;
    height: 24px;
    transition: all 400ms ease;
    /* color: #D47A39; */
    /* filter: invert(50%) sepia(89%) saturate(360%) hue-rotate(343deg) brightness(91%) contrast(95%); */
    filter: invert(25%) sepia(18%) saturate(1819%) hue-rotate(162deg) brightness(92%) contrast(85%);
}


.searchbar__icon:hover {
    transform: translateY(-50%) scale(1.2);
}

.searchbar__icon:active{
    transform: translateY(-50%) scale(0.8);
}

.click {
    transition: all 400ms ease;
    cursor: pointer;
}

.click:hover {
    transform: scale(1.2);
}

.click:active {
    transform: scale(0.8);
}

/* 

    RECIPE CARDS

*/

.searchresults {
    display: flex;
    flex-direction: column;
    height: 800px;
    overflow: clip scroll;
    /* background-color:rgb(211, 197, 197); */
    /* background-color: #83F783; */
    background-color: #D47A39;
    border-radius: 16px;
    position: relative;
}

.searchresults::-webkit-scrollbar{
    display: none;
}

.search__title {
    position: sticky;
    align-self: center;
    top: 0px;
    width: 100%;
    text-align: center;
    /* background-color:#83F783; */
    background-color: #731200;
    color: white;
    margin-bottom: 8px;
    height: 48px;
    border-radius: 16px 16px 0px 0px;
}

.search__title--text{
    position: relative;
    font-size: 26px;
    padding: 4px 0px;
    margin-top: 4px;
}

.random {
    position: absolute;
    right: 16px;
    height: 32px;
    width: 32px;
    top: 8px;
    /* filter: invert(57%) sepia(5%) saturate(2556%) hue-rotate(49deg) brightness(91%) contrast(85%); */
    filter: invert(1);
}

.card {
    display: flex;
    width: 80%;
    justify-items: start;
    padding: 0 24px;
    height: auto;
    align-items: center;
    align-self: center;
    margin-bottom: 32px;
    margin-left: 64px;
}

.card__info {
    display: flex;
    flex-direction: column;
    /* margin-left: 16px; */
    align-self: flex-start;
    width: 80%;
}

.card__img {
    height: 240px;
    width: 240px;
    margin-right: 32px;
}

.card__title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    /* color: rgb(230, 230, 230) */
    color: black;
}

.card__desc {
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card__ingredient {
    margin-bottom: 4px;
    padding-right: 24px;
    flex: 1 1 50%;
    /* color: rgb(230, 230, 230); */
    color: black;
}

/*

    MATCHER

*/

.matcher {
    min-height: 800px;
    width: 100%;
    background-color: #D9A30F;
    align-self: center;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.matcher__input {
    width: 100%;
    height: 40px;
    font-size: 2em;
    margin-top: 48px;
}

.matchform {
    width: 50%;
}

.grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 33% 33% 33%;
    width: 85%;
    margin-left: 16%;
}

.grid__item {
    display: flex;
    width: 200px;
    height: 32px;
}

.grid__item--icon {
    margin-right: 8px;
    /* cursor: pointer; */
}

.grid__item--text {
    align-self: center;
    overflow-wrap: break-word;
    inline-size: 80%;
}

.grid__match {
    display: grid;
    margin-top: 32px;
    width: 90%;
    grid-template-columns: 25% 25% 25% 25%;
}

.match__result {
    display: flex;
    height: 48px;
    width: 100%;
    margin-top: 16px;
}