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;
}

/* -------------------- 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: 999;
  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: 999;
  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, #aboutbutton:hover{
  cursor:pointer
}


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

i{
  color: var(--maincolor)
}


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

.mobile{
  display: none;
}
/* Media queries are evaluated in the order that they appear in the CSS file. If you have a media query that’s targeting a smaller screen size than another media query, the smaller screen size media query will be applied first.  */

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

  #textbox {
    height: auto;
    width: 100%;
    background: #2600ff !important;
  }
    
  audio, img, iframe, video { max-width: 100%;}

  iframe {width: 100%; height: auto; aspect-ratio: 16/9;}

  h1, h2, h3 {word-break: break-all;font-size: smaller;}

  .mobile{
    display: block ;
  }

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