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

.bar {
    border: inset 1px #c1c1c1;
    border-radius: 100%;
    margin: 50px;
    width: 50%;
    justify-self: center;
}

header {
    background-image: url('../images/header-background.webp');
    background-position: center;
    background-size: cover;
    height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

header h1 {
    font-size: 80px;
    text-shadow: 10px 7px 5px #000;
    color: #d0fa87;
}

#nav-bar {
    box-shadow: inset 0px 0px 20px 5px #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    gap: 2rem;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#search-container {
    display: flex;
    justify-content: center;
    position: relative;
}

#search-input {
    background-color: #f1f1f1;
    border-radius: 15px;
    width: 650px;
    height: 1.6rem;
    font-size: .9rem;
    text-align: center;
}

#search-input-responsive {
    width: 100%;
    box-shadow: inset 0px 0px 10px 1px #c1c1c1;
    background: #f1f1f1;
    border: none;
    height: 1.6rem;
    font-size: 1rem;
    text-align: center;
    display: none;
}

#note {
    display: flex;
    justify-content: center;
    font-size: 1.6rem;
    margin-inline: 5px;
    text-align: center;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 10%;
    padding-right: 10%;
    gap: 2rem;
}

.recipe-card {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 1rem;
    width: 100%;
    padding: 2rem;
    box-shadow: 10px 10px 20px 1px #000;
    border-radius: 10px;
    background-image: url("../images/card-background.webp");
}

.tutorial-video {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    box-shadow: 4px 4px 15px 1px #000;
    cursor: pointer;
}

.tutorial-video img {
    width: 100%;
    height: 100%;
    border-radius: 40px;
}

.recipe-container {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.recipe-name {
    font-size: 30px;
    color: #f1f1f1;
}

.ingredient-list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    list-style: none;
    color: #f1f1f1;
    max-height: 200px;
}

.ingredient {
    width: 50%;
    font-size: 1.2rem;
    margin-right: 1.5px;
    margin-left: 1.5px;
}

footer {
    display: flex;
    padding: 3rem;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
    gap: 2rem;
}

#media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 200px;
    height: 50px;
}

.media-icon-tiktok,
.media-icon-instagram,
.media-icon-facebook {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f1f1f1;
    box-shadow: inset 0px 0px 4px 1px #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-icon-tiktok:hover {
    background-color: #2a2a2a;
    transition: ease-in-out 2s;
}

.media-icon-instagram:hover {
    transition: ease-in-out 2s;
    background: #bd2872;
}

.media-icon-facebook:hover {
    background-color: #0bd600;
    transition: ease-in-out 2s;
}

.media-icon-tiktok img,
.media-icon-instagram img,
.media-icon-facebook img {
    width: 40px;
    height: 40px;
}

#contact {
    display: flex;
    gap: 2rem;
    align-items: center;
}

#mail {
    font-size: 1.2rem;
}

@media (max-width: 1700px) {

    main {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;

    }

    .recipe-card {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 2rem;
    }

    .recipe-name {
        font-size: 30px;
        text-align: center;
    }
}

@media (max-width: 1440px) {

    #note {
        font-size: 1.2rem;
    }

    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ingredient {
        width: 50%;
        font-size: .8rem;
    }
}

@media (max-width: 820px) {

    main {
        display: block;
    }

    .recipe-card {
        margin-bottom: 2rem;
    }

    .ingredient-list {
        text-align: center;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
    }

    #contact {
        position: relative;
        right: 0;
    }
}

@media (max-width: 700px) {

    header {
        height: 250px;
    }

    header h1 {
        font-size: 60px;
    }

    #search-input {
        width: 400px;
        font-size: .6rem;
    }

    #note {
        font-size: 1rem;
        text-align: center;
    }

    main {
        display: block;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
    }

    #media {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
        height: 50px;
    }

    #contact {
        display: flex;
        gap: 2rem;
        align-items: center;
        justify-content: center;
        margin-left: 0;
    }

    #mail {
        font-size: 1.2rem;
        display: flex;
        padding-right: 0;
    }
}

@media (max-width: 500px) {

    header {
        height: 150px;
    }

    header h1 {
        font-size: 30px;
    }

    #search-input {
        width: 280px;
        font-size: .6rem;
    }

    .recipe-name {
        font-size: 20px;
    }


    .ingredient {
        width: 50%;
        font-size: .8rem;
    }
}

@media (max-width: 310px) {

    header h1 {
        font-size: 15px;
    }

    #search-input {
        width: 100px;
        font-size: .6rem;
    }

    .recipe-name {
        font-size: 12px;
    }

    .ingredient-list {
        display: block;
        flex-wrap: nowrap;
        list-style: disc;
        text-align: start;
    }

    .ingredient {
        width: 100%;
        font-size: 0.7rem;
    }

    .media-icon-tiktok,
    .media-icon-instagram,
    .media-icon-facebook {
        width: 30px;
        height: 30px;
    }

    .media-icon-tiktok img,
    .media-icon-instagram img,
    .media-icon-facebook img {
        width: 20px;
        height: 20px;
    }

    #mail {
        font-size: .7rem;
    }
}