@charset "utf-8";
/* CSS Document */

* {
  box-sizing: border-box;
}

body {
  background: #666666;
}

h1 {
  color: #FFFFFF;
  text-align: center;
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  position: relative;
}

h1:after {
  position: absolute;
  content: "";
  -webkit-animation: Dots 2s cubic-bezier(0, .39, 1, .68) infinite;
  animation: Dots 2s cubic-bezier(0, .39, 1, .68) infinite;
}

.loader {
  margin: 10% auto 30px;
}

.book {
  border: 60px solid #FFFFFF;
  width: 200px;
  height: 60px;
  position: relative;
  perspective: 300px;
}

.page {
  display: block;
  width: 100px;
  height: 60px;
  border: 60px solid #FFFFFF;
  border-left: 1px solid #dedede;
  margin: 0;
  position: absolute;
  right: -60px;
  top: -60px;
  overflow: hidden;
  background: #dedede;
  transform-style: preserve-3d;
  -webkit-transform-origin: left center;
  transform-origin: left center;
}

.book .page:nth-child(1) {
  -webkit-animation: pageTurn 1.2s cubic-bezier(0, .39, 1, .68) 1.6s infinite;
  animation: pageTurn 1.2s cubic-bezier(0, .39, 1, .68) 1.6s infinite;
}

.book .page:nth-child(2) {
  -webkit-animation: pageTurn 1.2s cubic-bezier(0, .39, 1, .68) 1.45s infinite;
  animation: pageTurn 1.2s cubic-bezier(0, .39, 1, .68) 1.45s infinite;
}

.book .page:nth-child(3) {
  -webkit-animation: pageTurn 1.2s cubic-bezier(0, .39, 1, .68) 1.2s infinite;
  animation: pageTurn 1.2s cubic-bezier(0, .39, 1, .68) 1.2s infinite;
}


/* Page turn */

@-webkit-keyframes pageTurn {
  0% {
    -webkit-transform: rotateY( 0deg);
    transform: rotateY( 0deg);
  }
  20% {
    background: #7e7e7e;
  }
  40% {
    background: #dedede;
    -webkit-transform: rotateY( -180deg);
    transform: rotateY( -180deg);
  }
  100% {
    background:  #dedede;
    -webkit-transform: rotateY( -180deg);
    transform: rotateY( -180deg);
  }
}

@keyframes pageTurn {
  0% {
    transform: rotateY( 0deg);
  }
  20% {
    background: #7e7e7e;
  }
  40% {
    background:  #dedede;
    transform: rotateY( -180deg);
  }
  100% {
    background:  #dedede;
    transform: rotateY( -180deg);
  }
}


/* Dots */

@-webkit-keyframes Dots {
  0% {
    content: "";
  }
  33% {
    content: ".";
  }
  66% {
    content: "..";
  }
  100% {
    content: "...";
  }
}

@keyframes Dots {
  0% {
    content: "";
  }
  33% {
    content: ".";
  }
  66% {
    content: "..";
  }
  100% {
    content: "...";
  }
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background-color: #2c3e50;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loading {
  position: absolute;
	top: 50px;
	left: 50%;
	transform: translate(-50%, -50%);
  padding: -50px 10px 10px 10px; /* top right bottom left */
  border-radius: 10px;
  box-shadow: 0px 0px 20px #ffffff;
  animation: expand 1200ms infinite;
  text-align: center;
}

.loading img {
  max-width: 80%;
  height: auto;
  align-items: center;
}

.loading-logo {
  max-width: 80%;
  max-height: 80%;
  color: #1B2B34;
}
@keyframes expand {
	from {
		padding: 25px;
	}
	to {
		padding: 50px;
    box-shadow: 0px 0px 30px #2c3e50;
	}
}
