:root {
  --page-bg-color: #ffffff;
  --page-aux-color: #f0f0f0;
  --header-logo: url("bny-logo-light.png");
  --text-color: #000000;
  --control-color-active: #3f51b5;
  --control-color-inactive: #7f7f7f;
  --control-color-hover: #4758b8;
  --default-font: 14px "Segoe UI";
  --transition-settings: 0.2s linear;
}
:root.dark-theme {
  --page-bg-color: #1d1e22;
  --page-aux-color: #444857;
  --header-logo: url("bny-logo-dark.png");
  --text-color: #ffffff;
}
body {
  background: var(--page-bg-color);
  margin: 0;
  padding: 0;
  font: var(--default-font);
  min-height: 500px;
  min-width: 500px;
  transition: var(--transition-settings);
}
p {
  margin: 0;
  color: var(--text-color);
  transition: var(--transition-settings);
}
#header {
  position: absolute;
  top: 0;
  left: 0;
  height: 70px;
  width: 100%;
  background: var(--page-aux-color) var(--header-logo)
              20px 23px / auto no-repeat;
  transition: var(--transition-settings);
}
#version-text {
  position: absolute;
  top: 110px;
  left: 20px;
  white-space: pre;
}
#version-label {
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--page-aux-color);  
  transition: var(--transition-settings);
}
#start-button {
  position: absolute;
  top: 170px;
  left: 20px;
  color: #ffffff;
  background: var(--control-color-active);
  cursor: pointer;
  border: 0;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .6);
  user-select: none;
  font: var(--default-font);
  font-weight: bold;
  text-align: center;
  outline-width: 0;
}
#start-button:hover {
  background: var(--control-color-hover);
}
#start-button:active {
  top: 171px;
  left: 21px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, .6);
}
#auto-launch-text {
  position: absolute;
  top: 370px;
  left: 20px;
}
#auto-launch-toggle {
  position: absolute;
  box-sizing: border-box;
  top: 360px;
  left: 150px;
  transform: scale(0.6);
}
#auto-launch-toggle input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}
#auto-launch-toggle label {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
#auto-launch-toggle label:before {
  content: "";
  width: 70px;
  height: 40px;
  background: var(--control-color-inactive);
  position: relative;
  display: inline-block;
  border-radius: 20px;
  box-sizing: border-box;
  transition: 0.2s ease-in;
}
#auto-launch-toggle label:after {
  content: "NO";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  z-index: 2;
  background: #ffffff;
  color: var(--control-color-inactive);
  box-sizing: border-box;
  font-weight: bold;
  text-align: center;
  line-height: 36px;
  transition: 0.2s ease-in;
}
#auto-launch-toggle input[type="checkbox"]:checked + label:before {
  background: var(--control-color-active);
}
#auto-launch-toggle input[type="checkbox"]:checked + label:after {
  content: "YES";
  color: var(--control-color-active);
  left: 32px;
}
#theme-text {
  position: absolute;
  top: 400px;
  left: 20px;
}
#theme-toggle {
  position: absolute;
  box-sizing: border-box;
  top: 390px;
  left: 150px;
  transform: scale(0.6);
}
#theme-toggle input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}
#theme-toggle label {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
#theme-toggle label:before {
  content: "";
  width: 70px;
  height: 40px;
  background: var(--control-color-active);
  position: relative;
  display: inline-block;
  border-radius: 20px;
  box-sizing: border-box;
  transition: 0.2s ease-in;
}
#theme-toggle label:after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  z-index: 2;
  background: #ffffff;
  border: 7px solid #ffffff;
  box-sizing: border-box;
  box-shadow: inset -8px -5px #333333;
  transition: 0.2s ease-in;
}
#theme-toggle input[type="checkbox"]:checked + label:before {
  background: var(--control-color-active);
}
#theme-toggle input[type="checkbox"]:checked + label:after {
  content: "";
  left: 32px;
  border: 5px solid #ffffff;
  box-shadow: inset 0 0 0 3px #ffc000,
              inset 0 0 0 5px #ffffff,
              inset 0 0 0 20px #ffc000;
}
#footer {
  position: fixed;
  height: 50px;
  width: 100%;
  bottom: 0;
  left: 0;
  line-height: 50px;
  background: var(--page-aux-color);    
  text-align: center;
  font-size: 12px;
  transition: var(--transition-settings);
}