/* --------------------- Global & Existing Styles --------------------- */

/* Reset default margins and base styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-y: auto; /* Enables scrolling */
  font-family: Arial, sans-serif;
}

/* Fullscreen video background container */
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Style the YouTube iframe */
.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 130%;
  min-height: 130%;
  width: auto;
  height: auto;
  pointer-events: none;
}

/* Content overlay styling */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 15%;
  color: #fff;
}

/* Logo styling */
.server-logo {
  max-width: 200px;
  height: auto; /* Maintains aspect ratio */
  display: block;
  margin: 0 auto; /* Centers the image */
}


/* Navigation container styling */
.navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Button styling */
.btn {
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Music Controls Styling */
.music-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-controls button {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.music-controls button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.music-controls input[type="range"] {
  vertical-align: middle;
  margin-left: 10px;
}

/* --------------------- Things To Know Page Styles --------------------- */

/* Global background for pages like Things To Know */
body {
  background: #121212;
  color: #e0e0e0;
}

/* Home Button Styling */
.home-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #2a2a2a;
  color: #e0e0e0;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  z-index: 10;
  transition: background-color 0.3s;
}

.home-btn:hover {
  background-color: #3a3a3a;
}

/* Header Content Styling */
header.content {
  width: 80%;
  max-width: 800px;
  margin: 120px auto 40px;
  padding: 20px;
  text-align: center;
}

header.content .subtitle {
  font-size: 1.1em;
  color: #ccc;
}

/* Accordion Styles (for Things To Know page) */
.accordion {
  width: 80%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background-color: #1e1e1e;
}

.accordion-item {
  border-bottom: 1px solid #333;
}

.accordion-header {
  background-color: #2a2a2a;
  cursor: pointer;
  padding: 15px;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
  color: #e0e0e0;
}

.accordion-header:hover {
  background-color: #3a3a3a;
}

.accordion-header::after {
  content: '\002B';
  font-size: 1.5em;
  transition: transform 0.2s ease;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  background-color: #252525;
  color: #e0e0e0;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 15px;
}

.accordion-content img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
}

/* --------------------- Connection Page Specific Styles --------------------- */

/* Background for the Connection page */
body.connection-page {
  background: linear-gradient(135deg, #232526, #414345);
  color: #e0e0e0;
  overflow-y: auto;
}

/* Connection Buttons Container */
.connection-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 30px auto;
  width: 90%;
  max-width: 600px;
}

/* Connection Button Styling */
.connection-btn {
  background-color: #007BFF;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  color: #fff;
  width: 100%;
  text-align: center;
}

.connection-btn:hover {
  background-color: #0056b3;
}

/* Donation Info Styling */
.donation-info {
  text-align: center;
}

.donation-info p {
  margin: 5px 0;
}

.donation-info .small {
  font-size: 0.9em;
  color: #ccc;
}

/* Connection Instructions Container */
.connection-instructions {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 30px;
  margin: 40px auto;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.connection-instructions h2 {
  text-align: center;
  margin-bottom: 20px;
}

.connection-instructions ol {
  line-height: 1.6;
}

.connection-instructions code {
  background: #333;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
}
/* Hover effect for buttons */
.btn.hovered {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* --------------------- Feedback Page Styles --------------------- */

body.feedback-page {
  background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
  color: #e0e0e0;
  overflow-y: auto;
}

.feedback-form-container {
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.feedback-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  background: #333;
  color: #e0e0e0;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: #aaa;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #0056b3;
}
/* --------------------- Server Description Page Styles --------------------- */

/* Apply a gradient background to the description page */
body.server-description-page {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #e0e0e0;
  overflow-y: auto;
}

/* Adjust header content for the description page */
header.content {
  width: 80%;
  max-width: 800px;
  margin: 120px auto 40px;
  padding: 20px;
  text-align: center;
}

/* Description Section Container */
.description {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Text inside description */
.description-text {
  padding: 20px;
  line-height: 1.6;
}

/* Description Page Gallery Image Styles */
.description-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  justify-content: center;
}

.description-gallery img {
  max-width: 30%; /* Adjust image size to make it smaller */
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.description-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* --------------------- Social Media Page Styles --------------------- */

body.social-media-page {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #e0e0e0;
  overflow-y: auto;
}

header.content {
  width: 80%;
  max-width: 1000px;
  margin: 120px auto 40px;
  padding: 20px;
  text-align: center;
}

/* Posts Grid Layout */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
  padding: 0 15px;
}

/* Individual Post Styling */
.post {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 18px;
}

.post:hover {
  transform: scale(1.035);
  box-shadow: 0 5px 14px rgba(0,0,0,0.6);
}

.post img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Post Text */
.post-details h3 {
  font-size: 1.5rem;
  margin-top: 15px;
  margin-bottom: 8px;
}

.post-details p {
  font-size: 1.05rem;
  line-height: 1.55;
}


/* Pinned Post Styling */
.pinned-post {
  position: relative;
  border: 2px solid #C13584;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

/* Pin Badge Styling */
.pin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #C13584;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  z-index: 5;
}

/* Twitter Embedded Post Styling */
.twitter-container {
  text-align: center;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.twitter-tweet {
  max-width: 100%;
}

/* Description Box Below Twitter Embed */
.twitter-description {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 18px;
  text-align: left;
  margin-top: 12px;
}

.twitter-description h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.twitter-description p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Instagram Button Styling */
.instagram-btn {
  background-color: #C13584;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: background-color 0.3s ease;
  color: #fff;
  cursor: pointer;
}

.instagram-btn:hover {
  background-color: #a31e68;
}

/* Disable scrolling on index.html */
body.index-page, html.index-page {
  overflow: hidden !important;
  height: 100vh;
  width: 100vw;
  position: fixed;
}
.social-media-page header.content h1 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 15px;
}

.social-media-page header.content p {
  font-size: 1.2rem;
  color: #ccc;
}

/* Center button on socials section */
.social-media-content .btn.instagram-btn {
  margin-top: 20px;
}
/* Fade-In Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to posts */
.post {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: var(--fade-delay, 0s);
}


/* --------------------- Modal (Enlarged Image) --------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}


.modal-content {
  position: relative;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 80%;
  transition: transform 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.modal img {
  max-width: 75%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.modal h3,
.modal p {
  color: #e0e0e0;
  margin-top: 10px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s ease;
}

.close:hover {
  color: #ff4444;
}

.post-image {
  width: 100%; 
  max-width: 600px; 
  height: auto; /* Maintain aspect ratio */
}


/*---------------admin page------------------*/
.admin-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 50px;
  border-collapse: collapse;
  background: #1e1e1e;
  color: #e0e0e0;
}

.admin-table th, .admin-table td {
  border: 1px solid #444;
  padding: 12px 16px;
  text-align: left;
}

.admin-table th {
  background-color: #292929;
  font-weight: bold;
}

.admin-table tr:hover {
  background-color: #2d2d2d;
}

.admin-table select {
  padding: 4px 8px;
  font-size: 0.95em;
  background: #2c2c2c;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
}
.badge-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 5px;
}
.poster-name {
  font-weight: bold;
}

.poster-name::after {
  margin-left: 4px;
}

.post.pinned {
  /* Use a dark-gray background */
  background-color: #1e1e1e;  
  /* Add a bold gold border */
  border: 2px solid #FFD700; 
  /* Add a subtle glowing effect */
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);  
  /* Ensure padding/margin adjustments */
  padding: 10px;
  position: relative;
}

/* Style for the pin icon */
.pin-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.5em;
  color: #FFD700;
}


/*------------Current Song---------*/
.now-playing-box {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #00ffff;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #00ffff;
  box-shadow: 0 0 12px #00ffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: "Segoe UI", sans-serif;
  z-index: 999;
  min-width: 200px;
}

.now-playing-label {
  font-size: 0.9em;
  opacity: 0.8;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 180px;
  margin-top: 4px;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scrollText 10s linear infinite;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

#visualizer {
  background: transparent;
}
