@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500');
@import url('https://fonts.googleapis.com/css?family=Archivo&display=swap');

/* woff2 seems to be working better on mobile */

@font-face {
	font-family: 'rotulona-hand';
	src: url('../fonts/Rotulona-Hand-FFP.otf') format('otf'),
		 url('../fonts/Rotulona-Hand-FFP-font.ttf') format('ttf');
	font-weight: normal;
	font-style: normal;
}

@font-face {
    font-family: 'rotulona_handffp';
    src: url('../fonts/rotulona-hand-ffp-webfont.woff2') format('woff2'),
         url('../fonts/rotulona-hand-ffp-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
	font-family: 'blenda_scriptregular';
    src: url('../fonts/blenda_script-webfont.woff2') format('woff2'),
         url('../fonts/blenda_script-webfont.woff') format('woff'),
		 url('../font/Blenda-Script.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}


@font-face {
	font-family: 'Fashion Fetish';
    src:  url('../font/Fashion Fetish Bold.ttf') format('ttf'),
          url('../fonts/Fashion-Fetish-Bold.otf') format('otf');
    font-weight: bold;
    font-style: bold;
}

@font-face {
	font-family: 'Louis George Cafe';
    src:  url('../font/Louis George Cafe Bold.ttf') format('ttf'),
          url('../fonts/Louis-George-Cafe-Bold.woff') format('woff');
    font-weight: bold;
    font-style: bold;
}

html {
  scroll-behavior: smooth;
	background-color: azure;
}

body {
  margin: 0;
  height: calc(var(--vh, 1vh) * 100);
}

/* landing page */

#home {
  text-align: center;
  text-transform: uppercase;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%); 
}

#home a {
  font-family:"Louis George Cafe", "Fashion Fetish", "system-ui", "roboto", "arial";
  font-weight: 600;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 50px;
  padding: 20px;
  font-size: 2em;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

#home a:hover, #home a:focus, #home a:active {
  background-color: rgb(255, 255, 255, 0.900);
  color: rgba(0, 0, 0, 0.800);
}

/* end of landing page */

/* credit page */

#nophotos {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  margin-top: 2.5em;
  margin-left: 1em;
  margin-right: 1em;
  margin-bottom: 7%;
  max-width: 612px;
  position: absolute;
  color: rgba(255,255,255,.9);
  text-align: justify;
}

#nophotos h2 {
  font-family: "Trebuchet MS", 'Archivo', sans-serif, "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 200%;
}

#nophotos a {
  color: rgba(255,255,255,.9);
  font-weight: bold;
  text-decoration: none;
}

#nophotos a:hover {
  color: rgba(255,255,255,.9);
  font-weight: bold;
  text-decoration: underline;
}

/* end of credit page */

input {
    display: none;
  }
  
.open {
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  cursor: pointer;
  position: fixed;
  bottom: 42px;
  right: 36px;
  z-index: 2;
}
  
.open:before {
  content: "";
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: absolute;
  bottom: -8px;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}
  
.open:after {
  content: "";
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.open-background {
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.3);
  width: 70px;
  height: 70px;
  position: fixed;
  bottom: 10px;
  right: 13px;
  z-index: 1;
}

.menu-open {
  width: 24px;
  height: 20px;
  display: block;
  padding: 15px;
  cursor: pointer;
  float: right;

}
  
/* gotta find the right value to make sure the menu has the right place after being clicked */
.menu-open:hover .open:before {
  bottom: -8px;
}

.menu-open:hover .open:after {
  bottom: 8px;
}

.menu {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 1);
  z-index: 1;
}

.menu label {
  width: 30px;
  height: 30px;
  position: absolute;
  right: 20px;
  top: 20px;
  background-size: 100%;
  cursor: pointer;
}

.menu .menu-content {
  position: relative;
  top: 50%;
  text-align: center;
  padding-bottom: 20px;
  margin-top: -170px;
}
  
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.menu ul li a {
  font-family: "Trebuchet MS", "system-ui";
  text-transform: uppercase;
  font-size: 2.5em; 
  display: block;
  color: white;
  text-decoration: none;
  transition: color 0.2s;
  padding: 10px 0;
}

.menu ul li a:hover {
  color: #000000;
}

.menu ul li:hover {
  background: white;
}

.menu-effects {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.menu-effects ul {
  transform: translateY(0%);
  transition: all 0.5s;
}

#menu-toggle:checked ~ .menu-effects {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

#menu-toggle:checked ~ .menu-effects ul {
  opacity: 1;
}

#menu-toggle:checked ~ .menu-open .open {
  background-color: transparent;
}

#menu-toggle:checked ~ .menu-open .open:before {
  content: "";
  background-color: #ebebeb;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

#menu-toggle:checked ~ .menu-open .open:after {
  content: "";
  background-color: #ebebeb;
  transform: rotate(-45deg);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

#menu-toggle:not(:checked) ~ .menu-effects ul {
  transform: translateY(-30%);
}

/* some nice transition effect for the footer as well  */
.menu-effects footer {
  transform: translateY(0%);
  transition: all 0.5s;
}

#menu-toggle:not(:checked) ~ .menu-effects footer {
  transform: translateY(30%);
}

/* footer and stuff */

.menu footer {
  font-family: "Trebuchet MS";
  width: 75%;
  position: fixed;
  bottom: 10px;
  font-size: 0.7em;
  text-align: center;
  /* required to center the block */
  left: 50%;
  margin-left: -37.5%;
}

.menu footer .practical {
    color: rgba(237,237,237,.9);
}

.menu footer .practical a {
    color: rgba(237,237,237,.9);
		text-decoration: none;
}

.menu footer .practical a:hover {
  text-decoration: underline;
}

.menu footer .apiflickr {
  color: rgba(110, 155, 255, 0.6);
}

/* ----------------- */
/* TITRE PRINCIPAL */

/* titre à gauche */
header {
    position: fixed;
    left: 1em;
    top: 0.5em;
    background-color: rgba(255,255,255,0);
    margin: 0;
    z-index: 2;
} 


/* titre centré 
header {
  position: absolute;
  left: 50%;
  top: 25px;
  background-color: rgba(255,255,255,0);
  z-index: 2;
  text-align: center;
  transform: translate(-50%, -50%);
}
*/

header h1 {
    /* font-family: "Fashion Fetish", "blenda_scriptregular", "Roboto", "Helvetica", "Arial", sans-serif; */
    font-family: "Louis George Cafe", "Fashion Fetish";
    font-size: 2rem;
    letter-spacing: -0.05em;
    text-shadow: 5px 5px 9px rgb(0 0 0 / 52%);
    margin: 0;
}

header h1 a {
    color: rgba(255,255,255,.9);
    transition:all 1.5s ease;
    text-decoration: none;
}

header h1 a:hover {
    color: rgba(237,237,237,.9);
    text-decoration: none;
    
}

/* taking care of the image carousel  */

#flickr {
	/* affiche les images les une en dessous les autres  */
  overflow-y: hidden;
	/* empêche de scroller jusqu'à la dernière image. S'arrête au début de la 2nd image...  */
	white-space: nowrap;
	width: 100%;
	/* empêche de scroller vers le bas  */
	touch-action: pan-x;
	/* empêche le gap entre les photos...  */
	font-size: 0;
  z-index: 0;
  position: absolute;
}

#flickr .slide {
	/* affiche les photos sur le même axe horizontal  */
	display: inline-block;
}

section img {
	margin: 0;
	height: 100vh;
}

/* album title */

.timed_title {
  font-family: 'rotulona_handffp', 'rotulona_hand', 'Trebuchet MS', 'Archivo', sans-serif, "Helvetica", "Arial", sans-serif;
  color: #fff;
  text-shadow: 8px 6px 13px rgba(0,0,0,0.52);
  text-align: left;
  margin: 0;
  bottom: 20px; 
  left: 3%;
  position: fixed;
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transition: all 2s ease;
}

@media (orientation: landscape) {
  h3.timed_title {
    font-size: 15.2vh;
    width: 100vw;
    z-index: 2;  }
}

@media (orientation: portrait) {
  h3.timed_title {
    font-size: 18.2vw;
    width: 100vw;
    z-index: 2;
  }
}

/* taking care of the button to go left  */

nav#go-left button {
  background-color: transparent;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
}

.button-go-left {
  opacity: 0; 
  visibility: hidden;
  -webkit-transition: visibility 0.2s linear,
  opacity 0.2s linear;
  -moz-transition: visibility 0.2s linear,
  opacity 0.2s linear;
  -o-transition: visibility 0.2s linear,
  opacity 0.2s linear; 
  transition: visibility 0.2s linear, opacity 0.2s linear;
}

.arrow-go-left {
  background-color: #ebebeb;
  width: 35px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: fixed;
  left: 28px;
  bottom: 42px;
}

.arrow-go-left:before {
  content: "";
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: absolute;
  bottom: -8px;
  left: -2px;
  transform: rotate(45deg);
}

.arrow-go-left:after {
  content: "";
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  left: -2px;
  transform: rotate(-45deg);
}

.arrow-go-left-background {
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.3);
  width: 70px;
  height: 70px;
  position: fixed;
  bottom: 10px;
  left: 13px;
}

/* ----------------- */
/* buttons to go previous and next picture */

/* taking care of the button to go left  */

/* first, we make sure they do not display on smaller screen */
@media screen and (max-width: 1280px) {
  #previous-picture {
    display: none
  }

  #next-picture {
    display: none
  }
}

nav#previous-picture {
  position: fixed;
  margin-top: 50vh;
	transform: translateY(-50%);
	position: fixed;
  left: 32px;
}

.previous-picture-button {
  /* by default, we'll never show the previous picture button */
  opacity: 0; 
  visibility: hidden;
  transition: visibility 0.2s linear, opacity 0.2s linear;
}

nav#previous-picture button {
  background-color: transparent;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
}

.arrow-previous-picture {
  background-color: transparent;
  width: 24px;
  height: 4px;
  display: block;
}

.arrow-previous-picture:before {
  content: "";
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: absolute;
  bottom: -8px;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.arrow-previous-picture:after {
  content: "";
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  transform: rotate(-45deg);
  transition: all 0.3s ease;
}

.arrow-previous-picture-background {
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.3);
  width: 70px;
  height: 70px;
  position: fixed;
  top: 1px;
  left: -15px;
}

/* second part : next picture */

nav#next-picture {
  position: fixed;
  margin-top: 50vh;
	transform: translateY(-50%);
	position: fixed;
  right: 26px;
}

.next-picture-button {
  opacity: 1; 
  visibility: visible;
  transition: visibility 0.2s linear, opacity 0.2s linear;
}

nav#next-picture button {
  background-color: transparent;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
}

.arrow-next-picture {
  background-color: transparent;
  width: 24px;
  height: 4px;
  display: block;
}

.arrow-next-picture:before {
  content: "";
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: absolute;
  bottom: -8px;
  transform: rotate(-45deg);
  transition: all 0.3s ease;
}

.arrow-next-picture:after {
  content: "";
  background-color: #ebebeb;
  width: 24px;
  height: 4px;
  display: block;
  border-radius: 2px;
  position: absolute;
  bottom: 8px;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.arrow-next-picture-background {
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.3);
  width: 70px;
  height: 70px;
  position: fixed;
  top: 1px;
  right: -11px;
}

/* loader */
/*
nav#loader {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%;
  bottom: -4px;
  background-color: rgba(255,255,255,0);
  z-index: 1;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease-out;
} */

nav#loader {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: rgba(255,255,255,0);
  z-index: 1;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease-out;
}

.loader {
  border: 9px solid #f3f3f386; /* Light grey */
  border-top: 9px solid #505355d7; /* Blue */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
  
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}