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

:root {
  --text-darkmode: #FFF;
  --text-lightmode: #000;
  --text-greymode: #333;
  --framboise: #c72c48;
  --police-main: 'Josefin Slab', serif;
  --police-links-footer: 'Bangers', cursive;
}

* {
  box-sizing: border-box;
}

html, body {
    width: 100%;
    margin:0;
    padding:0;
    font-size: 1em;
}

body {
    min-height: 100vh;
    background: url('../images/index/background.webp') no-repeat center center;
    background-size: cover;
    transition: background-color 1s ease;
}

header, main, section, footer {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  margin-top: 0;
  font-family: var(--police-main);
}

main {
  -webkit-overflow-scrolling: touch;
}

header { 
  width: 60vw;
}

header img {
  width: 100%;
}

section {
  margin-top: 1em;
  margin-bottom: 1em;
  text-align: center;
  color: var(--text-darkmode);
}

.synopsis {
  width: 80vw;
  padding: 1em;
  z-index:100;
  font-size: 2.5em;
  border-radius: 10px;
  color: var(--text-lightmode);
}

.episodes {
  padding-left : 1em;
  padding-right : 1em;
}

.episodes ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  list-style: none;
  padding: 0;
}

.episodes li {
  width: 20%;
  padding: .5em;
}

.episodes li:hover {
  z-index: 100;
}

.episodes img {
  width: 100%;
  transition: zoom-light 2s ease;
}

.episodes img:hover {
  animation: zoom-light .5s 1;
}

.episodes .video-li {
  transition: zoom-light 2s ease;
}

.episodes .video-li:hover {
  animation: zoom-light .5s 1;
  cursor: pointer;
}

.plateformes {
  width: 60vw;
  margin-top: 10em;
  margin-bottom: 5em;
  font-size: 2.5em;
  padding: 1em;
  color: var(--text-greymode);
  border-radius: 10px;
}

.plateformes ul {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  list-style: none;
  font-size: 1.8em;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.plateformes li {
  transition: zoom 2s ease;
}

.plateformes li:hover {
  animation: zoom .5s 1;
}

.plateformes a {
  color: var(--text-greymode);
}


footer {
padding: 2em;
font-size: 1.5em;
text-align: center;
vertical-align: middle;
color: #999;
background-color: #000;
}

.titre {
  position: absolute;
  margin-top: -5.9em;
  left: 1em;
}

.titre img {
  width: 15em;
}

footer i {
  color: var(--framboise);
  animation: heartThrob 2s infinite;
}

footer p.auteurs {
  margin: 0;
  margin-top: 0.2em;
}

footer p.auteurs a {
  font-family: var(--police-links-footer);
}

footer p.credits {
  margin-top: 2em;
  font-size: .8em;
}

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

footer a:hover {
  color: var(--framboise);
  text-decoration: none;
  transition: 1s;
}

.ficson {
  position: absolute;
  margin-top: -12em;
  right: 1em;
}

.ficson img {
  width: 8em;
}

footer img:hover {
  animation: zoom-medium .5s 1;
}

@media (max-width: 1400px) {
  
  .synopsis {
    width: 85vw;
    padding: .5em;
    font-size: 2em;
   }
  
  .episodes li {
    width: 25%;
    padding: .5em;
  }
}

@media (max-width: 1024px) {
  
  header {
    width: 98vw;
    margin-bottom: 1em;
  }

   .synopsis {
     width: 100vw;
     font-size:calc(1em + 1vw);
   }
   
   .episodes li {
     width: 100%;
   }
   
  .plateformes {
    width: 100vw;
    font-size:calc(1em + .8vw);
  }
  
  .plateformes ul {
    width: 100%;
  }
  
  .titre {
    position: relative;
    left: 0;
    margin-top: -4.7em;
  }
  
  .titre img {
    width: 10em;
  }
  
  footer {
  padding-left: .5em;
  padding-right: .5em;
  padding-top: 2em;
  padding-bottom: 1em;
  font-size: 1.2em;
  }
  
  footer p {
    margin-top: 1em;
  }
  
  .ficson {
    position: relative;
    right: 0;
    margin-top: 2em;
  }
  
  .ficson img {
    width: 4em;
  }

}

/* Animations */

@keyframes zoom {
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes zoom-medium {
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes zoom-light {
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@-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) }
  }


/* mots tournants */

.text{
	display: inline-block;
}

.rw-words{
  display: inline-block;
  margin-left: 0;
  width: 5.9em;
  height: 1em;
}
.rw-words-1 span{
	position: absolute;
  margin-top: .25em;
  margin-left:-2.6em;
	opacity: 0;
	overflow: hidden;
	color: #6b969d;
	-webkit-animation: rotateWord 18s linear infinite 0s;
	-ms-animation: rotateWord 18s linear infinite 0s;
	animation: rotateWord 18s linear infinite 0s;
}
.rw-words-1 span:nth-child(2) {
    -webkit-animation-delay: 3s;
	-ms-animation-delay: 3s;
	animation-delay: 3s;
	color: #6b889d;
}
.rw-words-1 span:nth-child(3) {
    -webkit-animation-delay: 6s;
	-ms-animation-delay: 6s;
	animation-delay: 6s;
	color: #6b739d;
}
.rw-words-1 span:nth-child(4) {
    -webkit-animation-delay: 9s;
	-ms-animation-delay: 9s;
	animation-delay: 9s;
	color: #7a6b9d;
}
.rw-words-1 span:nth-child(5) {
    -webkit-animation-delay: 12s;
	-ms-animation-delay: 12s;
	animation-delay: 12s;
	color: #8d6b9d;
}
.rw-words-1 span:nth-child(6) {
    -webkit-animation-delay: 15s;
	-ms-animation-delay: 15s;
	animation-delay: 15s;
	color: #9b6b9d;
}
@-webkit-keyframes rotateWord {
    0% { opacity: 0; }
    2% { opacity: 0; -webkit-transform: translateY(-30px); }
	5% { opacity: 1; -webkit-transform: translateY(0px);}
    17% { opacity: 1; -webkit-transform: translateY(0px); }
	20% { opacity: 0; -webkit-transform: translateY(30px); }
	80% { opacity: 0; }
    100% { opacity: 0; }
}
@-ms-keyframes rotateWord {
    0% { opacity: 0; }
    2% { opacity: 0; -ms-transform: translateY(-30px); }
	5% { opacity: 1; -ms-transform: translateY(0px);}
    17% { opacity: 1; -ms-transform: translateY(0px); }
	20% { opacity: 0; -ms-transform: translateY(30px); }
	80% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes rotateWord {
    0% { opacity: 0; }
    2% { opacity: 0; -webkit-transform: translateY(-30px); transform: translateY(-30px); }
	5% { opacity: 1; -webkit-transform: translateY(0px); transform: translateY(0px);}
    17% { opacity: 1; -webkit-transform: translateY(0px); transform: translateY(0px); }
	20% { opacity: 0; -webkit-transform: translateY(30px); transform: translateY(30px); }
	80% { opacity: 0; }
    100% { opacity: 0; }
}
