* {
  padding: 0;
  margin: 0;
  font-family: Palatino;
  color: #f0efe6;
  cursor: none;
}

body {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  background-color: #f0efe6;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.intro {
  color: #445482;
  font-size: 1vw;
  text-align: center;
  padding: 60% 10%;
  line-height: 1.5;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 1s, opacity 1s linear 1s;
  z-index: -19;
}

.intro.appear {
  visibility: visible;
  opacity: 1;
}

.initialPlaceholder {
  position: absolute;
  width: 50%;
  left: 25%;
  display: inline-grid;
  grid-template-columns: 50% 50%;
  opacity: 0;
  animation: fadeIn 1s 1s;
  transition: visibility 1s linear 1s, opacity linear 1s;
}
.initialPlaceholder p {
  opacity: 1;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.initialCover {
  width: 100%;
}

.initialPlaceholder.dissappear {
  opacity: 0;
  visibility: hidden;
  /* display: none; */
}

i {
  color: #445482;
}

/*NAVBAR STYLING*/

nav {
  min-height: 10px;
  margin: 0 -10px;
}

nav ul {
  background-color: #445482;
  list-style-type: none;
  font-size: 20px;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  visibility: visible;
  opacity: 1;
  transition: visibility 0s linear 0ms, opacity 1s;
}

ul.unhovered {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 2s, opacity 1s linear 0.5s;
}

.title {
  grid-column: 2/3;
  justify-self: center;
}

.artist_statement {
  grid-column: 1/2;
  justify-self: start;
}

.video {
  grid-column: 3/4;
  justify-self: end;
}

nav a {
  text-decoration: none;
}

nav img {
  width: 150px;
}

.wrapper {
  perspective: 5000px;
  -webkit-perspective: 5000px;
  align-self: center;
  margin: 5% 0.5%;
  position: relative;
}

.beginning {
  background-color: rgba(255, 255, 255, 0);
  text-align: center;
  height: 50%;
  margin: 5% 0 0 0;
  padding: 0;
  color: #445482;
  visibility: hidden;
  opacity: 0;
  border: none;
  font-size: 18px;
  transition: visibility;
  transition: opacity;
  transition-duration: 3s;
  transition-delay: 1s;
  z-index: 0;
}

.beginning.visible {
  visibility: visible;
  opacity: 100%;
}

.beginning:focus {
  visibility: hidden;
}

/*CURSOR STYLING*/

.cursor {
  background-color: #445482;
  z-index: 100;
  position: fixed;
  pointer-events: none;
  border-radius: 20px;
  visibility: visible;
}

.cursor1 {
  transition: transform 0.4s, width 0.4s, height 0.4s;
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%);
  opacity: 90%;
}

.cursor2 {
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  transition: all 100ms ease-out;
  opacity: 80%;
}

.cursor3 {
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  transition: all 200ms ease-out;
  opacity: 60%;
}

.cursor4 {
  width: 3px;
  height: 3px;
  transform: translate(-50%, -50%);
  transition: all 400ms ease-out;
  opacity: 40%;
}

.cursor.is-hidden {
  visibility: hidden;
}

.cursor.border {
  border: solid 0.2px;
  border-color: #efede6;
}

.cursor.color {
  background-color: #efede6;
}

.cursor1.size {
  width: 30px;
  height: 30px;
}

/*BUTTON STYLING*/

.buttonsleft,
.buttonsright {
  position: absolute;
  display: grid;
  grid-template-columns: 50% 25% 25%;
  grid-template-rows: 100%;
  top: 0;
  height: 35vw;
  width: 50%;
  z-index: 100;
}

.buttonsright {
  grid-template-columns: 25% 25% 50%;
  right: 0;
}

.button1,
.button2 {
  grid-column: 2/3;
  grid-row: 1;
  visibility: visible;
}

#left-outer-button,
#right-inner-button {
  grid-column: 1/2;
  grid-row: 1;
  visibility: hidden;
}

#left-inner-button,
#right-outer-button {
  grid-column: 3/4;
  grid-row: 1;
  visibility: hidden;
}

.button1.is-invisible {
  visibility: hidden;
}

.button2.is-invisible {
  visibility: hidden;
}

#left-inner-button.is-visible {
  visibility: visible;
}

#right-inner-button.is-visible {
  visibility: visible;
}

#left-outer-button.is-visible {
  visibility: visible;
}

#right-outer-button.is-visible {
  visibility: visible;
}

#left-button,
#left-outer-button,
#right-inner-button {
  cursor: url("../images/left.png"), auto;
  height: 100%;
  background-color: transparent;
  border: none;
}

#right-button,
#right-outer-button,
#left-inner-button {
  cursor: url("../images/right.png"), auto;
  height: 100%;
  background-color: transparent;
  border: none;
}

#left-inner-button.downcursor {
  cursor: url("../images/down.png"), auto;
}

#right-inner-button.downcursor {
  cursor: url("../images/down.png"), auto;
}

#left-button.zoom,
#right-button.zoom,
#left-outer-button.zoom,
#right-inner-button.zoom,
#right-outer-button.zoom,
#left-inner-button.zoom {
  cursor: zoom-in;
}

input:focus {
  visibility: hidden;
}

.button {
  height: 100%;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/*PAGE STYLING & ANIMATIONS*/

.gridwrap {
  display: grid;
  grid-template-columns: 50% 50%;
  opacity: 0;
  transition: opacity 1s linear 0s;
}

.gridwrap.appear {
  opacity: 1;
}

.cover {
  grid-column: 2/3;
  z-index: 20;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  transform-origin: left;
  transition-timing-function: linear;
}

.cover.is-flipped {
  transform: rotateY(-90deg);
}

.cover.delay {
  transition-delay: 0.5s;
}

.page {
  width: 50%;
  position: relative;
}

.page.odd {
  position: absolute;
  width: 25%;
  left: 25%;
}

.page.even {
  position: absolute;
  width: 25%;
  right: 25%;
}

.page:nth-child(odd) {
  justify-self: right;
}

.page:nth-child(even) {
  justify-self: left;
}

img {
  width: 100%;
}

.odd {
  transform: rotateY(90deg);
  transform-origin: right;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  transition-timing-function: linear;
}

.odd.is-flipped {
  transform: rotateY(0deg);
}

.odd.delay {
  transition-delay: 0.5s;
}

.even {
  transition: transform 0.5s;
  transform-style: preserve-3d;
  transform-origin: left;
  transition-timing-function: linear;
}

.even.is-flipped {
  transform: rotateY(-90deg);
}

.even.delay {
  transition-delay: 0.5s;
}

.left-face {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.right-face {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.left-face-back,
.right-face-back {
  position: absolute;
  bottom: 0;
}

.left-face-up,
.right-face-up {
  transform-origin: bottom;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  transition-timing-function: linear;
}

.left-face-down,
.right-face-down {
  visibility: hidden;
  transform: rotateX(90deg);
  transform-origin: top;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  transition-timing-function: linear;
}

.left-face-down.is-folded-down,
.right-face-down.is-folded-down {
  visibility: visible;
  transform: rotateX(0deg);
}

.left-face-up.peek,
.right-face-up.peek {
  transition-delay: 1s;
  transition-timing-function: ease-in-out;
  transform: rotateX(-16deg);
}

.left-face-down.delay {
  transition-delay: 0.5s;
}

.right-face-down.delay {
  transition-delay: 0.5s;
}

.left-face-up.delay {
  transition-delay: 0.5s;
}

.right-face-up.delay {
  transition-delay: 0.5s;
}

.left-face-up.is-folded-down,
.right-face-up.is-folded-down {
  transform: rotateX(-90deg);
}

.hidden {
  position: absolute;
  top: 0;
  z-index: -2;
}

.left {
  transform-origin: left;
  transition: transform 1s;
  transform-style: preserve-3d;
  transition-timing-function: linear;
}

.right {
  transform-origin: right;
  transition: transform 1s;
  transform-style: preserve-3d;
  transition-timing-function: linear;
}

.left.peek {
  transition-delay: 1s;
  transition-timing-function: ease-in-out;
  transform: rotateY(-16deg);
}

.right.peek {
  transition-delay: 1s;
  transition-timing-function: ease-in-out;
  transform: rotateY(16deg);
}

.left-face-back {
  transform: rotateY(-180deg);
}

.right-face-back {
  transform: rotateY(180deg);
}

.left.is-folded-out {
  transform: rotateY(-180deg);
}

.right.is-folded-out {
  transform: rotateY(180deg);
}

.backface .left {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.back {
  position: absolute;
  top: 0;
  transform: rotateY(180deg);
}

/*PAGE Z-INDEX POSITIONING*/

.first {
  z-index: 0;
}

.second {
  z-index: 0;
}

.third {
  z-index: 1;
}

.fourth {
  z-index: -1;
}

.fifth {
  z-index: 2;
}

.sixth {
  z-index: -2;
}

.seventh {
  z-index: 3;
}

.eighth {
  z-index: -3;
}

.ninth {
  z-index: 4;
}

.tenth {
  z-index: -4;
}

.eleventh {
  z-index: 5;
}

.twelfth {
  z-index: -5;
}

.thirteenth {
  z-index: 6;
}

.fourteenth {
  z-index: -6;
}

.fifteenth {
  z-index: 7;
}

.sixteenth {
  z-index: -7;
}

.seventeenth {
  z-index: 8;
}

.eighteenth {
  z-index: -8;
}

.nineteenth {
  z-index: 9;
}

.twentieth {
  z-index: -9;
}

.twentyfirst {
  z-index: 10;
}

.twentysecond {
  z-index: -10;
}

.twentythird {
  z-index: 11;
}

.twentyfourth {
  z-index: -11;
}

.twentyfifth {
  z-index: 12;
}

.twentysixth {
  z-index: -12;
}

.twentyseventh {
  z-index: 13;
}

.twentyeidth {
  z-index: -13;
}

.twentyninth {
  z-index: 14;
}

.thirtieth {
  z-index: -14;
}

.thirtyfirst {
  z-index: 15;
}

.thirtysecond {
  z-index: -15;
}

.thirtythird {
  z-index: 16;
}

.thirtyfourth {
  z-index: -16;
}

.thirtyfifth {
  z-index: 17;
}

.thirtysixth {
  z-index: -17;
}

.thirtyseventh {
  z-index: 18;
}

.thirtyeighth {
  z-index: -18;
}

.backface {
  z-index: 19;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/*Windmill Pieces*/

#piece1 {
  position: absolute;
  width: 40%;
  top: 27%;
  left: 17%;
  transform-origin: 40% 0%;
  transition: all 2s ease;
}

#piece2 {
  position: absolute;
  width: 27%;
  top: 20%;
  left: 52%;
  transform-origin: 58% 58%;
  transition: all 2s ease 1s;
  transition-delay: 0.5s;
}

#piece3 {
  position: absolute;
  width: 40%;
  top: 39.06%;
  left: 56%;
  transform-origin: 100% 100%;
  transition: all 2s ease 1s;
  transition-delay: 1s;
}

#piece4 {
  position: absolute;
  width: 24%;
  top: 50.3%;
  left: 57%;
  transform-origin: 1% 55%;
  transition: all 2s ease 1s;
  transition-delay: 1.5s;
}

#piece5 {
  position: absolute;
  width: 37%;
  top: 50.3%;
  left: 18.6%;
  transform-origin: 57% 20%;
  transition: all 2s ease 1s;
  transition-delay: 2s;
}

#piece1.open {
  transform: rotate3d(-0.65, -0.9, 0, -88deg);
}

#piece2.open {
  transform: rotate3d(0.3, -0.5, 0, -88deg);
}

#piece3.open {
  transform: rotate3d(0.3, 0.1, 0, -91deg);
}

#piece4.open {
  transform: rotate3d(0.05, 0.9, 0, -88deg);
}

#piece5.open {
  transform: rotate3d(-0.2, 0.1, 0, -91deg);
}
