@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  width: 100%;
  background-color: #0B0C10;
  color: #C5C6C7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* header heading section */
#heading {
  margin-top: 100px;
}

/* header navbar */
#nav {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

/* header search bar section */
#search-bar {
  max-width: 600px;
}

#search-bar input {
  height: 50px;
  border-radius: 20px;
}

/* meal card */
#card {
  background-color: #1F2833;
  padding: 10px;
  color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transition: transform 0.3s ease-in-out;
}

#card img {
  border-radius: 50%;
}

#card:hover {
  transform: scale(1.05);
}

/* CSS for meal details page */
#meal-details {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

#meal-thumbail img {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

#meal-header {
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#details {
  flex-basis: 50%;
}

#meal-instruction {
  text-align: left;
}

#meal-instruction h5 {
  margin-top: 20px;
}

#meal-instruction ul {
  list-style-type: disc;
  padding-left: 20px;
}

#meal-instruction li:contains("step") {
    display: none;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #00ffee;
  color: #2c4746;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.btn:hover {
  background-color: #00000000;
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* favourites offcanvas */
#favourites-body {
  background-color: #343233fc;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

.company-logo {
  height: 30px;
  margin-right: 10px;
}

/* Footer */
#footer {
    margin-top: auto;
  }
  
  #footer p {
    font-size: 14px;
    opacity: 0.7;
  }

/* Animations and Transitions for Responsive Design */
@media only screen and (max-width: 768px) {
  /* Adjustments for smaller screens */

  body {
    margin-top: 50px;
  }

  #heading {
    margin-top: 50px;
  }

  #search-bar {
    max-width: 400px;
  }

  #card {
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 20px;
  }

  #meal-details {
    margin-top: 30px;
  }

  #meal-header {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
  }
}

@media only screen and (max-width: 480px) {
  /* Adjustments for mobile screens */

  #search-bar {
    max-width: 300px;
  }

  #card {
    max-width: 250px;
    margin: 0 auto;
    margin-bottom: 20px;
  }

  #meal-details {
    margin-top: 30px;
  }
}
