* {
    margin: 0;
    padding: 0;
}

:root {
    font-size: 1.5vw;
    background: #313131;
    color: #f1f1f1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1024px) {
    :root {
        font-size: 1vw;
    }
}

body {
    max-width: 1920px;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

nav {
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

a {
    padding: .25rem .75rem;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
    border-radius: .25rem;
    transition: background .5s;
    font-size: 2.5rem;
}

@media (min-width: 1024px) {
    a {
        font-size: 1rem;
    }
}


a.active {
    background: rgba(255, 255, 255, 0.2);

}

main {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
    transition: transform 1s cubic-bezier(.19,1,.22,1) 0s;
    -webkit-transition: transform 1s cubic-bezier(.19,1,.22,1) 0s;;
    will-change: transform;
}

main.left {
    transform: translateX(61rem);
}

main.center {
    transform: translateX(0);
}

main.right {
    transform: translateX(-61rem);
}

section {
    flex-shrink: 0;
    position: relative;
    border-radius: .5rem;
    width: 60rem;
    overflow: hidden;
    min-height: 100svh;
    background: #202020;
    font-size: small;
    transition: all .5s;
}

section:not(.active) {
    transform: translateY(2rem);
    /* opacity: 0.5; */
}

section > div {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s;
}

img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
}

p {
    z-index: 1;
}

