@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);

html,
body {
    width: 100%;
    height: 100%;
    font: 700 1em "News Cycle", sans-serif;
    letter-spacing: .15em;
    color: #ff6;
    overflow: hidden;
    margin: 0;
    background: black url("../assets/stars.jpg") no-repeat top center fixed;
}

.starwars section {
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 1;
}

.starwars .start {
    font-size: 200%;
    width: 18em;
    margin: -4em 0 0 -9em;
    text-align: center;
    cursor: pointer;
}

.starwars .start span {
    color: #4bd5ee;
}

.starwars .intro {
    width: 15em;
    margin: 0 0 0 -7.5em;
    font-size: 200%;
    font-weight: 400;
    color: #4bd5ee;
    opacity: 0;
    -webkit-animation: intro 6s ease-out 1s;
    animation: intro 6s ease-out 1s;
}

.starwars .logo {
    opacity: 0;
    -webkit-animation: logo 9s ease-out 9s;
    animation: logo 9s ease-out 9s;
}

.starwars .logo svg {
    width: inherit;
}

.starwars .titles {
    width: 14.65em;
    margin: 0 0 0 -7.325em;
    top: auto;
    bottom: 0;
    height: 50em;
    font-size: 350%;
    text-align: justify;
    overflow: hidden;
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    -webkit-transform: perspective(300px) rotateX(25deg);
    transform: perspective(300px) rotateX(25deg);
    word-wrap: break-word;
}

.starwars .titles > div {
    position: absolute;
    top: 100%;
    -webkit-animation: titles 81s linear 13s;
    animation: titles 81s linear 13s;
}

.starwars .titles > div > p {
    margin: 1.35em 0 1.85em 0;
    line-height: 1.35em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.starwars .titles > div > p > p{
    width: 14.65em;
}

@-webkit-keyframes intro {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes intro {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes logo {
    0% {
        width: 18em;
        margin: -9em 0 0 -9em;
        -webkit-transform: scale(2.75);
        transform: scale(2.75);
        opacity: 1;
    }
    50% {
        opacity: 1;
        width: 18em;
        margin: -9em 0 0 -9em;
    }
    100% {
        -webkit-transform: scale(0.1);
        transform: scale(0.1);
        opacity: 0;
        width: 18em;
        margin: -9em 0 0 -9em;
    }
}

@keyframes logo {
    0% {
        width: 18em;
        margin: -9em 0 0 -9em;
        -webkit-transform: scale(2.75);
        transform: scale(2.75);
        opacity: 1;
    }
    50% {
        opacity: 1;
        width: 18em;
        margin: -9em 0 0 -9em;
    }
    100% {
        -webkit-transform: scale(0.1);
        transform: scale(0.1);
        opacity: 0;
        width: 18em;
        margin: -9em 0 0 -9em;
    }
}

@-webkit-keyframes titles {
    0% {
        top: 100%;
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        top: 20%;
        opacity: 0;
    }
}

@keyframes titles {
    0% {
        top: 100%;
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        top: 20%;
        opacity: 0;
    }
}


.scene {
    position: relative;
    width: 60%;
    margin: 0 auto;
    height: 100%;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    -o-perspective: 1000px;
    perspective: 1000px;
    -webkit-perspective-origin: 50% 40%;
    -moz-perspective-origin: 50% 40%;
    -o-perspective-origin: 50% 40%;
    perspective-origin: 50% 40%;
}

.input {
    text-align: center;
    position: absolute;
    top: 40%;
    width: 100%;
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    -ms-transition-property: -ms-transform;
    -o-transition-property: -o-transform;
    transition-property: transform;
    -webkit-transition-duration: 3s;
    -moz-transition-duration: 3s;
    -ms-transition-duration: 3s;
    -o-transition-duration: 3s;
    transition-duration: 3s;
    -webkit-transition-timing-function: linear;
    -moz-transition-timing-function: linear;
    -ms-transition-timing-function: linear;
    -o-transition-timing-function: linear;
    transition-timing-function: linear;
    margin-top: 150px;
}

.input.zoomed {
    -webkit-transform: translateZ(1500px);
    -moz-transform: translateZ(1500px);
    -ms-transform: translateZ(1500px);
    -o-transform: translateZ(1500px);
    transform: translateZ(1500px);
}

.input input {
    font-size: 1.0em;
    color: #ff6;
    width: 100%;
    border-radius: 10px;
    padding: 8px;
    border-width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 4px 3px #ddd;
}

.input input:focus {
    outline: none;
}

a, a:visited{
    color: #ff6;
}
