body {
  background: #222;
  color: #fff;
  font-size: 18px;
}

.main-content {
  margin: 5em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
}

h1 {
  width: 100%;
  margin: 0 auto 1.5em;
  font-size: 30px;
}
h1 small {
  text-transform: none;
  display: block;
  margin: 20px 0;
  font: 300 20px 'QuickSand', sans-serif;
  color: #999;
}

.moleskine-wrapper {
  max-width: calc(100% / 4);
  min-width: 10em;
}

.moleskine-notebook {
  height: 250px;
  width: 175px;
  position: relative;
  transition: .4s ease-in-out;
  border-radius: 5px 15px 15px 5px;
  transform-origin: left center 0px;
  display: inline-block;
  margin: 30px;
  perspective: 800px;
}
.moleskine-notebook:hover {
  transform: rotateZ(-10deg);
}
.moleskine-notebook:hover .notebook-cover {
  transform: rotateY(-50deg);
  z-index: 999;
  box-shadow: 20px 10px 50px rgba(0, 0, 0, 0.2);
}

.notebook-cover {
  background: #cc4b48;
  height: 250px;
  width: 175px;
  position: absolute;
  border-radius: 5px 15px 15px 5px;
  z-index: 10;
  transition: .5s linear;
  transform-style: preserve-3d;
  transform-origin: left center 0px;
}
.notebook-cover:before {
  content: "";
  position: absolute;
  width: 10px;
  height: calc(100% + 2px);
  top: -1px;
  z-index: 100;
  border-radius: 2px;
  right: 25px;
  transition: 2s ease;
  background: linear-gradient(to right, #9c2e2b 0%, #cc4b48 12%, #9c2e2b 25%, #cc4b48 37%, #9c2e2b 50%, #cc4b48 62%, #9c2e2b 75%, #cc4b48 87%, #9c2e2b 100%);
}

.notebook-cover.blue {
  background: #2e95aa;
}
.notebook-cover.blue:before {
  background: linear-gradient(to right, #1e606e 0%, #2e95aa 12%, #1e606e 25%, #2e95aa 37%, #1e606e 50%, #2e95aa 62%, #1e606e 75%, #2e95aa 87%, #1e606e 100%);
}
.notebook-cover.green {
  background: #abc3b5;
}
.notebook-cover.green:before {
  background: linear-gradient(to right, #7ea38e 0%, #abc3b5 12%, #7ea38e 25%, #abc3b5 37%, #7ea38e 50%, #abc3b5 62%, #7ea38e 75%, #abc3b5 87%, #7ea38e 100%);
}
.notebook-cover.yellow {
  background: #fed754;
}
.notebook-cover.yellow:before {
  background: linear-gradient(to right, #ebb501 0%, #fed754 12%, #ebb501 25%, #fed754 37%, #ebb501 50%, #fed754 62%, #ebb501 75%, #fed754 87%, #ebb501 100%);
}
.notebook-cover.orange {
  background: #ffae1a;
}
.notebook-cover.orange:before {
  background: linear-gradient(to right, #cc8400 0%, #ffae1a 12%, #cc8400 25%, #ffae1a 37%, #cc8400 50%, #ffae1a 62%, #cc8400 75%, #ffae1a 87%, #cc8400 100%);
}
.notebook-cover.purple {
  background: #800080;
}
.notebook-cover.purple:before {
  background: linear-gradient(to right, #4d004d 0%, #800080 12%, #4d004d 25%, #800080 37%, #4d004d 50%, #800080 62%, #4d004d 75%, #800080 87%, #4d004d 100%);
}
.notebook-cover.blue1 {
  background: #0053a0;
}
.notebook-cover.blue1:before {
  background: linear-gradient(to right, #003465 0%, #0053a0 12%, #003465 25%, #0053a0 37%, #003465 50%,#0053a0 62%, #003465 75%, #0053a0 87%, #003465 100%);
}
.notebook-cover.green1 {
  background: #008900;
}
.notebook-cover.green1:before {
  background: linear-gradient(to right, #003b00 0%, #008900 12%, #003b00 25%, #008900 37%, #003b00 50%,#008900 62%, #003b00 75%, #008900 87%, #003b00 100%);
}
.notebook-skin {
  height: 50px;
  background: #e8e8e0;
  margin-top: 80px;
  padding: 15px;
  font-size: 12px;
  position: relative;
  z-index: 10;
  color: #222;
  text-align: left;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.notebook-skin:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 15px;
  left: 0;
  bottom: 0;
  background: #cddc39;
}
.notebook-skin1 {
  height: 75px;
  background: #e8e8e0;
  margin-top: 80px;
  padding: 15px;
  font-size: 10px;
  position: relative;
  z-index: 10;
  color: #222;
  text-align: left;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.notebook-skin1:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 15px;
  left: 0;
  bottom: 0;
  background: #cddc39;
}


.notebook-page {
  height: 100%;
  width: 175px;
  position: absolute;
  background-color: #fbfae8;
  z-index: 0;
  border-radius: 5px 16px 16px 5px;
  overflow: hidden;
}
.notebook-page.ruled {
  background: linear-gradient(to bottom, #fbfae8 9px, #e4e4e4 1px);
  background-size: 100% 10px;
}
.notebook-page.squared {
  background-image: linear-gradient(#e4e4e4 1px, transparent 1px), linear-gradient(90deg, #e4e4e4 1px, transparent 1px);
  background-size: 10px 10px, 10px 10px, 2px 2px, 2px 2px;
}
.notebook-page.dotted {
  background: linear-gradient(90deg, #fbfae8 10px, transparent 1%) center, linear-gradient(#fbfae8 10px, transparent 1%) center, #999;
  background-size: 11px 11px;
}

