/* Styles for desktop and larger screens */
header {
  background-color: #fff6e9;
  padding: 20px;
  text-align: center;
  z-index: 9;
  position: sticky;
  top: 0;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

main {
  z-index: 9;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #ffedcc;
  padding: 10px 20px;
  text-align: center;
  font-size: 11px;
  box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.2);
}

.footer-left,
.footer-right {
  flex-basis: 100%;
  text-align: left;
  padding-right: 30px;
}

.footer-center {
  flex-basis: 100%;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline-block;
  position: relative;
  margin-right: 10px;
}

nav ul li a {
  color: #000;
  text-decoration: none;
}

nav ul li a:hover {
  color: #333;
}

.mega-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  padding: 10px;
  z-index: 1; /* Added z-index to ensure visibility */
}

.mega-menu:hover .submenu {
  display: block;
}

.mega-menu .submenu li {
  display: inline-block;
  margin-right: 10px;
}

.mega-menu .submenu li:last-child {
  margin-right: 0;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;

  min-height: 100vh;

}

h1, h2, h3 {
  color: #333;
}

a {
  color: #007bff;
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#sets-apart ul {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

#sets-apart li {
  margin-bottom: 20px;
}

blockquote {
  font-style: italic;
  margin-bottom: 20px;
}

.cta-button {
  background-color: #007bff;
  color: #fff;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
  justify-content: center;
}

.country {
  border: 1px solid #ccc;
  padding: 20px;
  text-align: center;
}

.country-image {
  width: 100%;
  height: auto;
}

.country-link {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #007bff;
}

section {
  padding: 30px;
  text-align: center;
  background-color: #fff6cc;
}

.contentRecipe {
  text-align: left;
}

section.even {
  background-color: #fff6e9;
}

.image-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}

.text-content {
  flex: 1;
  padding: 20px;
}

.image-content img {
  max-width: 50%;
  margin-right: 20px;
  /* For alternating images */
  float: left;
  height: 200px;
}

.image-section.even .image-content {
  flex-direction: row-reverse;
}

.image-section:nth-child(even) .image-content img {
  float: right;
  margin-right: 0;
  margin-left: 20px;
}

.image-content {
  background-color: #f8f8f8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hide {
  display: none !important;
}

/* Main container */
#countryContent {
  background-color: #f5f5f5;
}

/* Section content */
#content {
  margin: 0 auto;
  max-width: 600px;
}

/* Country header */
.country_header {
  font-size: 24px;
  color: #333;
}

/* Country intro */
.country_intro {
  margin-top: 10px;
  color: #666;
}

/* Country recipe */
.country_recipe {
  margin-top: 20px;
}

/* Country recipe title */
.country_recipe_title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* Country recipe ingredients */
.country_recipe_ingredients {
  margin-bottom: 20px;
}

.country_recipe_ingredients h2 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.country_recipe_ingredients ul {
  list-style-type: disc;
  padding-left: 20px;
}

.country_recipe_instructions ul {
  padding-left: 20px;
}

/* Country recipe instructions */
.country_recipe_instructions {
  margin-bottom: 20px;
}

.country_recipe_instructions h2 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.country_recipe_instructions ul {
  list-style-type: decimal;
}

.listItemContainer {
  list-style: none;
  font-style: italic;
}

#featuredCountries {
  flex-wrap: wrap;
}

#featuredCountries span {
  margin-right: 6px;
}

#featuredCountries span a {
  color: #000;
  text-decoration: underline;
}

.contentRecipe .image-content img {
  position: absolute;
  top: 50px;
  right: 180px;
}

.content_recipe_img {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 1.2);
}

#country_amznSample span {
  float: left;
}

#cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
}

#cookie-overlay-content {
  background-color: #fff;
  padding: 20px;
  max-width: 500px;
  text-align: center;
  flex-grow: 1;
  overflow-y: auto;
}

#cookie-overlay-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  width: 48%;
  position: sticky;
  bottom: 0;
  float: left;
}

@media screen and (max-height: 480px) {
  #cookie-overlay-content {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .footer {
    display: none;
  }
}



/* Responsive media queries */

/* Styles for tablets and larger screens */
@media screen and (min-width: 768px) {
  /* General styles */
  .container {
    max-width: 800px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex-basis: auto;
    text-align: left;
  }

  /* Country grid */
  .country-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* Country */
  .country {
    padding: 20px;
  }

  /* Content recipe image */
  .contentRecipe .image-content img {
    position: absolute;
    top: 50px;
    right: 180px;
  }

}

/* Styles for mobile screens */
@media screen and (max-width: 767px) {

  .footer {
    flex-direction: column;
    align-items: center;
  }

  /* Mobile-friendly container */
  #countryContent {
    background-color: #f5f5f5;
    padding: 10px;
  }

  /* Section content */
  #content {
    margin: 0 auto;
    max-width: 600px;
  }

  /* Country header */
  .country_header {
    font-size: 24px;
    color: #333;
  }

  /* Country intro */
  .country_intro {
    margin-top: 10px;
    color: #666;
  }

  /* Country recipe */
  .country_recipe {
    margin-top: 20px;
  }

  /* Country recipe title */
  .country_recipe_title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }

  /* Country recipe ingredients */
  .country_recipe_ingredients {
    margin-bottom: 20px;
  }

  .country_recipe_ingredients h2 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
  }

  .country_recipe_ingredients ul {
    list-style-type: disc;
    padding-left: 20px;
  }

  .country_recipe_instructions ul {
    padding-left: 20px;
  }

  /* Country recipe instructions */
  .country_recipe_instructions {
    margin-bottom: 20px;
  }

  .country_recipe_instructions h2 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
  }

  .country_recipe_instructions ul {
    list-style-type: decimal;
  }

  .listItemContainer {
    list-style: none;
    font-style: italic;
  }

  /* Country image section */
  .image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .image-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .text-content {
    flex: 1;
    padding: 20px;
  }

  .image-content img {
    padding-top: 20px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  /* General styles */
  .container {
    max-width: 600px;
  }

  /* Country grid */
  .country-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* Country */
  .country {
    padding: 20px;
  }

  /* Content recipe image */
  .contentRecipe .image-content img {
    position: relative;
    top: 20px;
    right: initial;
  }

  #featuredCountries span {
    display: inline-block;
  }
  .image-section.even .image-content {
    flex-direction: column;
  } 
  
}

.affiliateNote {
  font-size: .8em;
}