<style>

:root {
  color-scheme: dark;
}

body { }

@font-face {
  font-family: 'poppins';
/*  src: url('{{ url_for('static', filename='fonts/poppins.ttf') }}'); */
  src: url('fonts/poppins.ttf');
}

html { 
    font-family: 'poppins'; 
    overflow-y: scroll; 
}

body { 
    font-family: 'poppins';
    font-size: 14px;
    /* Dark grey background. */
    background: #171D25; 
    color:lightgrey;
}

/* dark scrollbars, 4px wide */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background:transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #555555;
  border-radius: 20px;
  border: transparent;
}
   

/* this is terrible, never use it.
textarea:focus, input:focus{
    outline: none;
}
*/
h1,h2,h3,h4,h5,h6 {
    font-family: 'poppins';
    color:white;
}
a { text-decoration: none; }
a:hover { color: #2196F3; }

/* For links on the left sidebar 
a.text-light-indigo,a.hover-text-light-indigo:hover{color:#7b88d1!important}
*/
a.text-light-indigo,a.hover-text-light-indigo:hover { color:white!important }

/* For lighter links, e.g. links on slices/index under "backups" */
a.text-light-blue{color:#2196F3;}
a.hover-text-light-blue:hover{color:blue!important}

dt { display: block; margin-top: 10px; }
dd { display: block; margin-left: 0px; }

#login_button { transition-duration: 0.2s; width: 150px; margin-top: 10px; }

button { transition-duration: 0.2s; width: 150px; }

/* Logo in upper left fade in/out  */
img.logo {
  width: 90%;
  display: block;
  padding-top:12px;
  padding-bottom:16px;
  filter: brightness(100%);
  transition: 1s;
  transition-timing-function: ease-in-out;
}

img.logo:hover {
   filter: brightness(200%);
   transition: 1s;
}

/* Right slider modal */
.slider_right {
    max-width:500px;
    position:absolute;
    top:0px;
    bottom:0;
    right:0px;
    overflow-y:auto;
}

/* Main content? */
.main {
  margin: auto; 
  padding-top: 75px;
  padding-left: 220px;
  padding-right: 30px;
  min-width: 1100px;
  max-width: 1400px;
  /* color: #666666; */
}

/* inner content */
.inner_main {
  /* margin-top is used for now when theres "<- Slices" in the topmost left corner.
   * comment this and uncomment padding-top below to get previous without a link.
   */
  margin-top: -20px;
  /* padding-top: 12px; */
  padding-left: 150px;
  /* color: #666666; */
}

/* Dropdown menu for the table on the index page */
.dropbtn {
  font-family: 'poppins';
  color: black;
  background-color: #404040;
  font-size: 12px;
  border: none;
  cursor: pointer;
  padding: 5px 20px 2px 20px; 
}

.dropbtn:hover, .dropbtn:focus {
  color: white;
  background-color: #3f51b5;
}

.dropdown {
  float: right;
  position: relative;
  display: inline-block;
}

.dropdown-content {
  right: 0;
  display: none;
  position: absolute;
  /* background-color: #f1f1f1; */
  background-color: #171D25;
  min-width: 60px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 3px 26px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover { background-color: #ddd; }

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content { display: block; }

.hide_copy {
  visibility: hidden;
  /* Fade in */
  opacity: 0;
  transition: opacity 0.3s;
}

.showcopy:hover + .hide_copy {
  visibility: visible;
  /* Fade in */
  opacity: 1;
  transition: opacity 0.3s;
}

.hide_copy:hover {
    /* Fade in */
    opacity: 1;
    transition: opacity 0.3s;
    visibility: visible;
}


/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  /* background-color: #555; */
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 4px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: normal;
  font-family: 'poppins';

  /* Position the tooltip text */
  position: absolute;
  z-index: 99999;
/*  bottom: 125%; */
/*  left: 50%; */
/*  margin-left: -60px; */
  top: -4px;
  left: 110%;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.5s;

  /* zoom tooltip 
    transform: scale(0);
    transition: transform .5s;
  */
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 33%;
  right: 100%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  /* Fade in tooltip */
  opacity: 1;
  /* zoom tooltip 
  transform: scale(1);
  */
}


/* Password forms */
/* The message box is shown when the user clicks on the password field */
#message {
  display:none;
  color: lightgrey;
  position: relative;
  padding: 20px;
  margin-top: 5px;
}

#message p {
  padding: 10px 35px;
  font-size: 16px;
}

/* Add a green text color and a checkmark when the requirements are right */
.valid {
  color: #4CAF50;
}

.valid:before {
  color: green;
  position: relative;
  left: 0px;
  font-weight: 900;
  font-family: "Font Awesome\ 5 Free";
  content: "\f00c ";
}

/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
  color: lightgrey;
}

.invalid:before {
  color: lightgrey;
  position: relative;
  left: 0px;
  font-weight: 900;
  font-family: "Font Awesome\ 5 Free";
/*  font-size: 20px;  */
/*  content: "\f111 "; */
  content: "•";
}

/*** Box-style radio buttons, these are not global they are for the create pages etc. ***/
/* hide radio */
.boxcheck { 
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* div styles */
.boxcheck + div {
  cursor: pointer;
}

/* checked styles */
.boxcheck:checked + div {
  outline: .5px solid blue;
  /* background: #f1f1f1; */
  color: white;
  background: #343a40;
}

/* For dark mode, redefine radio boxes globally for a dark backgroud. */
input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid lightgrey;
  background-color: #171D25;
}

input[type="radio"]:checked {
  background-color: white; /* Color of the inner circle */
  border: 7px solid #2196F3;
}

/** For dark mode, redefine checkboxes globally for a dark background. */

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 1px solid #616161;
  background-color: #343a40;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked {
  background-color: #2196F3;
  border-color: #2196F3;
}

/* Custom checkmark */
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  /*
  width: 6px;
  height: 12px;
  45deg
  */
  width: 8px;
  height: 16px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(35deg);
}

/***************************/

/* Switch toggles */
.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #616161;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .1s;
  transition: .1s;
}

input:checked + .slider {
  background-color: #2196F3;
  /* background-color: #3f51b5; */ 
  /*   background-color: green; */
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  /* border-radius: 34px; */
  border-radius: 4px;
}

.slider.round:before {
  /* border-radius: 50% */
  border-radius: 15%;
}


/* Collapsible content
/* Style the button that is used to open and close the collapsible content */
.collapsible {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 14px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .collapsible:hover {
  background-color: #ccc;
}

/* Style the collapsible content. Note: hidden by default */
.content {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.collapsible:after {
  content: '\f107'; /* Unicode character for "plus" sign (+) */
  font-size: 14px;
  font-family: "Font Awesome\ 5 Free";
  color: black;
  float: left;
  margin-left: 5px;
  padding-right:10px;
}

.active:after {
  content: "\f106"; /* Unicode character for "minus" sign (-) */
}


/* Notification badge */
.notification {
  color: black;
  text-decoration: none;
  font-size:12px;
  position: relative;
  display: inline-block;
  border-radius: 2px;
}

.notification:hover {
  /* background: red; */
  color:grey
}

.notification .badge {
  position: absolute;
  top: 5px; 
  right: 10px;
  padding: 1px 6px;
  border-radius: 50%;
  background-color: darkred;
  color: white;
}

</style>
