@font-face {
    font-family: 'yellow-tail';
    src: url(Yellowtail/Yellowtail-Regular.ttf);
}
*{
    box-sizing: border-box;
}
body{
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    
    height: 100vh;
    overflow: hidden;
}
.container{
    display: flex;
    width: 90vw;
}
.panel{
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 80vh;
    border-radius: 50px;
    color: antiquewhite;
    cursor: pointer;
    flex: 0.5;
    margin: 10px;
    position: relative;
    transition: flex 0.7s ease-in;
}
.panel h2{
    font-family: "yellow-tail";
    font-size: 35px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin: 0;
    opacity: 0;
}
.panel.active{
    flex: 5;

}
.panel.active h2{
    opacity: 1;
}
@media (max-width:750px) {
    .container{
        width: 100vw;
    }
    .panel:nth-of-type(5){
        display: none;
    }
}
@media (max-width:500px) {
    .container{
        width: 100vw;
    }
    .panel:nth-of-type(4),.panel:nth-of-type(5){
        display: none;
    }
}