@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;
  --framboise: #c72c48;
  --myrtilles: #7D9BFF;
  --police-main: 'Josefin Slab', serif;
  --police-links-footer: 'Bangers', cursive;
}

* {
  box-sizing: border-box;
}

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

body {
    background-color: #222;
    background-image: radial-gradient(#333 20%, transparent 20%), radial-gradient(#333 20%, transparent 20%);
    background-position: 0 0, 6px 6px;
    background-size: 12px 12px;
    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);
  color: var(--text-darkmode);
}

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

header { 
  width: 60vw;
}

header img {
  width: 100%;
}

section {
  font-size: 2em;
  padding-top: 3em;
  padding-bottom: 3em;
  width: 80vw;
  text-align: center;
}

h2 {
 margin: 0;
 font-size: 3em;
 font-weight: normal;
}

h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: normal;
}

.episodes{
  display: flex;
  align-items: center;
  justify-content:center;
  padding: 0;
  margin:0;
  margin-top: 2em;
}

.row-reverse{
  flex-flow: row-reverse wrap;
}

.row{
  flex-flow: row wrap;
}

.episodes img {
  min-width: 5em;
  width: 20em;
  padding-left:2em;
  padding-left: .5em;
  padding-right: .5em;
}

.episodes nav {
  width: 100%;
  margin:0;
  padding-left: 1em;
  padding-right: 1em;
}

.episodes ul{
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content:flex-start;
  margin: 0;
  margin-bottom: 1em;
  margin-top: .5em;
  padding:0;
  padding-top: .5em;
  border-bottom: 1px solid var(--myrtilles);
}

ul.last{
  margin-top: 1.5em;
  border-bottom: none;
  font-size: 1.5em;
}

ul.scripts{
  margin-top: 1.5em;
  border-bottom: none;
  font-size: 1.5em;
  text-align: center;
}

.episodes li{
  list-style: none;
  text-align: left;
  margin-left: 1em;
  margin:0;
  padding:0;
}

.episodes li:last-child{
  font-size: .7em;
  margin-left: auto;
  margin-top: .5em;
  margin-bottom: .2em;
}

.episodes li.script{
  font-size: .5em;
  margin: auto;
  margin-bottom: 1em;
  padding: .5em;
}

.episodes li.script:last-child{
  margin-top: 0;
  margin-bottom: 1em;
}

.episodes li.script a{
  text-decoration: none;
}

.episodes i{
  margin-left: .5em;
  color: inherit;
  transition: color .2s ease;
}

.episodes i:hover {
  animation: zoom .5s 1;
  color: var(--myrtilles)
}

.episodes a {
  color: var(--text-darkmode)
}

.episodes a:hover {
  color: var(--myrtilles)
}


.plateformes {
  width: 50vw;
  margin-top: 5em;
  margin-bottom: 5em;
  font-size: 2em;
  padding: 1em;
}

.plateformes ul {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  list-style: none;
  font-size: 2em;
  width: 80%;
  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-darkmode);
}


footer {
margin-top: 8em;
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 a {
  font-family: var(--police-links-footer);
}

footer p.credits {
  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: 1024px) {
  
  header {
    width: 98vw;
    margin-bottom: 1em;
  }
  
  .titre {
    position: relative;
    left: 0;
    margin-top: -4.7em;
  }
  
  .titre img {
    width: 10em;
  }
  
  section {
    width: 100vw;
  }
  
  h2 {
   font-size: 2em;
  }
  
  .episodes {
    width: 100%;
  }
  
  .episodes img {
    width: 95vw;
  }
  
  .episodes li{
    text-align: center;
    margin-left: 0;
  }
  
  .episodes li:last-child{
    margin-top: 1.5em;
  }
  
  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;
  }
  
  .plateformes {
    width: 100vw;
    font-size:calc(1em + .8vw);
    background-color: rgba(34, 34, 34, .6);
  }
  
  .plateformes ul {
    width: 100%;
  }

}

/* 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) }
  }
