/* Google 2007-2008 Search Results Styling */

/* Base Google styling */
body, td, a, p, .h {
    font-family: arial, sans-serif;
  }

/* Work search results - Google 2007-2008 style */
.work-result {
  margin: 8px 0;
  padding: 8px 0;
  max-width: 800px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-direction: row-reverse; /* This moves thumbnail to the right */
}

.work-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.work-thumbnail-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.work-thumbnail-placeholder {
  width: 80px;
  height: 80px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
  text-align: center;
}

.work-content {
  flex: 1;
  min-width: 0; /* Allow text to wrap properly */
}

.work-title {
  color: #1a0dab !important; /* Google blue */
  font-size: 18px;
  font-weight: normal;
  text-decoration: none;
  line-height: 1.2;
  display: block;
  margin-bottom: 2px;
}

.work-title:hover {
  text-decoration: underline;
}

.work-title:visited {
  color: #660099 !important; /* Google purple for visited */
}

.work-url {
  color: #006621; /* Google green */
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.work-description {
  color: #545454; /* Google gray */
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.work-meta {
  color: #666;
  font-size: 12px;
  line-height: 1.3;
}

.work-score {
  color: #888;
  font-size: 11px;
  font-style: italic;
}

/* Work page styling */
.work-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: arial, sans-serif;
}

.work-page header nav {
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.work-page header nav a {
  color: #1a0dab;
  text-decoration: none;
  margin-right: 20px;
}

.work-page header nav a:hover {
  text-decoration: underline;
}

.work-content h1 {
  color: #333;
  font-size: 32px;
  margin-bottom: 10px;
}

.work-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.work-meta span {
  margin-right: 15px;
}

.work-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.work-images {
  margin: 30px 0;
}

.work-images img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border: 1px solid #ddd;
}

.work-text-content {
  line-height: 1.6;
  margin: 30px 0;
}

.work-text-content h2 {
  color: #333;
  font-size: 24px;
  margin: 30px 0 15px 0;
}

.work-tags {
  margin-top: 30px;
}

.work-tags .tag {
  background-color: #f0f0f0;
  color: #666;
  padding: 4px 8px;
  margin: 2px 4px 2px 0;
  font-size: 12px;
  border-radius: 3px;
  display: inline-block;
}
  
  input {
    font-family: inherit;
    height: 20px;
  }
  

  
  
  html, body {
    background-color: #FFF;
    margin: 0;
    padding: 0;
  }
  
  canvas {
    display: block;
  }
  
  .wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
  }

  #homeScreen {
    z-index: 10; /* Home screen should be above background but below nav */
  }

  #imageSearchScreen {
    z-index: 5; /* Results screen should be below home screen initially */
  }

  #searchItemsWrapper {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 100vw;
    /* height: 100vh; */
  }
  /* #homeScreen {} */
  
  #homeScreenNav {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      padding: 5px;
      border-bottom: 1px solid black;
      z-index: 1000; /* Ensure navigation is always on top */
      background-color: #fff; /* Add background to ensure visibility */
  }
  
  #title {
    font-family: googleFont-medium;
    font-size: 50pt;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #title img {
    width: 70%;
    padding: 5%;
    padding-top: 0;
    margin-top: -10%;
  }
  
  #homeScreenSearchContainer {
    display: flex;
    flex-direction: column;
    width: 50%;
    z-index: 10;
  }
  
  #btnContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
      /* padding: 10px; */
  }
  
  
  
  #searchBtn, #luckyBtn {
      /* width: 30%; */
      align-self: center;;
      padding: 5px;
      margin: 5px;
    }
  
  #homeScreenInfo {
    margin: 20px;
    margin-top: 50px;
  
    text-align: center;
  }
  
  #imageSearchScreen {
    display: none;
    flex-wrap: wrap;
    flex-direction: row;
    
  }

  .imageSource {
    color: green;
  }
  
  /* 
  .resultDiv img {
    width: 100 !important;
    height: 200;
  } */
  
  /* Additional CSS for navigation */
  .navOption {
    padding: 0 8px;
    text-decoration: none;
    color: #0000cc;
  }
  
  .selectedNavOption {
    color: #000;
    font-family: gotham-medium;
  }
  
  .navOption:hover {
    text-decoration: underline;
  }
  
  .result-item {
    /* background-color: #f9f9f9; */
    /* border: 1px #0000cc solid; */
    /* border-radius: 4px; */
    text-align: center;
    object-fit: contain;
    display: inline-block;
    padding: 0;
    width: 10%;
  }
  
  .result-item img {
    object-fit:contain;
      padding: 0px;
    margin: 0px;
  
  }
  
  

/* body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
  } */
  
  /* #searchContainer {
    margin: 10px 0 20px 10px;
  } */
  
  /* #searchInput {
    width: 400px;
    height: 22px;
    border: 1px solid #999;
    padding: 3px;
    font-size: 14px;
  } */
  
  /* #searchBtn {
    height: 30px;
    margin-left: 5px;
    font-weight: bold;
    background: #f2f2f2;
    border: 1px solid #ccc;
    padding: 0 8px;
  } */
  
  /* Google 2009 image search results styling */
  .imageResult {
    display: inline-block;
    width: 140px;
    height: 170px;
    margin: 8px;
    vertical-align: top;
    overflow: hidden;
    text-align: center;
    position: relative;
  }
  
  .imageResult img {
    /* border: 1px solid #03c; */
    padding: 2px;
    max-width: 120px;
    max-height: 120px;
  }
  
  .imageResult:hover img {
    border-color: #f00;
  }
  
  .imageCaption {
    margin-top: 3px;
    width: 100%;
    font-size: 11px;
    line-height: 1.2;
    color: #333;
    text-align: center;
    overflow: hidden;
    height: 40px;
  }
  
  #imageSearchScreen {
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
  }
  
  #title {
    font-size: 22px;
    margin: 10px;
    color: #2200C1;
  }
  
  .loadingMessage {
    font-size: 14px;
    color: #666;
    margin: 10px;
  }

  /* ------------------------------ SEARCH COMPLETION */
  /* Add these styles to your desktop.css file */

/* Search suggestions styling */
.suggestions-list {
  position: absolute;
  width: 400px;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ddd;
  border-top: none;
  z-index: 999;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.suggestion-item {
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background-color: #f2f2f2;
}

.highlight {
  font-weight: bold;
  color: #0000cc;
}

/* Position the suggestions correctly for both layouts */
#homeScreenSearchContainer {
  position: relative;
}

/* Make sure the suggestions appear below the search input in both layouts */
#suggestionsList {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}