:root,
[data-theme="light"] {
  --background-color: #fafafa;
  --text-color: hsla(0, 0%, 0%, 0.8);
  --primary-color: #6200ee;
  --border-color: #222c3a;
  --border-color-hover: rgb(79 148 255);
  --toggle-bg: #fafafa;
  --toggle-hover-bg: #2f466a;
  --toggle-handle-color: #020617;
  --link-color: #00344f;
  --drop-shadow: 0px 0px 20px #00344f;
  --radial-gradient: radial-gradient(
    24.56% 150px at 50% 0%,
    rgb(58, 113, 225) 0%,
    rgba(252, 252, 252, 0) 100%
  );
}

[data-theme="dark"] {
  --background-color: #020617;
  --text-color: rgba(255, 255, 255, 0.8);
  --primary-color: #bb86fc;
  --border-color: #222c3a;
  --border-color-hover: rgb(79 148 255);
  --toggle-bg: #fafafa;
  --toggle-hover-bg: #2f466a;
  --toggle-handle-color: #020617;
  --link-color: #00344f;
  --drop-shadow: 0px 0px 20px #00344f;
  --radial-gradient: radial-gradient(
    24.56% 150px at 50% 0%,
    rgb(8, 30, 75) 0%,
    rgba(2, 6, 23, 0) 100%
  );
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}

a {
  color: var(--primary-color);
}

.input-json {
  padding: 0.5rem;
  height: 80vh;
  font-family: monospace;
  font-size: 13px;
  font-weight: 400;
  border: solid 1px var(--border-color);
  border-radius: 0.5rem;
  white-space: pre-wrap;
  overflow: auto;
  position: relative;
}
.input-json:focus {
  outline: var(--primary-color) solid 1px;
}

[contenteditable]:empty:before {
  content: attr(placeholder);
  color: rgba(var(--text-color), 0.6);
  font-size: 12px;
  opacity: 0.6;
}

.text-sm {
  font-size: 0.85rem;
  line-height: 1.55;
}

.bg-secondary-transparent {
  background-color: rgba(108, 117, 125, 0.5);
  font-weight: 400;
}

.target {
  padding-top: 2.5rem !important;
  background: var(--radial-gradient);
  border-top: solid 1px var(--border-color);
  min-height: 40vh;
  border-radius: 2rem;
  position: relative;
}
.target::after {
  content: "";
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  display: block;
  height: 1px;
  max-width: 300px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(125, 156, 213, 0) 0%,
    rgb(125, 156, 213) 50%,
    rgba(125, 156, 213, 0) 100%
  );
}

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background-color: var(--toggle-bg);
  border-radius: 11px;
  border: solid 1px var(--toggle-bg);
  outline: none;
  cursor: pointer;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-1px, -50%);
  width: 18px;
  height: 18px;
  background-color: var(--toggle-handle-color);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle.checked {
  background-color: var(--toggle-hover-bg);
  border-color: var(--toggle-hover-bg);
}

.toggle.checked::after {
  transform: translate(-18px, -50%);
}

/* vogon style */
.vTitle {
  /* font-size: 3rem; */
  text-align: center;
  margin-bottom: 0.5rem;
}

.vTitle,
.vSubtitle {
  text-align: center;
}

.vSubtitle {
  margin-bottom: 1.5rem;
}
.vogon-logo-title {
  margin: auto;
  display: block;
  margin-bottom: 1rem;
}

.vContainer {
  max-width: 1240px;
  margin: 2rem auto;
  padding: 0.5rem;
}

.vSection {
  margin-bottom: 5rem;
}

.vSubSection {
  margin-bottom: 2rem;
}

.vSection h2 {
  margin-top: 0;
}

.vSection.overview h2,
.vSection.overview > p {
  text-align: center;
}

.vPhases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  margin-bottom: 1rem;
}

.vPhase {
  padding: 10px;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: solid 1px var(--border-color);
}

.vPhase h3 {
  margin-top: 0;
}

.vExample {
  padding: 20px;
  border-radius: 8px;
  border: solid 1px var(--border-color);
}

.vIndustryUseCases,
.vBoxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.vIndustryUseCase,
.vBox {
  border: solid 1px var(--border-color);
  padding: 1.5rem;
  border-radius: 0.8rem;
  width: calc(50% - 0.4rem);
}

.vIndustryUseCase.last,
.vBox.last,
.vBox.full {
  width: 100%;
}

.vIndustryUseCase:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--drop-shadow);
  transition: all 0.3s ease-in-out;
}

/*
 CSS for the main interaction
*/
.tabset > input[type="radio"] {
  position: absolute;
  left: -200vw;
}

.tabset .tab-panel {
  display: none;
}

.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
  display: block;
}

.tabset > label {
  position: relative;
  display: inline-block;
  padding: 0;
  padding-bottom: 0.5rem;
  cursor: pointer;
  font-weight: 400;
  margin-right: 0.5rem;
  text-transform: uppercase;
  opacity: 0.5;
}

.tabset > label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  height: 1px;
  background: transparent;
}

input:focus-visible + label {
  outline: none;
  border-radius: 3px;
}

.tabset > label:hover,
.tabset > input:focus + label,
.tabset > input:checked + label {
  color: var(--text-color);
  opacity: 1;
}

.tabset > input:focus + label::after,
.tabset > input:checked + label::after {
  background: var(--text-color);
}

.tab-panel {
  padding: 1rem 0;
}
