* {
    transition: all 0.6s;
}

html {
    height: 100%;
}

body {
    color: #888;
    margin: 0;
}

#main {
    display: table;
    width: 100%;
    height: 100vh;
    text-align: center;
}

.fof {
    display: table-cell;
    vertical-align: middle;
}

    .fof h1 {
        font-size: 15px;
        display: inline-block;
        padding-right: 12px;
        text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.3);
        animation: type .5s alternate infinite;
    }

@media only screen and (min-width: 500px) {
    .fof h1 {
        font-size: 20px;
    }
}
@keyframes type {
    from {
        box-shadow: inset -3px 0px 0px #888;
    }

    to {
        box-shadow: inset -3px 0px 0px transparent;
    }
}