/* Lazy Load Styles */
.card-image {
  display: flex;
  border-radius: 8px;
  text-decoration: none;
  min-width: 500px;
  min-height: 40rem;
/* layout hack */
  background: #fff center center no-repeat;
  background-size: cover;
  filter: blur(3px);
/* blur the lowres image */
}
.card-image img {
  display: block;
  width: 100%;
  opacity: 0;
/* visually hide the img element */
}
.card-image.is-loaded {
  filter: none;
/* remove the blur on fullres image */
  transition: filter 0.7s;
}
/* Layout Styles */
body {
/*background-color: #e8dbca;*/
  background: linear-gradient(135deg, #5583ee 0%, #2989d8 0%, #8debff 0%, #4148dd 100%);
  font-family: 'Poppins', serif;
}
* {
  box-sizing: border-box;
}
.card-container {
  width: 80vw;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
.card {
  top: 0;
  width: 500px;
  height: 40rem;
  border-radius: 8px;
  align-self: center;
  margin: 1rem;
  display: flex;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}
.card:after {
  content: '';
  display: block;
  height: 40px;
  width: 80%;
  bottom: -16px;
  background-color: rgba(95,124,164,0.8);
  position: absolute;
  z-index: -1;
  left: 50%;
  margin-left: -40%;
  transform: perspective(200px) rotateX(45deg);
  filter: blur(10px);
  transition: all 0.3s ease-in-out;
}
.card:hover {
  top: -10px;
}
.card:hover:after {
  bottom: -20px;
  filter: blur(14px);
}
.card img {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
  display: block;
  vertical-align: middle;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center center;
  object-position: center center;
  -webkit-backface-visibility: hidden;
}
.card .content {
  position: absolute;
  bottom: 0;
  padding: 0 2rem;
  z-index: 1;
  align-self: flex-end;
  text-align: center;
  margin: 0 auto 2.25rem auto;
}
.card .content h2,
.card .content h3 {
  color: #fff;
  text-align: center;
  font-weight: 400;
  font-smoothing: antialiased;
}
.card .content h3 {
  font-size: 10px;
  font-family: Roboto;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  position: relative;
  margin: auto;
  padding: 0 15px;
  display: inline-block;
}
.card .content h3:before,
.card .content h3:after {
  content: '';
  display: block;
  height: 1px;
  background-color: rgba(255,255,255,0.7);
  width: 50px;
  position: absolute;
  margin: 0 auto;
  top: 4px;
  right: 100%;
}
.card .content h3:after {
  left: 100%;
}
.card .content h2 {
  color: #fff;
  text-align: center;
  font-size: 32px;
  padding-top: 10px;
  margin: 0;
}

@keyframes animatedBackground {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

#animate-area { 
  width: 560px; 
  height: 400px; 
  background-image: url(./img/1.jpg);
  background-position: 0px 0px;
  background-repeat: repeat-x;

  animation: animatedBackground 40s linear infinite;
}