/* Updated body styling with darker background */
body {
    background: #d7c3b2; /* Slightly darker warm beige */
    color: #3b2927; /* Darker brown text */
    max-width: 850px;
    margin: auto;
    padding: 0 16px;
    margin-bottom: 500px;
    scrollbar-color: #b89f8a #d7c3b2; /* Scrollbar color */
    font-family: sans-serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: .66vw;
    background-color: #d7c3b2;
}
::-webkit-scrollbar-thumb {
    background-color: #b89f8a; /* Slightly darker beige scrollbar thumb */
    border-radius: 5px;
}

/* Link colors */
a {
    color: #c95b48; /* Darker coral for links */
    text-decoration: none;
}
a:visited {
    color: #a44b3c; /* Darker coral for visited links */
}
a:hover {
    color: #f0e3d1; /* Lighter beige hover color */
    text-decoration: underline;
}

/* Headings */
h1 {
    border-style: solid;
    border-width: 0px 0px 2px 0px;
    border-color: #b89f8a; /* Slightly darker beige border */
    text-align: center;
}
h2 {
    color: #c95b48; /* Darker coral for secondary headings */
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    border-style: solid;
    border-width: 2px 0px 0px 0px;
    border-color: #b89f8a; /* Slightly darker beige border */
    padding: 1em;
}

/* Image adjustments */
img {
    max-width: 90%;
    max-height: 400px;
    margin: auto;
    display: block;
    border: 3px solid #b89f8a; /* Slightly darker beige border around images */
}

/* Code block colors */
code {
    overflow-wrap: break-word;
    color: #81b29a; /* Soft green for code text */
    background: #f0e3d1; /* Light beige for code block background */
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* Tagcloud styling */
#tagcloud {
    list-style: none;
    text-align: center;
    padding: 0;
}

#tagcloud li {
    display: inline-block;
}

#tagcloud a {
    margin: .1em .25em;
    color: #c95b48; /* Darker coral link color */
}

.taglist, .dietlist {
    text-align: center;
    margin-bottom: 2em;
    margin-top: 2em;
}

/* Input styling */
input#search {
    all: unset;
    background: #b89f8a; /* Darker beige for input fields */
    color: #3b2927; /* Darker brown text for contrast */
    padding: 0.7rem 1rem;
    border-radius: 5px;
    width: 100%;
}

/* Search button */
button#clear-search {
    all: unset;
    position: absolute;
    right: 4px;
    top: 5px;
    height: 30px;
    width: 30px;
    color: #3b2927; /* Darker brown icon */
    cursor: pointer;
    transition: color 180ms ease-in-out;
}
button#clear-search:hover {
    color: #f0e3d1; /* Light beige on hover */
}

/* List items */
#artlist {
    font-size: large;
}

#artlist li {
    padding: .25em;
}

.matched-recipe {
    font-size: x-large;
    display: list-item !important;
}

/* Adjust column layout */
@media (min-width: 55em) {
    #artlist { column-count: 2; }
}

@media (min-width: 100em) {
    #artlist { column-count: 3; }
}

/* Misc styling */
.hidden {
    display: none !important;
}

.older-article {
    display: none;
}

.hidden {
	display: none !important ;
}

#artlist {
	font-size: large ;
}

#artlist li {
	padding: .25em ;
}

@media (min-width: 55em) {
	#artlist { column-count: 2 ;}
}

@media (min-width: 100em) {
	#artlist { column-count: 3 ;}
}


input#search {
  all: unset;
  background: #222;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  width: 100%;
}

.search {
  width: 400px;
  max-width: 85vw;
  position: relative;
  margin: 0.5rem auto 1.2rem;
  display: flex;
}

button#clear-search {
  all: unset;
  position: absolute;
  right: 4px;
  top: 5px;
  height: 30px;
  width: 30px;
  color: #888;
  cursor: pointer;
  transition: color 180ms ease-in-out;
}
button#clear-search:hover {
  color: #eee;
}


.matched-recipe {
	font-size: x-large ;
	display: list-item !important ;
}

.list-searched {
	column-count: 1 !important ;
	list-style: decimal ;
	max-width: 600px ;
	margin: auto ;
}

#tag_alcohol:before { content: "🍸" ;}
#tag_american:before { content: "🇺🇸" ; }
#tag_apple:before { content: "🍎" ; }
#tag_argentinian:before { content: "🇦🇷" ; }
#tag_asian:before { content: "🥢" ; }
#tag_australian:before { content: "🇦🇺" ;}
#tag_austrian:before { content: "🇦🇹" ;}
#tag_bacon:before { content: "🥓" ; }
#tag_baked:before { content: "🥧"; }
#tag_beans:before { content: "🫘" ; }
#tag_beef:before { content: "🐄" ; }
#tag_belgian:before { content: "🇧🇪" ; }
#tag_beverage:before { content: "☕" ; }
#tag_bone-marrow:before { content: "🦴" ; }
#tag_brazilian:before { content: "🇧🇷" ; }
#tag_bread:before { content: "🍞" ;}
#tag_breakfast:before { content: "🌅" ;}
#tag_broccoli:before { content: "🥦" ;}
#tag_butter:before { content: "🧈" ; }
#tag_cake:before { content: "🍰" ; }
#tag_cheese:before { content: "🧀" ; }
#tag_chicken:before { content: "🐔" ;}
#tag_chinese:before { content: "🐉" ; }
#tag_chocolate:before { content: "🍫" ; }
#tag_christmas:before { content: "🎄" ; }
#tag_coconut:before { content: "🥥"; }
#tag_cold:before { content: "❄️"; }
#tag_colostrum:before { content: "🍼"; }
#tag_condiment:before { content: "🍶" ; }
#tag_cookies:before { content: "🍪" ;}
#tag_corn:before { content: "🌽" ;}
#tag_curry:before { content: "🍛" ; }
#tag_cream:before { content: "🥛"; }
#tag_crispy:before { content: "🍟" ; }
#tag_dessert:before { content: "🍮" ; }
#tag_dominican:before { content: "🇩🇴" ;}
#tag_drink:before { content: "🍹" ;}
#tag_duck:before { content: "🦆" ; }
#tag_dumpling:before { content: "🥟" ;}
#tag_dutch:before { content: "🇳🇱" ;}
#tag_easter:before { content: "✝️" ; }
#tag_eggs:before { content: "🥚" ; }
#tag_english:before { content: "🏴󠁧󠁢󠁥󠁮󠁧󠁿" ; }
#tag_fasting:before { content: "☦️" ; }
#tag_fermented:before { content: "🥒"; }
#tag_filipino:before { content: "🇵🇭" ; }
#tag_fish:before { content: "🐟" ; }
#tag_french:before { content: "🇫🇷" ; }
#tag_fried:before { content: "🍗" ; }
#tag_fruit:before { content: "🍇" ; }
#tag_german:before { content: "🇩🇪" ; }
#tag_greek:before { content: "🇬🇷" ; }
#tag_gut-health:before { content: "🩺" ; }
#tag_honey:before { content: "🍯"; }
#tag_horse:before { content: "🐴"; }
#tag_indian:before { content: "🇮🇳" ; }
#tag_irish:before { content: "🇮🇪" ; }
#tag_israeli:before { content: "🇮🇱" ; }
#tag_italian:before { content: "🇮🇹" ; }
#tag_japanese:before { content: "🇯🇵" ; }
#tag_kefir:before { content: "🥛" ; }
#tag_lebanese:before { content: "🇱🇧" ; }
#tag_lemons:before { content: "🍋" ;}
#tag_liquour:before { content: "🥃" ;}
#tag_lunch:before { content: "🍱" ; }
#tag_mediterranean:before { content: "🫒" ; }
#tag_mexican:before { content: "🇲🇽" ; }
#tag_milk:before { content: "🥛" ; }
#tag_mushrooms:before { content: "🍄" ;}
#tag_pancake:before { content: "🥞" ; }
#tag_pasta:before { content: "🍝" ;}
#tag_pastry:before { content: "🧁" ;}
#tag_peruvian:before { content: "🇵🇪" ;}
#tag_pie:before { content: "🥧" ;}
#tag_pizza:before { content: "🍕" ; }
#tag_polish:before { content: "🇵🇱" ;}
#tag_pork:before { content: "🐖" ;}
#tag_pork-belly:before { content: "🐷" ;}
#tag_portuguese:before { content: "🇵🇹" ;}
#tag_potato:before { content: "🥔" ; }
#tag_probiotic:before { content: "🦠"; }
#tag_pudding:before { content: "🍮"; }
#tag_quebec:before { content: "⚜️" ; }
#tag_quick:before { content: "🏃" ; }
#tag_raw:before { content: "🩸" ;}
#tag_ribs:before { content: "🍖" ; }
#tag_rice:before { content: "🍚" ; }
#tag_russian:before { content: "🇷🇺" ;}
#tag_salad:before { content: "🥗" ;}
#tag_sandwich:before { content: "🥪" ;}
#tag_seafood:before { content: "🦐" ; }
#tag_soup:before { content: "🍜" ;}
#tag_sourdough:before { content: "🥖" ;}
#tag_southwest:before { content: "🤠" ; }
#tag_spanish:before { content: "🇪🇸" ; }
#tag_spice:before { content: "🧂" ; }
#tag_spicy:before { content: "🌶️" ; }
#tag_spread:before { content: "🧈" ; }
#tag_steak:before { content: "🥩" ; }
#tag_stew:before { content: "🍲" ; }
#tag_swedish:before { content: "🇸🇪" ; }
#tag_sweet:before { content: "🍯" ; }
#tag_swiss:before { content: "🇨🇭" ; }
#tag_thai:before { content: "🇹🇭" ;}
#tag_tomato:before { content: "🍅" ;}
#tag_tunisian:before { content: "🇹🇳" ; }
#tag_turkey:before { content: "🦃" ; }
#tag_turkish:before { content: "🇹🇷" ; }
#tag_ukrainian:before { content: "🇺🇦" ; }
#tag_vietnamese:before { content: "🇻🇳" ; }
#tag_wine:before { content: "🍷" ; }
#tag_yoghurt:before { content: "🥣"; }

.js-only { display: none ; }

.diets-container {
    display: flex;
    justify-content: space-between; /* Ensures equal spacing between left and right columns */
    max-width: 100%; /* Ensures the container spans full width */
}

.diets-left, .diets-right {
    width: 45%; /* Adjust to make space for both divs */
    font-size: 20px;
}

.diets-left ul, .diets-right ul {
    list-style-type: none; /* Removes the default list bullet points */
    padding: 0;
    margin: 0;
}

#its-easy-to-contribute {
    padding-top: 40px;
}

.kofi-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
}

#nextprev {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

.nav-item {
    flex: 1; /* Each section takes up 1/3 of the space */
    display: flex;
    justify-content: center;
}

/* Keep your original button styles */
#nextprev a {
    text-decoration: none;
}

#prevart, #nextart, #print {
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 120px;
}

#prevart:hover, #nextart:hover, #print:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}

/* Normal image styling */
.image-container img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Fullscreen overlay - Fixed width issue */
#fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Ensure it covers the entire viewport width */
    height: 100vh; /* Ensure it covers the entire viewport height */
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Fullscreen image */
#fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
}

/* Ensure the slider displays slides side by side */
.showcase-slider {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 20px auto;
}

/* Slider Track */
.slider {
    display: flex;
    width: 100%;
    transition: transform 1.5s ease-in-out; /* Smooth transition */
    white-space: nowrap; /* Prevents slides from stacking */
}

/* Ensure slide container properly positions the caption */
.slide {
    position: relative; /* Keeps caption inside */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack image + caption */
    min-width: 100%; /* Ensure each slide takes full width */
}

/* Image Styling */
.slide img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
}

/* Caption - Ensures it stays inside each slide */
.caption {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 80%;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
