@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    box-sizing: border-box;
}

body {
    background: url(wave_background.svg);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.container {
    display: flex;
    width: 95vw;
}

.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    border: 3rem;
    border-radius: 3rem;
    color: #fff;
    cursor: pointer;
    flex: 0.5;
    margin: 0.5rem;
    position: relative;
    transition: flex 0.7s ease-in;
}

.panel h3 {
    font-size: 2rem;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    margin: 0;
    opacity: 0;
}

.panel.active {
    flex: 5;
}

.panel.active h3 {
    opacity: 1;
    transition: opacity 0.3s ease-in-out 0.4s;
}

@media (max-width: 480px) {
    .container {
        width: 100%;
    }

    .panel:nth-of-type(4),
    .panel:nth-of-type(5) {
        display: none;
    }
}