body {
    font-family: Arial, sans-serif;
    background-image: linear-gradient(to bottom, #000000, #2f2f2f); /* From left to right */
    color: #eee;
    padding: 0px;
  }

  body {
    min-height: 100vh; /* ensures at least full viewport height */
    background-image: linear-gradient(to bottom, #000000, #2f2f2f);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
  }
  
  .container {
    max-width: 600px;
    margin: auto;
    background: #222;
    padding: 15px;
    margin-top: 7px;
    border-radius: 10px;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  textarea, input {
    background: #333;
    border: none;
    color: #eee;
    padding: 10px;
    border-radius: 5px;
    resize: vertical;
  }
  
  button {
    padding: 10px;
    background: #0f62fe;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background: #0353e9;
  }
  
  .post {
    margin: auto;
    background: #000000;
    margin-top: 9px;
    padding: 15px;
    border-radius: 5px;
    max-width: 600px;
    word-wrap: break-word;   /* Ensures long words or URLs wrap */
    overflow-wrap: break-word; /* More modern/better support */
    border: rgb(46, 46, 46) ;
    border-width: 1px;
    border-style:solid;
  }
  
  .post .meta {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 8px;
  }

  .post img {
    max-width: 50%;
    margin-top: 0px;
    break-after:auto;
    border-radius: 1px;
  }

  .comments {
    margin-top: 19px;
    border-top: 1px solid #333;
    padding-top: 1px;
    
  }
  
  .comment {
    background: #2a2a2a;
    padding: 10px;
    margin-top: 13px;
    border-radius: 5px;
    word-wrap: break-word;   /* Ensures long words or URLs wrap */
    overflow-wrap: break-word; /* More modern/better support */
  
  }
  
  .comment .meta {
    font-size: 0.75em;
    color: #aaa;
    margin-bottom: 5px;
    
  }
  
  .commentForm {
    display: flex;
    margin-top: 40px;
    gap: 8px;
  }
  
  .commentForm input {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: none;
    background: #333;
    color: #eee;
  }
  
  .commentForm button {
    background: #0f62fe;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    
  }
  
  .commentForm button:hover {
    background: #0353e9;
  }
  
  .toggle-comments {
    margin-top: 10px;
    background: #444;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    
  }
  
  .toggle-comments:hover {
    background: #666;
  }

/* Hide the default file input */
.file-input {
  display: none;
}




/* Hover effect for the button */
.custom-file-button:hover {
  background-color: #555;  
}

.donate-box {
  text-align: center;
  margin-top: 20px;
}

.donate-text {
  color: #aaa;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.donate-btn {
  background: #0f62fe;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.donate-btn:hover {
  background: #0353e9;
}


.link-preview {
  margin-top: 8px;
  max-width: 100%;
}

.link-thumbnail {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.youtube-embed,
.spotify-embed {
  width: 100%;
  border-radius: 8px;
  margin-top: 4px;
}

.youtube-embed {
  aspect-ratio: 16 / 9;
}

.link-preview.generic {
  font-size: 0.9em;
  color: #888;
  margin-top: 4px;
  word-break: break-word;
}

/* Twitter/TikTok embeds */
.twitter-tweet,
.tiktok-embed {
  margin-top: 4px;
}



#postFormContainer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 1s ease, opacity 1s ease;
}

/* When visible */
#postFormContainer.visible {
  max-height: 500px; /* or something large enough to fit the form */
  opacity: 1;
}

/* Toggle button styles */
.toggle-btn {
  background: #111;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: auto;
  margin-bottom: 10px;
}




#splashScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.97);
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#splashContent {
  background: #222;
  padding: 30px;
  margin: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 20px #000;
}

#splashContent h2 {
  margin-top: 0;
}

.splash-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.splash-buttons button {
  padding: 10px 20px;
  background: #0f62fe;
  border: none;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.splash-buttons button:hover {
  background: #0353e9;
}



.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  margin: 5vh auto;
  width: 90%;
  max-width: 600px;
  height: 80vh;
  background-color: rgb(0, 0, 0);
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}



.refresh-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  padding: 10px 14px;
  background: #0f62fe;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #000;
  opacity: 0.9;
}

.refresh-button:hover {
  background: #0353e9;
  opacity: 1;
}


.post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.username {
  font-weight: bold;
  color: #ccc;
}

#authSection {

display:grid;
margin: auto

}