
body , h1, h2, p, ul, ol, li, nav, img {
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

#logo {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 20px;
}


header {
    background-color: #f8f8f8;
    padding: 10px 20px;
    text-align: center;
}

header #logo a {
    font-size: 24px;
    color: #333;
    text-decoration: none;
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

nav input[type="search"] {
    padding: 5px;
}


#featured-content {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#featured-recipe img {
    width: 100%; /* This is assumed to be full-width as per your layout */
    height: auto;
}

#yt-link {
    display: block;
    margin-top: 10px;
}

#pairing img {
    width: 50px;
    height: auto;
    vertical-align: middle;
}

#pairing p {
    display: inline;
    margin-left: 10px;
}

aside {
    width: 35%;
}

#more-recipes {
    position: relative;
    margin-top: 40px;
    overflow: hidden; /* Hide the overflow */
}

#recipe-slider {
    display: flex; /* Use flexbox to layout children horizontally */
    flex-wrap: nowrap; /* Prevent wrapping of items */
    overflow-x: auto; /* Allow horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling when clicking prev/next */
}

#recipe-slider ul {
    display: flex; /* Flex container for the list items */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    width: 400%; /* Arbitrary large width to accommodate all child elements */
    transition: transform 1.5s ease-in-out; /* Smooth transition for sliding */
}

#recipe-slider li {
    list-style: none; /* Remove list item markers */
    flex: 0 0 25%; /* Flex basis of 25%, no grow, no shrink */
    max-width: 25%; /* Each item can take up to 25% of the slider width */
    box-sizing: border-box; /* Include padding and border in the element's width */
}

/* Adjust the maximum size of the images within the slider */
#recipe-slider img {
    max-width: 100%; /* Limit image width to 100% of its parent */
    max-height: 100%; /* Limit image height to 100% of its parent */
    object-fit: contain; /* Contain the image within the element bounds */
}

/* You may want to adjust these for better responsiveness */
#featured-recipe img {
    max-width: 100%; /* Full width of its container */
    height: auto; /* Maintain aspect ratio */
}


@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scroll to half the total width */
}

#recipe-slider li {
    width: 12.5%; /* Each item is 1/8th of the ul width */
    flex-shrink: 0;
}

#recipe-slider .control_prev, #recipe-slider .control_next {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

#recipe-slider .control_prev { left: 10px; }
#recipe-slider .control_next { right: 10px; }

.recipe img {
    width: 100%;
    height: auto;
}

.recipe p {
    text-align: center;
    margin-top: 5px;
}

/* This is the placeholder image CSS class */
.placeholder-image {
    background-image: url('images/placeholder.png');
    background-size: cover;
    height: 150px; /* Fixed height for the placeholder image */
}

header #logo a {
    font-size: 24px;
    color: #333;
    text-decoration: none;
}


img {
    max-width: 100%;
    height: auto;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #f8f8f8;
    color: #333;
}
