* {
    background: #40E0D0;
    background: linear-gradient(to right, #ff0000, #FF8C00, #00f7ff);
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.perspective-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    color: white;
    font-family: Arial;
    font-size: 58px;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    border-radius: 20px;
    -webkit-box-shadow: 4px 17px 50px -4px rgba(69, 65, 69, 1);
    -moz-box-shadow: 4px 17px 50px -4px rgba(69, 65, 69, 1);
    box-shadow: 4px 17px 50px -4px rgba(69, 65, 69, 1);
}

.perspective-line {
    height: 50px;
    overflow: hidden;
    position: relative;
}

p {
    margin: 0;
    height: 50px;
    line-height: 50px;
    transition: all 0.5s ease-in-out;
}

.perspective-line:nth-child(odd) {
    transform: skew(60deg, -30deg) scaleY(0.667);
}

.perspective-line:nth-child(even) {
    transform: skew(0deg, -30deg) scaleY(1.333);
}

.perspective-line {
    position: relative;
}

.perspective-text:hover p {
    transform: translate(0, -50px);
}

.perspective-line:nth-child(1) {
    left: 29px;
}

.perspective-line:nth-child(2) {
    left: 58px;
}

.perspective-line:nth-child(3) {
    left: 87px;
}

.perspective-line:nth-child(4) {
    left: 116px;
}

.perspective-line:nth-child(5) {
    left: 145px;
}

.perspective-line:hover p {
    transform: translate(0, -50px);
}

p {
    transition: all 0.5s ease-in-out;
}