@import url('https://fonts.googleapis.com/css?family=Muli&display=swap'); 

* {
  box-sizing: border-box;
}

body {
  font-family: 'Muli', sans-serif;
  overflow: hidden;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
}

.container {
  width: 100%;
  display: flex;
  padding: 0 20px;
}


.slide {
  height: 80vh;
  border-radius: 20px;
  flex: 1;
  margin: 10px;
  color: #fff;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat:   no-repeat;
  transition: all 0.6s ease-in-out;
  position: relative;
}
 
.slide h3 {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  margin: 0;
  opacity: 0;
}

.slide.active {
  flex: 10;
}

.slide.active h3 {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}