body, body > div {
    align-items: center;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

body {
    margin: 0;
    height: 100vh;
}

.curtain-content {
    align-items: center;
    background: #c5988b;
    color: #B0897D;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    padding: 1rem 0;
    position: absolute;
    text-align: center;
    z-index: -1;
    width: 100%;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

.curtain-content img {
    width: 20%;
}

[class*=curtain] {
    position: relative;
}

[class*=curtain]::after,
[class*=curtain]::before {
    content: '';
    position: absolute;
    transition-duration: 0.5s;
}

[class*=curtain]:hover:after,
[class*=curtain]:hover:before {
    opacity: 0;
}

.curtain-0::after,
.curtain-0::before {
    height: 100%;
    width: 50%;
}

.curtain-0::after {
    right: 0;
    transform-origin: right;
    background: url("curtain_r.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.curtain-0::before {
    left: 0;
    transform-origin: left;
    background: url("curtain_l.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.curtain-0:hover:after,
.curtain-0:hover:before {
    transform: scaleX(0);
}

