@font-face {
  font-family: "optician";
  src: url("Optiker-K.woff") format("woff");
}

html {
  height: 100%;
  margin: 0%;
  padding: 0%;
}

body {
  padding: 0px;
  margin: 0px;
  background: black;
  color: whitesmoke;
  font-family: optician;
  height: 100%;
}

a {
  color: whitesmoke;
  text-decoration: none;
  font-size: small;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1em;
  font-style: italic;
}

form {
  width: 100%;
}

input,
input:focus,
input:active {
  width: 100%;
  color: whitesmoke;
  font-family: optician;
  background-color: hsla(0, 0%, 0%, 0.5);
  border: 1px solid rgb(46, 46, 46);
  border-style: solid;
  padding: 3px;
  margin-top: 7px;
  margin-bottom: 7px;
  outline: none;
}

button {
  font-family: optician;
  font-size: small;
  margin-top: 2px;
  margin-bottom: 2px;
  display: inline-block;
}

.sidebar {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 350px;
  z-index: 3;
  height: 100%;
}

#sidebar-left {
  left: 0px;
}

#sidebar-right {
  right: 0px;
}

.panel-auto {
  padding: 10px;
  z-index: 3;
  height: auto;
}

.panel-overflow {
  padding: 10px;
  z-index: 3;
  overflow: auto;
}

.title-active {
  border: 1px;
  border-style: solid;
  border-color: black;
  color: black;
  background-color: whitesmoke;
  margin-top: 10px;
  margin-right: 5px;
  padding: 5px;
}

.ingredient-available {
  border: 0px;
  border-style: solid;
  border-color: black;
  background-color: hsla(0, 0%, 0%, 0.8);
  margin-left: 2px;
}

.ingredient-active {
  color: black;
  border: 1px;
  border-style: solid;
  border-color: black;
}

.recipe-link {
  background-color: hsla(0, 0%, 0%, 0.8);
  padding-left: 5px;
  padding-top: 0px;
  padding-bottom: 3px;
  margin-bottom: 5px;
}

#title-search-panel {
  padding-top: 10px;
  padding-bottom: 10px;
}

#ingredient-search-panel {
  padding-bottom: 10px;
}

#viewport {
  position: fixed;
  display: block;
}

#about-button {
  font-size: x-large;
  bottom: 0px;
  background-color: hsla(0, 0%, 0%, 0.5);
  padding: 10px;
  color: white;
  text-align: right;
  margin: auto 10px 10px 10px;
  margin-top: auto;
  margin-bottom: 10px;
}

#about-overlay {
  font-family: monospace;
  font-size: medium;
  position: absolute;
  display: none;
  margin: auto;
  height: fit-content;
  padding: 15px;
  top: 50%;
  bottom: 50%;
  left: 0;
  right: 0;
  width: 512px;
  z-index: 10;
  background-color: hsla(0, 0%, 0%, 0.8);
}

/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: hsla(0, 0%, 0%, 0.1);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: hsla(0, 0%, 50%, 0.5);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
