
#searchBar {
	margin: 20px 0 10px 0;
	width: 50%;
	height: 20px;
	border:solid 1px rgb(60, 60, 60);
	border-radius: 4px;
	text-align: center;
	font-family: 'Montserrat';
	font-weight: 500;
	font-size: 16px;
	transform: translate(50%);
	background-color: rgb(20,20,20);
	color: rgb(235,235,235);
}

#searchBar:focus {
	outline: none;
	border:solid 1px rgb(107, 155, 54);
}

#searchBar::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 1em;
  width: 1em;
  border-radius: 50em;
  background: url(../images/cross.svg) no-repeat 50% 50%;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
}

#searchBar:focus::-webkit-search-cancel-button {
  opacity: 0.4;
  pointer-events: all;
}

#ingDiv {
	margin: 0 auto 20px auto;
	cursor: pointer;
}

#ingDiv > * {
	display: inline-block;
}

section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

figure {
  display: block;
  position: relative;
  margin: 0 0 5px 0;
  padding: 0;
  width: 100%;
  height: 50px;
  overflow: hidden;
  box-shadow: inset 15px 0 9px -7px rgba(255,255,255,0);
  transition: box-shadow .5s ease-out;
	cursor:pointer;
}

.favorite {
  order: -1;
  border-right: solid 12px rgb(235, 198, 38);
  box-sizing: border-box;
}

figure:hover {
  box-shadow: inset -101vw 0 9px -7px rgba(255,255,255,0.3);
}

img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
}

figcaption {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  height: 50px;
  padding: 0 20px;
  background-color: rgba(0, 0, 0, .7);
  color: white;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

h1 {
  margin: 60px 0 0 0;
  padding: 0;
	text-align: center;
  font-family: 'Montserrat';
  font-size: 60px;
	font-weight: 500;
}

#btnRandom{
  margin: 0 10px;
  padding: 4px 6px;
  font-size: 14px;
  color: white;
  border-radius: 4px;
	border: solid 1px rgb(107, 155, 54);
  background-color: rgba(0, 0, 0, 0);
  cursor: pointer;
}

#btnRandom:hover {
  background-color: rgba(156, 204, 100, 0.2);
}


