:root{
  --outline:#ccc;
  --bg:#f0f0f0;
  --ad-bg:black;     /* darker gray for sidebars */
  --ad-border:#bfbfbf; /* subtle separator */
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Open Sans', Verdana, sans-serif;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.87);
  display: flex;
  flex-direction: row;
  background: var(--bg);
}

/* ===== Side Ad Banners ===== */

.banner-left, .banner-right {
  width: 15%;
  background-color: var(--ad-bg);
  padding: 2%;
  box-sizing: border-box;
  height: 100vh;
  position: fixed;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Divider lines to visually separate content */
.banner-left {
  left: 0;
  border-right: 1px solid var(--ad-border);
}

.banner-right {
  right: 0;
  border-left: 1px solid var(--ad-border);
}

.banner-left img,
.banner-right img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== Main Content ===== */

.content-container {
  margin: 0 15%;
  width: 70%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ===== Larger Rectangular Search ===== */

.search-bar-container {
  background-color: #fafafa;
  padding: 22px 16px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: center;
}

.search-container{
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  width: min(920px, 96%);
}

.search-container input[type="text"].autocomplete-input{
  flex: 1;
  padding: 16px 20px;
  font-size: 18px;
  border: 1px solid var(--outline);
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  background: #fff;
  color: #111;
}

.search-container input[type="text"].autocomplete-input:focus{
  border-color: #888;
}

.search-container .autocomplete-submit{
  border: 1px solid var(--outline);
  border-left: none;
  background: #eee;
  padding: 0 22px;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.05s ease;
}

.search-container .autocomplete-submit img{
  height: 22px;
  width: 22px;
  object-fit: contain;
  pointer-events: none;
}

.search-container .autocomplete-submit:hover{
  background: #ddd;
}

.search-container .autocomplete-submit:active{
  background: #ccc;
  transform: translateY(1px);
}

.search-instructions{
  text-align: center;
  font-weight: bold;
  margin-top: 12px;
  font-size: 16px;
  color: #000;
}

.search-error{
  text-align: center;
  margin-top: 6px;
  font-size: 15px;
  color: #b00020;
  min-height: 22px;
}

main {
  flex: 1;
  padding: 2%;
  overflow-y: scroll;
  min-height: 0;
}

.numbers {
  font-weight: bold;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.9;
}

.entry { display: inline; }
.entry.highlight { color: red; font-weight: bold; }
