/* Google Font Importation */
@import url(https://fonts.googleapis.com/css?family=Chelsea+Market);

@keyframes fadeIn {
    from {
        opacity: 0;
      }
    to {
        opacity: 1;
      }
  }

html,
body {
    height: 100%;
    width: 100%;
}

body {
    background-color: #000;
    font-family: 'Chelsea Market', 'Arial', sans-serif;
    color: #000;
    transition: background-color 0.5s ease;
}

.carousel-inner {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    width: 65%;
    max-width: 100vh;
}

.carousel-item h1,
.carousel-item h2,
.carousel-item p {
    margin: 0;
    padding: 0;
    z-index: 10;
    position: relative;
}

.carousel-item p {
    width: 100%;
    padding: 1rem 1rem;
    box-sizing: border-box;
}

@media only screen and (min-width : 960px) and (min-height : 640px) {
    .carousel-item p {
        font-size: 1.75rem;
    }
}

.carousel-item figure {
    margin: 0;
}

.carousel-item figure img {
    width: 100%;
    position: absolute;
    overflow: hidden;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
}

.carousel-item figure img:first-child {
    position: relative;
    z-index: 2;
}

.carousel-item figure img:nth-child(2) {
    z-index: 3;
}

.carousel-item figure img:nth-child(3) {
    z-index: 4;
}

.carousel-item figure img:nth-child(4) {
    z-index: 5;
}


.carousel-control-next,
.carousel-control-prev {
    align-items: flex-start;
    padding-top: 10vh;
}


.carousel-control-next-icon,
.carousel-control-prev-icon {
    width: 3rem;
    height: 3rem;
}

footer {
    width: 100%;
    height: 30px;
    position: fixed;
    z-index: 10;
    bottom: 0;
    padding: 1% 2% 2%;
    text-align: right;
}

footer h6 {
    display: inline-block;
    vertical-align: middle;
}

#story, footer {
    opacity: 1;
    animation: fadeIn 1.5s;
}


/* Page 0 - Warning */

#page0 {
    color: #ffffff;
}

#page0 h1 {
    text-align: center;
    margin-top: 5rem;
}

#page0 p {
    margin-top: 2rem;
    font-size: 1rem;
    text-align: left;
}

@media only screen and (min-width : 960px) and (min-height : 640px) {

    #page0 h1,
    #page0 p {
        padding: 0 5rem;
    }
}


/* Page 1 - Cover Page */


#page1 h1 {
    text-align: center;
    top: 3rem;
}

@media only screen and (min-width : 960px) and (min-height : 640px) {
    #page1 h1 {
        top: 7rem;
        font-size: 3.5rem;
    }
}


/* Page 2 */


/* CSS Animation Source: http://css-tricks.com/snippets/css/webkit-keyframe-animation-syntax/ */

@keyframes santa2 {
    0% {
        transform: translateY(0%);
    }

    50% {
        transform: translateY(1.5%);
    }

    100% {
        transform: translateY(0%);
    }
}

#page2 img:nth-child(2) {
    animation: santa2 0.4s ease infinite;
    animation-delay: 0.6s;
}



/* Page 3 */

@keyframes arm3 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(20deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#page3 img:nth-child(2) {
    transform-origin: calc(549.7693 / 960 * 100%) calc(187.0212 / 640 * 100%);
    animation: arm3 1s ease infinite;
    animation-delay: 0.6s;
}

#page3 img:nth-child(3) {
    transform-origin: calc(787.9271 / 960 * 100%) calc(208.5587 / 640 * 100%);
    animation: arm3 1s ease infinite;
    animation-delay: 0.6s;
}



/* Page 4 */

@keyframes airplane4 {
    0% {
        transform: translate(40%, 25%);
    }

    100% {
        transform: translate(-40%, -25%);
    }
}

@keyframes arms4 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(20deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#page4 img:nth-child(1) {
    animation: airplane4 5s ease-in-out 1;
    position: absolute;
    transform: translate(-40%, -25%);
}

#page4 img:nth-child(2) {
    position: relative;
}

#page4 img:nth-child(3) {
    transform-origin: calc(243.8242 / 960 * 100%) calc(260.0735 / 640 * 100%);
    animation: arms4 1s ease infinite;
    animation-delay: 0.6s;
}

#page4 img:nth-child(4) {
    transform-origin: calc(521.8673 / 960 * 100%) calc(364.0497 / 640 * 100%);
    animation: arms4 1s ease infinite;
    animation-delay: 0.6s;
}


/* Page 5 */

@keyframes hearts {
    0% {
        transform: scale(0.5);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.5);
    }
}

@keyframes goldi5 {
    0% {
        transform: translateX(-30%);
    }

    100% {
        transform: translateX(0);
    }
}

#page5 img:nth-child(2) {
    transform-origin: calc(604.7337 / 960 * 100%) calc(150.8576 / 640 * 100%);
    animation: hearts 0.5s ease infinite;
    animation-delay: 0.6s;
}

#page5 img:nth-child(3) {
    transform-origin: bottom center;
    animation: goldi5 10s ease 1;
}



/* Page 6 */

@keyframes pan6 {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(1.25%);
    }

    100% {
        transform: translateX(0);
    }
}

#page6 img:nth-child(2) {
    transform-origin: calc(517.7748 / 960 * 100%) calc(469.1494 / 640 * 100%);
    animation: pan6 0.75s ease infinite;
    animation-delay: 0.6s;
}



/* Page 7 */

@keyframes wall7 {
    0% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.1, 1);
    }

    100% {
        transform: scale(1, 1);
    }
}

#page7 img:nth-child(2) {
    transform-origin: top right;
    animation: wall7 0.4s ease infinite;
    animation-delay: 0.6s;
}



/* Page 8 */

@keyframes face8 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes handshake8 {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(1%);
    }

    100% {
        transform: translateY(0);
    }
}

#page8 img:nth-child(2) {
    animation: face8 5s ease 1;
}

#page8 img:nth-child(3) {
    transform-origin: calc(619.2908 / 960 * 100%) calc(371.2236 / 640 * 100%);
    animation: handshake8 0.3s ease infinite;
    animation-delay: 0.6s;
}



/* Page 9 */

@keyframes arm9 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#page9 img:nth-child(2) {
    transform-origin: calc(502.5504 / 960 * 100%) calc(307.7827 / 640 * 100%);
    animation: arm9 0.5s ease infinite;
    animation-delay: 0.6s;
}



/* Page 10 */

@keyframes lamp10 {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1%);
    }

    100% {
        transform: translateY(0);
    }
}

#page10 img:nth-child(2) {
    transform-origin: top center;
    animation: lamp10 0.4s ease infinite;
    animation-delay: 0.6s;
}



/* Page 11 */

@keyframes darkroom11 {
    0% {
        opacity: 0.99;
    }

    30% {
        opacity: 0.99;
    }

    40% {
        opacity: 0.01;
    }

    90% {
        opacity: 0.01;
    }

    100% {
        opacity: 0.99;
    }
}

#page11 img:nth-child(2) {
    animation: darkroom11 3s ease-in 1;
}



/* Page 12 */

@keyframes arm12 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(20deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#page12 img:nth-child(2) {
    transform-origin: calc(776.9872 / 960 * 100%) calc(439.4604 / 640 * 100%);
    animation: arm12 1s ease infinite;
    animation-delay: 0.6s;
}
