@import url("https://fonts.googleapis.com/css?family=Josefin+Sans:400,700");
@import url("https://fonts.googleapis.com/css?family=Oswald");

@font-face {
  font-family: 'Squaremaze';
  src: url('Squaremaze.ttf');
}

@font-face {
  font-family: 'Dark_Future';
  src: url('Dark_Future.ttf')
}

@font-face {
  font-family: 'Electromagnetic';
  src: url('Electromagnetic.otf');
}

@font-face {
  font-family: 'radiospace';
  src: url('radiospace.ttf');
}

@font-face {
  font-family: 'zerofen';
  src: url('zerofen.ttf');
}

.inverting-image {
  width: 100%;
  height: 100;
  animation: colorInvert 5s infinite alternate;
}

@keyframes colorInvert {
  0% {
    filter: invert(66%);
    opacity: 1;
  }

  20% {
    filter: invert(44%);
    opacity: 0.9;
  }

  30% {
    filter: invert(33%);
    opacity: 1;
  }

  60% {
    filter: invert(66%);
    opacity: 0.8;
  }

  90% {
    filter: invert(77%);
    opacity: 0.9;
  }

  100% {
    filter: invert(100%);
    opacity: 1;
  }
}

.rolling-gradient {
  background: linear-gradient(45deg, #ff9a9e, #fad0c4, #a18cd1, #fbc2eb, #84fab0, #8fd3f4, #a6c0fe, #f9f7e8, #fbc2eb, #ff9a9e);
  background-size: 400% 400%;
  z-index: 9999;
}

@keyframes roll {
  0% {
    background-position: 0%;
    filter: invert(1);
  }

  100% {
    background-position: 100%;
    filter: invert(0);
  }
}

body {
  background-color: sandybrown;

  background: slategray;
  /*linear-gradient(0deg, #000000, #000001, #000111, #5f9ea0, #708090, #778899, #000111, #000001);*/
  background-size: 100vw 100%;
  /* Adjust the size based on the number of lines you want */
  /*animation: colorInvert 10s alternate-reverse infinite;*/
}

@keyframes shift {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 0% 100%;
  }
}


.site {
  display: grid;
  grid-template-rows: 3fr 2fr;
  grid-template-columns: 5rem 1fr 1fr 5rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
  text-shadow: 3px 3px 1px black;
  padding: 0 0 10vw 0;
  width: 99vw;
  height: 90vh;
  overflow: hidden;
  background: transparent;
  font-family: "Electromagnetic", sans-serif;
  font-size: 2rem;
  text-stroke: 1px black;
  -webkit-text-stroke: black;
  border: 3px solid rgba(0, 0, 0, 0.9);
  border-radius: 32px;
}

.site * {
  transition: all 0.5s ease;
}

.site {
  --total: 4;
  --percentage: calc(var(--scene)/var(--total));
}

input[value="1"]:checked~.site {
  --scene: 1;
}

input[value="2"]:checked~.site {
  --scene: 2;
}

input[value="3"]:checked~.site {
  --scene: 3;
}

input[value="4"]:checked~.site {
  --scene: 4;
}

input[name=scene] {
  display: none;
}

input[value="1"]:checked~* label[data-scene="1"],
input[value="2"]:checked~* label[data-scene="2"],
input[value="3"]:checked~* label[data-scene="3"],
input[value="4"]:checked~* label[data-scene="4"] {
  display: none;
}

input[value="1"]:checked~* [data-scene]:not([data-scene="1"]) .heading,
input[value="1"]:checked~* [data-scene]:not([data-scene="1"]) .paragraph,
input[value="2"]:checked~* [data-scene]:not([data-scene="2"]) .heading,
input[value="2"]:checked~* [data-scene]:not([data-scene="2"]) .paragraph,
input[value="3"]:checked~* [data-scene]:not([data-scene="3"]) .heading,
input[value="3"]:checked~* [data-scene]:not([data-scene="3"]) .paragraph,
input[value="4"]:checked~* [data-scene]:not([data-scene="4"]) .heading,
input[value="4"]:checked~* [data-scene]:not([data-scene="4"]) .paragraph {
  transform: translateX(-25%);
  opacity: 0;
}

input[value="1"]:checked~* [data-scene="1"]+[data-scene],
input[value="2"]:checked~* [data-scene="2"]+[data-scene],
input[value="3"]:checked~* [data-scene="3"]+[data-scene],
input[value="4"]:checked~* [data-scene="4"]+[data-scene] {
  tranform: translateX(25%);
}

h1 {
  text-stroke: 2px black;
  -webkit-text-stroke: 2px black;
}

.layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  margin: auto;
}

.landscape {
  display: flex;
  align-items: center;
  text-align: left;
  grid-row: 1/2;
  grid-column: 1/-1;
  background: transparent;
  background: rgba(63, 94, 251, 0.7);
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#4c4c4c+0,595959+12,666666+25,474747+39,2c2c2c+50,000000+51,111111+60,2b2b2b+76,1c1c1c+91,131313+100;Black+Gloss+%231 */
  /* background: linear-gradient(to bottom, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  /*#141610;*/
  /*background-image: url(https://picsum.photos/4000/2660?image=992);*/
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 2px solid darkslateblue;
  box-shadow: inset 5px 5px 50px black;
  /*animation: colorInvert 22s infinite alternate;*/
  border-radius: 30px 30px 0 0;
}

.landscape-text {
  display: inline;
  font-size: 10vh;
  font-family: 'Squaremaze';
  font-weight: bold;
  /*background: inherit;
  background-image: url("https://picsum.photos/5615/2907?image=974");*/
  background-color: black;
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 160% auto;
  background-position: calc(80% + (-70% * var(--percentage))) 0;
  color: transparent;
  transform: translateX(calc(40% + (-100% * var(--percentage))));
  text-stroke: 2px white;
  -webkit-text-stroke: 2px white;
  animation: roll 6s infinite;
}

.left-side {
  grid-row: 1/2;
  grid-column: 2/3;
  font-family: "Oswald";
  align-self: end;
}

.page-numbers {
  color: black;
  overflow: hidden;
  font-family: 'zerofen';
  color: skyblue;
  text-stroke: 3px black;
  -webkit-text-stroke: 3px black;
  animation: roll 33s alternate-reverse infinite;
}

.page-numbers:after {
  content: "/" attr(data-total);
  font-size: 1rem;
  position: absolute;
  top: 0;
  left: 4rem;
}

.page-number {
  font-size: 4rem;
  line-height: 4.2rem;
}

.page-number--tens {
  align-self: flex-end;
  animation: roll 11s alternate infinite;
}

.page-number--ones {
  position: absolute;
  top: 0;
  left: 0.5em;
  transform: translateY(calc((-100% * (var(--percentage) - 1/var(--total)))));
}

.left-content {
  grid-row: 2/4;
  grid-column: 1/3;
}

.image {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 10px black;
}

.hidden {
  display: none;
}

.audio-player {
  position: absolute;
  left: 0;
  padding-left: 20px;
  bottom: 5%;
}

.play-button {
  width: 8vw;
  padding-bottom: 10%;
}

.progress-container {
  position: absolute;
  display: flex;
  align-items: center;
  width: 200px;
  font-family: 'Dark_Future';
  text-shadow: 0 0 0 black;
  font-size: 1.1rem;
}

.progress-bar {
  flex: 1;
  margin-left: 5px;
  margin-right: -25px;
  height: 10px;
  border-radius: 0 12px 0 12px;
  background-color: white;
  background: rgb(63, 94, 251, 0.2);
  position: relative;
  overflow: hidden;
}

.progress {
  height: 100%;
  /*background-color: #4caf50;*/
  background: radial-gradient(circle, rgba(63, 94, 251, 1) 0%, rgba(252, 70, 107, 1) 100%);
  width: 0%;
}

.total-time {
  width: 5%;
  padding-left: 4px;
  padding-right: 4px;
}

.current-time {
  width: 5%;
  padding-left: 0;
  padding-right: 4px;
}

/* For phones: */
@media only screen and (min-width: 240px) and (max-width: 533px) {
  .landscape-text {
    font-size: 4vw;
  }

  .image {
    top: 0;
    width: 100px;
    height: 100px;
  }

  .audio-player {
    position: fixed;
    height: 100px;
    padding-left: 10px;
    bottom: 10%;
  }

  .play-button {
    margin: 5px;
    padding: 5px;
    width: 10%;
    border: 2px solid white;
    border-radius: 50%;
  }

  .progress-container {
    position: absolute;
    bottom: 2%;
    width: 40%;
    height: 10px;
  }

  .support {
    position: fixed;
    left: 50%;
    width: 50%;
    margin-left: -25%;
    max-height: 15px;
    bottom: 0;
    -webkit-text-stroke: 1px black;
    stroke: 1px black;
  }
}

@media only screen and (min-width: 240px) and (max-width: 533px) and (orientation: landscape) {
  .landscape-text {
    font-size: 4vw;
  }

  .image {
    top: 0;
    width: 60px;
    height: 60px;
    border: 2px solid white;
    border-radius: 50%;
  }

  .audio-player {
    position: fixed;
    height: 100px;
    padding-left: 10px;
    bottom: 10%;
  }

  .play-button {
    margin: 5px;
    padding: 5px;
    width: 10%;
    border: 2px solid white;
  }

  .progress-container {
    position: absolute;
    bottom: 2%;
    width: 40%;
    height: 10px;
  }

  .support {
    position: fixed;
    left: 50%;
    width: 50%;
    margin-left: -25%;
    max-height: 15px;
    bottom: 0;
    -webkit-text-stroke: 1px black;
    stroke: 1px black;
  }

  .mobile-resize-button {
    position: fixed;
    padding: 3px;
    font-family: 'zerofen';
    font-size: 2vh;
    position: fixed;
    color: white;
    width: 10vw;
    height: 3vw;
    top: 0;
    left: 50%;
    margin-left: -5vw;
    background-color: rgba(0, 0, 0, 0.9);
    text-stroke: 1px black;
    -webkit-text-stroke: 1px black;
    border-radius: 2vh;
    border: 3px solid rebeccapurple;
    border-width: 3px 0 10px 0;
    box-shadow: inset 4px 4px 5px white;
    box-shadow: 2px 2px 5px black;
    z-index: 99;
  }
}

/* For desktop: 
  @media only screen and (min-width: 769px) {
     .site {
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .left-content {
    position: relative;
    width: 50%;
    top: -20%;
    left: 40%;
  }

  .audio-player {
    position: fixed;
    padding-left: 20px;
    bottom: 6%;
  }

  .play-button {
    width: 8%;
  }

  .progress-container {
    position: absolute;
    bottom: 8%;
    width: 400px;
  }

  .support {
    position: fixed;
    top: 95%;
    -webkit-text-stroke: 1px black;
    stroke: 1px black;
  }
}*/

@media only screen and (orientation: landscape) {
  .site {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .left-content {
    position: relative;
    width: 50%;
    top: -20%;
    left: 40%;
  }

  .audio-player {
    position: fixed;
    padding-left: 20px;
    bottom: 6%;
  }

  .play-button {
    width: 8%;
  }

  .progress-container {
    position: absolute;
    bottom: 8%;
    width: 400px;
  }

  .support {
    position: fixed;
    top: 95%;
    -webkit-text-stroke: 1px black;
    stroke: 1px black;
  }

  .slide-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 99;
  }

  .nav-button-container {
    display: flex;
    position: absolute;
    top: 0;
    transition: none;
    transform: translateX(calc(100% + (-1 * 5rem * (var(--scene) + 1))));
    opacity: 0;
  }

  .button-container {
    display: flex;
    outline: none;
    right: 0;
  }

  .nav-button {
    display: inline-block;
    padding: 0.5em;
    width: 5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    cursor: pointer;
    font-family: inherit;
    height: 2rem;
    border: none;
    padding: 0.5rem;
    outline: none;
  }

  .mobile-resize-button {
    position: fixed;
    padding: 3px;
    font-family: 'zerofen';
    font-size: 2vh;
    position: fixed;
    color: white;
    width: 10vw;
    height: 3vw;
    top: 0;
    left: 50%;
    margin-left: -5vw;
    background-color: rgba(0, 0, 0, 0.9);
    text-stroke: 1px black;
    -webkit-text-stroke: 1px black;
    border-radius: 2vh;
    border: 3px solid rebeccapurple;
    border-width: 3px 0 10px 0;
    box-shadow: inset 4px 4px 5px white;
    box-shadow: 2px 2px 5px black;
    z-index: 99;
  }

  .mobile-resize-button:hover {
    box-shadow: 6px 6px 40px gray;
  }

  .mobile-resize-button:active {
    box-shadow: 3px 3px 30px white;
  }

}

.right-content {
  color: black;
  grid-row: 2/4;
  grid-column: 3/-1;
  overflow: auto;
  font-size: 1rem;
  text-shadow: 0 0 0 black;
}

.right-content>.layer {
  padding-right: 30px;
}

.slide-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.nav-button-container {
  display: flex;
  position: absolute;
  top: 0;
  transition: none;
  transform: translateX(calc(100% + (-1 * 5rem * (var(--scene) + 1))));
  opacity: 0;
}

.button-container {
  display: flex;
  outline: none;
  right: 0;
}

.nav-button {
  display: inline-block;
  padding: 0.5em;
  width: 5rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  cursor: pointer;
  font-family: inherit;
  height: 2rem;
  border: none;
  padding: 0.5rem;
  outline: none;
}

.hero {
  color: white;
  grid-row: 1/2;
  grid-column: 3/-1;
}

.hero>.layer {
  display: flex;
  height: 40%;
}

.support {
  position: fixed;
  width: 70%;
  left: 50%;
  margin-left: -35%;
  justify-items: space-between;
  color: white;
  background-color: black;
  border: 6px 0 3px 0 solid slategray;
  border-radius: 0 32px 0 32px;
  text-align: center;
  bottom: 2%;
  z-index: 70;

}

.support a {
  margin: 0 10px;
  color: #fff;
  font-size: 1.8rem;
  backface-visibility: hidden;
  transition: all 150ms ease;
}

.support a:hover {
  transform: scale(1.1);
}

.floating-div {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.floating-div p {
  margin: 0;
}

.floating-div button {
  margin-top: 10px;
}

.mobile-resize-button {
  padding: 2px;
  font-family: 'zerofen';
  font-size: 2vh;
  position: fixed;
  color: white;
  width: 40vw;
  height: 2vh;
  top: 0;
  left: 50%;
  margin-left: -20vw;
  background-color: rgba(0, 0, 0, 0.9);
  text-stroke: 1px black;
  -webkit-text-stroke: 1px black;
  border-radius: 2vh;
  border: 3px solid rebeccapurple;
  border-width: 3px 0 10px 0;
  box-shadow: inset 4px 4px 5px white;
  box-shadow: 2px 2px 5px black;
}

.mobile-resize-button:hover {
  box-shadow: 6px 6px 40px gray;
}

.mobile-resize-button:active {
  box-shadow: 3px 3px 30px white;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  position: relative;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 98vw;
  background: transparent;
  overflow: hidden;
}