body {
  font-family: sans-serif;
  background-color: #090b0f; /* Dark background */
  color: #fff; /* Light text */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  padding: 0;
  padding-top: 60px;
}
.scroll-arrow {
  width: 40px !important;
  height: 40px !important;
  font-size: 24px;
  right: 20px;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50% !important;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.scroll-arrow:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.scroll-arrow:active {
  transform: scale(0.95);
}

#scrollToTop {
  bottom: 70px;
}

#scrollToBottom {
  bottom: 20px;
}

#scrollToBottom {
  bottom: 20px;
}
media-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  margin-left: 8px;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.audio-tag {
  background-color: #4a90e2;
}

.video-tag {
  background-color: #50c878;
}
video {
  max-width: 52%;
  height: auto;
}

.image-tag {
  background-color: #ffa500;
}

.search-result-item strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

audio:hover,
audio:focus,
audio:active {
  -webkit-box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.4);
  box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.4);
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  transform: scale(1.05);
}

audio {
  margin-top: 10px;
  -webkit-transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  -o-transition: all 0.5s linear;
  transition: all 0.5s linear;
  -moz-border-radius: 7px 7px 7px 7px;
  -webkit-border-radius: 7px 7px 7px 7px;
  border-radius: 7px 7px 7px 7px;
}

.controls {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.dashboard {
  background-color: #0e0e0f;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin-top: 60px; /* Adjust for fixed top bar */
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard h3 {
  margin-bottom: 10px;
  justify-content: center;
  text-align: center;
  color: crimson;
  font-size: 24px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

button {
  background-color: #444; /* Button background */
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #555; /* Slightly darker on hover */
}

/* ... (previous styles) ... */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1000;
  background-color: #202020;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.dashboard {
  /* ... (other styles) ... */
  margin-top: 50px;
  width: 100%;
}

.mention {
  display: inline-block;
  background-color: #26436e;
  border-radius: 4px;
  padding: 2px 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.mention .at {
  color: #657786;
}
.mention .username {
  color: #1da1f2;
}

.changelog {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #202020;
  border: 3px solid #000000;
  border-radius: 8px;
}
.changelog-editor,
.image-url-editor {
  width: 100%;
  box-sizing: border-box;
}
/* Container for edit fields */
.edit-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Labels for edit fields */
.edit-container label {
  font-weight: bold;
  margin-bottom: 5px;
}

.profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: 35px;
  transform: translateY(-50%);
  border: 2px solid #000000;
}

/* Title styling */
.changelog-title {
  font-size: 1.5em;
  color: #bbbbbb;
  margin-bottom: 10px;
}

/* Markdown content styling */
.changelog-sections {
  line-height: 1.6;
}

.changelog-sections h1,
.changelog-sections h2 {
  margin-top: 1.5em;
  font-weight: bold;
  color: #c78446;
}

.changelog-sections ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.changelog-sections ul li {
  list-style-type: disc;
}

.bullet {
  font-weight: bold;
  margin-right: 5px;
}

.sub-bullet {
  margin-left: 10px;
  font-weight: normal;
}

/* Error message styling */
.error {
  color: red;
  font-size: 1.2em;
}
.search-wrapper,
#scrollToTop,
#scrollToBottom {
  display: none;
}

.search-wrapper {
  position: relative;
  flex-grow: 0;
  transition: all 0.3s ease;
  width: 50%; /* Set a smaller initial width */
  max-width: 50%;
}

#search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

#searchInput {
  width: 100%;
  padding: 8px 40px 8px 12px;
  border: 1px solid var(--text-color);
  border-radius: 4px;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}
.search-expanded .search-wrapper {
  flex-grow: 1;
  width: 100%;
}
.search-expanded #searchInput {
  width: 100%;
}
#searchInput:focus {
  outline: none;
  border-color: var(--blue-button-bg);
  box-shadow: 0 0 0 2px rgba(0, 89, 148, 0.2);
}

#searchButton {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
#searchButton svg {
  width: 20px;
  height: 20px;
}

#searchButton:hover {
  color: var(--blue-button-bg);
}
#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--text-color);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-height: none;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 10px 15px;
  border-bottom: 1px solid var(--text-color);
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.focused {
  background-color: #2a2a2a; /* Slightly lighter background on hover/focus */
}

.search-result-item strong {
  display: block;
  margin-bottom: 5px;
  color: #fff; /* White text for the title */
}

.search-result-item p {
  margin: 0;
  font-size: 14px;
  color: #bbb; /* Light grey for the description */
}
.search-result-item mark {
  background-color: #ffd700;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}
/* Scrollbar styling for webkit browsers */
.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.search-results::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.dark-theme .search-result-item mark {
  background-color: #ffd700;
  color: black;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1e1e1e; /* Dark background for the results container */
  border: 1px solid #444; /* Subtle border */
  border-top: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px; /* Rounded corners at the bottom */
}

.search-result-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #333; /* Separator between items */
  transition: background-color 0.2s ease;
  background-color: #3a3a3a; /* Background color for each item */
}
.search-result-item:hover {
  background-color: rgb(110, 110, 110);
}

.focused {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Modal styles */
#customAlert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: none; /* Hide by default */
  opacity: 0; /* Start with hidden opacity */
  transition: opacity 0.3s ease; /* Transition for fade in/out */
  z-index: 1000; /* Ensure it's on top */
}

/* Show the modal */
#customAlert.show {
  display: block;
  opacity: 1;
}

.modal-background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); /* Dark background with opacity */
  opacity: 0; /* Initial opacity */
  transition: opacity 0.3s ease; /* Fade-in transition */
}

#customAlert.show .modal-background {
  opacity: 1; /* Fade in */
}

/* Modal content styling */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  margin: 15% auto; /* Center vertically */
  background: #202020;
  padding: 20px;
  border: 3px solid #000000;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0);
  transition: transform 0.3s ease;
  transform: scale(0.9); /* Start slightly smaller */
}

/* Scale up animation */
#customAlert.show .modal-content {
  transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Increased padding for taller top bar */
  }

  .top-bar {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 15px;
  }

  .top-bar > button {
    margin-bottom: 10px;
  }

  .search-wrapper {
    width: 80%;
    max-width: 80%;
    order: 1;
    margin: 10px 0;
  }

  #search-container {
    width: 100%;
  }

  #searchInput {
    width: calc(100% - 40px); /* Full width minus search button width */
  }
  .top-bar button {
    margin-bottom: 10px;
    width: calc(33.33% - 10px);
    margin-right: 5px;
    margin-left: 5px;
  }
  #login {
    width: calc(33.33% - 30px);
  }

  .profile-picture {
    order: 2;
    position: absolute;
    bottom: 15px;
    right: 30px;
    top: 90px;
  }
  video {
    width: 100%;
    max-width: 100%;
  }
}
