

@font-face {
  font-family: "Ubuntu";
  src: url(./Ubuntu/Ubuntu-Regular.ttf) format("truetype");
}

body {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  font-family:  Dejavu Sans, Ubuntu, Sans-Serif;
}

.title {
  font-weight: bold;
  line-height: 140%;
  font-family:  Dejavu Sans, Ubuntu, sans-serif;
  font-size: 16px;
}

.snippet {
  font-family:  Dejavu Sans, Ubuntu, sans-serif;
  color: #5a5353;
  font-size: 14px;
  line-height: 140%;
  background-color: #ffffff;
  text-decoration: none;
}

.url {
  font-family:  Dejavu Sans, Ubuntu,sans-serif;
  font-size: 12px;
  line-height: 140%;
  color: #118855;
  text-decoration: none;
}

.newstitle {
	font-weight: bold;
	line-height: 140%;
	font-family:  Dejavu Sans, Ubuntu, Verdana,Arial, Helvetica, sans-serif;
	font-size: 14px;;
	text-decoration: none;
}

.newssnippet {
	font-family:  Dejavu Sans, Ubuntu, Verdana,Arial, Helvetica, sans-serif;
	color: #494343;
	font-size: 13px;
	line-height: 130%;
	text-decoration: none;
}

.pagination {
  display: inline-block;
}

.pagination a {
  color: blue;
  float: left;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 10px;
  text-decoration: none;
  border: 1px solid #ddd;
}

pagination a.active {
  background-color: #4caf50;
  color: white;
  border: 1px solid #4caf50;
}

.pagination a:hover:not(.active) {
  background-color: #8de2c8;
}

.pagination a:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.pagination a:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

 a.current {
  background: #7bdbbf;
  color: #fff;
}

input[type="text"]:focus {
  width: 90%;
}

input[type="text"] {
  width: 90%;
  box-sizing: border-box;
  /* Prevent mobile input shrinking */
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: white;
  /* background-image: url("searchicon.png"); */
  background-position: 10px 10px;
  background-repeat: no-repeat;
  padding: 12px 20px 12px 40px;
}

.autocomplete-suggestions {
  border: 1px solid #999;
  background: #fff;
  font-family: Dejavu Sans, Ubuntu, sans-serif;
  font-size: 16px;
  cursor: default;
  overflow: auto;
}

.autocomplete-suggestion {
  padding: 2px 5px;
  white-space: nowrap;
  overflow: hidden;
}

.autocomplete-selected {
  background: #f2f2f2;
}

.autocomplete-suggestions strong {
  font-weight: bold;
  color: #999;
}

hr {
  border: none;
  background-color: #b4cbdf;
  color: #b4cbdf;
  height: 1px;
  padding: 0px;
  margin: 0px;
}

.footer {
	font-family:  Dejavu Sans, Ubuntu, Verdana,Arial, Helvetica, sans-serif;
	color: #494343;
	font-size: 13px;
	line-height: 130%;
	text-decoration: none;
}

/*
.linktitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 14px;
  color: blue;
}
 a.linktitle:link {
  color: #1640c9;
}
 a.linktitle:hover {
  color: #455aa1;
}
 a.linktitle:visited {
  color: #bd335a;
}
.news-linktitle {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 11px;
  color: blue;
}
.newstitle {
  font-family: Ubuntu, Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: blue;
  text-decoration: none;
}
.more {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: blue;
  text-decoration: none;
}
.adtext {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-decoration: none;
}
.footertxt {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-decoration: none;
}

 a:link {
  color: #0033cc;
}
 a:visited {
  color: #800080;
}
 a:hover {
  color: blue;
}
ul {
  list-style-image: url(ul.gif);
}
h3 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #000000;
}
h4 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #000000;
}

*/

#loading {
    position: absolute; width: 100%; height: 100%; background: url('jambot.png') no-repeat center center;
}

.free{
font: 11px 'Verdana','Lucida Sans Unicode','Lucida Grande',sans-serif;
background-color:#fff;
margin: 10px;
}

.wp-box {
background: #FFF;
border: 1px solid #E1E1E1;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
position: relative;
  width: 90%;
}



[class^=sprite-], [class*=" sprite-"] {
display: block;
width: 16px;
height: 16px;
float: left;
background: url(jads-soon.png);
margin: 0;
}

.sprite-elliot {
width: 100px;
height: 100px;
float: left;
background-position: -100px -100px;
}

.author-box .inner {
margin-left: 100px;
height: 9
  0px;
  padding: 15px;
border-top: 0 none;
}

.wp-box p {
font-family: Dejavu Sans, Ubuntu, sans-serif;
font-size: 14px;
line-height: 1.4em;
margin: 0;
}

.wp-box a {
color: #08C;
text-decoration: none;
}

/* ===== home.css (merged below) ===== */
/* Modern JamBot Autocomplete */
.ui-autocomplete {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    font-family: 'Helvetica', sans-serif !important;
    font-size: 18px !important;
    z-index: 9999; /* Ensure it appears above other elements */
}

.ui-autocomplete .ui-menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item-wrapper {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover state */
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item:hover .ui-menu-item-wrapper {
    background: #f8f9fa;
    color: #1a0dab;
}

/* Selected/focused state - MORE SPECIFIC SELECTORS with higher specificity */
.ui-widget.ui-autocomplete .ui-menu-item-wrapper.ui-state-focus,
.ui-widget.ui-autocomplete .ui-menu-item.ui-state-focus .ui-menu-item-wrapper,
.ui-widget.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-widget.ui-autocomplete .ui-menu-item.ui-state-active .ui-menu-item-wrapper,
.ui-widget.ui-autocomplete .ui-state-focus,
.ui-widget-content.ui-autocomplete .ui-state-focus {
    background: #7BDBBF !important; /* Your JamBot green */
    color: white !important;
    border-color: #7BDBBF !important;
    font-weight: bold !important;
    font-family: 'Helvetica', sans-serif !important;
}

/* Ensure text remains visible in selected state - Higher specificity */
.ui-widget.ui-autocomplete .ui-state-focus,
.ui-widget.ui-autocomplete .ui-state-focus .ui-menu-item-wrapper,
.ui-widget-content.ui-autocomplete .ui-state-focus,
.ui-widget-content.ui-autocomplete .ui-state-focus .ui-menu-item-wrapper {
    background: #7BDBBF !important;
    color: white !important;
    font-weight: bold !important;
    border: none !important;
}

/* Additional fallback for different jQuery UI versions - Higher specificity */
.ui-widget.ui-autocomplete li.ui-state-focus,
.ui-widget.ui-autocomplete li.ui-state-active,
.ui-widget-content.ui-autocomplete li.ui-state-focus,
.ui-widget-content.ui-autocomplete li.ui-state-active {
    background: #7BDBBF !important;
    color: white !important;
    border: none !important;
    font-weight: bold !important;
}

/* Extra specificity for stubborn jQuery UI themes */
.ui-autocomplete.ui-widget-content .ui-state-focus,
.ui-autocomplete.ui-widget .ui-state-focus {
    background-color: #7BDBBF !important;
    background-image: none !important;
    color: white !important;
    font-weight: bold !important;
    text-shadow: none !important;
}

/* Modern CSS - same as previous artifact */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    background: url("bckgrnd.gif") repeat;
    background-color: #f5f5f5;
}

.hero {
    background-image: url("us21.jpg");
    background-color: #cccccc;
    height: 50px;
    background-position: left top;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.search-header {
    background: url("bckgrnd.gif") repeat;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo-container {
    flex-shrink: 0;
}

.logo-container img {
    width: 60px;
    height: auto;
}

.search-form {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 600px;
}

.search-input {
    background: none repeat scroll 0 0 #fff;
    border-style: solid;
    border-width: 1px;
    color: #000;
    /*float: left;*/
    display: inline-block;
    font: 18px 'Helvetica','Lucida Sans Unicode','Lucida Grande',sans-serif;
    height: 40px;
    margin-left: 50px;
    margin-right: 0px;
    margin-top: 0px;
    padding: 5px;
    transition: background 0.3s ease-in-out 0s;
    width: 60%;
    border-radius: 4px 0 0 4px; /* Added border radius for better appearance */
}

.search-input:focus {
    outline: none;
    border-color: #7BDBBF;
    box-shadow: 0 0 0 2px rgba(123, 219, 191, 0.2);
}

.search-button {
    background: url("search.png") no-repeat center center #7BDBBF;
    cursor: pointer;
    height: 40px;
    width: 40px;
    border: 1px solid #ccc;
    border-left: none;
    text-indent: -9999px;
    transition: background-color 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.search-button:hover {
    background-color: #924d8c;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 20px;
}

.results-section {
    padding: 0 20px;
}

.sidebar {
    background: url("bckgrnd.gif") repeat;
    padding: 20px;
    border-radius: 8px;
}

.wiki-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.quote-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.quote-section img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.quote-text {
    font-size: 12px;
    font-style: italic;
    color: #666;
    line-height: 1.4;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .search-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 10px;
        padding: 15px;
    }

    .search-form {
        width: 100%;
        max-width: none;
    }
}

/* jQuery UI autocomplete styling */
.ui-widget {
    font-family: 'Helvetica', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    font-size: 18px;
}

/* Remove duplicate autocomplete styling - consolidated above */

/* Overrides for jambot.css input[type="text"] specificity */
input[type="text"].search-input {
    width: 60%;
    border: 1px solid #ccc;
    padding: 5px;
}

input[type="text"].search-input:focus {
    width: 60%;
}

.wiki-thumbnail {
  max-width: 150px;
  height: auto;
}

@media (max-width: 768px) {
  .wiki-thumbnail {
      max-width: 150px;
  }
}

/* Stock Quote Styling - Matching Wiki Card */
.stock-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  border: 1px solid #e1e8ed;
}

.stock-quote h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #1a1a1a;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid #007cba;
  padding-bottom: 8px;
}

.stock-price {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-family: 'Georgia', serif;
}

.stock-change {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  border-radius: 6px;
  margin: 0 auto;
  max-width: 200px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stock-change.positive {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #b8d4c0;
}

.stock-change.negative {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #e8b3b8;
}

.stock-info h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #1a1a1a;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid #007cba;
  padding-bottom: 8px;
}

.stock-info p {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

.stock-info p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: #666;
}

/* Search Results Layout Fixes */
.results-section {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.results-section p {
  margin: 0 0 10px 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.results-section br {
  display: block;
  content: "";
  margin: 5px 0;
}

/* Ensure proper text flow and word wrapping */
.results-section * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Handle any remaining problematic tags */
.results-section nb,
.results-section n {
  display: inline;
  white-space: normal;
  word-wrap: break-word;
}

/* Handle extremely long strings (API keys, hashes, etc.) */
.break-long-string {
  word-break: break-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  display: inline-block;
  font-family: monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  border: 1px solid #ddd;
}

/* Ensure all text can wrap properly */
.results-section * {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
