* {
  margin: 0;
  margin-block: 0;
  padding: 0;
  box-sizing: border-box;

  --bs-link-color-rgb: 255, 165, 0;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  height: 100vh;
  font-size: 14px;
  background-color: #31333b !important;
}

main {
  min-height: calc(100vh - 96px); /* Entire page minus height of header */
  padding-bottom: 50px;
}

a {
  text-decoration: none !important;
}

a.btn {
  color: white;
}

h1, h2, h3, h4, h5, h6 {
  color: #eee;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

/*** Navigation ***/
nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

nav a {
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
}

nav ul {
  padding-left: 0px;
}

nav ul li {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  padding: 1rem;
  transition: 0.5s;
}

nav ul li.active a,
nav ul li:hover a {
  color: #ddd !important;
  transition: 0.5s;
}
nav ul li.active:after {
  content: "";
  display: block;
  position: absolute;
  width: calc(100% - 2rem);
  height: 3px;
  background: orange;
  border-radius: 2px;
}

#content {
  display: grid;
  column-gap: 20px;
  row-gap: 50px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto 100px auto;
  height: 100%;
  justify-items: center;
  align-items: center;
  margin-top: 50px;
}

.grid > * {
  grid-column: var(--grid-column);
  grid-row: var(--grid-row);
}

/*** Dialogs ***/
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #eee;
  pointer-events: none;
  opacity: 0;
  padding: 25px;
}

dialog[open] {
  pointer-events: all;
  opacity: 1;
}

dialog h1 {
  color: #eee;
}

::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
