* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.pageContainer.light {
  background-color: #faf0f5;
  min-height: 103vh;
  display: flex; /* Enable flexbox for layout */
  flex-direction: column; /* Stack children vertically */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pageContainer.dark {
  background-color: #822050;
  min-height: 103vh;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pageContainer.dark .navbar {
  background-color: #4c0e2e;
  box-shadow: 2px 2px 8px rgba(64, 37, 48, 0.1);
}

.navbar {
  background-color: #e6c0d3;
  box-shadow: 2px 2px 8px rgba(210, 38, 110, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px;
  margin-top: -10px;
}

.logo {
  margin-left: 100px;
  height: 70px;
  margin-top: -10px;
}

.logoLightMode {
  margin-left: 100px;
  height: 70px;
  margin-top: -10px;
}

.searchContainer {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 400px;
}

.SearchBar {
  width: 300%;
  max-width: 700px;
  max-height: 35px;
  padding: 12px 16px 12px 40px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.SearchBar:focus {
  border-color: #007bff;
  box-shadow: 2px 2px 12px rgba(0, 123, 255, 0.3);
}

.SearchBar::placeholder {
  color: #aaa;
  font-style: italic;
}

.searchIcon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: #ef61ad;
}

.spinnerIcon {
  margin-left: 10px;
  font-size: 16px;
  color: #f93ea2;
}

.darkModeIcon {
  height: 50px;
  cursor: pointer;
  margin-left: 830px;
}

.lightModeIcon {
  height: 50px;
  cursor: pointer;
  margin-left: 830px;
}

.resultsList {
  margin-top: 20px;
  margin-left: 200px;
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 800px;
  padding-bottom: 200px;
}

.resultItem {
  background-color: #faf7f8;
  padding: 16px;
  border-bottom: 1px solid #ccc;
  border-radius: 20px;
  margin-bottom: 10px;
}

.pageContainer.dark .resultsList .resultItem {
  border-radius: 20px;
  background-color: rgba(188, 185, 186, 0.7);
  color: #fff;
}

.resultUrl {
  font-size: 12px;
  color: #0066cc;
  text-decoration: none;
  display: block;
}

.resultUrl:hover {
  text-decoration: underline;
}

.resultTitle {
  font-size: 20px;
  margin: 5px 0;
  color: #1a0dab;
  cursor: pointer;
}

.resultSnippet {
  font-size: 14px;
  color: #545454;
  line-height: 1.4;
}

.pageContainer.dark .resultsList .resultItem .resultSnippet {
  color: #000; /* Consider #fff or lighter for readability on dark bg */
}

.data {
  margin-left: 200px;
  font-size: 14px;
  color: #666;
  font-style: italic;
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-block;
}

.pageContainer.dark .data {
  color: #ccc;
}

.timeSearching {
  font-weight: 500;
  margin-top: 20px;
}

.Tokens {
  margin-left: 200px;
  max-width: 800px;
  padding: 10px;
}

.listTokens {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token {
  background-color: #fff0f5;
  color: #ff66b3;
  padding: 5px 12px;
  border: 2px dashed #ff99cc;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 1px 1px 4px rgba(255, 102, 179, 0.2);
  transition: all 0.2s ease;
}

.token:hover {
  background-color: #ffe6f0;
  transform: scale(1.05);
}

.pageContainer.dark .token {
  background-color: #5a2e42;
  color: #ff99cc;
  border: 2px dashed #ff66b3;
}

.pageContainer.dark .token:hover {
  background-color: #6b3750;
}

.pageContainer.dark .footer:hover {
  background-color: #6b3750;
}

/* Footer adjustments */
.footer.items {
  margin-left: -3px;
  margin-bottom: -15px;
  min-width: 1512px;
  min-height: 50px;
  position: relative; /* Enable z-index, stay in flow */
  z-index: 1;
  flex-shrink: 0; /* Prevent shrinking in flex layout */
}
suggestions .footer.no_items {
  margin-left: -3px;
  margin-bottom: -25px;
  min-width: 1512px;
  min-height: 50px;
  position: absolute;
  bottom: 0;
  z-index: 1;
}
.footerdark.items {
  background-color: #4c0e2e;
  margin-left: -3px;
  margin-bottom: -25px;
  min-width: 1512px;
  min-height: 50px;
  position: relative; /* Enable z-index, stay in flow */
  z-index: 1;
  flex-shrink: 0; /* Prevent shrinking in flex layout */
}

.footerdark.no_items {
  margin-left: -3px;
  margin-bottom: -25px;
  min-width: 1512px;
  min-height: 50px;
  position: absolute;
  bottom: 0;
  z-index: 1;
}

.pageContainer.dark .footer.items {
  margin-left: -3px;
  margin-bottom: -25px;
  min-width: 1512px;
  min-height: 50px;
  position: relative; /* Consistent with light mode */
  z-index: 1;
  flex-shrink: 0;
}

.pageContainer.dark .footer.no_items {
  margin-left: -3px;
  margin-bottom: -25px;
  min-width: 1512px;
  min-height: 50px;
  position: absolute; /* Consistent with light mode */
  bottom: 0;
  z-index: 1;
}

.resultWithFavicon {
  display: grid;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
}

.firstBlock {
  display: flex;
  align-content: space-between;
  align-items: flex-start;
  margin-bottom: -15px;
}

.firstBlock1 {
  display: inline;
}

.firstBlock2 {
  margin-left: 7px;
  display: inline;
}

.resultFavicon {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  padding: 2px;
  object-fit: cover;
}

.resultContent {
  flex: 1;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  gap: 15px;
}

.pageButton {
  background-color: #fff0f5;
  border: 2px dashed #ff99cc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff66b3;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pageButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pageButton:hover:not(:disabled) {
  background-color: #ffe6f0;
  transform: scale(1.1);
}

.pageInfo {
  font-size: 14px;
  color: #ff66b3;
  font-weight: 500;
}

.pageContainer.dark .pageButton {
  background-color: #5a2e42;
  border: 2px dashed #ff66b3;
  color: #ff99cc;
}

.pageContainer.dark .pageButton:hover:not(:disabled) {
  background-color: #6b3750;
}

.pageContainer.dark .pageInfo {
  color: #ff99cc;
}

.webName {
  font-size: 16px;
  color: #aa708d;
  font-weight: 600;
  margin-bottom: 2px;
  display: inline-block;
  border-radius: 12px;
}

.pageContainer.dark .webName {
  color: #7a0c52;
}

.shapeImage {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 300px;
  height: auto;
  transform: scaleY(-1);
  z-index: 0;
  opacity: 0.5;
  margin-right: -20px;
}

.pageContainer.dark .shapeImage {
  opacity: 0.7;
}

.contentWrapper {
  display: flex;
  justify-content: space-between;
  margin-left: 200px;
  margin-top: 20px;
  gap: 20px;
  max-width: 1200px;
  padding-right: 70px;
  flex: 1;
}

.resultsList {
  flex: 2;
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 700px;
  padding-bottom: 20px;
  margin-top: 0;
  margin-left: 0;
  z-index: 1;
}

.suggestions {
  max-height: 180px;
  flex: 1;
  max-width: 300px;
  padding: 10px;
  background-color: #faf7f8;
  border-radius: 20px;
  box-shadow: 2px 2px 8px rgba(255, 102, 179, 0.2);
  margin-right: 70px;
  z-index: 1;
}

.pageContainer.dark .suggestions {
  background-color: #5a2e42;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.suggestions h4 {
  margin-left: 10px;
  margin-top: 10px;
  font-size: 17px;
  color: #ff66b3;
  margin-bottom: 20px;
  font-weight: 600;
}

.pageContainer.dark .suggestions h4 {
  color: #ff99cc;
}

.suggestionList {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.noSuggestions {
  margin-left: 20px;
  font-style: oblique;
}
.suggestionItem {
  background-color: #ffe6f0;
  color: #ff66b3;
  padding: 6px 12px;
  border: 2px solid #ff99cc;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 1px 1px 4px rgba(255, 102, 179, 0.2);
}

.suggestionItem:hover {
  background-color: #ffd9e6;
  transform: scale(1.03);
}

.pageContainer.dark .suggestionItem {
  background-color: #6b3750;
  color: #ff99cc;
  border: 2px solid #ff66b3;
}

.pageContainer.dark .suggestionItem:hover {
  background-color: #7c4059;
}

.shapeImage2 {
  position: fixed;
  bottom: 0;
  left: 20px;
  width: 300px;
  height: auto;
  z-index: 0;
  opacity: 0.5;
  margin-left: -20px;
}

.pageContainer.dark .shapeImage2 {
  opacity: 0.7;
}

.loadingContainer {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #ff66b3;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
