@import "fonts/stylesheet.css";

:root{
	--rose : rgb(255, 59, 151);
	--lightgreen: rgb(94, 199, 100);
	--green: rgb(43, 60, 50);
}

*{
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  /*cursor: url('cursor-ok.png'), auto;*/
/*  cursor: pointer;*/
}

body{
	margin:0;
	font-size: 30px;
	font-family: "directrice", sans-serif;
  position: relative;
  max-width: 100vw;
  overflow: hidden;
}

img{
	width: 100%;
}

h1, h2, h3{
  font-weight: normal;
}

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

a:hover{
  color: #FFF;
}

p a{
	text-decoration: underline;
}

figure{
  margin: 0;
  padding: 0;
}

header{
  padding: 10px 20px;
  width: 100vw;
  display: flex;
  justify-content: flex-end;
  z-index: 999;
  position: fixed;
  cursor: pointer;
}

header div{
  cursor: pointer;
}

/*.header-right{
  display:flex;
  justify-content: flex-end;
  width: 30%;
  margin-right: 5px;
  margin-top: 7px;
}*/

#loading{
  width: 200px;
  left:50%;
  top: 50vh;
  transform: translate(-50%, -60%);
  position: fixed;
  z-index: 1000;
}

#while-loading{
  width: 100vw;
  height: 100vh;
  position: fixed;
  top:0;
  left:0;
  background: #FFF;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#while-loading p {
  font-size: 2em;
  color: var(--rose);
  text-shadow: 0 0 5px var(--rose);
  animation: loading 1s infinite;
  margin:0;
  margin-right: 20px;
  text-align: center;
  letter-spacing: 10px;
}

#while-loading p.year{
  font-size: 1em;
}


@keyframes loading {
  0% {
      transform: translateY(0);
  }
  25% {
      transform: translateY(-10px);
  }
  50% {
      transform: translateY(0);
  }
  75% {
      transform: translateY(10px);
  }
  100% {
      transform: translateY(0);
  }
}

#clic-wrapper{
  width: 100vw;
  height: 100vh;
  position: fixed;
  top:0;
  left:0;
  background: rgba(255, 59, 151, 0.5);
  z-index: 999;
  cursor: pointer;
}

.clic-inner{
  position: absolute;
/*  background: #FFF; */
  font-size: 2em;
/*  box-shadow: 0 0 20px var(--rose);*/
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  text-align: center; 
  width: 230px;
  padding: 30px;
/*  overflow: scroll;*/
  color: #FFF;
  text-shadow: 0 0 20px var(--rose);
}


/* ------ M A I N ------ */

main h1{
  margin:0;
  font-size: 3em;
  line-height: 1;
  text-align: center; 
  position: absolute;
  z-index: -1;
  left:50%;
  top: 50vh;
  transform: translate(-50%, -55%);
  color: var(--rose);
  animation: glow 3s infinite; /* Adjust the duration as needed */
}

main h1 a{
  color: var(--rose);
}

main h1 a:hover{
  color: #FFF;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px var(--rose);
  }
  50% {
    text-shadow: 0 0 20px var(--rose);
  }
  100% {
    text-shadow: 0 0 5px var(--rose);
  }
}

main .images-wrapper{
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

main .images-wrapper .fig-wrapper{
  position: relative;
}


main .images-wrapper figure{
  position: absolute;
  width: 30%;
  top: 0;
  left: 0;
  cursor: pointer;
/*  display: none;*/
}

main .images-wrapper figure.front{
  z-index: 900 !important;
}

main .images-wrapper figure.portrait{
  width: 20%;
  min-width: 200px;
}

main .images-wrapper figcaption{
  font-size: 20px;
  display: none;
  position: absolute;
  top: 0;
  left:0;
}

main .images-wrapper figure:hover img{
  display: none;
}

main .images-wrapper figure:hover figcaption{
  display: block;
}

main .images-wrapper figure:hover figcaption img{
  display: block;
}

#fireworks-container {
  position: fixed;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

@keyframes explode {
  0% {
    transform: scale(1);
    opacity: 1;
/*    text-shadow: 0 0 5px var(--rose);*/
  }
  100% {
    transform: scale(3);
    opacity: 0;
/*    text-shadow: 0 0 20px var(--rose);*/
  }
}

.firework {
  position: absolute;
  width: 10px;
  height: 10px;
/*  background-color: var(--rose);*/
  color: var(--rose);
/*  border-radius: 50%;*/
  animation: explode 0.3s ease-in;
  text-shadow: 0 0 5px var(--rose);
}


/* ------ CREDITS ET ABOUT ------ */

#credits-btn, #infos-btn{
  font-size: 0.8em;
  margin-left: 15px; 
  cursor: pointer; 
  padding-top: 0.3em;
  text-shadow: 0 0 5px var(--rose);
  color: var(--rose);
}

#credits-btn:hover, #infos-btn:hover{
  color: #FFF;
}


#infos-window, #credits-window{
  position: fixed;
  z-index: 10001; 
/*  background: rgba(0, 0, 0, 0.5);*/
  background: rgba(255, 59, 151, 0.5);
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  display: none;
  width: 100%;
  height: 100vh;
}

#infos-window.is-active, #credits-window.is-active{
  display:block;
}

.infos-window-inner, .credits-window-inner{
  position: absolute;
  width: 60%;
  background: #FFF; 
  box-shadow: 0 0 20px var(--rose);
/*  border: 1px solid #000; */
  padding: 40px 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; 
  min-width: 320px;
  max-width: 800px;
  max-height: 90vh;
  overflow: scroll; 
}

.infos-window-inner h2, .credits-window-inner h2{
  margin-top: 0;
  margin-bottom: 30px; 
  font-size: 1em;
}

#credits-window h2{
  margin-bottom:0px;
  /*margin-top: 30px;*/
}

.infos-window-inner p{
  font-size: 0.7em;
  line-height: 1.2;
}

.infos-window-inner a{
  color: var(--rose);
  text-shadow: 0 0 5px var(--rose);
  text-decoration:  none;
}

.infos-window-inner a:hover{
  color: #FFF;
}

.credits-window-inner p{
  font-size: 0.5em;
  line-height: 1.3;
  margin: 0px;
}

.close-window{
  position: absolute;
  right: 15px; 
  top: 5px;
  font-size: 1.5em;
  cursor: pointer;
}

.hide-for-small-only{
  display: block;
}
.show-for-small-only{
  display: none;
}

@media only screen and (max-width: 560px){
  .hide-for-small-only{
    display: none;
  }
  .show-for-small-only{
    display: block;
  }

  header{
    padding: 10px;
  }

  main h1{
    font-size: 1.5em;
  }

  .infos-window-inner, .credits-window-inner{
    width: 95%;
  }

  .close-window{
    font-size: 0.8em;
  }

  #while-loading p{
    font-size: 1em;
    margin-right: 10px;
  }

  #while-loading p.year{
    font-size: 0.5em;
  }

}





