/*

██████╗  █████╗ ██╗    ██╗     ██████╗██████╗ ███████╗ █████╗ ████████╗██╗ ██████╗ ███╗   ██╗
██╔══██╗██╔══██╗██║    ██║    ██╔════╝██╔══██╗██╔════╝██╔══██╗╚══██╔══╝██║██╔═══██╗████╗  ██║
██████╔╝███████║██║ █╗ ██║    ██║     ██████╔╝█████╗  ███████║   ██║   ██║██║   ██║██╔██╗ ██║
██╔══██╗██╔══██║██║███╗██║    ██║     ██╔══██╗██╔══╝  ██╔══██║   ██║   ██║██║   ██║██║╚██╗██║
██║  ██║██║  ██║╚███╔███╔╝    ╚██████╗██║  ██║███████╗██║  ██║   ██║   ██║╚██████╔╝██║ ╚████║

/*

   _____    _____    _____     ______   _   _
  / ____|  / ____|  / ____|   |  ____| (_) | |
 | |      | (___   | (___     | |__     _  | |   ___
 | |       \___ \   \___ \    |  __|   | | | |  / _ \
 | |____   ____) |  ____) |   | |      | | | | |  __/
  \_____| |_____/  |_____/    |_|      |_| |_|  \___|


Authors : M Romain & K William
CSS Texts :
Main title : Text font : ANSI Shadow, Character Width : Default
Sub titiles : Text font : BIG, Character Width : Full
http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20
*/

/*==========================================================*/
/* Common 1 */
div#preload { display: none; }

:root {
/* Couleur de background par défaut */
--main-bg-color-1: #000091;
--main-bg-color-2: #07071b;

/* Cette variable est utilisée pour modifier le badge */
/* Pour la page de choix du badge voulu */
--backgroundBadge : url(images/badgesFinis/backHole.png);

}
/* La police est a présent reconnue en tant que "Narrenschiff" */
@font-face {
  font-family: Narrenschiff-Raw;
  src: url('files/Narrenschiff-Raw.otf'); /* IE9+ */
}

/* Technologie de google API permettant d'être sûr
que le texte ne soit pas invisible pendant le chargement des polices */
@font-face{
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  src: local('Pacifico Regular'), local('Pacifico-Regular'), url(https://fonts.gstatic.com/s/pacifico/v12/FwZY7-Qmy14u9lezJ-6H6MmBp0u-.woff2) format('woff2');
  font-display: swap;
}

h1, h2, h3, h4{
  margin: 0;
  padding: 0;
  color: white;
}

h2{
  font-size: 1em;
}

*{
  margin: 0;
  padding: 0;
  font-family: 'Pacifio', sans-serif;
  scroll-behavior: smooth;
}

::selection {
  background: transparent; /* WebKit/Blink Browsers */
}
::-moz-selection {
  background: transparent; /* Gecko Browsers */
}

body{
  background-color: black;
  /*
  min-height: 100vh;
  min-height: -webkit-fill-available;
  */
  height: 100%;
  overflow: hidden;
}

html{
  /*height: -webkit-fill-available;*/
  height: 100%;
}

button{
  border-style : none;
}


/* SCROLL BARES */


/* ?? */
 *::-webkit-scrollbar
 {
   /* épaisseur en verticale */
   width: 6px;
   /* épaisseur en horizontale */
   height: 10px;
   background-color: #000000;
   border-radius: 15px;
 }

 /* Le fond de la scrollbar */
 *::-webkit-scrollbar-track
 {
   -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
   background-color: #2c2c2c;
   border-radius: 3px;
 }

 /* La scrollbar */
 *::-webkit-scrollbar-thumb
 {
   background-color: #1d1d1d;
   border-radius: 15px;
 }

/* La scrollbar, quand on passe la souris dessus */
 *::-webkit-scrollbar-thumb:hover
 {
   background-color: #111111;
 }

 /* La scrollbar, quand on le sélectionne */
 *::-webkit-scrollbar-thumb:active
 {
   background-color: #070707;
 }
 




/*==========================================================*/
/* FIXED BACKGROUND */


.fixedBackground{
  position: fixed;
  
  width: 100vw;
  height: 100%;
  z-index: -10;

  /*background-color: var(--main-bg-color);*/
  /*background-image: url(images/noise.svg);*/

  background-color: var(--main-bg-color-1);
  opacity: 0%;

  transition-duration: 0.5s;
  
  animation-name: backgroundApparition;
  animation-delay: 1s;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
 
}

.fixedBackground::before {
  content:"";
  position: absolute;
  width: 100vw;
  height: 100%;

  background: linear-gradient(0deg, rgb(0 0 0 / 95%) 0%, rgb(0 0 0 / 77%) 50%, rgb(0 0 0 / 95%) 100%);
  opacity: 90%;

  

}


.fixedBackground::after {
  content:"";
  position: absolute;
  width: 100vw;
  height: 100%;

  /* background-image: url(images/noise.png); */
  background-image: url(images/manual_noise.png);
  background-repeat: repeat;
  background-size: 24vh;

  opacity: 0%;

  animation-name: backgroundAfterApparition;
  animation-delay: 1s;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  

}

@keyframes backgroundAfterApparition {
  0%{
    opacity: 0%;
  }
  100% {
    opacity: 10%;
  }
}

@keyframes backgroundApparition {
  0%{
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}



/*==========================================================*/
/* USER INTERFACE */

.frontInterface{
  position: fixed;
  z-index: 2;
  pointer-events: none;
  
  width: 100vw;
  height: 100%;


  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  
}

.frontInterface ul{
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  display: flex;
  justify-content: space-between;

}

.frontInterface a{
  display: flex;
  pointer-events: all;
} 


.rawTopButton{
  margin: 2em;
  
}

.rawTopButton img{
  height: 4em;

}



.buttonBlur{
  margin: 1.5em;
  aspect-ratio: 1/1;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  /*backdrop-filter: blur(5px);*/
  box-shadow: 10px 10px 25px rgba(0,0,0,0.3);
  transition-duration: 0.2s;
}

.buttonBlur img{
  height: 2em;
  width: auto;
  margin: 1em;
  filter: invert();
}


#btnPrecedent{
  border-left : 1px solid #ffffff9e;
  border-top : 1px solid #ffffff9e;
  opacity: 0;
}

#btnSuivant{
  border-left : 1px solid #ffffff9e;
  border-top : 1px solid #ffffff9e;
  opacity: 0;
}





/*==========================================================*/
/* Partie voting */
.iframeVoteContainer{
  height: 100%;
  width: 100%;

  position: fixed;
  pointer-events: all;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  background-color: rgba(0, 0, 0, 0.445);

  animation-duration: 0.5s;
  animation-fill-mode: forwards;


  opacity: 0;
  z-index: 10;
  visibility: hidden;


}

@keyframes showVote {
  0%{
    visibility: visible;
    opacity: 0;
    /*backdrop-filter: blur(0px);*/
  }
  /*
  1% {
    backdrop-filter: blur(0px);
    visibility: visible;
  }
  */
  100% {
    opacity: 1;
    /*backdrop-filter: blur(5px);*/
    visibility: visible;
  }
}

@keyframes hideVote {
  0% {
    opacity: 1;
    /*backdrop-filter: blur(5px);*/
    visibility: visible;
  }
  /*
  99% {
    
    backdrop-filter: blur(0px);
    visibility: visible;
  }
  */
  100%{
    visibility: hidden;
    opacity: 0;
    /*backdrop-filter: blur(0px);*/
  }
}



.iframeVote{
  height: 90%;
  max-height: 35em;
  width: 90%;
  max-width: 28em;
  margin: 1em;
  border-style: none;
  pointer-events: visible;
  overflow: hidden;
  background-color: black;
  box-shadow: 0px 0px 25px rgba(85, 85, 85, 0.7);
}

.btnQuitVote{
  width: 90%;
  max-width: 28em;
  display: flex;
  flex-direction: column;
  
}

.btnQuitVote a{
  margin: 1em;
  margin-bottom: 0;
  align-self: flex-end;
  pointer-events: visible;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 10px 10px 25px rgba(0,0,0,0.3);
  transition-duration: 0.2s;
  border-left : 1px solid rgba(122, 122, 122, 0.671);
  border-top : 1px solid rgba(122, 122, 122, 0.671);
}

.btnQuitVote img{
  width: 1.5em;
  margin: 0.5em;
  filter: invert();
}


/*==========================================================*/
/* LE BADGE DE BASE */
#badge{
  /*margin: 2em;*/
  /*width: 70%;
  max-height: 12em;*/

  /*aspect-ratio: 867/433;*/
  aspect-ratio: 613/309;
  height: 25vh;
  max-height: 12em;
  min-height: 6em;

  transition-duration: 0.5s;
  transition-timing-function: ease-out;

  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;

  filter: drop-shadow(4px 7px 6px rgba(0,0,0,0.3));
  }






/*==========================================================*/
/* SECTIONS */

.backScreen{
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  scroll-behavior: smooth;
  /*====================================*/
  /*====================================*/
  /* A modifier en cas de changement du nombre total de frames */
  width: calc(7*100vw);
  /*changer aussi dans frameSelect.js (var lastFrame) */
  /*====================================*/
  /*====================================*/
  height: 100%;


  
}


section{
  position: relative;
  display: flex;
  align-self: center;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  scroll-behavior: smooth;

  width: 100vw;
  height: calc(100% - 35%);

  z-index: 1;

  overflow-y: auto;
  overflow-x: hidden;

  
  color: rgb(0, 0, 0);
}



section ul{
  position: absolute;
  width: 100%;

  opacity: 0;
}

section li{
  position: absolute;
  list-style: none;
}

section img{
  width: 70vw;
 
}


.topTitles{
  display: flex;
  flex-direction: column;
  align-self: center;
  align-items: center;

  text-align: center;

  width: 90vw;
  margin-top: 3vh;



}

/*
#titlesRelative{
  position: inherit;
}
*/

br{
  content: " ";
  display: block;
  margin: 1vh;
}



/*==========================================================*/
/* Section 1 */

.section1{
 /*  background-image: url(https://images.unsplash.com/photo-1586075010923-2dd4570fb338?ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8cGFwZXIlMjB0ZXh0dXJlfGVufDB8fDB8fA%3D%3D&ixlib=rb-1.2.1&w=1000&q=80);
  background-size: cover; */

}

 
  .badgeSection1{
    background-color: rgba(255, 255, 255, 0.075);
    background-image: url(images/badgesFinis/transparent.png);
    border-radius: 100px;
    border-left : 1px solid #ffffff73;
    border-top : 1px solid #ffffff8c;

    /* box-shadow: 10px 10px 25px rgba(0,0,0,0.3); */

  }




/*==========================================================*/
/* Section 2 */

  .section2{
    /* background-image: url(https://r1.ilikewallpaper.net/pic/201504/papers_co_sf03_dark_blue_ocean_gradation_blur_5_wallpaper_640.jpg);
    background-size: cover; */
  }

  .badgeSection2{
    background-color: transparent;
    background-image: url(images/badgesFinis/backPlain.png);
    /*box-shadow: 10px 10px 25px rgba(0,0,0,0.3);*/
    border-radius: 0px;
    border-left : 0px solid transparent;
    border-top : 0px solid transparent;

/*      */
  }


/*==========================================================*/
/* Section 3 */

.section3{
	/* background-image: url(https://wallpapercave.com/wp/wp2915251.jpg);
  background-size: cover; */
}

.badgeSection3{
  background-image: url(images/badgesFinis/backHole.png);
}


/*==========================================================*/
/* Section 4 */

.section4{
 
/*     background-image: url(https://i.pinimg.com/originals/28/01/67/280167402c612d7052f374b738b0d43b.jpg);
  background-size: cover; */
}

.badgeSection4{
  background-image: var(--backgroundBadge);
}


/* Le carousel (liste de choix de logos pour le badge) */

.carousel {
  z-index: 1;
    
  overflow-y: hidden;

  display: flex;

  width: 90vw;
  max-width: 22em;
  
  padding-top: 0.5em;
  padding-left: 0.5em;

  background: rgba(255, 255, 255, 0.075);
  /*backdrop-filter: blur(5px);*/
  box-shadow: 10px 10px 25px rgba(0,0,0,0.3);
  /*filter: drop-shadow(10px 10px 25px rgba(0,0,0,0.3));*/
  border-left : 1px solid #ffffff69;
  border-top : 1px solid #ffffff9c;

}

.carousel img{
  width: auto;
  height: 10vh;
  max-height: 5.5em;
  margin-right: 0.5em;
  margin-bottom: 0.5em;

}

.carousel input{
  display: none;
}

.carousel label{
  display: flex;
  align-items: center;
}


.carousel img {
   background: rgba(255, 255, 255, 0.075);
  }

.carousel img:hover {
    background: rgba(10, 10, 10, 0.5);
}

.carousel img:active {
  background: rgba(0, 0, 0, 0.8);
}

.carousel input:checked + label > img  {
  background: rgba(27, 27, 27, 0.61);

}


#carouselExistants{
  position: relative;
}





/*==========================================================*/
/* Section 5 */

.section5{
	/*     background-image: url(https://i.pinimg.com/originals/32/0b/f8/320bf808e83e47487fcfabd767d0a300.jpg);
  background-size: cover;
   */
}


.badgeSection5{
  background-image: var(--backgroundBadge);
  filter: drop-shadow(0px 0px 25px #ffffff33);
  transform: scale(1.1);
}


.commandEtsyImage{
  width: 100%;
  margin-top: 3em;
  filter: drop-shadow(0px 0px 10px #ffffff56);

  animation-name: etsyGlow, etsyFloating;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

@keyframes etsyGlow {
  0%{
    filter: drop-shadow(0px 0px 10px #ffffff2f);
  }
  50% {
    filter: drop-shadow(0px 0px 10px #ffffff60);
  }
  100%{
    filter: drop-shadow(0px 0px 10px #ffffff3a);
  }
}

@keyframes etsyFloating {
  0% {
		filter: drop-shadow(0 5px 15px 0px rgba(0,0,0,0.6));
		transform: translatey(0px);
	}
	50% {
		filter: drop-shadow(0 25px 15px 0px rgba(0,0,0,0.2));
		transform: translatey(-10px);
	}
	100% {
		filter: drop-shadow(0 5px 15px 0px rgba(0,0,0,0.6));
		transform: translatey(0px);
	}
}


/*==========================================================*/
/* Section 20 */

.section20{

}

#titlesRelativeVote{
  position: relative;
  top: 6%;
}



/*==========================================================*/
/* Section 6 */

#section6{
  justify-content: space-around;

}

.badgeSection6{
  background-image: var(--backgroundBadge);
  filter: drop-shadow(0px 0px 25px #ffffff33);
  opacity: 0;
}

.socialsGlassList{
  width: auto;
  max-width: 85vw;
  height: auto;
  max-height: 20vh;


  padding: 1em;

  position: relative;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  
  background: rgba(255, 255, 255, 0.075);
  /* backdrop-filter: blur(5px); */
  box-shadow: 10px 10px 25px rgb(0 0 0 / 30%);
  border-radius: 30px;
  border-left: 1px solid rgb(143, 143, 143);
  border-top: 1px solid rgb(121, 121, 121);


  z-index: 10;
  overflow: auto;

}

.socialsGlassList div{
  text-align: center;
  margin: 1em;
}

.socialsGlassList img{
  width: 5em;
  margin-bottom: 0.3em;
}

.socialsGlassList a, a:link, a:visited, a:hover{
  text-decoration: none;
}

#btnReload{
  border-left : 1px solid #ffffff9e;
  border-top : 1px solid #ffffff9e;
}

.btnReload img{
  height: 4em;
}


/*
.socialsGlassList hr{
  height: 70%;
  color: rgb(255, 198, 176);
}
*/



/*===================== MEDIA QUERIES ======================= */
/* Pour mini mini écran */
@media screen and (max-height: 400px){
  .rawTopButton{
    align-self: flex-start;
  }
  .rawTopButton img{
    height: 2.5em;
  }
  .buttonBlur{
    margin: 1em;
  }
  #badge{
    min-height: 4em;
  }
  .section{
    height: calc(100% - 4%);

  }
  .topTitles{
    align-items: flex-end;
    align-self: flex-end;
    width: 75vw;
    margin-right: 3vw;

  }
  .carousel{
    width: 55vw;
  }
  .carousel img{
    height: 15vh;
  }
  h1{
    font-size: 1.1em
  }
  h3{
    font-size: 0.8em;
  }
  .socialsGlassList{
    flex-direction: row;
    min-height: auto;
    padding: 3vh;
  }
  .socialsGlassList img{
    width: 4em;
  }
}
