
html,
body,
* {
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  border-radius: 10px;
}

html[data-theme="ribbit"],
body[data-theme="ribbit"],
body[data-theme="ribbit"] * {
  scrollbar-color: #4CAF50 #d9f7c6;
}
body[data-theme="ribbit-dark"] #post-emoji-picker {
  background: #000 !important;
  border: 1px solid #333 !important;
}

body[data-theme="ribbit-dark"] #post-emoji-picker button {
  color: white;
}

html[data-theme="ribbit"]::-webkit-scrollbar-track,
body[data-theme="ribbit"]::-webkit-scrollbar-track,
body[data-theme="ribbit"] *::-webkit-scrollbar-track {
  background: #d9f7c6;
}

html[data-theme="ribbit"]::-webkit-scrollbar-thumb,
body[data-theme="ribbit"]::-webkit-scrollbar-thumb,
body[data-theme="ribbit"] *::-webkit-scrollbar-thumb {
  background: #4CAF50;
}

html[data-theme="ribbit"]::-webkit-scrollbar-thumb:hover,
body[data-theme="ribbit"]::-webkit-scrollbar-thumb:hover,
body[data-theme="ribbit"] *::-webkit-scrollbar-thumb:hover {
  background: #2e7d32;
}

html[data-theme="classic"],
body[data-theme="classic"],
body[data-theme="classic"] * {
  scrollbar-color: #1e6bd6 #dbe9ff;
}

html[data-theme="classic"]::-webkit-scrollbar-track,
body[data-theme="classic"]::-webkit-scrollbar-track,
body[data-theme="classic"] *::-webkit-scrollbar-track {
  background: #dbe9ff;
}

html[data-theme="classic"]::-webkit-scrollbar-thumb,
body[data-theme="classic"]::-webkit-scrollbar-thumb,
body[data-theme="classic"] *::-webkit-scrollbar-thumb {
  background: #1e6bd6;
}

html[data-theme="classic"]::-webkit-scrollbar-thumb:hover,
body[data-theme="classic"]::-webkit-scrollbar-thumb:hover,
body[data-theme="classic"] *::-webkit-scrollbar-thumb:hover {
  background: #0b2a4a;
}

html[data-theme="pink"],
body[data-theme="pink"],
body[data-theme="pink"] * {
  scrollbar-color: #b03060 #f7d6f2;
}

html[data-theme="pink"]::-webkit-scrollbar-track,
body[data-theme="pink"]::-webkit-scrollbar-track,
body[data-theme="pink"] *::-webkit-scrollbar-track {
  background: #f7d6f2;
}

html[data-theme="pink"]::-webkit-scrollbar-thumb,
body[data-theme="pink"]::-webkit-scrollbar-thumb,
body[data-theme="pink"] *::-webkit-scrollbar-thumb {
  background: #b03060;
}

html[data-theme="pink"]::-webkit-scrollbar-thumb:hover,
body[data-theme="pink"]::-webkit-scrollbar-thumb:hover,
body[data-theme="pink"] *::-webkit-scrollbar-thumb:hover {
  background: #7a1f40;
}

html[data-theme="ribbit-dark"],
body[data-theme="ribbit-dark"],
body[data-theme="ribbit-dark"] * {
  scrollbar-color: green #1a1a1a;
}

html[data-theme="ribbit-dark"]::-webkit-scrollbar-track,
body[data-theme="ribbit-dark"]::-webkit-scrollbar-track,
body[data-theme="ribbit-dark"] *::-webkit-scrollbar-track {
  background: #1a1a1a;
}

html[data-theme="ribbit-dark"]::-webkit-scrollbar-thumb,
body[data-theme="ribbit-dark"]::-webkit-scrollbar-thumb,
body[data-theme="ribbit-dark"] *::-webkit-scrollbar-thumb {
  background: #7db7ff;
}

html[data-theme="ribbit-dark"]::-webkit-scrollbar-thumb:hover,
body[data-theme="ribbit-dark"]::-webkit-scrollbar-thumb:hover,
body[data-theme="ribbit-dark"] *::-webkit-scrollbar-thumb:hover {
  background: #4f8fd8;
}

.mobile-blog-emoji {
  display: none;
}
.mention-link,
.hashtag-link {
  text-decoration: underline;
  cursor: pointer;
}
#new-post-input,
.post-input-highlight {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;

  font-variant-ligatures: none;
  -webkit-text-size-adjust: 100%;
}
.post-input-wrap {
  min-height: 90px; 
}

#new-post-input,
.post-input-highlight {
  min-height: 90px;
}
.post-input-highlight {
  overflow: hidden;
}
.left-box-content,
#recent-posts {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
.container {
  max-height: none !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}
#new-post-input {
  overflow-y: auto;
}
.mention-link {
  color: #6ab0ff;
}
.mention-link:hover {
  color: #0b3d91;
}
.post-input-highlight {
  color: black;              
}
.mention {
  color: #6ab0ff;
  font-weight: 500;
}

.hashtag {
  color: #4CAF50;
  font-weight: 500;
}

.comment-input-highlight {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-input-highlight .mention {
  color: #6ab0ff;
  text-decoration: underline;
}


.post-input-highlight .hashtag {
  color: #4CAF50;
  text-decoration: underline;
}
.comment-input-wrap {
  position: relative;
  width: 100%;
}

.comment-input-highlight,
.comment-input {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px;             
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-input-highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.comment-input {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 70px;
  resize: none;             
  background: transparent;
  color: transparent;
  caret-color: black;
  overflow-y: auto;
}


.hashtag-link {
  color: #4CAF50;
}
.hashtag-link:hover {
  color: #1b5e20;
}


@media (max-width: 480px) {
  .banner,
  .banner-content {
    position: relative;
    z-index: 10;
  }

  .mobile-blog-emoji {
    display: flex;
    position: absolute;
    top: 6px;
    right: 8px;
    margin-top: 10px;

    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    z-index: 9999;
  }
}
@media (max-width: 480px) {
  #ribbitLogo {
    display: block !important;
    margin: 8px auto !important;
  }

  .banner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.mobile-bottom-nav {
  display: none !important;
}
@media (max-width: 480px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: #121212;
    justify-content: space-around;
    align-items: center;
    z-index: 5000;
  }

  .mobile-bottom-nav a {
    font-size: 12px;
    color: #6ab0ff;
    text-decoration: none;
  }

  .container {
    padding-bottom: 80px !important;
  }
}

@media (min-width: 481px) {
  body {
    visibility: hidden;
  }
}

    #char-count {
      font-size: 0.8em;
      color: gray;
      margin-top: 3px;
      display: block;
      text-align: right;
      margin-right: 5px;
    }
    .post-item {
      border: 1px solid #ccc;
      padding: 8px;
      margin-bottom: 10px;
      background: #f9f9f9;
    }
    .post-item img {
      width: 100%;
      height: 100%;
      vertical-align: middle;
      margin-right: 8px;
    }
    .post-item .username {
      font-size: 14px;
      margin-bottom: 2px;
    }
    .post-item .time {
      font-size: 0.75em;
      color: gray;
      margin-left: 5px;
    }
#new-post-input,
.post-input-highlight {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: normal;
  padding: 8px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-input,
.comment-input-highlight {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: normal;
  padding: 6px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
}

html[data-theme="ribbit"] #new-post-input,
html[data-theme="ribbit"] #post-input-highlight {
  border: 1px solid #4CAF50 !important;
}

html[data-theme="ribbit-dark"] #new-post-input,
html[data-theme="ribbit-dark"] #post-input-highlight {
  border: 1px solid #548532 !important;
}

html[data-theme="classic"] #new-post-input,
html[data-theme="classic"] #post-input-highlight {
  border: 1px solid #1e6bd6 !important;
}

html[data-theme="pink"] #new-post-input,
html[data-theme="pink"] #post-input-highlight {
  border: 1px solid #b03060 !important;
}
#posts-pagination {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.9em;
  margin-Left: 20px;
}
@media (max-width: 480px) {
  #post-emoji-btn {
    display: none !important;
  }
}

#posts-pagination button {
  padding: 3px 10px;
  border: 2px solid black;
  background: blue;
  cursor: pointer;
  color: white;
}

#posts-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
#posts-pagination .page-indicator {
  margin: 0 10px;   
  font-weight: normal;
  font-size: 13px;
}
    html[data-theme="ribbit-dark"] #new-post-input {
      color: white;
      caret-color: white;
    }
a.external-link {
  text-decoration: underline;
  cursor: pointer;
}


#posts-pagination button:hover:not(:disabled) {
  filter: brightness(85%);
}

#posts-pagination button:active:not(:disabled) {
  transform: translateY(1px);
}
[data-theme="ribbit"] a.external-link { color: #1a5fd0; }
[data-theme="classic"] a.external-link { color: #0050ef; }
[data-theme="pink"] a.external-link { color: purple; }
[data-theme="ribbit-dark"] a.external-link { color: #6ab0ff; }

a.external-link:hover {
  color: #0b3d91;
}
html[data-theme="ribbit"] {
  background: linear-gradient(
    180deg,
    #eaffda 0%,
    #d9f7c6 40%,
    #c8efb2 100%
  );
}

html[data-theme="classic"] {
  background: linear-gradient(
    180deg,
    #eaf3ff 0%,
    #dbe9ff 40%,
    #c6dcff 100%
  );
}

html[data-theme="pink"] {
  background: linear-gradient(
    180deg,
    #fde8f8 0%,
    #f7d6f2 40%,
    #efb9e8 100%
  );
}

html[data-theme="ribbit-dark"] {
  background: linear-gradient(
    180deg,
    #0f0f0f 0%,
    #151515 40%,
    #1a1a1a 100%
  );
}


body {
  background: transparent;
}

html, body {
  min-height: 100%;
}


html {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

.music-note {
  position: fixed;
  bottom: -40px;
  font-size: 22px;
  opacity: 0.35;
  animation: floatMusic linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes floatMusic {
  from {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  to {
    transform: translateY(-110vh) rotate(20deg);
    opacity: 0;
  }
}

@media (min-width: 481px) {
  body {
    visibility: hidden;
  }
}

html[data-theme] {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body {
  background: transparent !important;
}

html[data-theme="ribbit"] {
  background-image: linear-gradient(
    180deg,
    #eaffda 0%,
    #d9f7c6 40%,
    #c8efb2 100%
  );
}

html[data-theme="classic"] {
  background-image: linear-gradient(
    180deg,
    #eaf3ff 0%,
    #dbe9ff 40%,
    #c6dcff 100%
  );
}

html[data-theme="pink"] {
  background-image: linear-gradient(
    180deg,
    #fde8f8 0%,
    #f7d6f2 40%,
    #efb9e8 100%
  );
}

html[data-theme="ribbit-dark"] {
  background-image: linear-gradient(
    180deg,
    #0f0f0f 0%,
    #151515 40%,
    #1a1a1a 100%
  );
}

