* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background: linear-gradient(to bottom right, #ece9e6, #fff);
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  margin: 0 auto;
  width: 60%;
  text-align: center;
}
.cls-2 {
  animation-name: fall-in;
  animation-iteration-count: infinite;
  animation-duration: 2.5s;
}

.cls-2:nth-child(1) {
  animation-delay: 1s;
}
.cls-2:nth-child(2) {
  animation-delay: 0s;
}
.cls-2:nth-child(3) {
  animation-delay: 0.5s;
}
.cls-2:nth-child(4) {
  animation-delay: 1.3s;
}
.cls-2:nth-child(5) {
  animation-delay: 0.3s;
}
.cls-2:nth-child(6) {
  animation-delay: 0.9s;
}
.cls-2:nth-child(7) {
  animation-delay: 1.7s;
}
.cls-2:nth-child(8) {
  animation-delay: 2s;
}

.search-container {
  width: 50%;
  margin: 1em auto;
}
#search {
  margin: 0 auto;
  width: 100%;
  height: 3em;
  padding: 1em;
  border: 2px solid #000;
  border-radius: 30px;
}
#btn {
  width: 10%;
  height: 3em;
  width: 6em;
  border: 1px solid #000;
  border-radius: 30px;
  font-size: 14px;
}
input:focus,
button:focus {
  outline: none;
}

#result {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex-grow: 2;
  justify-content: space-around;
  align-items: center;
}

.cereal-item {
  border: 1px solid red;
  min-width: 200px;
  min-height: 200px;
  margin: 1rem;
  padding: 1em;
  border-radius: 15px;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  /*Box Shadow*/
  -webkit-box-shadow: 2px 2px 9px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px 2px 9px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 2px 2px 9px 0px rgba(0, 0, 0, 0.75);
}
.cereal-name {
  font-weight: bold;
}

/*Modal*/
.modal-background {
  width: 100%;
  background: rgba(53, 52, 52, 0.774);
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  align-self: center;
  justify-self: center;
}
.modal {
  width: 50%;
  height: 50%;
  margin: 15% auto;
  z-index: 3;
  background-color: #fff;
  text-align: center;
}
.approval-img img {
  width: 100%;
  z-index: 4;
}
img {
  width: 100%;
}

@keyframes fall-in {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    display: block;
    transform: translate(100px, 650px);
  }
}
