:root {
	--bg:#000;
	--fg:#fff;
	--link:#44f;

	--hoverb:#ff0;
	--hoverc:#00f;

	--red:#f00;
	--green:#0f0;
	--blue:#00f;
	--yellow:#ff0;
	--grey:#888;
	--purple:#f0f;

	--null:#f00;
	--busy:#400;
}

[data-theme="light"]	{
	--bg:#fff;
	--fg:#000;

	--hoverc:#ff0;
	--hoverb:#00f;

	--busy:#fcc;
}

body	{
	background-color:var(--bg);
	color:var(--fg);
}

.theme.right { position:fixed; top:0; right:0 }
.theme.bottom { position:fixed; bottom:0; right:0 }

.theme {
  display: flex;
  align-items: center;
}

.theme label {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme input { display:none }

.theme div {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 34px;
  background-color: #888;
  cursor: pointer;
  transition: .3s;
  text-align:center;
  line-height:26px;
}

.theme div:before {
  position: absolute;
  bottom: 4px;
  left: 4px;
  border-radius: 50%;
  height: 26px;
  transition: .3s;
  width: 26px;
  content: "🌞";
  background-color: #fff;
}

.theme input:checked + div {
  background-color: #444;
}

.theme input:checked + div:before {
  transform: translateX(26px);
  content: "🌜";
  background-color: #000;
}

