/*https://www.w3schools.com/howto/howto_css_switch.asp*/
/* The switch - the box around the slider */
.switch {
  position: absolute;
  width: 60px;
  height: 34px;
  right: 30px;
  top: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #080808;
}
input:checked + .slider:before {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
}



p, h1, h3, h5, div, li { color: initial; }/*bug de transition si on a pas*/
[darkmode="true"] * { color: white; }
* {
    transition: background-color .5s, color .3s, border-color .5s;/*scrollbar can't have transition*/
}
body[darkmode="true"], [darkmode="true"] #console, [darkmode="true"] #consoleLine {
    background-color: #080808;
}

[darkmode="true"] header {
    background-color: #12191f;
}

[darkmode="true"] .menu_link[open="true"], [darkmode="true"] h2 {
    color: #5F9EA0;
}
[darkmode="true"] .widget, [darkmode="true"] .pageContent {
    background-color: #181b20;
    border-color: #414244;
    /*box-shadow: 2.5px 5px #4b5258;*/
    --box-shadow-color: #4b5258;
}

[darkmode="true"] [color="red"], [darkmode="true"] output[type="boolean"]:not([value="true"]) {
    color: #e68888;
}
[darkmode="true"] [color="darkorange"] {
    color: #dc7f1f;
}
[darkmode="true"] [color="green"], [darkmode="true"] output[type="boolean"][value="true"] {
    color: #8cf28e;
}



[darkmode="true"] ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px #555;/*original: #181b20*/
}
[darkmode="true"] ::-webkit-scrollbar-thumb {
    background-color: #898a8c;
}
[darkmode="true"] ::-webkit-scrollbar-thumb:hover {
    background-color: #ccc;
}
[darkmode="true"] a:link { color: #4D4DF7; }
[darkmode="true"] a:visited { color: #5B5BA8; }