/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal
}

ul {
  list-style: none
}

button,
input,
select {
  margin: 0
}

html {
  box-sizing: border-box
}

*,
*::before,
*::after {
  box-sizing: inherit
}

img,
video {
  height: auto;
  max-width: 100%
}

iframe {
  border: 0
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

td,
th {
  padding: 0
}

/* done with reset */

:root {
  --bg-color: #ed8936;
  --link-color: #bd7335;
  /* better contrast */
}

html {
  font-family: sans-serif;
  font-size: 18px;
}

nav {
  padding: 1.5rem;
  background-color: var(--bg-color);
  display: flex;
  justify-content: space-between;
  color: white;
  box-shadow: 2px 2px black;
}

nav a {
  color: white;
  text-decoration: none;
}

nav h1 {
  font-size: 1.2rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  align-items: center;
}

nav img {
  width: 1rem;
}

nav li {
  margin: 0 .5rem;
}

main {
  max-width: 800px;
  margin: 2rem auto;
}

p, .tabs, form, div, button {
  margin: 1rem 0;
}

body {
  margin: .5rem;
}

pre {
  background: #eee;
  padding: .75rem;
  border: 2px solid black;
  white-space: pre-wrap;
  word-break: keep-all;
}

button {
  background-color: var(--bg-color);
  color: white;
  padding: .5rem 1rem;
  box-shadow: 2px 2px black;
  border: none;
  outline: none;
  font-size: 1.2rem;
  margin-right: 1rem;
  cursor: pointer;
}

button:focus {
  box-shadow: none;
}

textarea {
  width: 100%;
  height: 200px;
  padding: .5rem;
  font-family: sans-serif;
}

h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.image {
  text-align: center;
}

.sparse img {
  max-width: 400px;
}

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

ul.invalid {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

ul.invalid li {
  margin: .25rem;
  padding: .25rem;
  border-radius: 5px;
  background-color: #eee;
}

/* tabs */
/* https://dev.to/joxx/building-a-tab-component-with-pure-css-using-radio-and-label-tags-200b */

.tabs {
  display: flex;
  flex-wrap: wrap;
}

.tabs label {
    background: #eee;

  cursor: pointer;
  display: block;
  font-weight: 600;
  order: initial;
  padding: .5rem 1rem;
  transition: background ease 0.3s;
  width: 100%;
  border: 2px solid black;
  border-bottom: 0;
}

.tabs .tab-content {
  display: none;
  flex-grow: 1;
  padding: 1rem;
  width: 100%;
}

.tabs input[type="radio"] {
  display: none;
}

.tabs input[type="radio"]:checked+label {
  background: var(--bg-color);
  color: white;
}

.tabs input[type="radio"]:checked+label+.tab-content {
  display: block;
}

.tabs .tab-content {
  order: 99
}

.tabs label {
  order: 1;
}

.tabs label {
  margin-right: 0.3rem;
  margin-top: 0;
  width: auto;
}
