body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #eaeaea; /* Slightly darker background */
    color: #333; /* Darker text color for better contrast */
}

header {
    background-color: #444; /* Darker header */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Stronger shadow for depth */
    color: #fff; /* Light text for dark background */
}

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

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff; /* Light text for dark background */
    font-weight: bold;
    padding: 5px 10px;
    font-size: 1.1em; /* Slightly larger font size */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

nav ul li a:hover {
    background-color: #666; /* Dark hover background */
    color: #fff; /* Ensuring text is visible on hover */
    border-radius: 4px; /* Rounded corners for modern look */
}

main {
    width: 80%;
    margin: 20px auto;
    background-color: #3b3b3b; /* Lighter than body for contrast */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Stronger shadow for depth */
    color: #fff; /* Light text for dark background */
}

img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.ingredients, .method {
    text-align: left;
    margin-top: 20px;
}

footer {
    background-color: #444; /* Darker footer */
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3); /* Stronger shadow for depth */
    color: #fff; /* Light text for dark background */
}

footer a {
    background-color: #333; /* Dark background for visibility */
    color: #fff; /* Light text color */
    padding: 8px 15px; /* Padding for size */
    text-decoration: none; /* Removes underline */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

footer a:hover {
    background-color: #555; /* Slightly lighter color on hover */
}

.recipe-card {
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden; /* Ensures the image and text are contained within the border-radius */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Adds depth */
}

.recipe-card a {
    display: block; /* Makes the entire area clickable */
    text-decoration: none;
    color: #333; /* Text color */
    background-color: #f9f9f9; /* Light background for the link */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
    padding: 10px; /* Padding for spacing */
}

.recipe-card a:hover {
    background-color: #666; /* Darker background on hover */
    color: #fff; /* Ensuring text is visible on hover */
}

.recipe-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd; /* Adds a separator between image and text */
}

.recipe-card h3 {
    margin: 10px 0; /* Adds spacing above and below the title */
}
