:root {
  --bg: #111111;
  --text: #ffffff;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --text: #111111;
  }
}

/* Explicit Overides */
[data-theme="light"] {
  --bg: #ffffff;
  --text: #111111;
}

[data-theme="dark"] {
  --bg: #111111;
  --text: #ffffff;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Comic Mono', 'Cursive';
}

dialog {
  background: var(--bg);
  color: var(--text);
  margin-top: 10%;
  animation: zoomIn 1s;
}

a:link,
a:visited {
  background: var(--bg);
  color: var(--text);
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tab {
  overflow: hidden;
  background-color: #333;
  text-align: center;
}

.tab button {
  background-color: inherit;
  border: none;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.tab button:hover {
  background-color: #ddd;
  color: black;
}

.tab button:active {
  background-color: #ccc;
}

/* Create a right-aligned (split) link inside the navigation bar */
.tab button.split {
  float: right;
}

.tab .icon {
  display: none
}

.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
}

.dropdown-content button {
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

button {
  margin: 10px;
  border: none;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: 35% 30% 35%;
  padding: 10px
}

.grid div {
  padding: 10px;
  text-align: left;
  border: 1px solid black;
}

@keyframes zoomIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

@media screen and (max-width: 600px) {
  .tab button:not(:first-child) {
    display: none;
  }

  .tab button.icon {
    float: right;
    display: block;
  }

  .grid {
    grid-template-columns: 10% 80% 10%;
  }
}

@media screen and (max-width: 600px) {
  .tab.responsive {
    position: relative;
  }

  .tab.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .tab.responsive button {
    float: none;
    display: block;
    text-align: left;
  }
}