
html, 
body {
  background-color: white;
  color: black;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

header {
  height: 35px;
  background-color: rgba(40,40,40);
  padding: 5px;
  font-family: monospace;
  font-size: 0;
  overflow: hidden;
  text-align: center;
}

header button {
  background-color: rgba(0,0,0,0.1);
  height: 100%;
  width: 35px;
  border: none;
  border-radius: 5px;
  padding: 0;
  margin: 0;
  vertical-align: top;
  position: relative;
  transition: background-color 0.2s;
  margin: 0 3px;
  display: inline-block;
  font-size: 1.6rem;
}

header button:disabled {
  background-color: transparent !important;
}


header button:hover, header button:focus,
#reading-list-form-header button:hover,
#reading-list-form-header button:focus {
  background-color: rgba(0,0,0,0.25);
}

header form {
  height: 35px;
  padding: 0 5px;
  margin: 0;
  vertical-align: top;
  width: calc(100% - 225px);
  display: inline-block;
}

header form input {
  height: 100%;
  padding-left: 10px;
  margin: 0;
  vertical-align: center;
  background-color: rgba(50,50,50,1);
  color: silver;
  border: 1px solid whitesmoke;
  border-radius: 5px;
  box-sizing: border-box;
  width: 100%;
  font-size: 1rem;
}

header input:focus {
  border-color: goldenrod;
}


@keyframes colorPulse {
  50% {
    background-color: #BBB161;
    color: black;
  }
  100% {
    background-color: rgb(50,50,50);
    color: silver;
  }
}

header input.loading {
  animation: colorPulse 2s linear infinite;
}

#app {
  overflow: hidden;
}

#reading-list-display {
  height: calc(100% - 6em);
  width: calc(50% - 3em);
  position: absolute;
  top: 0;
  left: calc(-50% - 3em);
  background-color: rgb(30,30,30);
  color: silver;
  transition: left 0.2s;
  padding: 3em;
}

#reading-list-display.open {
  left: 0;
}

#reading-list-display button {
  background-color: transparent;
  font-size: 0.8em;
  border: none;
  margin-left: 0.5em;
}

#reading-list-form-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: black;
  border: 1px solid goldenrod;
  color: silver;
  display: none;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  overflow: auto;
  padding-top: 4rem;
  font-family: sans-serif;
}

#add-to-reading-list-form {
  width: 100%;
}

#add-to-reading-list-form input {
  display: block;
  margin: 10px 0;
  width: 100%;
  margin-bottom: 1em;
}

#add-to-reading-list-form input:last-child {
  background-color: rgb(50,50,50);
  color: silver;
  padding: 0.25em 2em;
  transition: 0.2s;
  cursor: pointer;
  width: initial;
  float: right;
}

#add-to-reading-list-form input:last-child:focus,
#add-to-reading-list-form input:last-child:hover {
  background-color: goldenrod;
  text-decoration: underline;
  text-align: center;
  color: black;
}

#reading-list-form-modal.show {
  display: block;
}

#reading-list-form-header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: silver;
  color: black;
}

#reading-list-form-header span {
  display: inline-block;
  padding: 5px;
  margin: 5px;
}

#reading-list-form-header button {
  float: right;
  margin: 5px;
  background-color: rgba(0,0,0,0.1);
  border: none;
  border-radius: 5px;
  padding: 5px;;
  transition: background-color 0.2s;
  display: inline-block;
}



#main {
  background-color: black;
  color: silver;
  font-family: serif, sans-serif, monospace;
  font-size: 1em;
  height: calc(100vh - 45px);
  overflow: auto;
}

#content {
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

#content a, #content a:active,
#reading-list-display a, #reading-list-display a:active {
  display: inline-block;
  padding: 2px 0;
  color: goldenrod;
  text-decoration: none;
  font-family: sans-serif;
}

#content a:visited,
#reading-list-display a:visited {
  color: cyan;
}

#content a::before,
#reading-list-display a::before {
  content: '\279c';
  margin-right: 0.5em;
  color: gray;
  text-decoration: none;
  font-weight: bold;
  transition: margin-right 0.2s;
}

#content a.inline-link:hover, #content a.inline-link:focus {
  text-decoration: underline;
}

#content a.inline-link::before {
  display: none;
}

#content a.gopher::before {
  content: '\2754';
}

#content a.gopher.type-h::before {
  content: '\1F578';
}

#content a.gopher.type-7::before {
  content: '\1F50E';
}

#content a.gopher.type-0::before {
  content: '\1F4DD';
}

#content a.gopher.type-1::before {
  content: '\1F4C1';
}

#content a.gopher.type-g::before,
#content a.gopher.type-I::before {
  content: '\1F3AB';
}

#content a.gopher.type-s::before {
  content: '\1F3A7';
}

#content a.gopher.type-9::before {
  content: '\1F4BE';
}

#content a.gopher.type-W::before {
  content: '\1F30E';
}

#content a:focus::before, #content a:hover::before,
#reading-list-display a:focus::before, #reading-list-display a:hover::before {
  color: limegreen;
  margin-right: 1em;
}

#content pre {
  font-family: monospace;
}

#content pre.gopher {
  margin: 0;
}

#content h1, #content h2, #content h3 {
  font-family: serif;
}

#content h1.error-header {
  color: red;
}

#content p {
  font-family: sans-serif;
  color: silver;
}

#content blockquote {
  border-left: 4px solid cyan;
}

#content ul li {
  line-height: 1.5em;
}

#content img {
  max-width: 100%;
  max-height: 100%;
}

#content label {
  display: block;
  color: cyan;
  font-size: 1.5em;
}

#content input#QueryResponse {
  width: 100%;
  padding-left: 10px;
  background-color: rgb(50,50,50);
  margin: 1.2em 0;
  display: block;
  color: silver;
  border: 1px solid whitesmoke;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1.5em;
}

#content input#QueryResponse:focus {
  border-color: goldenrod;
}

#content input[type=submit] {
  display: inline-block;
  float: right;
  border-radius: 5px;
  background-color: rgb(50,50,50);
  color: silver;
  border: 2px solid whitesmoke;
  padding: 0.25em 2em;
  font-size: 1.5em;
  transition: 0.2s;
  cursor: pointer;
}

#content input[type=submit]:hover, #content input[type="submit"]:focus {
  background-color: goldenrod;
  color: rgb(50,50,50);
  text-decoration: underline;
}

#ui-url-display {
  position: fixed;
  bottom: 0;
  left: 0;
  opacity: 0;
  color: white;
  background-color: #2E2E2E;
  font-size: 0.9em;
  transition: 0.2s;
  border-radius: 0 5px 0 0;
}

#ui-url-display.active {
  opacity: 0.9;
  padding: 2px 5px;
  border-top: 1px dotted gray;
  border-right: 1px dotted gray;
}

details {
  margin: 2em auto;
}
