html, body {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: grey;
}

img {
    max-width: 70vw;
    max-height: 80vh;
}

a {
    color: inherit;
}

.invisible {
    visibility: hidden;
}

.outer {
    position: relative;
    background-color: transparent;

    perspective: 1000px;
}

.inner {
    position: absolute;
    width: 100%;
    height: 100%;

    transition: transform 0.5s;
    transform-style: preserve-3d;
}

:target .inner {
    transform: rotateY(180deg);
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;

    text-align: center;
    border-radius: 40px;
}

.card.front {
    overflow: hidden;
}

.card.back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background-color: #222;
    color: white;
}
