@import url("https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600,700,800");
body {
  background: white;
  background: linear-gradient(to right, #ffefba, #ffffff);
  font-family: "Fira Sans", sans-serif;
}

.wrapper {
  display: grid;
  grid-template-columns: 50% 50%;
}

.container {
  margin: 100px;
  display: inline-flex;
}

.card {
  display: flex;
  height: 380px;
  width: 600px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: -1rem 0 3rem #000;
  transition: 0.4s ease-out;
  position: relative;
  left: 0px;
}
.card:not(:first-child) {
  margin-left: -50px;
}
.card:hover {
  transform: translateY(-20px);
  transition: 0.4s ease-out;
}
.card:hover ~ .card {
  position: relative;
  left: 50px;
  transition: 0.4s ease-out;
}

.nature .card:nth-of-type(1) {
  background: url("img/law.gif");
  background-size: cover;
  background-position: center;
}
.nature .card:nth-of-type(2) {
  background: url("img/e-com.gif");
  background-size: cover;
  background-position: center;
}


.sky .card:nth-of-type(1) {
  background: url("img/movie.gif");
  background-size: cover;
  background-position: center;
}

.inspire {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inspire a {
  text-decoration: none;
  margin: 10px;
}

@media screen and (max-width: 1425px) {
  .wrapper {
    grid-template-columns: 100%;
  }
}