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

*{
    box-sizing: border-box;
}
body{
    background: #353746;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container{
    width: 100%;
    display: flex;
    padding: 0 20px;
}
.slide{
    height: 80vh;
    cursor: pointer;
    border-radius: 10px;
    margin: 10px;
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: flex 0.5s ease-in-out;
}
.slide h3{
    font-size: 18px;
    color: #fff;
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
    padding: 10px;
    background-color: #0f1013aa;
    border-radius: 10px;
    max-width: 400px;
    overflow: hidden;
    opacity: 0;
}
.slide.active{
    flex: 10;
}
.slide.active h3{
    opacity: 1;
    transition: opacity 0.5s 0.5s ease-in;
}