:root {
 --csslib-version: 7;
}
html {
 margin: auto;
 line-height: 1.4;
}
body   {
  background-color:  #000000;
  color: #FFFFFF;
  margin: 0em;
  font-family: sans-serif;
  font-size: 1em;
  font-weight: normal; 
  text-align: center;
}

h1, h2, h3, h4, h5, h6 { font-family: sans-serif; }
h1 {
  text-shadow:
    1px 1px 1px #808080,
    2px 2px 1px #808080;
}
p { margin-block: 0.7em; }
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

/* complete section (for screen data dump at end)*/
.complete {
	display: grid;
}

/* table section for displaying data and metadata at the end */

table { width: auto; border: 0.2em solid white; padding: 0.5em; margin-left: auto; margin-right: auto; }
th {font-size: 1em; text-align: center; border: 0.1em solid red; }
th.title {font-size: 1.2em; text-align: center; border: 0.1em solid white;  color: white;}
td {font-size: 1em; text-align: left; border: 0.1em solid green;}

/* user form section */
form {
  text-align: center;
  display: inline-block;
  padding: 1em;
}
legend { border: 1px solid #ccc; }
fieldset { border: 2px solid #ccc; }

input + span {
  padding-right: 2em;
}

input:invalid + span::after {
  position: absolute;
  content: "✖";
  padding-left: 0.5em;
  color: #8b0000;
}

input:valid + span::after {
  position: absolute;
  content: "✓";
  padding-left: 0.5em;
  color: #009000;
}

/*button {font-size: 1em; border-radius: 0.5em; color: #000000; }*/
button {
  border: 0;
  line-height: 2;
  padding: 0 20px;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 1px black;
  border-radius: 10px;
  background-color: tomato;
  background-image: linear-gradient(
    to top left,
    rgb(0 0 0 / 0.2),
    rgb(0 0 0 / 0.2) 30%,
    transparent
  );
  box-shadow:
    inset 2px 2px 3px rgb(255 255 255 / 0.6),
    inset -2px -2px 3px rgb(0 0 0 / 0.6);
}

button:hover {
  background-color: red;
}

button:active {
  box-shadow:
    inset -2px -2px 3px rgb(255 255 255 / 0.6),
    inset 2px 2px 3px rgb(0 0 0 / 0.6);
}
