@font-face {
  font-family: "FONT2";
  src: url("/data/fonts/AlteHaasGroteskRegular.ttf");
}

* {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#fram {
  width: 100vw;
  height: 100vh;
  z-index: 1;
  border: none;
  position: relative;
}

body {
  top: 50%;
  font-family: "FONT2", sans-serif;
  background: url("/data/images/loading.gif") no-repeat;
  transition: 0.5s;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-spot {
  display: flex;
  width: 100vw;
  height: 2.5vh;
  border-radius: 5px;
  padding: 10px;
  position: fixed;
  backdrop-filter: blur(3px);
  top: 4vh;
  z-index: 10000;
  left: 50%;
  background: rgba(58, 58, 58, 0.353);
  text-align: center;
  align-content: space-evenly;
  align-items: center;
  transform: translate(-50%, -4vh);
  box-shadow: 0 0 20px #3a3a3a78;
}

.dropdown {
  position: absolute;
  display: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 10000;
  top: 100%;
  left: 0;
}

.dropdown-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.top-spot-enclosure {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
}

.buttin {
  height: 26px;
  cursor: pointer;
  justify-content: space-evenly;
  transition: 0.3s;
  padding: 5px;
}

.buttin img {
  width: 26px;
  display: flex;
  height: auto;
  transition: 1s;
  margin-left: 0.25vw;
  align-items: center;
  justify-content: center;
}

.buttin #svgg {
  filter: invert(100%) sepia(4%) saturate(100%) hue-rotate(293deg)
    brightness(107%) contrast(104%);
}

.buttin p {
  vertical-align: top;
  display: inline-flex;
  will-change: auto;
  margin: 0;
  margin-right: 1px;
}

.slashapp {
  align-items: center;
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}

.slashapp_ {
  font-family: "FONT2", sans-serif;
  font-size: 16px;
  border: none;
  background-color: #000;
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  width: 60vw;
  height: 24px;
  opacity: 0.2;
  text-align: center;
  z-index: 10001;
  position: relative;
}

.slashapp_:focus {
  outline: none;
}

#customCloakinput {
  display: none;
}

#suggestions-box {
  position: absolute;
  top: 40px; /* Adjusted top position */
  width: 500px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: #fff;
  z-index: 10003;
  display: none; /* Initially hidden */
  background-color: #ffffff;
}
/* Light Theme */
body.light-theme {
  background: #f9f9f9;
  color: #333;
}

/* Dark Theme */
body.dark-theme {
  background: linear-gradient(135deg, #0f0f1b, #0d1529);
  color: white;
}

/* Additional Themes */
body.red-theme {
  background: #8a1e1e;
  color: #f3f4f6;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  z-index: 99999;
  border-bottom: 1px solid #ccc;
  background-color: #ffffff;
}

.suggestion-item:hover {
  background: #f0f0f0;
}

#bookmark-name {
  vertical-align: center;
  font-family: 'FONT2';
  border-radius: 10px;
  height: 50%;
  margin-top: 7px;
  height: 30px;
  text-align: center;
  align-items: center;
  display: none;
  border: none;
}

#add-bookmark {
  margin-top: 7px;
  font-size: 20px;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-right: 10px;
  text-align: center;
  vertical-align: center;
  font-family: 'FONT2';
  border-radius: 10px;
  border: none;
  display: none;
}

#add-bookmark:hover {}

/* Bookmark list styling */
#bookmark-list {
  display: flex;
  list-style-type: none; /* No bullets */
  padding: 0; /* Remove default padding */
  margin: 0; /* Spacing above */
}

#bookmark-list li {
  display: inline-flex;
  justify-content: center;
  color: white;
  align-items: center;
  margin-right: 10px; /* Space between list items */
  padding: 5px 10px; /* Padding inside each bookmark */
  background-color: #1f0030; /* White background for each bookmark */
  border: 1px solid #ddd; /* Border around each bookmark */
  border-radius: 5px; /* Rounded corners for bookmarks */
  cursor: pointer; /* Pointer cursor */
  height: 30px;
}

#bookmark-list li:hover {
  background-color: #f0f0f01f; /* Highlight on hover */
}

/* Search History Button */
#search-history-button {
  display: inline-flex; /* Aligns button inline with other elements */
  justify-content: center;
  align-items: center;
  margin-left: 10px; /* Space from other buttons */
  cursor: pointer; /* Pointer cursor */
  height: 30px;
  padding: 5px;
  background-color: #007bff; /* Blue background */
  color: white; /* White text */
  border: none; /* No border */
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s ease; /* Smooth transition */
  font-family: "FONT2", sans-serif; /* Custom font */
}

#search-history-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* Search History Container */
#search-history-container {
  display: none; /* Initially hidden */
  position: fixed;
  top: 10vh; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9); /* Light background for contrast */
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 10000; /* Ensure it's above other elements */
  max-width: 300px; /* Limit width for better appearance */
}

#search-history-list {
  list-style-type: none; /* No bullets */
  padding: 0; /* Remove default padding */
  margin: 0; /* No margin */
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
