/* giving box size border box */

* {
    box-sizing: border-box;
  }
  
  /*  style to body */
  body {
    background-color: #222222;
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    margin: 0;
  }
  
  .img-fluid {
    height: auto;
    width: 100%;
  }
  
  /* giving the style to container */
  .container {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /*  making the display flex */
  .flex {
    display: flex;
  }
  
  /*  give the css to input and buttons  */
  input,
  button {
    border: 1px solid #060711;
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 8px 10px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}
  
  input[type="search"] {
    height: 40px;
    width: 400px;
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
}
  .search-btn {
    border-left: 0;
    border-radius: 5px;
    cursor: pointer;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-right: 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}
  
  .random-btn {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }
  
  /*  css to meals images and meal info */
  .meals {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
  }
  .meal {
    position: relative;
  }
  .meal img {
    border: 4px solid white;
    border-radius: 2px;
    height: auto;
    width: 100%;
  }
  .meal-info {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    opacity: 0;
  }
  .meal-info:hover {
    opacity: 1;
  }
  
  .single-meal {
    margin: 30px auto;
    width: 70%;
  }
  .single-meal img {
    width: 300px;
    border: 4px solid #fff;
    border-radius: 2px;
  }
  
  .single-meal-info {
    margin: 20px;
    padding: 10px;
    border: 2px dashed #e09850;
  }
  .single-meal-info p {
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.5;
  }
  .main ul {
    padding-left: 0;
    list-style: none;
  }
  .main ul li {
    border: 1px solid #ededed;
    border-radius: 5px;
    background: #fff;
    color: #2d2013;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bolder;
    padding: 5px;
    margin: 2px;
  }

  /* media query to make app responsive  */
  
  @media screen and (max-width: 800px) {
    .meals {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media screen and (max-width: 700px) {
    .meals {
      grid-template-columns: repeat(2, 1fr);
    }
    .meal {
      width: 200px;
      height: 200px;
    }
  }
  @media screen and (max-width: 501px) {
    input[type="search"] {
      width: 100%;
    }
    .meals {
      grid-template-columns: 1fr;
    }
    .meal {
      width: 300px;
      height: 300px;
    }
  }
