@import url('https://fonts.googleapis.com/css?family=Bangers');
@import url('https://fonts.googleapis.com/css?family=Permanent+Marker');
@import 'https://fonts.googleapis.com/css?family=Josefin+Slab';

html {
    margin:0;
    padding:0;
    position: relative;
    min-height: 100%;
}

body {
  overflow-x: hidden;
  padding:0;
  height:100%;
  background-image: radial-gradient(#cacaca 20%, transparent 20%), radial-gradient(#cacaca 20%, transparent 20%);
  background-color: #fbf7ec;
  background-position: 0 0, 6px 6px;
  background-size: 12px 12px;
  transition: background-color 1s ease;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #222;
    background-image: radial-gradient(#333 20%, transparent 20%), radial-gradient(#333 20%, transparent 20%);
  }
}

a {
  color: #000;
  text-decoration: none;
}

main {
  height: 205.5vw;
  margin-bottom: 14em;
  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
  display: none;
}

#progressbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 7px;
  background: linear-gradient(to top, #fcb045, #fd1d1d, #833ab4);
  border-radius: 0 0 10px 10px;
  z-index: 10000;
}

.titre {
  width:80vw;
  height:40vw;
  left:9vw;
  top:-12vw;
  background:url(../images/page08/titreb.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  z-index:1000;
  pointer-events:none;
}

.saison2 {
  width:5vw;
  height:3vw;
  background:url(../images/page08/saison2.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:15.2vw;
  left:72vw;
  z-index:10000;
  pointer-events:none;
}

.case01 {
  width:44vw;
  height:60vw;
  background:url(../images/page08/case01.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:1vw;
  left:4vw;
  z-index:0;
  pointer-events:none;
}

.case02 {
  width:44vw;
  height:60vw;
  background:url(../images/page08/case02.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:1vw;
  left:52vw;
  z-index:0;
  pointer-events:none;
}

.faltjp {
  width:5vw;
  height:7vw;
  background:url(../images/page08/faltjp.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  bottom:3vw;
  right:1vw;
}

.case03 {
  width:70vw;
  height:60vw;
  background:url(../images/page08/case03.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:59vw;
  left:14vw;
  z-index:0;
  pointer-events:none;
}

.case04 {
  width:70vw;
  height:60vw;
  background:url(../images/page08/case04.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:59vw;
  left:14vw;
  z-index:0;
  pointer-events:none;
}

.lune {
  width:70vw;
  height:60vw;
  background:url(../images/page08/lune.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:59vw;
  left:14vw;
  z-index:0;
  pointer-events:none;
}

.pochette {
  width:50vw;
  height:50vw;
  background:url(../images/page08/pochettejour.jpg) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:102vw;
  left:25vw;
  z-index:0;
  pointer-events:none;
  transition: background 1s ease-out;
}

@media (prefers-color-scheme: dark) {
  .pochette {
    width:50vw;
    height:50vw;
    background:url(../images/page08/pochettenuit.jpg) top center no-repeat;
    background-size: 100% auto;
    position:absolute;
    top:102vw;
    left:25vw;
    z-index:0;
    pointer-events:none;
    transition: background 1s ease-out;
  }
}

.badgerock {
  width:10vw;
  height:10vw;
  background:url(../images/page08/badgerock.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:107vw;
  left:6.5vw;
  z-index:0;
  pointer-events:none;
}

.badgeframboise {
  width:10vw;
  height:11vw;
  background:url(../images/page08/badgeframboise.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:132vw;
  left:84vw;
  z-index:0;
  pointer-events:none;
}

.creditpochette {
  width:5vw;
  height:15vw;
  position:absolute;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  top:137.5vw;
  right:19.8vw;
  z-index:0;
  font-size: 1vw;
  text-align: center;
  color: #000;
  font-family: 'Josefin Slab', serif;
}

@media (prefers-color-scheme: dark) {
  .creditpochette {
    width:5vw;
    height:15vw;
    position:absolute;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    top:137.5vw;
    right:19.8vw;
    z-index:0;
    font-size: 1vw;
    text-align: center;
    color: #cacaca;
    font-family: 'Josefin Slab', serif;
  }
}

.episode08 {
  width:45vw;
  height:25vw;
  background:url(../images/page08/episode08.png) top center no-repeat;
  background-size: 100%;
  position:absolute;
  top:155vw;
  left:2.5vw;
  z-index:10;
}

.episode09 {
  width:45vw;
  height:25vw;
  background:url(../images/page08/episode09.png) top center no-repeat;
  background-size: 100%;
  position:absolute;
  top:155vw;
  left:52.5vw;
  z-index:10;
}

.case05 {
  width:96vw;
  height:20vw;
  background:url(../images/page08/case05jour.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:183vw;
  left:2vw;
  z-index:0;
  transition: background 1s ease-out;
  font-family: 'Josefin Slab', serif;
}

.case05 a
{
  color: black;
}

mark {
  background-color: rgba(255, 255, 255, .5);
  padding: .2em;
  color: #000;
}

@media (prefers-color-scheme: dark) {
  .case05 {
    width:96vw;
    height:20vw;
    background:url(../images/page08/case05nuit.png) top center no-repeat;
    background-size: 100% auto;
    position:absolute;
    top:183vw;
    left:2vw;
    z-index:0;
    transition: background 1s ease-out;
    font-family: 'Josefin Slab', serif;
    color: white;
  }


  mark {
    background-color: rgba(0, 0, 0, .3);
    padding: .2em;
    color: #FFF;
  }
}

.credits {
  font-size: 1.8vw;
  padding-left: 1em;
  padding-top: .1em;
  line-height: 1.6em;
  width: 95%;
}

.credits p{
  margin-top: 1em
}


.credits a:hover {
text-decoration: underline;
}

.social {
  font-size: 1.5em;
  width: 40%;
  display: inline-block;
  float: right;
  text-align: right;
}

.social a {
  color:black;
}

footer
{
width: 100%;
height: 14em;
text-align: center;
position:absolute;
bottom:0;
left:0;
transition: bottom 0.2s ease-in-out;
font-size: 1.1em;
text-align: center;
color: #999;
background-color: #000;
font-family: 'Bangers', cursive;
z-index:100000;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition:color 1s;
}

footer a:hover {
  color: #c72c48;
  text-decoration: none;
  transition: 1s;
}

.codeauthority {
  width:5vw;
  height:7vw;
  background:url(../images/page08/codeauthority.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:-4vw;
  right:9vw;
}

.titrebas {
  width:28vw;
  height:16vw;
  top:-8.6vw;
  left:4vw;
  top:-8vw;
  background:url(../images/page08/titren.png) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
}

@media (prefers-color-scheme: dark) {
  .titrebas {
    width:28vw;
    height:16vw;
    top:-8.6vw;
    left:4vw;
    top:-8vw;
    background:url(../images/page08/titreb.png) top center no-repeat;
    background-size: 100% auto;
    position:absolute;
  }
}

.navigation
{
margin-top: 1em;
width:100%;
position:relative;
font-family: 'Josefin Slab', serif;
font-size: 1.5em;
}

.choix {
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  margin-left: .5em;
  margin-right: .5em;
  height:3vw;
}

.par {
  font-family: 'Josefin Slab', serif;
  font-size: 1.2em;
}

.par i {
  animation: 1.5s heartThrob infinite;
}

.par a {
  color: #fff;
  font-family: 'Bangers', cursive;
  text-decoration: none;
}

.style {
  font-size: 1em;
  font-family: 'Josefin Slab', serif;
  text-decoration: none;
  margin-top: -.7vw;
}

.previous
{
display: inline;
float: left;
text-align: left;
width:49%;
position:relative;
font-size: 2em;
padding-top: .5em;
padding-bottom: .5em;
}

.previous i
{
padding-left: 2em;
}

.next
{
display: inline;
float: left;
text-align: right;
width:51%;
position:relative;
font-size: 2em;
padding-top: .5em;
padding-bottom: .5em;
}

.next i
{
padding-right: 2em;
}

.framboise {
  width:2vw;
  height:3vw;
  background:url(../images/fruits/framboise.svg) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:.2vw;
  right:3.5vw;
  cursor: pointer;
  z-index: 1000;
}

.myrtilles {
  width:2vw;
  height:3vw;
  background:url(../images/fruits/myrtilles.svg) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:.2vw;
  right:6vw;
  cursor: pointer;
  z-index: 1000;
}

input[type="checkbox"],
input[type="radio"] {
  position: absolute;
  visibility: hidden;
}

.myrtilles-layout:checked ~ .par i {
  color: #7D9BFF;
  transition: 1s;
}

.framboise-layout:checked ~ .par i {
  color: #c72c48;
  transition: 1s;
}

.myrtilles-layout:checked ~ .navigation a:hover {
  color: #7D9BFF;
}

.framboise-layout:checked ~ .navigation a:hover {
  color: #c72c48;
}

.myrtilles-layout:checked ~ .previous a:hover {
  color: #7D9BFF;
}

.framboise-layout:checked ~ .previous a:hover {
  color: #c72c48;
}

.myrtilles-layout:checked ~ .next a:hover {
  color: #7D9BFF;
}

.framboise-layout:checked ~ .next a:hover {
  color: #c72c48;
}

.myrtilles-layout:checked ~ .par a:hover {
  color: #7D9BFF;
}

.framboise-layout:checked ~ .par a:hover {
  color: #c72c48;
}

.myrtilles-layout:checked ~ .style a:hover {
  color: #7D9BFF;
}

.framboise-layout:checked ~ .style a:hover {
  color: #c72c48;
}

@media (max-width: 1024px) {
   /* CSS appliqué aux petits écrans */

}

@media (max-width: 500px) {
  #progressbar {
    z-index: 1;
  }
 }

@media (max-width: 1024px) and (orientation: landscape) {
   /* CSS appliqué aux petits écrans en format paysage */

}

/* Animations */


@-moz-keyframes heartThrob {
    10% {
        transform:scale(1.15)
    }

    20% {
        transform:scale(1)
    }

    40% {
        transform:scale(1.15)
    }

    60% {
        transform:scale(1)
    }
}

@-webkit-keyframes heartThrob {
    10% {
        transform:scale(1.15)
    }

    20% {
        transform:scale(1)
    }

    40% {
        transform:scale(1.15)
    }

    60% {
        transform:scale(1)
    }
}

@-o-keyframes heartThrob {
    10% {
        transform:scale(1.15)
    }

    20% {
        transform:scale(1)
    }

    40% {
        transform:scale(1.15)
    }

    60% {
        transform:scale(1)
    }
}

@keyframes heartThrob {
    10% {
        transform:scale(1.15)
    }

    20% {
        transform:scale(1)
    }

    40% {
        transform:scale(1.15)
    }

    60% {
        transform:scale(1)
    }
}

@media (max-width: 1024px) {
   /* CSS appliqué aux petits écrans */

   main {
     height: 329vw;
     margin-bottom: 14em;
     -webkit-overflow-scrolling: touch;
   }

   .titre {
     width:100vw;
     height:45vw;
     left:0vw;
     top:-16vw;
     background:url(../images/page08/titreb.png) top center no-repeat;
     background-size: 100% auto;
     position:absolute;
     z-index:1000;
     pointer-events:none;
   }

   .saison2 {
     width:5vw;
     height:3vw;
     background:url(../images/page08/saison2.png) top center no-repeat;
     background-size: 100% auto;
     position:absolute;
     top:18.5vw;
     left:79vw;
     z-index:10000;
     pointer-events:none;
   }

   .case03 {
     width:92vw;
     height:60vw;
     background:url(../images/page08/case03.png) top center no-repeat;
     background-size: 100% auto;
     position:absolute;
     top:59vw;
     left:4vw;
     z-index:0;
     pointer-events:none;
   }

   .case04 {
     width:92vw;
     height:60vw;
     background:url(../images/page08/case04.png) top center no-repeat;
     background-size: 100% auto;
     position:absolute;
     top:59vw;
     left:4vw;
     z-index:0;
     pointer-events:none;
   }

   .lune {
     width:92vw;
     height:60vw;
     background:url(../images/page08/lune.png) top center no-repeat;
     background-size: 100% auto;
     position:absolute;
     top:59vw;
     left:4vw;
     z-index:0;
     pointer-events:none;
   }

.navigation
   {
   margin-top: 1.4em;
   }

.codeauthority {
  width:10vw;
  height:14vw;
  top:-8vw;
  right:12vw;
}

.titrebas {
  width:54vw;
  height:32vw;
  left:-5vw;
  top:-15vw;
}

.framboise {
  width:4vw;
  height:5vw;
  top:.2vw;
  right:2vw;
}

.myrtilles {
  width:4vw;
  height:5vw;
  top:.2vw;
  right:6.5vw;
}

.pochette {
  width:92vw;
  height:92vw;
  background:url(../images/page08/pochettejour.jpg) top center no-repeat;
  background-size: 100% auto;
  position:absolute;
  top:115vw;
  left:4vw;
  z-index:0;
  pointer-events:none;
  transition: background 5s ease;
  -webkit-transition: background 5s ease;
}

@media (prefers-color-scheme: dark) {
  .pochette {
    width:92vw;
    height:92vw;
    background:url(../images/page08/pochettenuit.jpg) top center no-repeat;
    background-size: 100% auto;
    position:absolute;
    top:115vw;
    left:4vw;
    z-index:0;
    pointer-events:none;
    transition: background 5s ease;
    -webkit-transition: background 5s ease;
  }
}

.creditpochette {
display: none;
}

.badgerock {
  top:215vw;
  left:57vw;
  width: 20vw;
  height: 20vw;
  z-index: 100;
}

.badgeframboise {
  top:265vw;
  left:22vw;
  width: 20vw;
  height: 25vw;
  z-index: 100;
}

.episode08 {
  width:60vw;
  height:35vw;
  top:213vw;
  left:4vw;
}

.episode09 {
  width:60vw;
  height:35vw;
  top:255vw;
  left:35vw;
}

.case05 {
  top:294vw;
  height: 60vw;
  width:96vw;
  background:url(../images/page08/case05jourb.png) top center no-repeat;
  background-size: 100% auto;
}

@media (prefers-color-scheme: dark) {
  .case05 {
    top:294vw;
    height: 60vw;
    width:96vw;
    background:url(../images/page08/case05nuitb.png) top center no-repeat;
    background-size: 100% auto;
  }
  }

.credits {
  font-size: 2.8vw;
  padding-left: 1em;
  padding-top: .2em;
  line-height: 1.2em;
  width: 100%;
}

.social {
  font-size: .8em;
  width: 40%;
  display: inline-block;
  float: right;
  text-align: right;
}

}
