/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.4s ease-in-out;
}

html, body {
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  font-family: 'Inter', sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  scroll-behavior: smooth;
}

/* Body Layout */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  flex-direction: column;
  height: 100%;
  overflow-y: hidden;
}

body::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome, Safari, etc. */
}

/* Main Content Styling */
#main_div {
  background: rgba(22, 27, 34, 0.9);
  padding: 2rem;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #21262d;
  max-height: 80vh;
  margin-top: 30px;
  overflow-y: auto;
  position: relative;
  animation: slideInUp 1s ease-out;
}

/* Slide-up animation for container */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Styling */
#main_div h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #58a6ff;
  text-shadow: 0 0 10px #58a6ff, 0 0 20px #1f6feb;
  animation: glowText 1.5s ease-in-out infinite alternate;
}

@keyframes glowText {
  0% {
    text-shadow: 0 0 10px #58a6ff, 0 0 20px #1f6feb;
  }
  100% {
    text-shadow: 0 0 20px #58a6ff, 0 0 30px #1f6feb;
  }
}

#main_div h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: #79c0ff;
  text-shadow: 0 0 8px #58a6ff;
  animation: fadeInUp 1s ease-out;
}

/* Fade In Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ordered List Styling */
ol {
  text-align: left;
  margin: 1rem auto;
  padding-left: 1.5rem;
  line-height: 1.8;
  animation: fadeInUp 1.2s ease-out;
}

ol li {
  margin-bottom: 1rem;
}

/* Details Section Styling */
details {
  margin-top: 1.5rem;
  background: #21262d;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #30363d;
  transition: background 0.3s ease-in-out;
  animation: fadeInUp 1.5s ease-out;
}

details:hover {
  background: rgba(33, 38, 45, 0.9);
}

details summary {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #58a6ff;
  transition: color 0.3s ease-in-out;
}

details summary:hover {
  color: #79c0ff;
}

details pre {
  font-size: 0.9rem;
  text-align: left;
  background: #0d1117;
  padding: 1rem;
  color: #c9d1d9;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid #30363d;
  animation: fadeInUp 1.8s ease-out;
}

/* Buttons Section Styling */
#buttons_container {
  margin-top: 1.5rem;
  animation: fadeInUp 1.2s ease-out;
}

#buttons_container button {
  background: linear-gradient(135deg, #1f6feb, #58a6ff);
  border: none;
  color: #0d1117;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  margin: 0.5rem;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.6);
}

#buttons_container button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.8);
}

#buttons_container button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

/* Text Styling */
p, li, .extension-instructions {
  font-size: 1rem;
  line-height: 1.6;
  animation: fadeInUp 1.3s ease-out;
}

/* Error Message Styling */
#error {
  color: #f85149;
  font-weight: bold;
  animation: fadeInUp 1.5s ease-out;
}

/* Scrollbar Styling */
#main_div::-webkit-scrollbar {
  width: 10px; /* Width of the scrollbar */
}

#main_div::-webkit-scrollbar-thumb {
  background-color: #58a6ff;
  border-radius: 10px;
}

#main_div::-webkit-scrollbar-track {
  background: rgba(22, 27, 34, 0.5);
}
