:root {
  --primary-color: green;
  --primary-variant: darkseagreen;
  --secondary-color: forestgreen;
  --tertiary-color: mediumseagreen;
  --on-primary: rgb(250, 250, 250);
  --on-background: rgb(66, 66, 66);
  --on-background-alt: rgba(66, 66, 66, 0.7);
  --background: rgba(245, 245, 245, 0.7);
  --box-shadow: 0 5px 20px 1px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] {
  --primary-color: rebeccapurple;
  --primary-variant: lavender;
  --secondary-color: indigo;
  --tertiary-color: darkviolet;
  --on-primary: #000;
  --on-background: rgba(255, 255, 255, 0.9);
  --on-background-alt: rgba(255, 255, 255, 0.7);
  --background: rgba(18, 18, 18, 0.8);
}

html {
  background: url('data:image/svg+xml,<svg height="30" width="30" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 480"><path d="M450 210h-98l84.9-49a30 30 0 1 0-30-52l-85 49 49-84.9a30 30 0 0 0-52-30l-48.9 85V30a30 30 0 1 0-60 0v98l-49-84.9a30 30 0 1 0-52 30l49 85-84.9-49a30 30 0 0 0-30 52l85 48.9H30a30 30 0 1 0 0 60h98l-84.9 49a30 30 0 1 0 30 52l85-49-49 84.9a30 30 0 0 0 52 30l48.9-85V450a30 30 0 1 0 60 0v-98l49 84.9a30 30 0 1 0 52-30l-49-85 84.9 49a30 30 0 0 0 30-52l-85-48.9H450a30 30 0 1 0 0-60Z" fill="%23B0C4DE" opacity="0.2"></path></svg>'),
    var(--background);
  background-repeat: round;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--on-background);
  background-color: var(--background);
  border-radius: 5px;
  padding: 0.5rem;
}

a {
  color: var(--primary-variant);
}
a:hover {
  color: var(--tertiary-color);
}

a:visited {
  color: var(--primary-color);
}

h1 {
  text-align: center;
  color: var(--primary-variant);
}

h3 {
  text-align: center;
  margin-bottom: 5px;
  color: var(--tertiary-color);
}

h4 {
  margin: 0px;
  color: var(--tertiary-color);
}

li {
  font-size: x-small;
}

.main {
  text-align: center;
}

input[type="number"] {
  text-align: center;
  width: 2.5rem;
  background-color: var(--background);
  color: var(--on-background);
}

/* Grid layout for filter categories */
@media only screen and (min-width: 465px) {
  .parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 5px;
    grid-row-gap: 0px;
    margin: auto;
    justify-self: center;
  }
}

.grid-container {
  width: 100%;
}

details > summary {
  color: var(--primary-variant);
  font-weight: bold;
}

details:open > summary {
  color: var(--tertiary-color);
}

summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 10px 15px; */
}

@media only screen and (min-width: 465px) {
  summary {
    justify-content: space-around;
  }
}

summary::after {
  content: "\2716";
  transition: 0.2s;
  margin-left: .5rem;
  transform: rotate(45deg);
  font-size: 0.75rem;
}

details[open] > summary::after {
  transform: rotate(0deg);
}

#checkbox-container {
  margin-left: auto;
  margin-right: auto;
}

/* Grid layout for top */
.main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  padding-top: .2rem;
}

/* Simple Checkbox styling */
.simple-cb {
  margin-left: 1rem;
  /* margin-top: 1rem; */
}

.simple {
  text-align: center;
  margin: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#simple-filter {
  font-size: x-small;
  width: 50%;
  margin: auto;
  padding: 0.2rem;
}

.generator {
  text-align: center;
}

.container {
  text-align: center;
  font-weight: normal;
}

.silly {
  margin: 1rem;
}

/* Tooltip styling */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: #414241;
  color: #fff;
  top: 110%;
  left: 50%;
  margin-left: -60px;
  text-align: center;
  padding: 5px 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  font-size: x-small;
  width: fit-content;
  max-width: 300px;
}

.tooltip.active .tooltip-text::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #414241 transparent;
}

.tooltip.active .tooltip-text {
  visibility: visible;
}

#num-input {
  width: fit-content;
  margin: auto;
}

/* Silly Mode Toggle */
.toggle-checkbox {
  display: none;
}

.slider {
  position: relative;
  display: inline;
}

/* ellipse */
.slider::before {
  background: lightgray;
  border-radius: 34px;
  bottom: 0;
  content: '';
  height: 24px;
  margin: auto;
  position: absolute;
  top: 0;
  width: 40px;
}

/* circle */
.slider::after {
  background: gray;
  border-radius: 50%;
  bottom: 0;
  content: '';
  height: 16px;
  left: 4px;
  margin: auto;
  position: absolute;
  top: 0;
  transition: 0.4s;
  width: 16px;
}

.toggle-switch {
  margin-left: 50px;
}

.toggle-switch.opt1 {
  color: gray;
  font-size: small;
  text-align: left;
}

.toggle-switch.opt2 {
  color: green;
  display: none;
  font-size: small;
  text-align: left;
}

.toggle-checkbox:checked + .slider::before {
  background-color: lightgreen;
}

.toggle-checkbox:checked + .slider::after {
  background-color: darkgreen;
  transform: translateX(16px);
}

.toggle-checkbox:checked ~ .slider > .toggle-switch.opt1 {
  display: none;
}

.toggle-checkbox:checked ~ .slider > .toggle-switch.opt2 {
  display: inline-block;
}

/* Logic Toggle */
.toggle-logic {
  display: none;
}

.toggle-switch.and {
  color: slateblue;
}

.toggle-switch.or {
  color: sienna;
  display: none;
}

.slider.logic::before {
  background: lightsteelblue;
  border-radius: 34px;
  bottom: 0;
  content: '';
  height: 24px;
  margin: auto;
  position: absolute;
  top: 0;
  width: 40px;
}

/* circle */
.slider.logic::after {
  background: slateblue;
  border-radius: 50%;
  bottom: 0;
  content: '';
  height: 16px;
  left: 4px;
  margin: auto;
  position: absolute;
  top: 0;
  transition: 0.4s;
  width: 16px;
}

.toggle-logic:checked + .slider::before {
  background-color: lightsalmon;
}

.toggle-logic:checked + .slider::after {
  background-color: sienna;
  transform: translateX(16px);
}

.toggle-logic:checked ~ .slider > .toggle-switch.and {
  display: none;
}

.toggle-logic:checked ~ .slider > .toggle-switch.or {
  display: inline-block;
}

/* Button styling */
.tut-btn {
  background-color: var(--primary-color);
  border-radius: 28px;
  border: 1px solid var(--secondary-color);
  display: inline-block;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  padding: 6px 12px;
  margin: auto;
  text-decoration: none;
  text-shadow: 0px 1px 0px var(--primary-variant);
}

.tut-btn:hover {
  background-color: var(--tertiary-color);
}

.tut-btn:active {
  position: relative;
  top: 1px;
}

.randomize {
  box-shadow: inset 0px 1px 0px 0px var(--box-shadow);
  background-color: var(--primary-color);
  border: 1px solid var(--secondary-color);
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  font-family: Arial;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 12px;
  text-decoration: none;
}

.randomize:hover {
  background-color: var(--tertiary-color);
}

.randomize:active {
  position: relative;
  top: 1px;
}

/* Dark Mode Toggle */
.theme-switch-wrapper {
  width: fit-content;
  height: fit-content;
  top: 0.5rem;
  left: .75rem;
  position: relative;
}

.toggle-theme {
  display: none;
  position: absolute;
}

.fa-moon {
  color: palegoldenrod;
}

.fa-sun {
  color: goldenrod;
}

.slider-label {
  background-color: skyblue;
  width: 50px;
  height: 20px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 500ms linear;
}

.slider-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 5px;
  top: 4px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.toggle-theme:checked + .slider-label .ball {
  transform: translateX(28px);
}

.toggle-theme:checked + .slider-label {
  background-color: indigo;
  transition: background-color 500ms linear;
}

div > label {
  font-size: small;
}

label#num-input {
  font-size: medium;
}

.content {
  margin: 2rem;
}

#suggestion {
  display: none;
}

#tagForm {
  display: none;
}


h6 {
  margin: 0;
}

.faqAnswer {
  font-size: x-small;
  max-width: 75%;
  margin: auto;
}