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

*{
    box-sizing: border-box;
}

body{
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background-color:rgb(32, 32, 32);
}

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

}

.panel{
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh;
    border-radius: 15px;
    cursor: pointer;
    flex: 0.3;
    margin: 10px;
    position: relative;
    transition: flex 0.7s ease-in;
    border: 4px solid rgb(255, 198, 11);
}

.panel h3{
    font-size: 24px;
    margin: 0px;
    position: absolute;
    left: 10%;
    right: 20%;
    top: 10%;
    opacity: 0;
    color: rgb(255, 198, 11);

}
.panel.active{
    flex: 0.8; 
    border: 4px solid rgb(255, 198, 11);
}

.panel.active h3 {
    opacity: 1;
    transition: opacity 0.3s ease-in 0.6s;
    color: rgb(255, 198, 11);

}

.panel.active::before {
    position: absolute;
    border-radius: 15px;
    top:0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    color:rgb(25, 25, 25);
    background: linear-gradient(to bottom, currentColor 3%, transparent 80%);
}

@media (max-width: 600px) {
    .container{
        width: 100vw;
    }
    .panel:nth-of-type(4),.panel:nth-of-type(5){
        display: none;
    }

    .panel:nth-child(1){
        margin-left: 10%;
    }

    .panel h3{
        font-size: 15px;
    }
}