body, html {
  height:100%;
}
#image-map {
  width: 100%;
  height: 100%;
  margin: 0 auto 10px auto;
  border: 1px solid #ccc;
  background: #252a2e;
}

/* ------------------ CSS RESET ---------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  height: auto;
  max-width: 100%;
}

html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6 {
  margin: 0;
  padding: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-size: 100%;
  font-weight: normal;
  word-wrap: break-word;
}

input,button,textarea,select {
  font: inherit;
  margin: 0;
}

iframe {
  border: 0;
}

html {
  width: 100%; height: 100%;
  scroll-behavior: smooth;
    box-sizing: border-box;
  --spacing:2rem;
  --spacingsmall:1rem;
  --maincolor: #2600ff;
  font-family: 'Terminal-Grotesque';
}

::-moz-selection {
  /* Code for Firefox */
  color: var(--maincolor);
  background: var(--maincolor);
}

::selection {
  color: #ffffff;
  background: var(--maincolor);
}


/* styles utiles pour le filtrage */
.hidden {
  display: none;
}

@font-face {
  font-family: 'Terminal-Grotesque' ;
  src: url(../fonts/terminal-grotesque.ttf);
}

@font-face {
  font-family: 'Terminal-Grotesque' ;
  src: url(../fonts/terminal-grotesque_open.otf);
  font-style: italic;
}

#image-map {
  width: 100%;
  height: 100%;
  margin: 0 auto 10px auto;
  border: 1px solid #ccc;
  background: #ffffff;
}

.cover{
    width: 100px;
}

.opacity{
  opacity: 0%;
  transition: 0.2s;
}

.cover:hover{
    transform: scale(1.1);
    transition: 0.2s;
    cursor:cell;
}

#opacitybutton{
  z-index: 999;
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  margin: 85px 0 0 10px;
  padding: 5px;
  border: solid 2px var(--maincolor);
  box-shadow: rgba(30, 0, 255, 0.2) 0px 5px 15px;
}

#opacitybutton:hover, #aboutbutton:hover{
  cursor:pointer;
  background-color: #f4f4f4;
  transition: 0.2s;
}

p{
  max-width: 75ch;
  margin-bottom: 0.5rem;
}

/* -------------------- SPLASH SCREEN -------------- */


.splashscreen{
  position: fixed;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
  opacity: 75%;
  z-index: 9990;
  background-color: white;
  cursor: help;
}

.splashtext{
  position: fixed;
  top: 20%;
  left: 20%;
  bottom: 20%;
  right: 20%;
  padding: 5rem ;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  /* justify-content: space-around; */
  background-color: white;
  border: 2px solid var(--maincolor);
  box-shadow: rgba(30, 0, 255, 0.2) 0px 5px 15px;
  overflow: scroll;
}


/* -------------------- FORM -------------- */

#form {
  display: none;
  position: absolute;
  z-index: 20;
  color: rgb(0, 0, 0);
  flex-direction: column;
  background: white;
  padding: 2vh;
  justify-content: center;
}
#form.visible {
  display: block;
  top: 0;
  left: 5%;
}

#form p { margin: 0;}
#form p:not(:last-child) { margin-bottom: 1em; }
#form label { display: block; text-align: center;}
#form input, #form select, #form button { font: inherit; width: 100%; border: 1px solid #ddd; padding: .25em .5em; }
#form input[type=range]{ cursor: ew-resize; }


/* ----------------- DESCRIPTIONS ------------------ */

.description > *{
margin: 0 0 0.5rem 0 ;
}

hr{color:var(--maincolor)}

h2{
color: var(--maincolor);
font-size: 50px;
font-style: italic;
}

h3{
font-size: 20px;
}

/* -----------------TEXTBOX ------------------ */

/* p{word-break: break-all;
} */

#textbox {
  width: 30vw;
  max-width: 50em;
  position: fixed;
  color: #161616;
  background: rgba(255, 255, 255, 1);
  box-shadow: rgba(30, 0, 255, 0.2) 0px 5px 15px;
  border-left: 2px solid var(--maincolor);
  transition: transform 150ms ease-out;
  z-index: 1001;
  right: 0;
  height: 100vh;
  overflow-y: scroll;
  padding: 2em 2em 2em 4em;
  top: 0;
  transform: translateX(calc(100% - 200px));
}
#textbox:not(.active):hover {
  transform: translateX(calc(100% - 220px));

}

#textbox.active {
  transform: translateX(0);
}
#toggle-textbox {
  position: sticky;
  top: 0;
  color:var(--maincolor);
  background:none;
  border: none;
  transform: translate(-120%, -50%);
  font-size: 40px;

}
#toggle-textbox:hover {
  cursor: pointer;
  transition: 0.1s ease-in-out;
}
#textbox.active #toggle-textbox {
  transform: translate(-120%, -50%) scaleX(-1);
}

/* -------------------- ABOUT -------------- */

#aboutbutton{
  z-index: 999;
  background-color: white;
  position: fixed;
  bottom:2%;
  left:0;
  margin: 85px 0 0 10px;
  padding: 5px;
  border: solid 2px var(--maincolor);
  box-shadow: rgba(30, 0, 255, 0.2) 0px 5px 15px;
  border-radius: 2px;
}

#about{
  position: fixed;
  width: 30vw;
  height: 80vh;
  background: rgba(255, 255, 255, 1);
  box-shadow: rgba(30, 0, 255, 0.2) 0px 5px 15px;
  border-top: 2px solid var(--maincolor);
  border-right: 2px solid var(--maincolor);
  transition: transform 150ms ease-out;
  z-index: 1001;
  bottom: 0;
  left:0;
  overflow-y: scroll;
  padding: 2em 2em 2em 2em;
  transform: translateY(100%);
}

#about > *{
margin: 0 0 1rem 0 ;
}

#aboutquit{
  position: fixed;
  right: 0;
  top: 0;
  color: var(--maincolor);
  font-size: 150%;
  padding: 1rem;
}

#aboutquit:hover{
  cursor:pointer
}


#about.active {
  transform: translateY(0);
}

i{
  color: var(--maincolor)
}


/* -----------------MEDIA QUERIES ------------------ */

.mobile{
  display: none;
}

@media screen and (max-width:1300px) {
  #textbox.active {
    width:40vw
  }
}


@media screen and (max-width:800px) {

  #textbox {
    width: auto;
    height: auto;
    top: 20%;
    bottom: 0;
    left:0;
    transform: translateY(calc(100% - 100px));
    border-top: 2px solid var(--maincolor);
    border-left:none;
    padding: 2em 2em 2em 2em;
  }
    
  #textbox.active {
    width:100vw;
  }

  #about{
  width: 100vw;
  height: 80vh;
  bottom: 0;
  left:0;
  border-right:none;
}

.splashtext{
  top: 20%;
  bottom: 20%;
  left: 10%;
  right: 10%;
  padding: 2rem;
}

  #aboutbutton{
  top:0;
  right:0;
  bottom:auto;
  left:auto;
  margin: 10px 10px 0 0;
  border: solid 2px var(--maincolor);
  box-shadow: rgba(30, 0, 255, 0.2) 0px 5px 15px;
  border-radius: 2px;
}
    
  audio, img, iframe, video { max-width: 100%;}

  .mobile{
    display: block ;
  }

  .laptop{display: none;}
  
  /* .leaflet-control-zoom{display: none;} */
}

