:root {
  --light-grey-bg: #e9ebeb;
  --white-bg: #ffffff;
  --black: #000000;
  --blue: #139dff;
  --yt-border-color: #ccc;
  --off-black: #252626;
  --light-grey: #e9ebeb;
  @media (prefers-color-scheme: dark) {
    --light-grey-bg: #2e2e2e;
    --white-bg: #393939;
    --black: #ffffff;
    --blue: #61a0ff;
    --yt-border-color: #606060;
    --off-black: white;
    --light-grey: #393939;
  }
}

body {
  background: var(--light-grey-bg);
  font-family: sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.vidiq-options {
  background: var(--white-bg);
  max-width: 40%;
  min-width: 700px;
  margin: 0 auto;
  border-radius: 5px;
  border: 1px solid var(--yt-border-color);
  color: var(--black);
}

h1 {
  font-size: 20px;
  margin: 0;
}

.vidiq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--yt-border-color);
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.vidiq-header a {
  color: var(--off-black);
}

a:visited {
  color: inherit;
}

img {
  width: 42px;
}

label {
  cursor: pointer;
}

.settings {
  padding: 0 20px 10px;
}

.setting {
  text-align: left;
  font-size: 18px;
  line-height: 40px;
  border-top: 1px solid var(--yt-border-color);
  padding: 5px 0;
}

.setting:first-child {
  border-top: none;
}

.sub-setting {
  font-size: 17px;
  line-height: 22px;
  margin-left: 20px;
  text-align: left;
  margin-bottom: 5px;
}

.sub-setting:last-child {
  margin-bottom: 20px;
}

.sub-setting:last-of-type {
  margin-bottom: 0;
}

.note {
  font-size: 12px;
  margin-left: 25px;
  line-height: 1.2;
}

/* turn checkboxes into toggles */
input[type='checkbox'] {
  position: relative;
  top: 3px;
  appearance: none;
  width: 25px;
  height: 12px;
  background: #ccc;
  border-radius: 50px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.4s;
}

input:checked[type='checkbox'] {
  background: var(--blue);
}

input[type='checkbox']::after {
  position: absolute;
  border: 1px solid var(--light-grey);
  content: '';
  width: 12px;
  height: 12px;
  top: -1px;
  left: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
  transition: 0.4s;
}

input:checked[type='checkbox']::after {
  left: 50%;
}
