@import url('https://fonts.googleapis.com/css2?family=Squada+One&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: grid;
    place-items: center;
    height: 100vh;
    background: #000000;
    font-family: 'Courier New', Courier, monospace;
}

a:link {
    color: #CC6E43;
}

a:visited {
    color: #CC6E43;
}

a:hover {
    color: #A53B8E;
}

.anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 100px;
    text-align: center;
    background: #171614;
    color: #858585;
    overflow: hidden;
    z-index: 1;
    font: 7em 'Squada One';
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 500px;
    height: 700px;
    padding: 1em;
    text-align: center;
    background: #171614;
    border-radius: .8em;
    color: #858585;
    cursor: help;
    overflow: hidden;
    z-index: 1;
}

.card:hover {
    color: #ffffff;
}

.container {
    display: grid;
    place-items: center;
    position: relative;
    width: 508px;
    height: 708px;
    border-radius: 1em;
    background: linear-gradient(45deg, #87482b, #612253);
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 35px;
    top: 0px;
    right: 0px;
    transition: 2s;
    background: linear-gradient(45deg, #CC6E43, #A53B8E);
    transform: rotate(-45deg) translate(-150px, -100px);
}

.container:hover::before {
    animation: cardEffect 2s;
}

@keyframes cardEffect {
    100% {
        transform: rotate(-45deg) translate(0, 805px);
    }
}

.text-copy {
    fill: none;
    stroke: #A53B8E;
    stroke-dasharray: 6% 29%;
    stroke-width: 2px;
    stroke-dashoffset: 0%;
    animation: anim 5s infinite linear;
}

.text-copy:nth-child(1) {
    stroke: #AB4381;
    animation-delay: -1s;
}

.text-copy:nth-child(2) {
    stroke: #B24C75;
    animation-delay: -2s;
}

.text-copy:nth-child(3) {
    stroke: #B85468;
    animation-delay: -3s;
}

.text-copy:nth-child(4) {
    stroke: #BF5D5C;
    animation-delay: -4s;
}

.text-copy:nth-child(5) {
    stroke: #C5654F;
    animation-delay: -5s;
}

@keyframes anim {
    100% {
        stroke-dashoffset: -35%;
    }
}