* {
    box-sizing: border-box;
}

body {
    font-family: libre-baskerville, sans-serif;
    background: linear-gradient(120deg, #201204, #2c2a2a, #0f172a);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: inherit;
    transition: opacity 0.6s ease;
    opacity: 1;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

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

.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    flex: 0.5;
    margin: 10px;
    position: relative;
    transition: flex 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s ease;
}

.panel h3 {
    font-size: 22px;
    font-weight: 500;
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    opacity: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    border-radius: 50px;
}

.panel:focus {
    outline: 2px solid white;
}

.panel.active {
    flex: 5;
    transform: scale(1.02);
}

.panel.active h3 {
    opacity: 1;
    transform: translateY(0);
}

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

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