@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@400;700&display=swap');

:root {
  --text: #000;
  --text-white: #FFF;
  --framboise: #F05950;
  --sapin: #047101;
  --police-main: 'Mountains of Christmas', serif;
}

* {
  box-sizing: border-box;
}

html {
    height: fit-content;
    margin: 0;
    padding: 0;
    background-image: url(images/background.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    font-family: var(--police-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
}

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: 80vw;
  margin-bottom: 0;
  align-content: center;
}

header img { 
  max-width: 50em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

section {
  width: 90vw;
  text-align: center;
  color: var(--text);
  -webkit-text-stroke: 6px white;
  paint-order: stroke fill;
  font-family: var(--police-main);
}

h1 {
  font-size: calc(1em + 2vw);
}

.participer {
  color: var(--text);
}

.inscription p {
  font-size: 2.5em;
  margin-top: 1em;
}

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

.annonce p {
  font-size: 1.5em;
}

.lecteur p {
  font-size: 2.5em;
}

.hidden {
  display:none;
}

.old {
  padding-top: 0em;
}

.synopsis {
  width: 80vw;
  margin-bottom: 2em;
  z-index:100;
  font-size: 2.5em;
}

.plateformes {
  width: 50vw;
  margin-top: 2em;
  margin-bottom: 2em;
  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: #333;
}

footer {
height: fit-content;
padding: 2em;
font-size: 2em;
line-height: 2em;
text-align: center;
vertical-align: middle;
color: var(--text);
background-color: #9CD485;
}

.guirlande {
    position: absolute;
    left:0;
    margin-top:-3.6em;
    width:100vw;
    height:calc(2.5em + 3vw);
    background-image: url(images/guirlande.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.titre {
  font-size: 3em;
  padding: .5em;
}

.white {
  color: var(--text-white);
}

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

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

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

footer a {
  color: #FDFCEA;
  text-decoration: none;
  transition:color .5s;
}

footer a:hover {
  color: var(--sapin);
  text-decoration: none;
  transition: .5s;
}

.ficson img {
  margin-top: 1em;
  width: 5em;
}

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


@media (max-width: 1024px) {
  
  html {
    background-size: 500%;
    background-repeat: repeat;
    background-position: right center;
  }
  
  header {
    width: 100vw;
    margin-top: 3em;
  }
  
  section {
    width: 95vw;
  }

   .synopsis {
     width: 100vw;
     font-size: 2em;
   }
   
  .plateformes {
    width: 100vw;
    font-size: 1.5em;
  }
  
  .plateformes ul {
    width: 100%;
  }
  
  .titre {
    font-size: 2em;
  }
  
  footer {
  padding-left: .5em;
  padding-right: .5em;
  padding-top: 2em;
  padding-bottom: 1em;
  font-size: 2em;
  }

  .ficson img {
    width: 4em;
  }
  
  footer p.credits {
    font-size: 1em;
  }

}

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