body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #000;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    margin-right: 20px; 
    position: relative;
    right: 20%;
}

.logo {
    height: 50px;
    cursor: pointer;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    margin: 0;
}

.search-bar {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 500px;
    box-sizing: border-box;
    position: relative;
    right: 10%;
}

.icons-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.icons-container .icon {
    height: 30px;
    margin-left: 10px;
    cursor: pointer;
    transition: filter 0.3s;
}

.icons-container .icon:hover {
    filter: brightness(0) invert(1);
}

.favorites-icon {
    position: absolute;
    left: 90%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

main {
    padding-top: 80px;
}

.recipe-detail {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    border: 10px solid #ffffff; 
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 800px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}


.recipe-header {
    text-align: center;
    margin-bottom: 20px;
}

.recipe-header h1 {
    margin-top: 20px;
    font-size: 35px;
    color: #333;
}

.recipe-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.recipe-content {
    margin-bottom: 20px;
}

.recipe-description {
    margin-top: 20px;
}

.ingredients,
.instructions {
    margin-bottom: 20px;
}

.ingredients ul {
    list-style-type: disc;
    padding-left: 20px;
}

footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    position: relative;
}

.footer-logo img {
    height: 50px;
}

.footer-logo .separator {
    margin: 10px 0;
    text-align: center;
    position: relative;
}

.footer-logo .separator::before,
.footer-logo .separator::after {
    content: "";
    position: absolute;
    width: 45%;
    height: 2px;
    background-color: #d30213;
    top: 50%;
    z-index: 1;
}

.footer-logo .separator::before {
    left: 0;
    transform: translateY(-50%);
}

.footer-logo .separator::after {
    right: 0;
    transform: translateY(-50%);
}

.footer-logo .separator p {
    margin: 0;
    padding: 0 20px;
    color: #ffffff;
    background-color: #000;
    display: inline;
    position: relative;
    z-index: 2;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.footer-social a {
    margin: 10px;
}

.footer-social img {
    height: 40px;
}

.footer-links {
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-links li {
    margin: 0 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #e60012;
}

.footer-rights {
    margin-top: 20px;
    font-size: 14px;
}

.separator {
    position: relative;
    text-align: center;
    margin: 40px 0;
}

.separator::before,
.separator::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: #e60012;
    top: 50%;
    z-index: 1;
}

.separator::before {
    left: 0;
    transform: translateY(-50%);
}

.separator::after {
    right: 0;
    transform: translateY(-50%);
}

.separator h2 {
    margin: 0;
    padding: 0 20px;
    color: #e60012;
    background-color: #fff;
    display: inline;
    position: relative;
    z-index: 2;
}

.rating {
    display: flex;
    gap: 5px;
}

.rating span {
    font-size: 20px;
    cursor: pointer;
}

.rating span:hover,
.rating span:hover ~ span {
    color: #ffc107;
}

.recipe-content {
    margin-top: 20px;
}

.ingredients ul {
    list-style-type: disc;
    padding-left: 20px;
}

.instructions p {
    margin: 10px 0;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    border: 10px solid #ffffff; 
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 800px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.recipe-interactions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
}

.favorite-button {
    background-color: transparent; 
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.favorite-button img {
    height: 35px; 
    width: auto;  
}

.rating {
    display: flex;
    gap: 5px;
}

.rating-star {
    height: 25px; 
    cursor: pointer;
    transition: opacity 0.3s;
}

.rating-star:hover,
.rating-star:hover ~ .rating-star {
    opacity: 0.6; 
}

.recipe-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}
