@font-face {
    font-family: "F1532 Bastarde Lyon Normal";
    src: url("https://db.onlinewebfonts.com/t/611766d311c6e09cd93b7cf4f62039cf.eot");
    src: url("https://db.onlinewebfonts.com/t/611766d311c6e09cd93b7cf4f62039cf.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/611766d311c6e09cd93b7cf4f62039cf.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/611766d311c6e09cd93b7cf4f62039cf.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/611766d311c6e09cd93b7cf4f62039cf.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/611766d311c6e09cd93b7cf4f62039cf.svg#F1532 Bastarde Lyon Normal")format("svg");
}

#theleme{
  min-width:102%;
  max-height: 100%;
  position:fixed;
  margin: auto;
  z-index: -9000;
  top: 85px;
  left: 50%;
  transform: translateX(-51%);
  opacity: 0.25;
  -webkit-filter: saturate(0);
  filter: saturate(0);
}

section:first-child{
  flex:1;
  position: relative;
  margin-top: 150px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.35);
  text-shadow: -1px -1px 20px #fff, 1px -1px 20px #fff, -1px 1px 20px #fff, 1px 1px 20px #fff;
}

section:first-child .text{
  background-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 40px rgba(255,255,255,.5);
  border-radius: 25px;
}

section{
  display: flex;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 100%;
  padding-bottom: 50px;
  padding-top: 25px;
}

section:last-of-type{
  margin-bottom: 0;
}

section h2{
  text-align: center;
  margin-bottom: 0;
  font-weight: bold;
}

section h3{
  font-size: 24px;
  text-align: center;
  margin-bottom: 0;
  font-weight: bold;
}

section .text{
  max-width: 983px;
  width: 90%;
  margin-top: 5px;
  margin-left: 30px;
  margin-right: 30px;
  min-height: 200px;
  text-align: justify;
  display:flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}

section .text div{
  width: 50%;
}

section .text p{
  font-size: 20px;
  font-weight: bold;
  margin: 20px;
}

section .text ul{
  font-size: 20px;
  margin: 20px;
}

section .text li{
  margin-bottom: 1em;
}

#centerImg{
  width: 125px;
  height: 125px;
  margin-top: 30px;
  margin-left: 0;
  background: url(../images/centreClean.png) no-repeat center;
  background-size:contain;
  z-index: 100;
}
#PortraitRabelaisLittle{
  display: block;
  width: 200px;
  -webkit-filter: saturate(0);
  filter: saturate(0);
  margin-top: 30px;
  border-radius: 50%;
  border: 1px solid #fff;
}
#life{
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.35);
  color:#ddd;
  background: linear-gradient(45deg, #111 0%, #111 5%,transparent 5%, transparent 10%, #111 10%, #111 15%,transparent 15%,transparent 20%, #111 20%, #111 25%,transparent 25%,transparent 30%, #111 30%, #111 35%,transparent 35%,transparent 40%, #111 40%, #111 45%,transparent 45%,transparent 50%, #111 50%, #111 55%,transparent 55%,transparent 60%, #111 60%, #111 65%,transparent 65%,transparent 70%, #111 70%, #111 75%,transparent 70%,transparent 80%, #111 80%, #111 85%,transparent 85%,transparent 90%, #111 90%, #111 95%,transparent 95%), linear-gradient(135deg, #111 0%, #111 5%,transparent 5%, transparent 10%, #111 10%, #111 15%,transparent 15%,transparent 20%, #111 20%, #111 25%,transparent 25%,transparent 30%, #111 30%, #111 35%,transparent 35%,transparent 40%, #111 40%, #111 45%,transparent 45%,transparent 50%, #111 50%, #111 55%,transparent 55%,transparent 60%, #111 60%, #111 65%,transparent 65%,transparent 70%, #111 70%, #111 75%,transparent 70%,transparent 80%, #111 80%, #111 85%,transparent 85%,transparent 90%, #111 90%, #111 95%,transparent 95%);
  background-size: 1em 1em;
  background-color: #1a1a1a;
  opacity: 1;
}
#philosophie{
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.45);
  z-index: -200;
  color:#333;
  background: linear-gradient(45deg, #EEEEEE 0%, #EEEEEE 5%,transparent 5%, transparent 10%, #EEEEEE 10%, #EEEEEE 15%,transparent 15%,transparent 20%, #EEEEEE 20%, #EEEEEE 25%,transparent 25%,transparent 30%, #EEEEEE 30%, #EEEEEE 35%,transparent 35%,transparent 40%, #EEEEEE 40%, #EEEEEE 45%,transparent 45%,transparent 50%, #EEEEEE 50%, #EEEEEE 55%,transparent 55%,transparent 60%, #EEEEEE 60%, #EEEEEE 65%,transparent 65%,transparent 70%, #EEEEEE 70%, #EEEEEE 75%,transparent 70%,transparent 80%, #EEEEEE 80%, #EEEEEE 85%,transparent 85%,transparent 90%, #EEEEEE 90%, #EEEEEE 95%,transparent 95%), linear-gradient(135deg, #EEEEEE 0%, #EEEEEE 5%,transparent 5%, transparent 10%, #EEEEEE 10%, #EEEEEE 15%,transparent 15%,transparent 20%, #EEEEEE 20%, #EEEEEE 25%,transparent 25%,transparent 30%, #EEEEEE 30%, #EEEEEE 35%,transparent 35%,transparent 40%, #EEEEEE 40%, #EEEEEE 45%,transparent 45%,transparent 50%, #EEEEEE 50%, #EEEEEE 55%,transparent 55%,transparent 60%, #EEEEEE 60%, #EEEEEE 65%,transparent 65%,transparent 70%, #EEEEEE 70%, #EEEEEE 75%,transparent 70%,transparent 80%, #EEEEEE 80%, #EEEEEE 85%,transparent 85%,transparent 90%, #EEEEEE 90%, #EEEEEE 95%,transparent 95%);
    background-size: 1em 1em;
    background-color: #ffffff;
    opacity: 1
}
#oeuvre{
  background: url(../images/wood.jpg);
  z-index: -3000;
  padding-bottom: 0;
  padding-top: 0;
  overflow: hidden;
}

#oeuvre h3{
  z-index:1000;
  opacity:0.85;
  text-shadow: 1.5px 1px rgba(255,255,255,0.3);
}

.cuboid {
  perspective: 400px;
  position: relative;
  width: 95%;
  height: 200px;
  margin-bottom: 162px;
  margin-top: 25px;
  transform-style: preserve-3d;
}

.cuboid::after{
  background: url(../images/wood.jpg) center;
  height: 30px;
  width: 150%;
  content: "";
  position: absolute;
  top: 330px;
  left: -50px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: none;
}

.cuboid .left{
  background: url(../images/wood.jpg);
  height: 330px;
  width: 1%;
  content: "";
  position: absolute;
  top: -36px;
  left: 10.5%;
  z-index: -300;
  transform: translateZ(100px);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: none;
  border-top: none;
}

.cuboid .right{
  background: url(../images/wood.jpg);
  height: 330px;
  width: 1%;
  content: "";
  position: absolute;
  top: -36px;
  right: 10.5%;
  z-index: 3000;
  transform: translateZ(100px);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: none;
  border-top: none;
}

.cuboid__face {
  margin-left: 5%;
  width: 90%;
  height: 300px;
  background: url(../images/wood.jpg) center;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.cuboid__face--back {
  transform: translateZ(-50px) rotateY(180deg);
  -webkit-filter: brightness(75%);
  filter: brightness(75%);
}

.cuboid__face--left {
  transform: translateX(-50%) rotateY(-90deg);
  background-repeat: no-repeat;
  z-index: -2000;
  width:100px;
}

.cuboid__face--right {
  background: url(../images/wood.jpg);
  transform:translateX(50%) rotateY(90deg);
  background-repeat: no-repeat;
  z-index: -2000;
  -webkit-filter: brightness(60%);
  filter: brightness(60%);
}

.cuboid__face--top {
  height: 100px;
  transform: translateY(-50px) rotateX(90deg);
  -webkit-filter: brightness(50%);
  filter: brightness(50%);
}

.cuboid__face--bottom {
  height: 100px;
  transform: translateY(251px) rotateX(-90deg);
  -webkit-filter: brightness(120%);
  filter: brightness(120%);
}
#thirdRow, #fourthRow, #fifthRow,#thirdRow .left, #thirdRow .right, #fourthRow .left, #fourthRow .right, #fifthRow .left, #fifthRow .right{
  display: none;
}
.livres{
  position: absolute;
  margin: 0 auto;
  margin-top: 200px;
  width: 100%;
  display: flex;
  flex-direction:row;
  flex-wrap: wrap;
  justify-content: center;
}
.book{
  width: 200px;
  height: 267px;
  margin: 0 5% 120px 5%;
  cursor: pointer;
  transform: translateY(0px);
  perspective: 1500px;
  transition: all 0.5s ease-in-out;
  z-index: 200;
}
.book .cover{
  width: 100%;
  height: 100%;
  z-index: 200;
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
  transform: rotateY(0deg);
  transition: all 0.5s ease-in-out;
}

.cover img{
  width: 100%;
  height: 100%;
  z-index: 200;
  position: absolute;
  top:0;
  left:0;
}

.cover div{
  width: 100%;
  height: 100%;
  z-index: 200;
  position: absolute;
  top:0;
  left:0;
}

.book:hover{
  transform: translateY(-20px) scale(1.2);
  perspective: 1500px;
  perspective-origin: top left;
  filter: drop-shadow(0px 3px 7px black);
}

a.book:hover .cover{
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
  transform: rotateY(-105deg);
  transition: all 0.5s ease-in-out;
}

#CinqLivre{
  transform: translateY(0px);
  transition: none;
  filter: none;
  cursor: no-drop;
}
#CinqLivre:hover{
  transform: translateY(0px);
  transition: none;
}
.edgeTop{
  z-index: -2000;
  position: absolute;
  top: -7px;
  left: 5px;
  width: 202px;
  height: 7px;
  transform:skew(-55deg)
}
.edgeRight{
  z-index: -2000;
  position: absolute;
  top: -7px;
  right: -12px;
  width: 20px;
  height: 268px;
}
.book .triangleTop{
  z-index: -200;
  position: absolute;
  top: -4px;
  left: 7.9px;
  width: 197.5px;
  height: 5px;
  background: repeating-linear-gradient(
    0deg,
    #eeeedd,
    #d1d1c0 2px /* determines size */
  );
  transform:skewX(301deg);
}
.book .triangleBottom{
  z-index: -200;
  position: absolute;
  bottom: 6px;
  right: -8.5px;
  width: 8.5px;
  height: 262.7px;
  background: repeating-linear-gradient(
    90deg,
    #eeeedd,
    #d1d1c0 2px /* determines size */
  );
  transform:skewY(-30deg);
}

.page{
  position: absolute;
  width: 100%;
  height: 99%;
  z-index: -150;
  justify-content: center;
  font-size: 0.5em;
  text-align: center;
  font-family: "F1532 Bastarde Lyon Normal";
  font-variant: none;
  font-feature-settings: "hist";
}

div.page:before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    border-top: 5px solid pink;
    border-right: 6px solid transparent;
    width: 0;
}

#Gargantua div.page:before {
  border-top: 5px solid #660607;
}

#Pantagruel div.page:before {
  border-top: 5px solid #022E6B;
}

#TiersLivre div.page:before {
  border-top: 5px solid #215F0A;
}

#QuartLivre div.page:before {
  border-top: 5px solid #50226A;
}

#CinqLivre div.page:before {
  border-top: 5px solid #73320A;
}

.page:first-child{
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page h3:not(:first-child){
  font-size: 0.5em;
}

.pageContent{
  text-align: center;
  font-family: "F1532 Bastarde Lyon Normal";
  font-variant: none;
  font-feature-settings: "hist";
}

.break {
  flex-basis: 100%;
  height: 0;
}

#break1, #break2, #break3{
  display: none;
}

footer{
  z-index: -5000;
}
@media (min-width: 1175px) {
  .livres{
    width: 75%;
  }
}
@media (max-width: 1400px) {
  section:first-child{
    margin-top: 50px;
  }
}
@media (max-width: 1175px) {
  #thirdRow, #thirdRow .left, #thirdRow .right, #break1{
    display: block;
  }
}
@media (max-width: 1000px) {
  section .text{
    flex-direction: column;
  }
  section .text p, section .text div{
    width: auto;
  }
}
@media (max-width: 700px) {
  #fourthRow, #fifthRow, #fourthRow .left, #fourthRow .right, #fifthRow .left, #fifthRow .right, #break2, #break3{
    display: block;
  }
}
