/* base colors */
:root {
  --primary: #f5d506;
  --secondary: #12255d;
  --tertiary: #839c4b ;
  --light-dark: #abc5e0;
  --light: #e9eae4;
  --border-radius: .3rem;
}

* {
  box-sizing: border-box;
}

/* image in background of header */
#header {
    background-image: url(../images/food.jpg);
    background-position: center;
    background-size: cover;
}

/* app title */
.app-title {
  right: 0.5rem;
  left: auto;
  text-shadow: 2px 2px 2px black;
}

/* setting width for all cards */
.card {
    width: 250px;
    height: auto;
}

.recent-searches {
    color:white;
    margin-bottom: 2em;
}

#value {
    margin-right: 0.5rem;
}

#recent-text {
    font-size: 1.5rem;
}

/* move image on cards down to match other margins */
.card-image {
    margin-top: 10px;
}

 .header-text {
    margin-left: 1em;
    margin-right: 1em;
    font-size: 1.5rem;
    font-weight: bolder;
    text-shadow: 2px 2px 2px black;
}

img {
  width: 100%;
  height: auto;
}

#ingredient-box {
    background-color: var(--primary);
    box-shadow: 10px 10px black;
}

#ingredient-form {
  background-color: var(--primary);
}

.btn {
    background-color: #12255d; 
    color:white;
}

.btn-large {
  height: 54px;
  line-height: 54px;
  font-size: 15px;
  padding: 0 28px;
  margin: 8px;
}

.btn:hover {
    background-color: #274ec2;
}

#list-container {
    background-color: #abc5e0;
    box-shadow: 10px 10px black;
}

#list-header {
  font-weight: bolder;
}

#ingredient-text {
  font-size: 1.8rem;
  text-align: left;
}

#recipe-container {
    color:#12255d;
    padding-bottom: 3px;
    margin-bottom: 3px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.recipe-line {
    background-color: #12255d;
    margin-bottom: 10px;
    line-height: 2.0;
}

.recipe-line:hover {
    background-color: #274ec2;
}

body {
  background-color: #12255d;
  margin: 5px;
  padding: 5px;
  font-family: Pesto, helvetica, sans-serif;
  color: var(--secondary);
  line-height: 1.5;
  font-size: 16px;
}

/* css for target api container */

#target-box {
  background-color: rgb(255, 0, 0);
  box-shadow: 10px 10px black;
}

/*  css for form and button */
.target-text {
  color: white;
  font-size: 1.8rem;
  text-align: left;
}

#card-header-id {
  color: white;
  font-size: 1.64rem;
  text-align: left;
}
#zip-button {
  color:black;
}

#zip {
  margin-top: 20px;
}
/* css for target created divs */

.child {
  background-color: rgb(255, 0 ,0);
  border-radius: 10px;
  color: white;
  text-align: left;
  margin-top: 30px;
}

.modal__overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.modal__window {
  max-width: 500px;
  background: #e9eae4;
  border: 1px solid #e9eae4;
  font-size: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

.modal__titlebar {
  height: 40px;
  background: #28a49c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  margin-left: 15px;
  font-weight: bold;
  color: #eeeeee;
}

.modal__close {
  width: 40px;
  height: 40px;
  outline: none;
  border: none;
  background: transparent;
  color: #eeeeee;
  cursor: pointer;
}

.modal__close:active {
  transform: scale(0.9);
}

.modal__content {
  padding: 15px;
  font-size: 0.9em;
}

/* MEDIA QUERY FOR SMALLER DESKTOP SCREENS AND SMALLER */
@media screen and (max-width: 980px) {
  #header {
    padding-bottom: 0;
    justify-content: center;
    position: relative;
  }

  #header h1 {
    width: 100%;
    text-align: center;
  }

  #target-box
  #ingredient-box{
      width: 50%;
      height: 200px;
      overflow: hidden;
    }
    
    .card-image{
      max-width: 100%;
      height: auto;
      display: block;
    }
  
  #ingredient-text {
    width: 80%;
  }
  
  /*MEDIA QUERY FOR TABLETS AND SMALLER*/
@media screen and (max-width: 768px) {
  #list-container {
    padding: 30px 15px;
  }
  #target-box
  #ingredient-box{
      width: 50%;
      height: 200px;
      overflow: hidden;
    }
    
    .card-image{
      max-width: 100%;
      height: auto;
      display: block;
    }
}

/* MEDIA QUERY FOR MOBILE PHONES AND SMALLER */
@media screen and (max-width: 575px) {
 .ingredient-form {
    width: 100%;
  }

  #ingredient-text {
    width: 95%;
  }

  .p {
    width: 100%;
  }
  #target-box
  #ingredient-box{
      width: 50%;
      height: 200px;
      overflow: hidden;
    }
    
    .card-image{
      max-width: 100%;
      height: auto;
      display: block;
    } 
  }
}


