html,
body {
  touch-action: none;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--green-background);
  background-image: url("images/runningirl.png");
  background-repeat: no-repeat;
  background-position: top;
  background-size: clamp(200px, 80%, 512px) auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

* {
  font-size: small;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --white: rgb(255, 255, 255);

  --clear-highlight: rgb(173, 255, 47); /* green yellow */
  --clear-highlight2: rgb(255, 255, 0);/* yellow */
  --clear-highlight3: rgb(255, 166, 0); /* orange */
  --clear-highlight4: rgb(0, 255, 0); /* green */

  --green-background :  rgb(19, 111, 65);

  --transp: rgba(255, 255, 255, 0); /* transparent (white) */
  --transp-softw: rgba(255, 255, 255, 0.1); /* transp soft */
  --transp-strong: rgba(173, 255, 47, 0.7); /* greenyellow +0.7 opacity */
  --transp-strong2: rgba(255, 158, 237, 0.7); /* pink +0.7 opacity */
  --transp-strong3:rgba(193, 224, 186, 0.7); /* grey +0.7 opacity */
  --transp-soft: rgb(173, 255, 47, 0.2); /* greenyellow +0.2 opacity */
  --transp-soft2: rgba(0, 255, 0, 0.1); /* green transparency */
  --trans-red:rgba(255, 1, 1, 0.75);/* red transparency */

  --darken: rgb(54, 54, 54);
  --darken-transp: rgba(54, 54, 54, 0.9);
  --darken-transp-soft: rgba(54, 54, 54, 0.5);
  --darken-transp-soft2: rgba(54, 54, 54, 0.1);

  --hiking-transp: rgba(136, 53, 95, 0.9);
  --running-transp: rgba(156, 94, 33, 0.9);
  --cycle-transp: rgba(84, 84, 120, 0.9);
  --mtb-transp: rgba(66, 122, 66, 0.9);
  --runbike-transp: rgba(125, 125, 36, 0.9);

  --black: rgb(0, 0, 0);
  --red: rgb(251, 0, 0);
  --blue: rgb(0, 0, 251);
  --gold: rgb(255, 217, 0);
  --shadow: rgb(80, 80, 80); /* grey for shaddow */
  --turquoise: rgb(105, 248, 255);


  --vh: 1vh;
  --vw: 1vw;
}

/*_________________________________________________________________________________________________________________________*/
/*Removing input background colour for Chrome autocomplete*/

input:-webkit-autofill {
  -webkit-text-fill-color: var(--clear-highlight);
}

input:-internal-autofill-selected {
  background-color: var(--transp);
}

input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
}

/*_________________________________________________________________________________________________________________________
  pagenotfound.php */

.error404 {
  background-color: var(--clear-highlight);
  font-size: large;
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

#img404 {
  position: absolute;
  text-align: center;
  width: 100%;
  height: 100%;
  background-image: url("images/icon_vtt.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: clamp(200px, 80%, 512px) auto;
  animation: bounce 0.1s ease infinite alternate;
  z-index: 2;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

a {
  color: var(--turquoise);
}

/*_________________________________________________________________________________________________________________________*/
/*ICI revoir*/
table {
  width: 100%;
  text-align: left;
  border: none;
  border-collapse: collapse;
  white-space: nowrap;
  color: var(--white);
}

.t-fixed {
  table-layout: fixed;
}

.line {
  border-bottom: 1px solid var(--transp-soft);
}

.line2 {
  border-top: 3px double var(--transp-soft);
}

.line3 {
  border-top: 1px solid var(--transp-soft);
}

/*ICI revoir*/
.cancel {
  position: absolute;
  font-size: large;
  font-weight: bold;
  top: -2px;
  right: 2px;
}
/*ICI revoir*/
.cancel:hover {
  color: var(--clear-highlight);
}

/*ICI utile ? */
hr {
  border: none;
  border-top: 1px dotted var(--transp-strong);
}

.title {
  color: var(--clear-highlight4);
  text-align: center;
  vertical-align: middle;
  text-transform: capitalize;
  font-weight: bold;
  height: 35px;
}

/*_________________________________________________________________________________________________________________________*/

textarea {
  width: 99%;
  resize: none;
  text-align: justify;
  touch-action: pan-y;
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
textarea::-webkit-scrollbar,
#div-detail::-webkit-scrollbar,
#div-profil::-webkit-scrollbar,
#r-address::-webkit-scrollbar,
.scrolltext::-webkit-scrollbar,
.scrolldesc::-webkit-scrollbar,
#alert-blabla tbody::-webkit-scrollbar,
#selectiondiv::-webkit-scrollbar,
#r-blabla::-webkit-scrollbar,
#eventdesc::-webkit-scrollbar,
#e-feat::-webkit-scrollbar,
.tbl-content::-webkit-scrollbar {
  display: none;
}

/*_________________________________________________________________________________________________________________________
  custom slider range*/

/* The slider itself */
.myrange {
  -webkit-appearance: none; /* Override default CSS styles */
  appearance: none;
  width: 100%;
  min-width: 140px;
  height: 7px; /* Specified height */
  background: var(--clear-highlight);
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: 0.2s; /* 0.2 seconds transition on hover */
  transition: opacity 0.2s;
}

.zoom {
  user-select: none; /*prevent selection when double click*/
  color: var(--clear-highlight4);
  text-align: center;
  font-size: large;
  min-width: 25px;
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: 0.2s; /* 0.2 seconds transition on hover */
  transition: opacity 0.2s;
  cursor: pointer;
}

/* Mouse-over effects */
.myrange:hover,
.zoom:hover {
  opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.myrange::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 16px; /* Set a specific slider handle width */
  height: 16px; /* Slider handle height */
  background: var(--clear-highlight4);
  cursor: pointer;
  padding: 1px;
  border-radius: 8px;
}

/*_________________________________________________________________________________________________________________________
  Custom dropbox*/

/* The container must be positioned relative: */
.custom-select {
  position: relative;
}

/*hide original SELECT element: */
.custom-select select {
  display: none;
}

.select-selected {
  background-color: var(--transp-soft);
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 10px;
  right: 3px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: var(--white) transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent var(--white) transparent;
  top: 3px;
}

/* style the items (options), including the selected item: */
.select-items div,
.select-selected {
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 5px;
  border: 1px solid transparent;
  border-color: transparent transparent var(--transp-soft) transparent;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  display:block;
  position: absolute;
  background-color: var(--darken);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

/* Mouse-over effects */
.select-items div:hover,
.same-as-selected {
  background-color: var(--transp-strong);
}

/*_________________________________________________________________________________________________________________________
  main.php */

#mycard {
  position: relative;
  height: 100vh; /* Fallback for browsers that do not support Custom Properties */
  height: calc(var(--vh, 1%) * 100);
  width: 100%;
  display: fixed;
  z-index: 1;
}

/*top menu bar*/
.topbutton {
  position: absolute;
  top: 0%;
  right: 0%;
  width: 100%;
  height: 0px;
  z-index: 6;
}

.topbutton img {
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.bottombutton {
  position: absolute;
  top: 100vh;
  width: 100%;
  z-index: 3;
}

.bottombutton img {
  bottom: 30px;
  position: absolute;
  cursor: pointer;
  width: 34px;
  height: 34px;
}

#oueskonva {
  position: absolute;
  text-align: center;
  color: var(--darken-transp-soft2);
  font-family: Arial;
  font: bold;
  font-weight: 800;
  font-size: 45px ;
  top: -15px;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 70%;
  z-index: 3;
}

#target {
  left: 50%;
  transform: translate(-50%, 0%);
  border-radius: 50%;
}

#togglemap {
  left: 20px;
}

#topmenu {
  position: absolute;
  cursor: pointer;
  color: var(--black);
  text-align: center;
  top: -3px;
  left: 25%;
  width: 50%;
  height: 5px;
  z-index: 10;
}

#add-button {
  position: absolute;
  display: none;
  bottom: -20px;
  left: 50%;
  transform: translate(-50%, 0%);
  z-index: 6;
}

#loged {
  position: absolute;
  top: 1px;
  left: 1px;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--clear-highlight3);
  border-width: 2px;
  z-index: 6;
}

#blabla {
  position: absolute;
  width: 34px;
  height: 34px;
  top: 1px;
  left: 35px;
  display: grid;
	align-items: center;
  text-align: center;
  background: url("images/bell.png"), var(--clear-highlight4);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px ;
  border-radius: 50%;
  cursor: pointer;
  z-index: 6;
}

#chat {
  position: absolute;
  width: 33px;
  height: 33px;
  top: 1px;
  right: 35px;
  display: none;
	align-items: center;
  text-align: center;
  background: url("images/chat.png"), var(--darken-transp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 33px ;
  border-radius: 50%;
  cursor: pointer;
  z-index: 6;
}

#createRdv {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 34px;
  height: 34px;
  z-index: 6;
}

#toselect {
  position: absolute;
  left: 70px;
  width: 34px;
  height: 34px;
  z-index: 4;
}

/*_________________________________________________________________________________________________________________________
  route_description.php */

#description {
  touch-action: none;
  position: absolute;
  background-color: var(--darken-transp);
  max-width: 400px;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: 4;
}

#description table {
  max-width: 400px;
}

#r-hide {
  touch-action: none;
  position: absolute;
  color: var(--clear-highlight4);
  text-transform: capitalize;
  font-weight: bold;
  background-color: var(--darken-transp);
  max-width: 400px;
  width: 100%;
  top: 0px;
  left: 0px;
  height: 35px;
  vertical-align: bottom;
  z-index: 4;
}

#r-down {
  width: 70%;
}

#t1 {
  table-layout: fixed;
  text-align: center;
}

#search-address {
  cursor: pointer;
}

.r-tdleft {
  position: relative;
  width: 120px;
  height: 30px;
  text-align: right;
}

#r-button {
  text-align: center;
}


.r-sportspec {
  position: relative;
}

.right35 {
  width: 40px;
  text-align: right;
}

.bgd-image {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: url(images/unknow.png);
  background-repeat: no-repeat;
  background-position: top;
  background-size: 45px 45px;
  top: 4px;
  z-index: 6;
}

#r-color-level {
  box-sizing: border-box;
  width: 19px;
  height: 19px;
  display: grid;
	align-items: center;
  text-align: center;
  border-width: 2px;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--shadow);
  border-width: 2px;
  background-color: var(--red);
  top: 4px;
}

#sport-logo {
  right: 35px;
  top: 0px;
}

#r-showroute {
  visibility: hidden;
}
#r-showgraph {
  position: absolute;
  left: -4px;
  bottom: -1px;
  font-size: 28px;
  opacity: 1;
  cursor: pointer;
  visibility: hidden;
}

#r-showkm {
  position: absolute;
  left: 30px;
  bottom: 0px;
  visibility: hidden;
}

#r-showwpt {
  position: absolute;
  left: 60px;
  bottom: 0px;
  visibility: hidden;
}

#r-download {
  position: absolute;
  width: 28px;
  bottom: 1px;
  height: 28px;
  left: 91px;
  cursor: pointer;
  visibility: hidden;
}

.r-bottom {
  width: 120px;
}

#r-valid-part {
  position: relative;
  height: 30px;
}

#r-confirm {
  background-color: var(--clear-highlight3);
  color: var(--black);
  text-align: center;
  white-space: normal;
  font-weight: bold;
}

#r-go-cancel {
  position: absolute;
  left: 1px;
  bottom: 2px;
}

#r-go-ok {
  position: absolute;
  right: 1px;
  bottom: 2px;
}

#r-w-confirm {
  color: var(--clear-highlight3);
  text-align: right;
  width: 200px;
}

#r-date,
#r-name,
#r-team,
#r-part,
#r-sport,
#r-level,
#r-length,
#r-type,
#r-subtype,
#r-cat,
#r-feat,
#r-duration,
#r-ele {
  color: var(--clear-highlight2);
  height: 18px;
}

#r-feat {
  text-align: center;
}

.scrolltext {
  padding: 3px;
  max-height: 12em;
  touch-action: pan-y;
  overflow-y: scroll;
  white-space: normal;
}

#r-question {
  background-color: var(--transp);
  color: var(--clear-highlight2);
  padding: 0;
  border: none;
  border-collapse: collapse;
  outline: none;
  width: 100%;
  height: 2em;
  touch-action: pan-y;
  overflow-y: scroll;
  white-space: normal;
}

#r-question::placeholder {
  color: var(--clear-highlight);
}

#r-question:hover {
  background-color: var(--transp-soft);
}

#r-address, #r-website, #r-rtaddr {
  text-align: center;
  max-height: 2em;
  color: var(--clear-highlight2);
}

#r-teamdetail,
#r-comment {
  text-align: justify;
}

#r-part {
  text-align: center;
}

#r-teamline {
  cursor: pointer;
}

#r-teamline:hover {
  background-color: var(--transp-soft);
}

#r-i-go {
  background-color: var(--transp);
  height: 30px;
}

#r-avatar {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--darken);
  border-width: 2px;
  right: 2px;
  top: 65px;
  cursor: pointer;
  z-index: 6;
}

.color-type {
  background-color: var(--darken-transp);
}

#r-modify, #r-organize {
  position: absolute;
  right: 2px;
  top: 70px;
  z-index: 6;
}

#r-chat {
  background-color: var(--hiking-transp);
}

#r-blabla {
  position: relative;
  touch-action: pan-y;
  overflow-y: scroll;
  width: 100%;
  max-height: 100px;
  top: 0px;
  left: 0px;
  z-index: 4;
}

.r-part-blabla {
  display: block;
  white-space: normal;
  width: 100%;
  overflow-wrap: anywhere;
}

#r-delcomment {
  display: none;
  position:absolute;
  right: 2px;
  top: 32px;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/*_________________________________________________________________________________________________________________________
  formroute.php */

#route-gpx-name,
#p-avatarname {
  display: inline-block;
  max-width: 300px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  --color: var(--clear-highlight);
  color: var(--color, --clear-highlight);
  background-color: var(--transp);
  cursor: pointer;
}

#position {
  color: var(--clear-highlight);
  background-color: var(--transp);
  cursor: pointer;
}

#calibrate,
#calibreok {
  position: relative;
  text-align: right;
}

#calibration-row,
#sport-id-defaults {
  display: none;
}

#route-l3D {
  color: var(--clear-highlight2);
}

tr[name="ifgpx"],
table[name="ifgpx"] {
  color: var(--clear-highlight2);
}

#myday {
  min-width: 60px;
}

#route-start-date {
  -webkit-appearance: none; /* Override default CSS styles */
  appearance: none;
}

#address {
  touch-action: none;
  position: absolute;
  background-color: var(--darken-transp);
  max-width: 400px;
  width: 100%;
  top: 0px;
  right: 0px;
  z-index: 5;
}

.address {
  border: none;
  outline: none;
  background-color: var(--transp);
  color: var(--white);
  -webkit-transition: 0.2s;
  transition: background-color 0.2s;
}

#route-address {
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
  background-color: var(--transp);
  color: var(--clear-highlight2);
}

#route-comment {
  color: var(--clear-highlight2);
}

#div-detail {
  overflow-y: visible;
  overflow-x: none;
  max-height: calc(var(--vh, 1%) * 60);
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

#route-km,
#simul-speed,
#simul-dur,
#route-title,
#route-maxuser {
  text-align: center;
}

.address::placeholder {
  color: var(--clear-highlight);
  text-align: center;
}

#route-address:hover,
#route-gpx-name:hover,
#position:hover,
#down:hover,
#up:hover,
#route-comment:hover,
#p-avatarname:hover,
#r-up:hover {
  background-color: var(--transp-soft);
}

.speed:hover {
  color: var(--clear-highlight4);
  background-color: var(--transp-soft2);
  cursor: pointer;
}

#updown {
  z-index: 2;
}

#leftup {
  position: relative;
  text-align: left;
  width: 15%;
}

#up {
  position: relative;
  text-align: center;
  bottom: 2px;
}

#rightup {
  position: relative;
  text-align: right;
  width: 15%;
}

#down {
  position: relative;
  left: 50%; /* à 50%/50% du parent référent */
  transform: translate(-50%, 0%); /* décalage de 50% de sa propre taille */
}

/* graph "button" */
#showgraph {
  position: absolute;
  font-size: 25px;
  right: 1px;
  top: 45px;
  opacity: 1;
  cursor: pointer;
}

.buttoncircle {
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  color: var(--black);
  font-weight: bold;
  padding-top: 5px;
  text-align: center;
  background-color: var(--white);
  border-radius: 50%;
  border-color:  var(--blue);
  border-style: solid;
  border-width: 2px;
  cursor: pointer;
}

/* Km "button" */
#showkm {
  position: absolute;
  left: 1px;
  top: 48px;
}

/* waypoint "button" */
#showwpt {
  position: absolute;
  left: 35px;
  top: 48px;
}

/*_________________________________________________________________________________________________________________________
  Custom checkbox */

/**
 * hiding the checkboxes
 */
.chkbx input[type="checkbox"] {
  visibility: hidden;
}
/**
 * Checkboxes custom
 */
.chkbx {
  width: 80px;
  height: 18px;
  background: var(--transp-soft);
  border-radius: 50px;
  position: relative;
}
/**
 * Create the text for the On position
 */
.chkbx:before {
  content: var(--content1, "Oui");
  position: absolute;
  left: 8px;
  color: var(--clear-highlight2);
}
/**
 * Create the label for the off position
 */
.chkbx:after {
  content: var(--content2, "Non");
  position: absolute;
  left: 50px;
  color: var(--white);
}
/**
 * Create the pill to click
 */
.chkbx label {
  display: block;
  width: 40px;
  height: 14px;
  border-radius: 50px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 1;
  background: var(--white);
}

/**
* Create the checkbox event for the label
*/
.chkbx input[type="checkbox"]:checked + label {
  left: 40px;
  background: var(--clear-highlight4);
}
/*_________________________________________________________________________________________________________________________
  Leaflet popup */

/*contenu text popup leaflet*/
.leaflet-popup-content {
  background-color: var(--transp);
  color: var(--white);
  width: 120px;
}
/*wrapper popup leaflet*/
.leaflet-popup-content-wrapper {
  background-color: var(--darken-transp);
}

.leaflet-popup-close-button {
  display: none;
}

#popupentry {
  border: none;
  border-radius: 3px;
  background-color: var(--transp);
  color: var(--clear-highlight2);
  outline: none;
  text-align: center;
  width: 120px;
}

#popuptext {
  background-color: var(--transp-soft);
  color: var(--white);
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 120px;
}

#popupentry::placeholder {
  color: var(--clear-highlight);
  background-color: var(--transp);
  text-align: center;
}

#deletepopup {
  position: absolute;
  box-sizing: border-box;
  right: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
}

#validpopup {
  text-align: center;
}

.leaflet-popup-tip {
  background: var(--darken-transp);
}
/*_________________________________________________________________________________________________________________________
  Chart */

.smallchart {
  touch-action: none;
  position: absolute;
  background-color: var(--darken-transp);
  top: calc(var(--vh, 1%) * 100);
  width: 100%;
  height: calc(var(--vh, 1%) * 30);
  left: 50%;
  transform: translate(-50%, -100%);
  box-shadow: 1px 1px 1px var(--shadow);
  z-index: 6;
}

.fullchart {
  touch-action: none;
  position: absolute;
  background-color: var(--darken-transp);
  top: 0%;
  width: 100%;
  height: calc(var(--vh, 1%) * 100);
  z-index: 7;
}

#fullchart {
  position: absolute;
  background-color: var(--white);
  opacity: 1;
  top: 1px;
  right: 10px;
  width: 20px;
  height: 20px;
  z-index: 7;
}

/*km markers circle*/
.kmcircle {
  border: none;
  outline: none;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: var(--white);
  color: var(--black);
  border-color: var(--blue);
  text-align: center;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  border-style: solid;
}

/*showpoint markers circle*/
.showpoint {
  border: none;
  outline: none;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: var(--transp);
  color: var(--red);
  border-color: var(--trans-red);
  text-align: center;
  vertical-align: middle;
  width: 13px;
  height: 13px;
  border-style: solid;
  border-width: 5px;
}

/*target position markers*/
.target {
  border: none;
  outline: none;
  border-radius: 50%;
  background-color: var(--blue);
}

/*zone markers circle*/
.zone {
  border: none;
  outline: none;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: var(--white);
  color: var(--black);
  border-color: var(--gold);
  text-align: center;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  border-style: solid;
  font-weight: bold;
}

/*_________________________________________________________________________________________________________________________
  Connexion popup */

.connexion {
  text-align: center;
  position: absolute;
  border-radius: 5px;
  color: var(--white);
  background-color: var(--darken-transp);
  padding: 1px 1px 1px;
  width: 220px;
  top: 50px;
  left: 50%;
  transform: translate(-50%, 0%); /* vertical offset by 50% of its own size */
  box-shadow: 1px 1px 1px var(--shadow);
  z-index: 5;
}

#connect-frame {
  max-width: 300px;
  max-height: 600px;
}

#media-s img {
  padding: 5px 5px 5px;
  width: 40px;
  height: 40px;
  opacity: 1;
  cursor: pointer;
}

.form-logto {
  border: var(--transp);
  border-radius: 3px;
  background-color: var(--darken-transp);
  color: var(--clear-highlight2);
  outline: none;
  box-shadow: 1px 1px 1px var(--shadow);
  -webkit-transition: 0.2s;
  transition: background-color 0.2s;
}

.form-logto::placeholder {
  color: var(--clear-highlight);
}

.form-logto:hover {
  background-color: var(--transp-soft);
  border-color: var(--clear-highlight2);
}

#forgotpass:hover {
  background-color: var(--transp-soft);
  color: var(--clear-highlight2);
  cursor: pointer;
}

/*_________________________________________________________________________________________________________________________
  formprofil.php */

.profil {
  position: absolute;
  background-color: var(--darken-transp);
  color: var(--white);
  max-width: 400px;
  min-width: 300px;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: 4;
}

#div-profil {
  overflow-y: auto;
  overflow-x: none;
  max-height: calc(var(--vh, 1%) * 80);
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.profil td {
  width: 150px;
}

.profil thead {
  height: 38px;
  text-align: center;
}

.profil thead td {
  font-size: 20px;
}

.form-profil {
  border: var(--transp);
  border-radius: 3px;
  background-color: var(--transp);
  color: var(--clear-highlight);
  outline: none;
  padding: 1px 1px;
  -webkit-transition: 0.5s;
  transition: background-color 0.5s;
}

.form-profil2 {
  border: var(--transp);
  background-color: var(--transp);
  color: var(--clear-highlight);
  outline: none;
  -webkit-transition: 0.5s;
  transition: background-color 0.5s;
}

.form-profil::placeholder {
  color: var(--clear-highlight);
}

.profilevent,
.button {
  padding: 0px 1px;
  border-radius: 5px;
  color: var(--black);
  background-color: var(--clear-highlight);
  outline: none;
  cursor: pointer;
}

.button:hover {
  background-color: var(--transp-strong2);
}

.form-profil:hover {
  background-color: var(--transp-soft);
  color: var(--clear-highlight2);
}

div[name="chkbxgender"] {
  --content1: "♂";
  --content2: "♀";
}

#alertdisco,
#required,
#tsaveconfirm,
#trestore {
  background-color: var(--clear-highlight2);
  color: var(--red);
  text-align: center;
  white-space: normal;
  font-weight: bold;
}

#x,
#x2 {
  position: absolute;
  right: 0%;
  top: 0%;
  cursor: pointer;
  z-index: 6;
}

#member-desc {
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 100%;
  max-width: 400px;
  max-height: 400px;
  height: calc(var(--vh, 1%) * 55);
  background-color: var(--darken-transp);
  z-index: 7;
}

#bigavatar {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%, 0%);
  border-style: solid;
  border-width: 3px;
  border-color: var(--darken);
  border-radius: 50%;
  cursor: pointer;
}

#creator {
  text-align: center;
  color: var(--clear-highlight4);
}

#presentation {
  text-align: center;
  color: var(--white);
}

#contrib {
  text-align: center;
  color: var(--clear-highlight4);
}

#p-contrib {
  text-align: center;
  color: var(--clear-highlight2);
}

#contribhelp {
  width: 20px;
  height: 20px;
  display: grid;
	align-items: center;
  text-align: center;
  font: bold;
  color: var(--darken);
  background-color: var(--transp-strong);
  border-radius: 50%;
  cursor: pointer;
}

#contribhelp:hover {
  background-color: var(--transp-strong2);
}

/*_________________________________________________________________________________________________________________________
  MODIFYING AVATAR container */

#modify-avatar {
  width: 350px;
  background-color: var(--darken);
  color: var(--white);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%; /* à 50%/50% du parent référent */
  transform: translate(-50%, -50%); /* décalage de 50% de sa propre taille */
  box-shadow: 1px 1px 1px var(--shadow);
  z-index: 3;
}

#avatar-container {
  width: 350px;
  height: 350px;
  overflow: hidden;
}

#avatar-image {
  position: relative;
  -khtml-user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

#avatar-cropper {
  width: 350px;
  height: 350px;
  position: absolute;
  cursor: move;
  background-image: url("images/cropper.png");
  background-size: 100% 100%;
}

#avatar-range {
  width: 330px;
  display: block;
}

#showavatar {
  text-align: center;
  font-size: large;
  height: 50px;
}

#avatar-canvas {
  cursor: pointer;
  border-radius: 50%;
  width: 100px;
  height: 100px;
}

/*_________________________________________________________________________________________________________________________*/
/*ROUTE TRACKER*/

#routetracker {
  position: absolute;
  width: 100%;
  max-width: 400px;
  top: 0px;
  left: 50%;
  transform: translate(-50%, 0%); /* décalage de 50% de sa propre taille */
  z-index: 1;
}

#magneto {
  position: absolute;
  text-align: center;
  background-color: var(--darken-transp);
  left: 0px;
}

#magneto thead td {
  padding-top: 10px;
  color: var(--clear-highlight3);
  font-size: 20px;
}

.track-record td:hover {
  background-color: var(--transp-soft2);
  color: var(--clear-highlight4);
}

#btnstop {
  background-color: var(--white);
  padding: 0;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: none;
}

.track-record td:hover #btnstop {
  background-color: var(--clear-highlight4);
}

#tvalues:hover {
  background-color: var(--transp-soft);
  cursor: pointer;
}

#btnplay {
  background-color: var(--transp);
  padding: 0;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border-style: solid;
  border-width: 12px 0px 12px 24px;
  border-color: transparent transparent transparent var(--white);
}

.track-record td:hover #btnplay {
  border-color: transparent transparent transparent var(--clear-highlight4);
}

#btnpause {
  background-color: var(--transp);
  padding: 0;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border-style: double;
  border-width: 0px 0px 0px 24px;
  border-color: var(--white);
}

.track-record td:hover #btnpause {
  border-color: var(--clear-highlight4);
}

#tdesign td {
  color: var(--clear-highlight4);
}

#tracker {
  height: 100%;
  width: 100vw;
}

.overlay {
  height: 100vh;
  width: 0;
  position: absolute;
  top: 150px;
  left: 0px;
  background-color: var(--darken-transp-soft);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  width: 100%;
  text-align: left;
  font-size: 10px;
  margin-left: 10px;
  margin-top: 40px;
}

.overlay a {
  padding: 4px;
  text-decoration: none;
  font-size: 36px;
  color: var(--darken-transp);
  display: block;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: var(--white);
}

.overlay .closebtn {
  text-align: right;
  padding-right: 25px;
  font-size: 30px;
}

#log-console {
  color: var(--white);
}

.message-console {
  position: absolute;
  width: 100%;
  background-color: var(--darken);
  color: var(--white);
  font-size: 10px;
}

.log-control {
  position: absolute;
  background-color: var(--clear-highlight4);
  bottom: 0px;
  left: 0px;
}

#debug {
  position: absolute;
  top: 140px;
  left: 50%; /* à 50%/50% du parent référent */
  transform: translate(-50%, 0%); /* décalage de 50% de sa propre taille */
  font-size: 25px;
  text-align: right;
  color: var(--black);
  cursor: pointer;
  z-index: 3;
}

/*track markers circle*/
.startcircle {
  border: none;
  outline: none;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: var(--clear-highlight4);
  color: var(--black);
  border-color: var(--black);
  text-align: center;
  vertical-align: middle;
  width: 15px;
  height: 15px;
  border-style: solid;
}

.trackcircle {
  border: none;
  outline: none;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: var(--clear-highlight3);
  color: var(--black);
  border-color: var(--black);
  text-align: center;
  vertical-align: middle;
  width: 15px;
  height: 15px;
  border-style: solid;
}

#download-link {
  text-decoration: none;
  color: var(--black);
}

/*_________________________________________________________________________________________________________________________*/
/*Alert popup*/


#alert-blabla {
  touch-action: none;
  position: absolute;
  background-color: var(--darken-transp);
  max-width: 400px;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: 4;
}

#alert-blabla tbody {
  display:  block;
  touch-action: pan-y;
  overflow-y: scroll;
  white-space: normal;
  max-height: calc(var(--vh, 1%) * 40);
}

#alert-blabla thead tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.alert-text {
  cursor: pointer;
}

.alert-text:hover {
  background-color: var(--transp-soft);
}


.alert-avatar {
  border-radius: 50%;
  vertical-align: middle;
  padding: 2px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.new-alert table {
  color: var(--clear-highlight2);
  background-color: var(--transp-soft2);
}

.alert-time {
  width: 100%;
}

/*_________________________________________________________________________________________________________________________
Scrap page */

#scraptable {
  position: relative;
  color: var(--white);
  background-color: var(--hiking-transp);
  width: 100%;
  top: 0px;
}

#scraptable2, #scrapevent, #scrapevent2 {
  position: relative;
  color: var(--white);
  background-color: var(--hiking-transp);
  width: 100%;
}

#eventdesc {
  overflow-y: hidden;
  font-size: small;
  background-color: var(--hiking-transp);
  color: var(--white);
  width: 100%;
}

#linedesc {
  height: 400px;
}

#wait {
  position: absolute;
  text-align: center;
  color: var(--turquoise);
  font: bold;
  font-size: medium;
  animation: blinker 1s linear infinite;
  width: 70px;
  height: 70px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 14;
}

@keyframes blinker {
  70% {
    opacity: 0.8;
  }
}

#wait-img {
  position: relative;
  animation: bounce 0.1s ease infinite alternate;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--transp-strong);
  top: 7px;
  left: 7px;
  z-index: 16;
}

/* HTML: <div class="loader"></div>*/
.loader {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background:
    conic-gradient(from 135deg at top,var(--cycle-transp) 90deg, #0000 0) 0 calc(50% - 4px)/17px 8.5px,
    radial-gradient(farthest-side at bottom left,#0000 calc(100% - 6px),var(--cycle-transp) calc(100% - 5px) 99%,#0000) top right/50%  50% content-box content-box,
    radial-gradient(farthest-side at top        ,#0000 calc(100% - 6px),var(--cycle-transp) calc(100% - 5px) 99%,#0000) bottom   /100% 50% content-box content-box;
  background-repeat: no-repeat;
  animation: l11 1s infinite linear;
  z-index: 15;
}

@keyframes l11{
  100%{transform: rotate(1turn)}
}

.tbl {
  width:100%;
  table-layout: fixed;
}

.tbl td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-content {
  max-height: 40vh;
  overflow-x:auto;
  margin-top: 0px;
}

.textDesc {
  font-style: italic;
  background-color: var(--darken-transp-soft);
  white-space: normal;
  user-select: text;
}

.textBold {
  font-style: normal;
  font: bold;
  background-color: var(--cycle-transp);
  white-space: normal;
  user-select: text;
}

.inputtext {
  display: block;
  position: relative;
  width: 100%;
  border: var(--transp);
  background-color: var(--transp);
  color: var(--clear-highlight);
  outline: none;
  padding: 1px 1px;
  -webkit-transition: 0.5s;
  transition: background-color 0.5s;
}

.inputtext::placeholder {
  color: var(--clear-highlight);
}

.inputtext:hover {
  background-color: var(--transp-soft);
  color: var(--clear-highlight2);
}

.h23 {
  height: 23px;
}

.h35 {
  height: 35px;
}

.l10 {
  width: 10px;
}

.l20 {
  width: 20px;
}

.l40 {
  width: 40px;
}

.l50 {
  width: 50px;
}

.l70 {
  width: 70px;
}

.l80 {
  width: 80px;
}

.l140 {
  width: 140px;
}

.l170 {
  width: 170px;
}

.l230 {
  width: 230px;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.red {
  color : var(--red);
}

.pointer {
  cursor: pointer;
}

.redhighlight {
  background-color: var(--trans-red);
}

.greenhighlight {
  background-color: var(--transp-soft);
}



#runurlscontrol {
  font-style: italic;
  color : var(--turquoise);
}

/* place for custom selection box type
   positioned at dblclick (changeRouteType()) */
#hidden-box {
  display: none;
}

#hidden-subbox {
  display: none;
}

#updatedEvent {
  display: none;
}

.cadre {
  background-color: var(--darken-transp-soft);
}

.urlname {
  color: var(--clear-highlight3);
  text-align: center;
  font-weight: bold;
}

#totalDesc, #lastDesc, #divroutes {
  min-height: 20vh;
  max-height: 40vh;
}

.red {
  color: var(--red);
  text-align: center;
}

.graychkbx {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border-radius: 20%;
  background-color: var(--darken-transp-soft2);
}

#recapevent {
  display: none;
  position: absolute;
  background-color: var(--darken-transp);
  width: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

#searchevent {
  display: none;
  position: absolute;
  background-color: var(--black);
  min-width: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.scrolldesc {
  text-align: justify;
  background-color: var(--hiking-transp);
  padding: 3px;
  max-height: 40em;
  touch-action: pan-y;
  overflow-y: scroll;
  white-space: normal;
}

.e-routedesc {
  color: var(--clear-highlight2);
}

#e-feat {
  text-align: center;
  touch-action: pan-y;
  overflow-y: scroll;
  white-space: normal;
}

/*_________________________________________________________________________________________________________________________
Custom selection box */

/* Customize the label (the container) */
.container {
  display: block;
  position: relative;
  font-size: small;
  height: 18px;
  white-space: nowrap;
  overflow: hidden;
  top: 2px;
  padding-left: 22px;
  margin-bottom: 3px;
  cursor: pointer;
  color: var(--white);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border-radius: 20%;
  background-color: var(--transp-strong3);
}

.grayed {
  display: none;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 18px;
  height: 100%;
  background-color: var(--transp-strong3);
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: var(--transp-strong);
}

/* When the checkbox is checked */
.container input:checked ~ .checkmark {
  background-color: var(--clear-highlight4);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--black);
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/*_________________________________________________________________________________________________________________________
Custom radio button */

/* Customize the label (the container) */
.containerR {
  display: block;
  position: relative;
  padding-left: 22px;
  margin-bottom: 15px;
  cursor: pointer;
  color: var(--white);
  font-size: small;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.containerR input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom radio button */
.checkmarkR {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--transp-strong3);
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.containerR:hover input ~ .checkmarkR {
  background-color: var(--transp-strong);
}

/* When the radio button is checked, add green background */
.containerR input:checked ~ .checkmarkR {
  background-color: var(--clear-highlight4);
}


/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmarkR:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.containerR input:checked ~ .checkmarkR:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.containerR .checkmarkR:after {
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--green-background);
}

/*_________________________________________________________________________________________________________________________
selection table */

#selectiondiv {
  position: absolute;
  overflow-y: hidden;
  font-size: small;
  background-color: var(--darken-transp);
  max-width: 400px;
  min-width: 350px;
  max-height: 90vh;
  left: 50%;
  transform: translate(-50%, 0%);
  top: 0px;
  z-index: 3;
}

#selectallsport, #selectallfeat, #selectalluser {
  background-color: var(--hiking-transp);
}

.tbl-selection {
  min-height: 20vh;
  max-height:50vh;
  overflow-x:auto;
  margin-top: 0px;
}

#modifyandsave {
  text-align: center;
  color: var(--clear-highlight4);
}

#chkbxsel {
  left: 25px;
}


/*_________________________________________________________________________________________________________________________
  Custom double range slider */


  .double_range_slider_box {
    position: relative;
    width: 100%;
    height: 50px;
    background: var(--transp);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #initdblrange {
    position: absolute;
    top: 0px;
    color: var(--trans-red);
    z-index: 1;
  }

  #initdblrange:hover{
    color: var(--clear-highlight4);
    cursor: pointer;
  }

  .double_range_slider {
    width: 85%;
    height: 4px;
    position: relative;
    background-color: var(--transp-softw);
    border-radius: 20px;
  }
  .range_track {
    height: 100%;
    position: absolute;
    border-radius: 20px;
    background-color: var(--clear-highlight4);
  }

  .minvalue {
    position: absolute;
    border-radius: 5px;
    color:var(--clear-highlight2);
    bottom: -4px;
    transform: translate(0, -100%);
    left: 0;
    font-size: small;
    transition: left 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: left, transform;
    z-index: 2;
  }
  .maxvalue {
    position: absolute;
    border-radius: 5px;
    color: var(--clear-highlight2);
    top: -2px;
    transform: translate(0, 100%);
    right: 0;
    font-size: small;
    transition: right 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: right, transform;
    z-index: 2;
  }

  .double_range_slider input {
  position: absolute;
  width: 100%;
  height: 5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  top: 50%;
  transform: translateY(-50%);
}

.double_range_slider input::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  border: 2px solid var(--trans-red);
  background-color: var(--clear-highlight4);
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin-bottom: 3px;
  margin-left: -2px;
}

.double_range_slider input::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  border: 3px solid var(--clear-highlight3);
  background-color: var(--clear-highlight4);
  pointer-events: auto;
  -moz-appearance: none;
  cursor: pointer;
  margin-top: 30%;
}
