/* General Demo Style */
@import url(https://fonts.googleapis.com/css?family=Dosis:200,600);

.block-all {
    width: 100%;
    height: 100%;
    background-color: #000;
    position: absolute;
    z-index: 9999999;
    top: 0;
    left: 0;
}

#os-phrases {
    font-size: 100%;
    padding: 0;
    margin: 0;
    height: 100%;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

#os-phrases {
    font-family: 'Dosis', Calibri, Arial, sans-serif;
    color: #fff;
    background: #000;
}



/* Header Style */
.codrops-top {
    text-transform: uppercase;
    position: relative;
    z-index: 1000;
    font-size: 0.68em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 2.2;
}

.codrops-top a {
    padding: 0 1em;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.codrops-top a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.codrops-top span.right {
    float: right;
}

.codrops-top span.right a {
    float: left;
    display: block;
}

.os-phrases h2 {
    font-family: 'Dosis', 'Lato', sans-serif;
    /*font-size: 50px;*/
    font-size: 1.6em;
    font-weight: 200;
    width: 100%;
    overflow: hidden;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 14px;
    text-align: center;
    opacity: 0;
}

.os-phrases h2,
.os-phrases h2>span {
    height: 100vh;
    /* Centering with flexbox */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.os-phrases h2>span {
    margin: 0 15px;
}

.os-phrases h2>span>span {
    display: inline-block;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    perspective: 1000px;
    -webkit-transform-origin: 50% 50%;
    -moz-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
}

.os-phrases h2>span>span>span {
    display: inline-block;
    color: hsla(0, 0%, 0%, 0);
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-animation: OpeningSequence 5.2s linear forwards;
    -moz-animation: OpeningSequence 5.2s linear forwards;
    animation: OpeningSequence 5.2s linear forwards;
}

.os-phrases h2:nth-child(2)>span>span>span {
    -webkit-animation-delay: 3s;
    -moz-animation-delay: 3s;
    animation-delay: 3s;
}

.os-phrases h2:nth-child(3)>span>span>span {
    -webkit-animation-delay: 7s;
    -moz-animation-delay: 7s;
    animation-delay: 7s;
}

.os-phrases h2:nth-child(4)>span>span>span {
    -webkit-animation-delay: 10s;
    -moz-animation-delay: 10s;
    animation-delay: 10s;
}

.os-phrases h2:nth-child(5)>span>span>span {
    /*font-size: 150px;*/
    font-size: 2.6em;
    -webkit-animation-delay: 15s;
    -moz-animation-delay: 15s;
    animation-delay: 15s;
    -webkit-animation-duration: 4s;
    -moz-animation-duration: 4s;
    animation-duration: 4s;
}

.os-phrases h2:nth-child(6)>span>span>span {
    -webkit-animation-delay: 20s;
    -moz-animation-delay: 20s;
    animation-delay: 20s;
}

.os-phrases h2:nth-child(7)>span>span>span {
    -webkit-animation-delay: 23s;
    -moz-animation-delay: 23s;
    animation-delay: 23s;
}

@-webkit-keyframes OpeningSequence {
    0% {
        text-shadow: 0 0 50px #fff;
        letter-spacing: 80px;
        opacity: 0;
        -webkit-transform: rotateY(-90deg);
    }

    50% {
        text-shadow: 0 0 1px #fff;
        letter-spacing: 14px;
        opacity: 0.8;
        -webkit-transform: rotateY(0deg);
    }

    85% {
        text-shadow: 0 0 1px #fff;
        opacity: 0.8;
        -webkit-transform: rotateY(0deg) translateZ(100px);
    }

    100% {
        text-shadow: 0 0 10px #fff;
        opacity: 0;
        -webkit-transform: translateZ(130px);
        pointer-events: none;
    }
}

@-moz-keyframes OpeningSequence {
    0% {
        text-shadow: 0 0 50px #fff;
        letter-spacing: 80px;
        opacity: 0.2;
        -moz-transform: rotateY(-90deg);
    }

    50% {
        text-shadow: 0 0 1px #fff;
        letter-spacing: 14px;
        opacity: 0.8;
        -moz-transform: rotateY(0deg);
    }

    85% {
        text-shadow: 0 0 1px #fff;
        opacity: 0.8;
        -moz-transform: rotateY(0deg) translateZ(100px);
    }

    100% {
        text-shadow: 0 0 10px #fff;
        opacity: 0;
        -moz-transform: translateZ(130px);
        pointer-events: none;
    }
}

@keyframes OpeningSequence {
    0% {
        text-shadow: 0 0 50px #fff;
        letter-spacing: 80px;
        opacity: 0.2;
        transform: rotateY(-90deg);
    }

    50% {
        text-shadow: 0 0 1px #fff;
        letter-spacing: 14px;
        opacity: 0.8;
        transform: rotateY(0deg);
    }

    85% {
        text-shadow: 0 0 1px #fff;
        opacity: 0.8;
        transform: rotateY(0deg) translateZ(100px);
    }

    100% {
        text-shadow: 0 0 10px #fff;
        opacity: 0;
        transform: translateZ(130px);
        pointer-events: none;
    }
}

.os-phrases h2:nth-child(8)>span>span>span {
    font-size: 1.6em;
    /*font-size: 30px;*/
    -webkit-animation: FadeIn 4s linear 40s forwards;
    -moz-animation: FadeIn 4s linear 40s forwards;
    animation: FadeIn 4s linear 40s forwards;
}

@-webkit-keyframes FadeIn {
    0% {
        opacity: 0;
        text-shadow: 0 0 50px #fff;
    }

    100% {
        opacity: 0.8;
        text-shadow: 0 0 1px #fff;
    }
}

@-moz-keyframes FadeIn {
    0% {
        opacity: 0;
        text-shadow: 0 0 50px #fff;
    }

    100% {
        opacity: 0.8;
        text-shadow: 0 0 1px #fff;
    }
}

@keyframes FadeIn {
    0% {
        opacity: 0;
        text-shadow: 0 0 50px #fff;
    }

    100% {
        opacity: 0.8;
        text-shadow: 0 0 1px #fff;
    }
}

/* Bold words */
.os-phrases h2:first-child .word3,
.os-phrases h2:nth-child(2) .word2,
.os-phrases h2:nth-child(4) .word2 {
    font-weight: 600;
}

/*@media all and (min-width:0) and (max-width: 568px) {*/
/*  .block-all {*/
/*    width: 104vh;*/
/*  }*/
/*  .os-phrases h2 {*/
/*    font-size: 20px;*/
/*    word-break: break-all;*/
/*  }*/
/*}*/