@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Source Code Pro', monospace;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    background-image: url(./layered-waves-haikei.svg);
    background-size: cover;
    background-repeat: no-repeat;
}

.headings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* HEADING CSS */
h1 {
    font-family: 'Source Code Pro', monospace;
    font-size: 4em;
    color: #A084DC;
}

.typewriter1 {
    position: relative;
    color: #645CBB;
    margin-bottom: 1rem;
}

.typewriter1::after {
    content: '|';
    position: absolute;
    right: 0;
    color: white;
    background-color: black;
    width: 100%;
    animation: typing 3s steps(14) alternate infinite,
        line 1s infinite;
}

.typewriter2 {
    position: relative;
    margin-bottom: 14rem;
}

.typewriter2::after {
    content: '|';
    position: absolute;
    right: 0;
    color: white;
    background-color: black;
    width: 100%;
    animation: typing 3s steps(20) alternate infinite,
        line 1s infinite;
}

@keyframes typing {
    to {
        width: 0%;
    }
}

@keyframes line {
    50% {
        color: transparent;
    }
}

/* BUTTON CSS */

.wrapper {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.link_wrapper {
    position: relative;
}

a {
    display: block;
    width: 250px;
    height: 50px;
    line-height: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    color: #645CBB;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* border: 3px solid #333; */
    border: 3px solid #645CBB;
    transition: all .35s;
}

.icon {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    position: absolute;
    transform: rotate(45deg);
    right: 0;
    top: 0;
    z-index: -1;
    transition: all .35s;
}

.icon svg {
    width: 30px;
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
    transform: rotate(-45deg);
    transition: all .1s;
}

a:hover {
    width: 200px;
    border: 3px solid #A084DC;
    background: transparent;
    color: #A084DC;
}

a:hover+.icon {
    border: 3px solid #A084DC;
    fill: #A084DC;
    right: -25%;
}