body {
   background-color: #f3f4e4;
   color: #4b543b;
   font-family: 'Noto Sans', sans-serif;
   font-size: 24px;                
   margin: 0;
 }

/* Nav bar styles */
header {
   padding: 10px 20px;
   background-color: #b4d2ba;
   margin: 0;
}

.header-action-bar {
   display: flex;
   justify-content: center;
   align-items: center;
   margin-top: 1rem;
   margin-bottom: -50px;
}

#clear-filters-btn {
   font-size: 1rem;   
   padding: 0.25rem 0.5rem;  
   background-color: #b4d2ba; 
   color: #ffffff; 
   border: none;
   border-radius: 10px; 
   cursor: pointer;
   transition: background-color 0.3s ease;
 }


nav a {
   text-decoration: none;
   color: #ffffff;
   font-weight: bold;
}


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


/* desktop navbar */
@media (min-width:601px) {
   header {
       display: flex;
       justify-content: space-between;
       align-items: center;
   }


   nav a {
      display: flex !important;
      transition: color 0.2s;
   }


   nav ul {
       display: flex;
       gap: 20px;
   }


   nav a:hover {
       color: #f3f4e4;
   }


   .app-icon {
       height: 40px;
   }


   .burger-icon {
       display:none;
   }
}


/* mobile navbar */
@media (max-width:600px) {
   header {
       overflow: hidden;
       padding: 0;
   }


   nav ul {
       background-color: #b4d2ba;
       display:block;
   }


   nav a {
       display: none;
       padding: 5px 15px;
   }


   nav a:hover {
       background-color: #97bb9e;
       color: #f3f4e4;
   }


   .burger-icon {
       /* background: white; */
       transition: color 0.2s;
       display: block;
       right: 0;
       top: 0;
       position: absolute;
       height: 36px;
       padding: 4px 4px;
   }


   .burger-icon:hover {
       background-color: #97bb9e;
   }


   .app-icon {
       height: 40px;
       padding-left: 10px;
   }
}


/* landing page styles */


.hero {
   margin-bottom: 40px;
   padding-top: 40px;
   flex: 1;
   display: flex;
   flex-direction: column;
   align-items: flex-start;
}


.hero h1 {
   font-size: 3rem;
   color: #4b543b;
   margin-bottom: 5px;
   font-family: 'Permanent Marker', cursive;
   font-weight: 200;
}


.hero p {
   margin-bottom: 30px;
   color: #4b543b;
}


.hero-buttons {
   display: flex;
   flex-direction: column;
   row-gap: 20px;
}


.hero-buttons button {
   padding: 15px 30px;
   font-size: 1.2rem;
   cursor: pointer;
   border: 1px solid #aaa;
   border-radius: 10px;
   display: block;
}


.button-type1 {
   background-color: #4b543b;
   color: white;
   border: none;
   width: 100%;
}


.button-type1:hover {
   background-color: #000000;
   color: #f3f4e4;
}


.button-type2 {
  background-color: #b4d2ba;
  color: #4b543b;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 2.25rem;                     /* 36px */
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* landing page instructions */

#instructions {
  background-color: #b4d2ba;
  padding: 4rem 4rem 8rem 4rem;
  justify-content: center;
  justify-items: center;
  text-align: center;
}

#instructions h1 {
  font-size: 3rem;
  color: #4b543b;
  font-family: 'Permanent Marker', cursive;
  font-weight: 200;
  margin-bottom: 2em;
}

#instruction-container {
  display: flex;
}

.instruction-step {
  background-color: #f3f4e4;
  position: relative;
  margin: 1rem;
  padding: 2em;
  border-radius: 20px;
}

.instruction-step h1 {
  background-color: #f3f4e4;
  height: 2em;
  width: 2em;
  line-height: 2em;
  border-radius: 50%;
  border: 0.2em solid #b4d2ba;
  position: absolute;
  top: -1.5em;
  left: 0;
  right: 0;
  margin: auto;
}

.instruction-step button {
  width: fit-content;
  padding: 1em 2em;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 10px;
  position: absolute;
  bottom: -1em;
  left: 0;
  right: 0;
  margin: auto;
}

/* landing instructions desktop */
@media (min-width:961px) {
  #instruction-container {
    flex-direction: row;
  }
}

/* landing instructions mobile/splitscreen */
@media (max-width:960px) {
  #instruction-container {
    flex-direction: column;
  }
  
  .instruction-step {
    margin-bottom: 4em;
  }
}

/* swipe reviews */

 #left-review-container {
   margin: 0 1rem; /* or padding */
   width: 260px;
 }

 #right-review-container {
   margin: 0 1rem; /* or padding */
   width: 260px;
 }
 


.button-type2:hover {
   background-color: #97bb9e;
   color: #4b543b;
}


/* card */
.feature-card {
   flex: 1;
   max-width: 300px;
   background-color: #f3f4e4;
   flex-direction: column;
   align-items: center;
   text-align: center;
   margin-top: 3rem;

   width: 320px;
   height: 460px;
   border: none;

   border-radius: 20px;
   perspective: 1000px;
   position: relative;
}

.example-inner-card {
   position: relative;
   width: 100%;
   height: 100%;
   text-align: center;
   transition: transform 0.6s;
   transform-style: preserve-3d;
   border: 1px solid #aaa;
   border-radius: 20px;
}

.feature-card:hover .example-inner-card {
   transform: rotateY(180deg);
}

.example-card-front, .example-card-back {
   position: absolute;
   width: 100%;
   height: 100%;
   -webkit-backface-visibility: hidden;
   backface-visibility: hidden;
}

.example-card-front {
   background-color: white;
   color: black;
   border-radius: 20px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   margin: auto;
}

.example-card-back {
   background-color: white;
   color: black;
   transform: rotateY(180deg);
   display: flex;
   justify-content: center;
   align-items: center;
   margin: auto;
   border-radius: 20px;
}

.card-title {
   margin-top: 0;
   font-weight: normal;
   color: #3a3f2c;
}


.card-info {
   display: flex;
   justify-content: center;
   gap: 20px;
   margin-bottom: 10px;
   color: #4b4b4b;
   font-size: 0.9rem;
   align-items: center;
}


.icon {
   height: 16px;
   width: auto;
   margin-right: 5px;
   vertical-align: middle;
}


.info-item {
   display: flex;
   align-items: center;
}


.card-image {
   width: 70%;
   height: 200px;
   margin-bottom: 10px;
   display: block;
   margin-left: auto;
   margin-right: auto;
}


.restaurant-img {
   width: 100%;       /* or set a fixed size like 300px */
   height: 100%;      /* maintains aspect ratio */
   border-radius: 10px; /* optional for rounded corners */
   object-fit: cover;  /* ensures the image fills its container nicely */
}


.stars {
   margin-bottom: 10px;
}


.tags {
   display: flex;
   justify-content: center;
   gap: 10px;
   margin-top: 10px;
}


.tag {
   padding: 6px 14px;
   border: none;
   background-color: #b4d2ba;
   border-radius: 20px;
   font-size: 0.9rem;
   color: #333;
   font-weight: 500;
}


/* this keeps the +2 text inline without styling */
.more {
   font-size: 0.9rem;
   color: #333;
   padding-top: 6px;
}


.main-grid {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 50px;
   max-width: 1000px;
   margin: 0 auto;
   margin-top: 2rem;
   padding: 40px 0;
}

/* mobile landing page */
@media (max-width: 600px) {
  .main-grid {
     position: relative;
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 20px;
     margin-top: -1px;
     z-index: 10;
  }

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

  .hero h1 {
     align-items: center;
     text-align: center;
     flex-direction: column;
     font-size: 2rem;
     line-height: 1.5;
     margin-top: -10px;
  }

  .hero p {
     text-align: center;
     flex-direction: column;
     font-size: 1.2rem;
     line-height: 1.5;
  }

  .hero-buttons {
     align-items: center;
  }

  .feature-card {
     transform: scale(0.9);
     margin-top: -4rem;
  }

  .card-image {
     width: 70%;
     height: 200px;
  }
}

/* filters progress bar styles */

.step {
  cursor: pointer;
}

.step:hover .step-text {
  filter: brightness(60%);
}

.step:hover .step-line {
  filter: brightness(60%);
}

/* — Swipe Header — */
.swipe-header {
   position: absolute;
   top: -2rem;               /* sits above the card */
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   align-items: center;
   gap: 0.5rem;
 }
 
 .instruction-text {
   color: #b57f50;
   font-size: 1.3rem;
   white-space: nowrap;
 }
 
 .help-icon {
   width: 28px;
   height: auto;
 }

/*Swipe card styles */
.swipe-layout {
   display: flex;
   flex-direction: column;
   align-items: center;
   padding: 2rem;
   /* page bg lives on body */
 }
 .swipe-container {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 2rem;
 }

 .icon {
  height: 28px;
  width: 28px;
  margin-right: 5px;
  position: relative;
  top: -2px; /* 🔼 raise the icon slightly */
}

.icon-img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 6px;
}

  /* Tags */
 .tag {
   display: inline-block;
   margin: 0.2rem;
   padding: 0.3rem 0.8rem;
   font-size: 1.5rem;                      /* 24px */
   background-color: #b4d2ba;
   color: #4b543b;
   border-radius: 20px;
 }

   /* — Restaurant Card — */
   .restaurant-card {
      background-color: #ffffff;              /* card bg */
      border-radius: 20px;
      padding: 1rem;
      width: 300px;
      text-align: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }
    .restaurant-card h2 {
      font-size: 36px;                        /* title 36px */
      margin: 0.5rem 0;
      color: #4b543b;
    }
    .card-img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 12px;
      margin: 1rem 0;
    }
    .details {
      display: flex;
      justify-content: center;
      gap: 1rem;
      width: 100%;
      order: 1;
    }

   /* — Swipe Buttons — */
  .swipe-buttons {
    position: static; /* removes absolute positioning for mobile/desktop */
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
  }

  .swipe-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    background:none;
    border:none;
  }

  .swipe-buttons button img {
    width: 4rem;              /* shrink your check/x icons */
    height: auto;
  }

  .swipe-buttons button img:hover {
    filter: brightness(80%)
  }


  /*** SWIPE LAYOUT ***/

  .swipe-layout {
   position: relative;     /* so absolute children use this as origin */
   max-width: 360px;       /* match your card/container width */
   margin: 3rem auto 0;    /* center it and push down from top */
   padding-bottom: 6rem;   /* extra room for buttons */
 }
 
 
 .swipe-container {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 1rem;                   /* tighten up spacing */
 }

 .emoji {
   height: 20px;
   width: 20px;
   margin-top: 0.2rem;
}


/* ----------------------------------------------------------
   End of swiping buttons and end screen
   ---------------------------------------------------------- */

.end-screen h2{
  text-align: center;
}

.end-screen .buttons-div{
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#view-rejected-btn,
#full-reset-btn {
  /* Use a clean, legible sans-serif */
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;               /* ~16px text */
  font-weight: 500;
  color: #4a4a38;

  /* Generous padding for a “pill” shape */
  padding: 0.75rem 1.5rem;       /* 12px top/bottom, 24px left/right */
  border: 2px solid transparent;/* we’ll override per button below */
  border-radius: 999px;          /* fully rounded edges */
  background-color: #b4d2ba;

  cursor: pointer;
  border: none;
  margin: 0.5rem;                /* small gap between the two buttons */
}

#view-rejected-btn:focus,
#full-reset-btn:focus {
  border: none;
  box-shadow: 0 0 0 3px rgba(74, 74, 56, 0.3);
}
/* ---------------------------------------------------------- */


  /* — Swipe Animations — */
 .restaurant-card.swipe-right {
   transform: translateX(120%) rotate(15deg);
   opacity: 0;
 }
 .restaurant-card.swipe-left {
   transform: translateX(-120%) rotate(-15deg);
   opacity: 0;
 }
 /* Flip Animation Styles */
.restaurant-card {
   width: 320px;
   height: 460px;
   perspective: 1000px;
   border-radius: 20px;
   overflow: hidden;
   position: relative;
}

.card-inner {
   position: relative;
   width: 100%;
   height: 100%;
   transition: transform 0.6s;     /* Smooth flipping */
   transform-style: preserve-3d;   /* Allow 3D children rendering */
   position: relative;
}


.restaurant-card.flipped .card-inner {
   transform: rotateY(180deg);
}

.restaurant-card.flipped {
  transform: rotateY(180deg);
}

.restaurant-card.flipped .card-front {
  z-index: -1000;
}

.card-front, .card-back {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   border-radius: 20px;
   padding: 1.5rem;
   box-sizing: border-box;
}


.card-front {
   background-color: #ffffff;
   z-index: 2; /* Ensure it's above the back side initially */
}

.card-front h2{
  font-size: 2rem;
  max-width: 100%;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-height: 2.4em; /* 2 lines * 1.2 line-height */
}

.card-back {
   background-color: #ffffff;
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 0.25rem;
}

.card-details {
   padding: 0.5rem 0.75rem;
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   font-size: 1.25rem;
   gap: 0.5rem;
}

.card-details h2{
   font-size: 2rem;
}

.card-details p {
   text-align: left;
   width: 100%;
   gap: 0.5rem;
   margin: 0.75rem 0;
}


.menu-images {
   display: flex;
   justify-content: center;
   gap: 0.5rem;
   margin-top: 0.75rem;
}


.menu-images img {
   width: 60px;
   height: 60px;
   border-radius: 8px;
   object-fit: cover;
}


.view-menu {
   margin-top: 0.5rem;
   color: #b57f50;
   text-decoration: underline;
   font-size: 0.9rem;
}


.reviews {
  transition: opacity 0.3s ease;
  opacity: 0;
  display: none;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  position: relative;
  top: 33%;
  transform: translateY(-0%);
  width: 60%;
  font-style: italic;
}

.reviews.visible {
   display: flex;
   opacity: 1;
 }
 

.reviews span {
   color: #b57f50;
   font-style: normal;
   font-size: 1rem;
}

.reviews.left {
  left: 110px;
}

.reviews.right {
 right: -10px;
}

.card-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card-desktop {
  display: block;
}
.mobile-card-wrapper {
  display: none;
}
  
/* Mobile reviews */
@media (max-width: 600px) {
  .swipe-container {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .card-buttons-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    order: 1;
  }

  .swipe-buttons {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  #left-review-container,
  #right-review-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    order: 2;
  }

  .reviews {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 0;
    padding: 0.5rem;
    transform: none;
    gap: 0;
  }

  .reviews.left,
  .reviews.right {
    left: auto;
    right: auto;
  }

  .reviews p {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .feature-card-desktop {
    display: none;
  }

  .mobile-card-wrapper {
    display: block;
    margin: 3rem 0 0 0;
  }
  
  .hero {
    align-items: center;
    text-align: center;
    padding: 35px 20px; 
  }
}

.card-hint {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}
