body main nav {
  --snackImg-color: #333;
  --snackImg-bg: #f7d47e;
}
body.darkMode main nav {
  --snackImg-color: #f1f1f1;
  --snackImg-bg: #141414;
}

#videosPage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 20px;
  padding: 10px;
  width: 100%;
  height: auto;
}

#videosPage iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: none;
  object-fit: cover;
}


#popup.popuphide {
  display: none;
}

#popup.popupshow {
  display: flex;
}

.backBtn {
  text-decoration: none;
  border-radius: 8px;
  background: var(--btn-bg);
  padding: 6px;
  color: beige;
  border: none;
  transition: opacity 0.5s ease;
  font-size: clamp(1.3rem, 1.5rem, 1.5rem);
}
.backBtn:hover {
  opacity: 0.7;
  text-decoration: none;
  color: beige;
}
#recipeBotForm {
  display: none;
}
.botLinkInner svg {
  width: 50px;
  height: 50px;
}
.botLinkInner {
  margin: 0;
  padding: 0;
}
nav.page .allRecipeDiv {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-weight: bold;
}
.loadMoreBtns {
  backdrop-filter: blur(2px);
  background-color: var(--header-bg);
  display: flex;
  border: 2px solid #ff9d00;
  justify-content: center;
  align-items: center;
  color: var(--color);
  margin: auto;
  border-radius: 40px;
}
.loadMoreBtns span {
  font-size: 1rem;
  font-weight: 600;
}
h2.available {
  color: #ffa726;
  padding-bottom:22px;
  font-size: clamp(2rem, 2rem, 2.5rem);
}
.snackImage {
  text-align: center;
  text-decoration: none;
  color: var(--snackImg-color);
  border-radius: 6px;
  width: 30%;
  height: 170px;
  overflow: hidden;
  background-color: var(--snackImg-bg);
  transition:
    transform 0.4s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 0 8px rgba(119, 116, 116, 0.362);
}
.snackImage img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 5px;
}
.snackImage:hover {
  color: var(--snackImg-color);
  transform: scale(1.02);
  box-shadow: 0 0 18px rgb(255, 111, 0);
}
#suggestions {
  display: flex;
  margin: 20px;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  list-style: none;
  font-weight: bold;
  padding: 0;
  flex-direction: row;
  align-items: center;
}

section {
  margin-bottom: 40px;
}

h2 {
  color: #e65c00;
  margin-bottom: 10px;
  border-bottom: 2px solid #ffa94d;
  padding-bottom: 5px;
  text-align: center;
}
h3 {
  margin-top: 10px;
  color: #ff4500;
}
.recipe-title {
  font-size: 1rem;
}
/* Card container position reset */
.snackImage.recipe {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

/* Base tag architecture */
.recipe-tag {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 6px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* TryTasty Original Visual Style */
.tag-original {
  background-color: #ffc861;
  color: #121212;
}

/* External API Visual Style */
.tag-external {
  background-color: #3b82f6;
  color: #ffffff;
}
/* Responsive Design */
@media (max-width: 600px) {
  .snackImage {
    width: 100%;
  }

  img:focus {
    width: 100%;
  }
  iframe {
    min-height: 400px;
    height: 40vh;
  }
}
img {
  width: 250px;
  max-width: 100%;
  border-radius: 16px;
  transition: all 0.5s ease;
}
img:hover {
  transform: scale(1.02);
}

a:hover {
  text-decoration: underline;
}
.hide {
  display: none;
}

.botLink svg {
  width: 70px;
  height: 70px;
  transition: 0.5s ease;
}
a.botLink:has(svg) {
  position: sticky;
  left: 0;
  bottom: 1px;
  z-index: 2;
  padding: 0;
  height: fit-content;
  border: none;
}

.botLink svg:hover {
  padding: 0;
  transform: scale(1.1);
}
