/* ================================================= General Setup ================================================= */

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

/* *:focus-visible {
  outline: 2px red solid !important;
} */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-y: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

/*=================================================== Loader ===================================================== */

#loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.spinner-border {
  width: 10rem;
  height: 10rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1 {
  font-size: 1.6rem !important;
}

/* font-family: 'Chillax', sans-serif;
font-family: 'Satoshi', sans-serif; */

/* ================================================= Interface ================================================= */

#interface {
  height: 100vh;
  position: relative;
}

/* ================================================= Canvas ================================================= */

canvas {
  display: block;
  cursor: pointer;
}

/* ================================================= Loader ================================================= */

.spinner-border {
  width: 10rem !important;
  height: 10rem !important;
  border-color: white !important;
  border-right: transparent !important;
}

#loader {
  background-color: rgb(131,192,109);
  overflow:hidden;
}

/* ================================================= Footer ================================================= */

footer {
  display: none;
  position: fixed;
  font-weight: bold;
  bottom: 0;
  width: 100%;
  font-size: large;
  background-color: rgba(0, 0, 0, 0.322);
  text-align: center;
  z-index: 1;
}

footer a {
  color: white;
  text-decoration: none;
}


/* ================================================= Bootstrap ================================================= */

.offcanvas-backdrop.show {
  display: none !important;
}

.offcanvas {
  background-color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 30px 1px 1px 30px;
  padding: 20px 10px;
}

/* ================================================= Mention Legales ================================================= */
.mentionlegales {
  cursor: pointer;
  opacity: 0.5;
  transition: all ease 0.4s;
}

.mentionlegales:hover {
  opacity: 1;
}

/*========== Window POP UP =========== */

.choice {
  padding: 10px;
  border: none;
  border-radius: 30px;
  color: white;
  transition: all ease 0.4s;
}

#Production {
  background-color: rgba(255, 80, 80, 1);
  border: 2px solid rgba(255, 80, 80, 1);
}

#Production:hover {
  background-color: transparent;
  color: rgba(255, 80, 80, 1);
}

#Consommation {
  background-color: #7692FF;
  border: 2px solid #7692FF;
}

#Consommation:hover {
  background-color: transparent;
  color: #7692FF;
}

.title-pop-up {
  background-color: white;
  display: flex !important;
  justify-content: center !important;
  padding: 7px;
  border-radius: 18px;
  margin-top: 30px;
}


.graph-container {
  background-color: white;
  border-radius: 18px;
  padding: 4px;
  margin-top: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.affichage-total {
  box-shadow: -5px -5px 9px rgba(255,255,255,0.45), 5px 5px 9px rgba(94,104,121,0.3);
  border-radius: 10px;
  color: grey;
  font-weight: 400;
  padding: 16px;
  margin-bottom: 20px;
}

.opacity {
  opacity: 0;
}

/* ================================================= Filter ================================================= */

#filterContainer {
  position: absolute;
  left: 40px;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  display: none;
}

#filterContainer input {
  display: none;
}

.labelFilter {
  display: inline-block;
  background-color: rgba(72, 72, 72, 0.4);
  opacity: 0.75;
  border-radius: 20px;
  cursor: pointer;
}

#filterContainer label img {
  height: 60px;
}

input[type="checkbox"].filter:checked+.labelFilter {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}



/* ================================================= Dave ================================================= */

#nationalContainer {
  display: none;
  position: absolute;
  left: 20px;
  top: 20px;
  border-radius: 10%;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
}

#nationalContainer canvas {
  width: 200px !important;
  height: 200px !important;
  margin-bottom: 20px;
}
/* ================================================= Dave ================================================= */

.show {
  display: block !important;
}

#daveContainer {
  position: absolute;
  left: 20px;
  bottom: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

#daveContainer span {
  width: 80%;
  padding: 20px;
  border-radius: 16px;
  background-color: white;
  display: none;
}

#daveContainer img {
  width: 100px;
  height: 100px;
}


