@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;
  background-position: center;
  background-size: cover;
  transition: background-image 0.5s;
  background-repeat: no-repeat;
}

.wrapper {
  background-color: rgb(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.slide {
  height: 80vh;
  border-radius: 20px;
  margin: 10px;
  cursor: pointer;
  color: #fff;
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: all 0.5s ease-in-out;
}

.slide h3 {
  position: absolute;
  font-size: 24px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.slide.active {
  flex: 10;
}

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

@media all and (max-width: 1600px) {
  .slide.active {
    flex: 8;
  }
}

@media all and (max-width: 1200px) {
  .slide.active {
    flex: 5;
  }
}

@media all and (max-width: 1000px) {
  .slide.active {
    flex: 6;
  }

  .container {
    height: 100%;
    padding: 38px 20px;
    flex-direction: column;
  }
}
