/* ---------------------------
   BASIC RESET & FONTS
--------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html, body {
  height: 100%;
  background: #ecfdfb; /* light cream color */
  color: #333;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

/* ---------------------------
   HEADER
--------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 2px solid #ccc;
}
.title-group h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
.title-group h1 span {
  color: #6ebdd1; /* gold accent */
}
.title-group p {
  font-size: 1.2rem;
  color: #444;
}
.nav-buttons {
  display: flex;
  gap: 0.5rem;
}
.nav-buttons button {
  background: linear-gradient(135deg, #f3f3f3, #eaeaea);
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.nav-buttons button:hover {
  background: linear-gradient(135deg, #eaeaea, #d6d6d6);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* ---------------------------
   MAIN CONTENT
--------------------------- */
.game-area {
  margin: 2rem 0;
}
.inline-info {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: none; /* Hide by default, toggled by JS */
}
#answerInfo {
  text-align: center;
  margin: 2rem 0;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 400px;
  margin-bottom: 1rem;
  margin: 0 auto;
  opacity: 0.8;
}
.search-bar input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-bar button {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background: #f3f3f3;
  border-radius: 4px;
  cursor: pointer;
}

/* Autocomplete suggestions */
.autocomplete-list {
  position: relative;
  width: 100%;
}
.autocomplete-list .suggestions {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 4px;
  z-index: 10;
}
.autocomplete-list .suggestions div {
  padding: 0.5rem;
  cursor: pointer;
}
.autocomplete-list .suggestions div:hover {
  background: #d6e5f0;
}

/* Guess Table */
.guess-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.guess-table thead th {
  text-align: center;
  background: #d6e8f0;
  padding: 0.5rem;
  font-weight: 600;
}
.guess-table tbody td {
  text-align: center;
  border-bottom: 1px solid #ccc;
  padding: 0.5rem;
  vertical-align: middle;
}
.exact-match {
  background: #b7e4c7; /* green-ish */
}
.close-match {
  background: #ffe49c; /* yellow-ish */
}
.arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: middle;
}

/* .actions row now includes the newGameBtn inline */
.actions {
  margin: 1rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap; /* if the row gets too tight, they'll wrap */
}
.actions button {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background: linear-gradient(135deg, #f3f3f3, #eaeaea);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.actions button:hover {
  background: linear-gradient(135deg, #eaeaea, #d6d6d6);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.actions #guessCounter {
  margin-left: auto;
  font-weight: 500;
}

/* Silhouette container */
#silhouetteContainer {
  text-align: center;
  margin-bottom: 1rem;
}
#silhouetteImg {
  max-width: 200px;
}

/* Clipboard icon */
.clipboard-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

/* Share Results Button */
#shareResultsBtn {
  background: linear-gradient(135deg, #f3f3f3, #eaeaea);
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#shareResultsBtn:hover {
  background: linear-gradient(135deg, #eaeaea, #d6d6d6);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* ---------------------------
   FOOTER
--------------------------- */
footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links a {
  margin-right: 1rem;
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover {
  text-decoration: underline;
}
footer p {
  font-size: 0.9rem;
  color: #666;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0.5rem;
  }
  .title-group h1 {
    font-size: 2rem;
  }
  .title-group p {
    font-size: 1rem;
  }
  .search-bar {
    flex-direction: column;
    gap: 0.25rem;
  }
  .actions {
    flex-direction: column;
    gap: 0.25rem;
  }
  .guess-table {
    font-size: 0.8rem;
  }
  .guess-table thead th, .guess-table tbody td {
    padding: 0.25rem;
  }
}

input {
  font-size: 16px;
}

@media (max-width: 768px) {
  .search-bar {
    width: 100%;
  }
}
