@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,800);

.container {
    width: 400px;
    margin: 50px auto;
}

.container .hat {
    width: 100px;
}

.text {
    height: 80px;
    width: 400px;
    margin-left: 74px;
    margin-top: -80px;
    overflow: hidden;
}

.text p {
    margin: 0;
    padding-top: 10px;
    margin-bottom: -5px;
    text-align: center;
    font-family: Open Sans;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0;
    margin-left: 74px;
    width: 100%;
    animation: poweredBy 0.5s forwards;
    animation-delay: 1.6s;
}

.text h1 {
    text-transform: uppercase;
    font-family: Open Sans;
    font-weight: 300;
    letter-spacing: 5px;
    color: #aaa;
    margin: 0 0 0 -200px;
    opacity: 0;
    animation: textMask 1s forwards;
    animation-delay: 1.1s;
}

.text h1 span {
    font-weight: 800;
    color: #2d3e99;
}

.g {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    stroke-linecap: round;
    animation: dash 1s linear forwards;
}

.first-dot {
    opacity: 0;
    animation: firstDot 0.2s forwards;
    animation-delay: 0.5s;
}

.l {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 1.7s forwards;
    animation-delay: 0.6s;
}

.dongle {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 2.6s linear forwards;
    animation-delay: 0.7s;
}

.dongle-dot {
    opacity: 0;
    animation: firstDot 0.2s forwards;
    animation-delay: 1s;
}

.dongle-dongle {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 1.2s forwards;
    animation-delay: 1s;
}

@keyframes dash {
    0% {
        stroke-linecap: auto;
    }

    1% {
        stroke-linecap: round;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes firstDot {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textMask {
    to {
        margin-left: 20px;
        opacity: 1;
        letter-spacing: 1px;
    }
}

@keyframes poweredBy {
    0% {
        letter-spacing: 10px;
        opacity: 0;
    }

    100% {
        letter-spacing: 2px;
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}