:root {
  --burgundy: #490f3a;
  --lilac: #ccbfe0;
  --cream: #f1eade;
  --coral: #ea687e;
  --dark-blue: #0c293d;
  --light-brown: #d6c4b6;
  --light-blue: #c1d9ea;
  --yellow: #ffb92e;
  --off-white: #fcfbfa;

  --light: 300;
  --normal: 400;
  --medium: 500;
  --semi-bold: 600;

  --line-width: 80ch;

  --content-width: 800px;
  --viz-width: 500px;
}

::-moz-selection, ::selection {
  color: #222;
  background: #d6edff;
  text-shadow: none;
}

* {
  box-sizing: border-box;
  hyphens: none;
}

html, body {
  padding: 0;
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  padding: 0;
}

body {
  height: fit-content;
  font-family: Outfit, sans-serif;
  line-height: 1.1;
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
  width: var(--content-width);
  max-width: 100%;
  background-color: var(--off-white);
}

h1 {
  font-weight: var(--semi-bold);
  margin-top: 0;
  padding-top: 0.5rem;
}

a {
  color: currentColor;
  text-decoration-style: dotted;
}

a:hover {
  text-decoration-style: solid;
}


:focus-visible {
  outline: 3px solid var(--off-white);
  box-shadow: 0 0 0 6px var(--dark-blue);
}

[id="wrapper"] {
  width: var(--content-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[id="controls-container"] {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, min(350px, 100%));
  justify-content: center;
  column-gap: 2rem;
  row-gap: 1rem;
  margin-bottom: 1rem;
}

.dg-dropdown label {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.dg-dropdown label span:first-child {
  width: 100%;
  border-bottom: 1px dashed rgba(50, 50, 50, 0.5);
  display: flex;
  align-items: center;
}

.dg-dropdown select {
  width: 200px;
  max-width: 100%;
}

.dg-stack-buttons {
  justify-self: end;
  display: flex;
  column-gap: 0.5rem;
}

[id="viz-container"] {
  width: var(--viz-width);
  max-width: 100%;
}

select, button {
  font-family: Outfit, sans-serif;
  font-size: 1rem;
}

[id="controls-container"] button {
  cursor: pointer;
}

[id="controls-container"] button[disabled] {
  cursor: default;
}

.logos {
  width: var(--viz-width);
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  align-items: center;
}

.logos img:first-child {
  height: 60px;
}

.logos img:last-child {
  height: 100px;
}

.button-group {
  display: flex;
  justify-content: space-between;
}

dialog {
  width: fit-content;
  max-width: 100%;
  height: fit-content;
  height: calc(100vh - 2rem);
  margin: 1rem auto;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

dialog::backdrop {
  background: rgba(255, 255, 255, 0.2);
}

dialog .inner {
  --sidebar: 80px;
  --l-sidebar: var(--sidebar);
  --central: 80ch;
  width: fit-content;
  height: 100%;
  display: grid;
  grid-template-columns: var(--l-sidebar) var(--central) var(--sidebar);
  grid-template-rows: auto 1fr;
  grid-template-areas: 
    ". . close"
    ". content .";
}

dialog button {
  grid-area: close;
  align-self: end;
}

dialog .content {
  grid-area: content;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

dialog .content > div {
  overflow: auto;
}


@media not (min-width: 1100px) {
  dialog {
    margin: 1rem;
  }

  dialog .inner {
    --central: 1fr;
  }
}


@media not (min-width: 700px) {
  dialog .inner {
    --l-sidebar: 0;
  }
}


@media not (min-width: 600px) {
  dialog .inner {
    grid-template-columns: var(--central) var(--sidebar);
    grid-template-areas: 
      ". close"
      "content content";
  }
}