:root {
  --background-color: #16171a;
  --text-color: #fff;
  --border-radius: 5px;
  --border: 1px solid #ccc;
  --padding: 10px;
  --margin: 5px;
  --autocomplete-bg: #e9e9e9;
  --autocomplete-hover-bg: #f9f9f9;
  --tag-bg: #FF4D4D;
  --placeholder-color: #888;
  --post-bg: rgba(255, 77, 77, 0.123);
  --hover-active-bg: #FF4D4D;
  --search-bar-width: 80%;
}

* {
  box-sizing: border-box;
}

.aperture {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding);
  background: transparent;
}

.search-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: var(--search-bar-width);
  border-radius: var(--border-radius);
  padding: var(--padding);
}

.autocomplete-suggestion {
  background-color: var(--autocomplete-bg);
  border-bottom: var(--border);
  padding: var(--padding);
  cursor: pointer;
}
.suggestion {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.5;
  pointer-events: none;
  color: black; /* Adjust the color as needed */
}
.Meta {
  color: black;
  cursor: pointer;
  font-weight: bold;
  background-color: #ff6f6f;
}

.Sort {
  color: black;
  cursor: pointer;
  font-weight: bold;
  background-color: lime;
}

.Credits {
  color: black;
  cursor: pointer;
  font-weight: bold;
  background-color: rgb(255, 122, 255);
}

.Title {
  color: black;
  cursor: pointer;
  font-weight: bold;
  background-color: #FF4D4D;
}

.Profile {
  color: black;
  cursor: pointer;
  font-weight: bold;
  background-color: rgb(255, 186, 122);
}

.Mekazoa {
  color: black;
  cursor: pointer;
  font-weight: bold;
  background-color: rgb(122, 226, 255);
}

.undefined {
  color: black;
  font-weight: bold;
  cursor: pointer;
  background-color: rgb(255, 255, 255);
}

.metahash-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px; /* This creates space between items */
  margin: 10px; /* This adds margin around the container */
  padding: 5px; /* This adds padding inside the container */
  background-color: transparent; /* This ensures the background is transparent */
}


.autocomplete-suggestion:hover {
  background-color: var(--autocomplete-hover-bg);
}

.search-container {
  position: relative;
  /* ... other styles ... */
}

.search-bar {
  /* ... existing styles ... */
  position: relative;
  z-index: 2; /* above the overlay */
}

.autocomplete-suggestion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.5;
  color: black; /* or any color you want */
  z-index: 1; /* below the text the user is typing */
}


.search-container {
  position: relative; /* required for absolute positioning within */
}

.search-bar {
  position: relative; /* for z-index to work */
  z-index: 1001; /* above the suggestions */
  height: 40px;
  font-size: 16px;
  background: white;
}


.toggle-button {
  padding: var(--padding);
  height: 40px;
  border: var(--border);
  border-radius: var(--border-radius);
  font-size: 16px;
  background: transparent;
  color: var(--text-color);
}

.search-bar:focus {
  outline: none;
}

.metahash {
  display: inline-block;
  margin-right: var(--margin);
  border-radius: var(--border-radius);
  padding: 3px var(--padding);
}

[contenteditable="true"]:empty:before {
  content: attr(placeholder);
  display: block;
  color: var(--placeholder-color);
}

.gallery-feed {
  display: grid;
  justify-content: center;
  align-items: center;
  background-color: var(--background-color);
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--margin);
  padding: var(--padding);
  overflow-x: hidden;
  margin: 0 auto;
  margin-left: 25px;
  border-radius: 5px;
  margin-right: 25px;
}

.post {
  margin: 10px auto;
  background: var(--post-bg);
  border-radius: var(--border-radius);
  width: 150px;
  height: 150px;
  padding: 5px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer; /* Add this line to set cursor to pointer */
}

.post:hover {
  transform: scale(1.1); /* Example: Increase size on hover */
  background-color: lightgray; /* Example: Change background color on hover */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Example: Add a shadow on hover */
  /* Add any other styles you want for the hover effect here */
}



.metahash:hover,
.metahash.active {
  background: var(--hover-active-bg);
}

.gallery-feed.column-mode .post {
  width: 100%;
  padding-top: 100%;
  position: relative;
  margin-bottom: var(--margin);
}

.gallery-feed.column-mode {
  grid-template-columns: 1fr;
}


.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #24262ec3;
  margin: 15% auto;
  padding: 20px;
  border-radius: 25px;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal img {
  max-width: 100%;
  height: auto;
}

.modal-meta {
  margin-top: 20px;
}

/* CSS Styles */
.credit-div {
  text-align: center;
  margin-top: 10px;
}

.post-img-container {
  padding: 10px 0; /* Adds padding above and below the image */
}

.post-img-container img {
  justify-content: center;
  display: flex;
  text-align: left;
  margin: 0 auto;
  border-radius: 25px;
}

.modal-content .post-title {
  margin-top: 10px;
  text-align: center;
  justify-content: center;
}

.modal-content .metahash-container {
  padding-top: 10px; /* Adjust padding as necessary */
}

.img-container-for-post {
  display: block;
  flex-direction: column;
  width: 100%;
}

.credit-div {
  justify-content: left;
  text-align: left;
}

.credits-and-likes {
  display: flex;
  flex-direction: row;
}

.likes-container {
  flex-direction: flex-end;
}


.credits-and-likes .like-button {
  background-color: transparent;
}

.credits-and-likes .like-counter {
  color: white;
  font-size: 1.0rem;
}