@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* border: 1px solid black; */
  font-family: 'Roboto', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

h1 {
  text-align: center;
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  overflow: hidden;
}

.container {
  /* border: 1px solid black; */
  display: flex;
  width: 90vw;
}

.cards {
  /* border: 1px solid black; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  border-radius: 50px;
  /* vertical-align: text-bottom; */
  color: white;
  cursor: pointer;
  /* adjust the width with flex */
  flex: 0.5;
  margin: 10px;
  position: relative;
  transition: flex 0.7s ease-in;
}

.cards h3 {
  font-size: 24px;
  position: absolute;
  bottom: 20px;
  left: 30px;
  margin: 0;
  opacity: 0;
}


.cards.active {
  flex: 5;
}

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

.cards:nth-of-type(2).active h3 {
  color: black;
}

@media(max-width: 700px) {
  .container {
    width: 100vw;
  }

  .cards:nth-of-type(4),
  .cards:nth-of-type(5) {
    display: none;
  }
}


.home {
  text-decoration: none;
  display: flex;
  justify-content: center;
  margin-top: 50px;
  padding: .6em 2em;
  border-radius: .5em;
  background-color: #bde0fe;
  color: black;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}