:root {
    --bg-color: #F1F2F1;
    --typewriterSpeed: 4s;
    --typewriterCharacters: 17;
}

body {
    margin: 0;
    font-family: "Source Sans Pro", sans-serif;
    min-height: 60vh;
    display: grid;
    place-content: center;
    text-align: center;
    background: var(--bg-color);
}

h1 {
    color: #8D8D89;
    position: absolute;
    font-family: andale mono, monospace;
    font-size: clamp(0.5rem, 1.5vw + 0.5rem, 2rem);
    position: absolute;
    position: relative;
    width: max-content;
}

    h1::before,
    h1::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    h1::before {
        background: var(--bg-color);
        animation: typewriter var(--typewriterSpeed) steps(var(--typewriterCharacters)) 1s forwards;
    }

    h1::after {
        width: 0.125em;
        background: #8D8D89;
        animation: typewriter var(--typewriterSpeed) steps(var(--typewriterCharacters)) 1s forwards, blink 750ms steps(var(--typewriterCharacters)) infinite;
    }

@keyframes typewriter {
    to {
        left: 100%;
    }
}

@keyframes blink {
    to {
        background: transparent;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    background-color: #F1F2F1;
    border: none;
    border-radius: 5px;
    color: grey;
    padding: 16px 70px;
    text-align: center;
    font-size: 16px;
    margin: 4px 2px;
    transition: 0.3s;
    position: relative;
}

    .btn:hover {
        background-color: #bdc2bd;
        color: #F1EEEE;
    }

.container {
    height: 200px;
    position: relative;
}

.vertical-center {
    padding-top: 90px;
    margin: 0;
    position: center;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}

@media (min-aspect-ratio: 16/9) {
    .back-video {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .back-video {
        width: auto;
        height: 100%;
    }
}
