body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.content-wrapper {
    flex: 1;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


@media (max-width: 400px) {
    .container {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
}

.detail-image {
    width: 100%;  /* Ensures the image always takes up 100% of the container's width */
    height: auto; /* Maintains the image's aspect ratio */
    margin: 20px 0; /* Adds some space above and below the image */
    display: block; /* Ensures the image displays as a block element */
}




h1 {
    color: #555;
    font-size: 2.5em;
    margin-bottom: 20px;
}
.back-button {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px 0;
    text-align: center;
}

.back-button a {
    text-decoration: none !important;
    color: #555 !important;
    background-color: #f4f4f4 !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    border: 1px solid #ccc !important;
    font-weight: bold !important;
    transition: background-color 0.3s !important;
}

.back-button a:hover {
    background-color: #e4e4e4 !important;
}

.recipes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.recipe-card {
    flex: 1 1 100%;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex; /* Make children sit side by side */
    justify-content: space-between; /* Push children to the extremes of the container */
    align-items: center; /* Vertically aligns the image and the text content */
    gap: 15px;
    align-items: flex-start; 
}

.recipe-card a {
    text-decoration: none;
    color: inherit;
    flex-grow: 1; /* Allows the link to take up the full width of the card */
    display: flex; /* Make children (image and text) sit side by side */
    align-items: center; /* Vertically aligns the image and the text content */
    justify-content: space-between; /* Push children to the extremes of the container */
    padding: 0; /* Ensures no padding is applied */
    margin: 0; /* Ensures no margin is applied */
}

.recipe-card img.recipe-thumb {
    width: 100px; /* Make the image square */
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0; /* Prevents the image from shrinking */
}

.recipe-text {
    flex-grow: 1; /* Allows the text to take up the remaining horizontal space */
    display: flex;
    padding-left: 15px;
    flex-direction: column; /* Stacks the title and description vertically */
    align-items: flex-end; /* Right aligns the text */
}


/* Tablet and larger */
@media (min-width: 600px) {
    .recipe-card {
        flex: 1 1 calc(50% - 20px); /* two cards per row */
    }
}

/* Desktop and larger */
@media (min-width: 900px) {
    .recipe-card {
        flex: 1 1 calc(33.333% - 20px); /* three cards per row, as you originally designed */
    }
}



.recipe-card h2 {
    font-size: 1.5em;
    margin: 0 0 10px; /* Adds space below the title */
}

.recipe-card p {
    font-size: 1em;
    margin: 0;
    flex-grow: 1; /* Allows the description to take up the remaining vertical space */
}

.recipe-thumb {
    width: 100px; 
    height: 100px;
    padding-right: 15px;
    object-fit: cover; 
    border-radius: 50%; 
    flex-shrink: 0; 
}

.site-logo {
    display: block;
    width: 40%;  /* Set to 30% of its container's width */
    margin: 10px auto 20px;
    height: auto;
}




@media (min-width: 600px) and (max-width: 900px) {
    .site-logo {
        max-width: 200px; /* Adjust based on the .recipe-card's width on tablet (assuming .recipe-card is 50% of 800px) */
    }
}

@media (min-width: 900px) {
    .site-logo {
        max-width: 133px; /* Adjust based on the .recipe-card's width on desktop (assuming .recipe-card is 33.33% of 800px) */
    }
}

/* Style the footer */
footer {
    flex-shrink: 0; /* This ensures that the footer doesn't shrink */
    background-color: #f0f0f0; /* Light grey background */
    padding: 10px 0;
    text-align: center;
}

footer a {
    color: #333;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}


.contact-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.btn-submit {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0056b3;
}

.cookie-banner {
    position: fixed; /* This ensures the banner remains fixed on scroll */
    bottom: 0;       /* This positions the banner at the bottom */
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-message {
    max-width: 80%;
    text-align: left;
}

.cookie-message a {
    color: #007BFF;
    text-decoration: underline;
}

.cookie-button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cookie-button:hover {
    background-color: #0056b3;
}


.card {
    /* Custom styles for your recipe cards */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-img-top {
    /* Styles to ensure the image fits nicely in the card */
    width: 100%;
    height: 15vw; /* Adjust as needed */
    object-fit: cover;
}
@media (max-width: 768px) {
    .card-img-top {
        height: 40vw; /* Adjust for smaller devices */
    }
}

.recipe-actions {
    text-align: center; /* Center-aligns content within the div */
    margin-top: 20px; /* Adds some space above the div */
    margin-bottom: 20px; /* Adds some space below the div */
}

.sharethis-inline-share-buttons {
    display: inline-block; /* Makes the share buttons align in the center */
    margin: auto; /* Additional centering for good measure */
}


.carousel-recipe-image {
    width: 100%; /* Allow the width to be responsive */
    max-height: 300px; /* Set a maximum height to maintain aspect ratio */
    object-fit: cover; /* Cover the space without stretching, may crop the image */
    border-radius: 4px; /* Optional: Adds rounded corners to the image */
}

.recipe-category {
font-style: italic;
color: #888888;
}

.carousel-item .row {
display: flex;
align-items: center; /* This vertically centers the items in the flex container */
}

/* Ensure the title, description, category, and button do not exceed the image height */
.carousel-item .col-md-6 {
display: flex;
flex-direction: column;
justify-content: center; /* Adjusts spacing and centers content for varying text lengths */
}


/* Optional: If you want the carousel container to have the same max-width as the category block */
.container {
    max-width: 800px; /* Adjust the value to match the category block's width */
    margin-left: auto;
    margin-right: auto; /* These auto margins center the container */
}


.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none; /* Remove default images */
}

.carousel-control-prev,
.carousel-control-next {
    /* Create a new background for the arrows with a darker color */
    width: 34px; /* Set the width for the control */
    height: 34px; /* Set the height for the control */
}

.carousel-control-prev-icon:after,
.carousel-control-next-icon:after {
    content: '>'; /* Right arrow for next control */
    font-size: 24px; /* Icon size */
    color: white; /* Icon color */
    display: flex; /* To center the content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.carousel-control-prev-icon:after {
    content: '<'; /* Left arrow for prev control */
}

.carousel-control-prev,
.carousel-control-next {
    display: flex;
    align-items: center;
    justify-content:
center;
/* Adjust position to align with the carousel's content */
top: 50%;
transform: translateY(-50%);
}

/* Adjust the size of the control's clickable area */
.carousel-control-prev,
.carousel-control-next {
width: 44px;
height: 44px;
outline: none;
}

/* Ensure the arrows are properly centered within the clickable area */
.carousel-control-prev-icon,
.carousel-control-next-icon {
width: 100%;
height: 100%;
}

.carousel-item {
    position: relative;
}

.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the 0.5 value to make it darker or lighter */
    border-radius: 4px; /* Match the border-radius of your image if any */
}

.carousel-caption {
    position: relative;
    z-index: 2; /* Ensure the caption is above the overlay */
}


#quiz-options .btn {
    width: 100%; /* Full width */
    margin-bottom: 10px; /* Spacing between buttons */
}

.correct-answer {
    background-color: #28a745; /* Bootstrap success color for correct answer */
}

.wrong-answer {
    background-color: #dc3545; /* Bootstrap danger color for incorrect answer */
}

#quiz-timer {
    font-size: 1.2em; /* Make timer more prominent */
    margin: 10px 0;
}

#score-board {
    display: block; /* Always show the score */
    font-size: 1.2em;
}

/* Additional styling for progress bar (if you choose to add one) */
.progress {
    height: 30px; /* Taller progress bar for better visibility */
}

.progress-bar {
    transition: width 0.4s ease-in-out; /* Smooth transition for the bar movement */
}



#quiz-container {
    text-align: center;
}
#quiz-question {
    margin-bottom: 20px;
}
#quiz-timer {
    margin-bottom: 20px;
}


.video-container {
    width: 100%; /* Container takes full width of its parent */
    max-width: 800px; /* Maximum width of the video - you can adjust this */
    margin: 20px auto; /* Centers the container */
    text-align: center; /* Centers the video inside the container */
}

video {
    width: 100%; /* Video takes full width of its container */
    height: auto; /* Maintain aspect ratio */
}
