.button {
  background-color: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: bold;
  margin: 4px auto 4px 1rem;
  transition-duration: 0.4s;
  cursor: pointer;
}

.right {
  float: right;
  margin-right: 1rem;
}

.button:hover {
  background-color: var(--primary-hover);
  color: var(--secondary);
  border-color: var(--primary-hover);
}

.button:disabled {
  background-color: var(--primary-hover);
  color: var(--secondary);
  border-color: var(--primary-hover);
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--primary);
  text-align: center;
  background-color: var(--primary);
  color: var(--secondary);
  border-radius: var(--border-radius);
  font-size: 16px;
  padding: 16px 32px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: var(--primary);
  color: var(--secondary);
  text-align: left;
  border-radius: 6px;
  padding: 5px 5px;
  font-weight: normal;

  /* Position the tooltip */
  position: absolute;
  z-index: 10;
  top: 4rem;
  left: -13rem;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.selection {
  padding-left: 25px;
}

.checkbox,
.radio {
  /* padding-left: 1rem; */
  width: 100vw;
  text-align: left;
}

.container {
  display: inline-block;
  position: relative;
  padding-left: 35px;
  padding-top: 5px;
  margin-left: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: var(--primary-hover);
}

.radio {
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: var(--primary);
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: var(--primary);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* switch-styled checkbox */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
