@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: #333;

}

.container {
    width: 100%;
    padding: 0 20px;
    display: flex;
}

.slide {
    cursor: pointer;

    margin: 10px;
    height: 80vh;

    flex: 1;

    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;

    color: #fff;

    position: relative;
    transition: all 500ms ease;
}


.slide h3 {
    opacity: 0;
    position: absolute;

    bottom: 20px;
    left: 20px;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.slide.active {
    flex: 10;
}

.slide.active h3 {
    opacity: 1;
    transition: opacity .3s ease .3s ;
}