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

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

*{
    box-sizing: border-box;
}

.container{
    display: flex;
    width: 90vw;
}

.panel{
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 85vh;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    flex: .5;
    margin: 10px;
    transition: all 1s ease-in .4s;
}

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

.panel.active{
    flex: 5;
}

.panel.active h3{
    opacity: 1;
    transition: opacity .3s ease-in .4s;

}

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

    .panel:nth-last-of-type(4){
        display: none;
    }
}
