@charset "UTF-8";

/* STRUCTURE */

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

body{
  overflow-x: hidden;
  overscroll-behavior: none;
}

*{
  overscroll-behavior: none;
}

a{
  color: inherit; /* blue colors for links too */
  text-decoration: inherit; /* no underline */
}

@font-face {
  font-family: "condottiere";
  src: url(../fonts/Condottiere.woff) format("truetype");
}

.splash{
  height: 100vh;
  width: 100%;
  overflow: hidden;

  position: fixed;
  z-index: 11;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.spazio{
  width: calc(100%);
  height: 50vh;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: condottiere;
  padding: 1%;
  z-index: 10;
  background-color: transparent;
}

/* .switch-on .splash{
  transform: translateY(100%);
  transition: all 1.2s ease;
} */

/* .all{
  width: 100vw;
  height: 1000vh;
  position: absolute;
  display: flex;
  opacity: 50%;
  flex-direction: column;
  flex-wrap: wrap;
  background-color: red;
  left: 0%;
} */



.container{
  width: 100vw;
  position: relative;
  display: flex;
  flex-direction: column;
  left: 0%;
  overscroll-behavior: none;
}

p{
  font-family: condottiere;
  color: black;
  font-size: 2em;
}

.intro{
  width: 100vw;
  height: 100vh;
  position: fixed;
  font-family: condottiere;
  z-index: 0;
}

/* MENU */

.menu{
  position: fixed;
  display: flex;
  flex-direction: column;
  right: 0%;
  top: 0%;
  background-color: transparent;
  width: 10%;
  z-index: 20;
  overflow-x: hidden;
  font-family: condottiere;
}

.bookmark{
  background-color: red;
  display: flex;
  top: 0%;
  left: 0%;
  align-items: center;
  justify-content: center;
  width: calc(100%);
  height: calc(100vh/10);
  border-radius: 30%;
  transform: translateX(400%);
  transition: transform 0.4s ease;
  overflow-x: hidden;
  font-size: 2em;
}

.bookmark.read {
  transform: translateX(0);
  overflow-x: hidden;
}

.box {
  width: calc(100vw);
  height: calc(100vh);
  transform: translateX(40%);
  transition: transform 0.4s ease;
  border-radius: 15px;
  align-items: center;
  align-content: center;
  position: relative;
  left: 0%;
  scale: 70%;
  transition: all 1s ease;
}

.box:hover{
  z-index: 30;
  scale: 100%;
  transition: all .3s ease-in-out;
}

.box:nth-of-type(even) {
  transform: translateX(-40%);
}

.box.show {
  transform: translateX(0);
}

.box h2 {
  font-size: 15vh;
}

.marginbook{
  margin-top: -50vh;
  z-index: 20;
}

/* .marginbook:nth-child(1){
  z-index: 90;
}
.marginbook:nth-child(2){
  z-index: 80;
}
.marginbook:nth-child(3){
  z-index: 70;
}
.marginbook:nth-child(4){
  z-index: 60;
}
.marginbook:nth-child(5){
  z-index: 50;
}
.marginbook:nth-child(6){
  z-index: 40;
}
.marginbook:nth-child(7){
  z-index: 30;
}
.marginbook:nth-child(8){
  z-index: 20;
}
.marginbook:nth-child(9){
  z-index: 10;
} */

/* MAPPA */

.percorso{
  fill:none;
  stroke:black;
  stroke-width:30;
  stroke-linecap:round;
  stroke-linejoin:round;
  position: fixed;
  bottom: 0%;
  z-index: 50;
  height: 100vh;
  pointer-events: none;
}

.points{
  fill:none;
  stroke:black;
  stroke-width:30;
  stroke-linecap:round;
  stroke-linejoin:round;
  position: fixed;
  bottom: 0%;
  z-index: 50;
  height: 100vh;
  pointer-events: none;
}

/* LIBRI */

.shadow{
  height: 1000vh;
  width: 100vw;
  top: 50%vh;
  position: absolute;
  z-index: 1;
  background: linear-gradient(90deg, rgb(84, 84, 84) 0%, rgba(255,255,255,1) 20%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.panel {
  width: 80%;
  height: 100%;
  top:0;
  left: 0;
  background-color: transparent;
  z-index: 300;
}

.switch-1 .panel1{
  transform: translateX(0%);
}

.switch-2 .panel2{
  transform: translateX(0%);
}
.switch-3 .panel3{
  transform: translateX(0%);
}
.switch-4 .panel4{
  transform: translateX(0%);
}

.switch-5 .panel5{
  transform: translateX(0%);
}

.switch-5 .panel6{
  transform: translateX(0%);
}

.switch-5 .panel7{
  transform: translateX(0%);
}

.switch-5 .panel8{
  transform: translateX(0%);
}

.switch-5 .panel9{
  transform: translateX(0%);
}

.switch-5 .panel10{
  transform: translateX(0%);
}

input{
  display: none;
  background-color: yellow;
}
.book{
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translate(0%, -50%);
}
.flip-book{
  width: 80vw;
  height: 70vh; 
  position: relative;
  perspective: 1500px;
  background-color: transparent;
}
.flip{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: left;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: .5s;
  /* box-shadow: 0 4px 80px 0 rgba(0, 0, 0, 0.407); */
  border-radius: 0 30px 30px 0;
}

.front{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, rgb(141, 141, 141) 0%, beige 17%);
  background-color: rgb(255, 183, 0);
  box-sizing: border-box;
  padding: 13px;
  border-radius: 0 30px 30px 0;
  box-shadow: 0 4px 80px 0 rgba(0, 0, 0, 0.407);
  padding: 10%;
  align-content: center;
  align-items: center;
}

.front p{
  font-size: 3vw;
  color: black;
}

.back{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  transform: rotateY(180deg);
  border-radius: 30px 0px 0px 30px;
  backface-visibility: hidden;
  background: linear-gradient(90deg, beige 83%, rgb(141, 141, 141) 100%);
  background-color: beige;
}

.last{
  background: brown;
}

.front.cover{
  background: brown;
  font-family: condottiere;
  text-align: center;
  color: black;
}

.next-btn{
  position: absolute;
  bottom: 13px;
  right: 13px;
  cursor: pointer;
  font-size: 1.5rem;
  height: 100%;
  width: 100%;
}
.back-btn{
  position: absolute;
  bottom: 13px;
  right: 13px;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

/* LIBRO 1 */

#p11{
  z-index: 3;
}
#p12{
  z-index: 2;
}
#p13{
  z-index: 1;
}
#c11:checked ~ .flip-book #p11{
  transform: rotateY(-180deg);
  z-index: 1;
}
#c12:checked ~ .flip-book #p12{
  transform: rotateY(-180deg);
  z-index: 2;
}
#c13:checked ~ .flip-book #p13{
  transform: rotateY(-180deg);
  z-index: 3;
}

/* LIBRO 2 */

#p21{
  z-index: 3;
}
#p22{
  z-index: 2;
}
#p23{
  z-index: 1;
}
#c21:checked ~ .flip-book #p21{
  transform: rotateY(-180deg);
  z-index: 1;
}
#c22:checked ~ .flip-book #p22{
  transform: rotateY(-180deg);
  z-index: 2;
}
#c23:checked ~ .flip-book #p23{
  transform: rotateY(-180deg);
  z-index: 3;
}

  /* LIBRO 3 */

  #p31{
    z-index: 3;
  }
  #p32{
    z-index: 2;
  }
  #p33{
    z-index: 1;
  }
  #c31:checked ~ .flip-book #p31{
    transform: rotateY(-180deg);
    z-index: 1;
  }
  #c32:checked ~ .flip-book #p32{
    transform: rotateY(-180deg);
    z-index: 2;
  }
  #c33:checked ~ .flip-book #p33{
    transform: rotateY(-180deg);
    z-index: 3;
  }
  
  /* LIBRO 4 */
  
  #p41{
    z-index: 3;
  }
  #p42{
    z-index: 2;
  }
  #p43{
    z-index: 1;
  }
  #c41:checked ~ .flip-book #p41{
    transform: rotateY(-180deg);
    z-index: 1;
  }
  #c42:checked ~ .flip-book #p42{
    transform: rotateY(-180deg);
    z-index: 2;
  }
  #c43:checked ~ .flip-book #p43{
    transform: rotateY(-180deg);
    z-index: 3;
  }
  
  /* LIBRO 5 */
  
  #p51{
    z-index: 3;
  }
  #p52{
    z-index: 2;
  }
  #p53{
    z-index: 1;
  }
  #c51:checked ~ .flip-book #p51{
    transform: rotateY(-180deg);
    z-index: 1;
  }
  #c52:checked ~ .flip-book #p52{
    transform: rotateY(-180deg);
    z-index: 2;
  }
  #c53:checked ~ .flip-book #p53{
    transform: rotateY(-180deg);
    z-index: 3;
  }
  
  /* LIBRO 6 */
  
  #p61{
    z-index: 3;
  }
  #p62{
    z-index: 2;
  }
  #p63{
    z-index: 1;
  }
  #c61:checked ~ .flip-book #p61{
    transform: rotateY(-180deg);
    z-index: 1;
  }
  #c62:checked ~ .flip-book #p62{
    transform: rotateY(-180deg);
    z-index: 2;
  }
  #c63:checked ~ .flip-book #p63{
    transform: rotateY(-180deg);
    z-index: 3;
  }
  
  /* LIBRO 7 */
  
  #p71{
    z-index: 3;
  }
  #p72{
    z-index: 2;
  }
  #p73{
    z-index: 1;
  }
  #c71:checked ~ .flip-book #p71{
    transform: rotateY(-180deg);
    z-index: 1;
  }
  #c72:checked ~ .flip-book #p72{
    transform: rotateY(-180deg);
    z-index: 2;
  }
  #c73:checked ~ .flip-book #p73{
    transform: rotateY(-180deg);
    z-index: 3;
  }
  
  /* LIBRO 8 */
  
  #p81{
    z-index: 3;
  }
  #p82{
    z-index: 2;
  }
  #p83{
    z-index: 1;
  }
  #c81:checked ~ .flip-book #p81{
    transform: rotateY(-180deg);
    z-index: 1;
  }
  #c82:checked ~ .flip-book #p82{
    transform: rotateY(-180deg);
    z-index: 2;
  }
  #c83:checked ~ .flip-book #p83{
    transform: rotateY(-180deg);
    z-index: 3;
  }
  
  /* LIBRO 9 */
  
  #p91{
    z-index: 3;
  }
  #p92{
    z-index: 2;
  }
  #p93{
    z-index: 1;
  }
  #c91:checked ~ .flip-book #p91{
    transform: rotateY(-180deg);
    z-index: 1;
  }
  #c92:checked ~ .flip-book #p92{
    transform: rotateY(-180deg);
    z-index: 2;
  }
  #c93:checked ~ .flip-book #p93{
    transform: rotateY(-180deg);
    z-index: 3;
  }
  
  /* LIBRO 10 */
  
  #p101{
    z-index: 3;
  }
  #p102{
    z-index: 2;
  }
  #p103{
    z-index: 1;
  }
  #c101:checked ~ .flip-book #p101{
    transform: rotateY(-180deg);
    z-index: 1;
  }
  #c102:checked ~ .flip-book #p102{
    transform: rotateY(-180deg);
    z-index: 2;
  }
  #c103:checked ~ .flip-book #p103{
    transform: rotateY(-180deg);
    z-index: 3;
  }

/* ARCHIVIO */

.textarchive{
  text-align: center;
  position: relative;
  top: 50%;
  transform: translate(0%, -50%);
}

.nuovapagina{
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: relative;
  background-color: beige;
  border-radius: 25px;
  width: 25%;
  height: 10%;
  align-items: center;
  align-content: center;
  transform-origin: 0%;
}

.nuovapagina_2{
  text-align: center;
  top: 3%;
  left: 50%;
  transform: translate(-50%, 0%);
  position: relative;
  background-color: beige;
  border-radius: 25px;
  width: 25%;
  height: 10%;
  align-items: center;
  align-content: center;
  transform-origin: 0%;
}

.nuovapagina:hover{
  scale: 150%;
  transition: all .3s ease-in-out;
  transform-origin: 0%;
}

.nuovapagina_2:hover{
  scale: 150%;
  transition: all .3s ease-in-out;
  transform-origin: 0%;
}

.center{
  text-align: center;
}

.intro h2{
  font-size: 15vw;
  line-height: 15vw;
  text-align: center;
  color: black;
}

.bottom{
  width: auto;
  position: absolute;
  height: auto;
  left: 50%;
  transform: translate(-50%);
  bottom: 7%;
}

.mostro{
  width: 80%;
  position: relative;
  /* mix-blend-mode: multiply; */
  mix-blend-mode: difference;
  filter: invert(1);
}

.texture{
  width: 100vw;
  height: 100vh;
  opacity: 100%;
  mix-blend-mode: multiply;
}

/* IMMAGINI */

img{
  height: 100%;
  width: auto;
  position: relative;
  mix-blend-mode: multiply;
}

/* ARCHIVE */

.archive{
  height: auto;
  width: 100vw;
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.archive_box{
  height: auto;
  width: 80vw;
  background-color: beige;
  border-radius: 10%;
  padding: 3%;
  margin: 3%;
  align-items: center;
  align-content: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

#textarchive{
  background-color: transparent;
  width: 90vw;
  height: auto;
}

.archive_info{
  height: 10vh;
  width: 100vw;
  background-color: red;
  border-radius: 50px;

}

.textarchive_2{
  position: relative;
  align-content: center;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  scale: 70%;
}

.textarchive_2:hover{
  scale: 100%;
  transition: all .3s ease-in-out;
}

.sfondo{
  height: 200vh;
  width: 100vw;
  background-color: brown;
  z-index: 0;
  position: absolute;
}

.all {
  width: 100%;
  background: linear-gradient(0deg, rgba(255,0,0,1) 0%, rgba(0,255,0,1) 100%);

  overflow-x: hidden;
}

#cartina{
  left: 50%;
  transform: translate(-50%,0%);
  position: relative;
  width: 50vw;
  height: auto;
}

@media only screen and (min-width: 700px) {
  /* html {
    font-size: 24px;
  } */

  body {
    background: linear-gradient(0deg, rgba(255,0,0,1) 0%, rgba(0,255,0,1) 100%);
  }


  .bottom p {
    font-size: 3em;
  }
  /* STRUCTURE */

.all{
  width: initial;
  height: initial;
  /* flex-direction: initial; */
  overflow-x: none;
  overflow-y: auto;
}

.intro{
  width: calc(50vw - 6%);
  height: 100vh;
  position: fixed;
  z-index: 10;
  padding-left: 3%;
  padding-right: 3%;
  padding-top: 3%;
}

.intro h2{
  font-size: 8vw;
  line-height: 8vw;
}

.container{
  width: 100vw;
  height: auto;
  flex-direction: column;
  background: linear-gradient(0deg, rgba(255,0,0,1) 0%, rgba(0,255,0,1) 100%);

}

.box {
  width: calc(50vw);
  height: calc(100vh);
  transform: translateX(400%);
  transition: transform 0.4s ease;
  align-items: center;
  position: relative;
  left: 50%;
}

.flip-book{
  width: 40vw;
  height: 90vh; 
  position: relative;
  perspective: 1500px;
  background-color: transparent;
}

.menu{
  position: fixed;
  display: flex;
  flex-direction: row;
  right: 0%;
  top: 0%;
  background-color: transparent;
  width: calc(50%);
  z-index: 150;
  overflow: hidden;
}

.bookmark{
  transform: translateY(400%);
}

.bookmark.read {
  transform: translateY(0);
}

.front p{
  font-size: 2.5vh;
  color: black;
}

.archive_box{
  height: 50vh;
  width: calc(21vw);
}

}

.archive{
  flex-direction: row;
  background-color: brown;
  z-index: 10;
}

img{
  height: auto;
  width: 100%;
  position: relative;
  mix-blend-mode: multiply;
}

