body {
  font-family: sans-serif;
  margin: 0;
}

.navbar {
  width: 100%;
  /* background-image: url('images/Home/navbar.webp'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  opacity: 0.95;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 0;
}

.navbar a {
  color: #000000;
  display: inline-block;
  font-size: 15px;
  padding: 10px;
  text-decoration: none;
}

.navbar a:hover {
  color: #4329ef;
}

.content {
  max-width: 1280px;
  margin: auto;
  padding-left: 10px;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.content::before {
  content: '🌟 💡 🚀 💻 🎨 🔧 📚 🌈 ✨ 🏃 🔥 💪 🎃 🌍 ⚡ 🎪 🎭 🎬 🎸 🎺 🌟 💡 🚀 💻 🎨 🔧 📚 🌈 ✨ 🏃 🔥 💪 🎃 🌍 ⚡ 🎪 🎭 🎬 🎸 🎺 🌟 💡 🚀 💻 🎨 🔧 📚 🌈 ✨ 🏃 🔥 💪 🎃 🌍 ⚡ 🎪 🎭 🎬 🎸 🎺 🌟 💡 🚀 💻 🎨 🔧 📚 🌈 ✨ 🏃 🔥 💪 🎃 🌍 ⚡ 🎪 🎭 🎬 🎸 🎺';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  font-size: 2rem;
  opacity: 0.08;
  pointer-events: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  z-index: -1;
  line-height: 2.5;
  padding: 40px;
  overflow: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.avatar {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wave {
  animation: wave 2s infinite;
  display: inline-block;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(14deg); }
  75% { transform: rotate(-8deg); }
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 50px auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #0066ff;
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 52%;
  text-align: right;
  flex: 1;
}

.timeline-item:nth-child(odd) .timeline-image {
  margin-right: 20px;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 52%;
  margin-right: 0;
  text-align: left;
  flex: 1;
}

.timeline-item:nth-child(even) .timeline-image {
  margin-left: 20px;
  margin-right: 0;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: #0066ff;
  border: 3px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px #e0e0e0;
}

.timeline-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #313236;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95em;
  color: #666;
  line-height: 1.5;
}

.timeline-image {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  margin-top: 15px;
  border-radius: 8px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.timeline-image:hover {
  animation: floatHover 1s ease-in-out infinite;
  transform: scale(1.1);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatHover {
  0%, 100% {
    transform: translateY(0px) scale(1.1);
  }
  25% {
    transform: translateY(-12px) scale(1.1);
  }
  75% {
    transform: translateY(-12px) scale(1.1);
  }
}

footer {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 50px 0 30px 0;
}
footer p, footer a {
  font-size: 12px;
  color: #999;
}

/* Weekly Assignments Styles */
.weeks-container {
  max-width: 1100px;
  margin: 30px auto;
}

.weeks-section {
  margin-bottom: 50px;
}

.weeks-section h3 {
  text-align: left;
  font-size: 1.5em;
  color: #313236;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066ff;
}

.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.week-box {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.week-box.completed {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  border: 2px solid #2e7d32;
}

.week-box.completed:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);
}

.week-box.upcoming {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 2px solid #0066ff;
}

.week-box.upcoming:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 102, 255, 0.3);
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
}

.week-box a {
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.week-box.completed a {
  color: #ffffff;
}

.week-box.upcoming a {
  color: #0066ff;
}

.week-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.week-box.completed .week-title {
  color: #ffffff;
}

.week-box.ongoing .week-title {
  color: #ffffff;
}

.week-box.upcoming .week-title {
  color: #0066ff;
}

.week-box p {
  font-size: 0.95em;
  margin: 10px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-box.completed p {
  color: rgba(255, 255, 255, 0.95);
}

.week-box.upcoming p {
  color: #333;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
  margin-top: 10px;
}

.week-box.completed .status-badge {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.week-box.upcoming .upcoming-badge {
  background-color: rgba(0, 102, 255, 0.2);
  color: #0066ff;
  border: 1px solid #0066ff;
}

.week-box.ongoing {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  border: 2px solid #E65100;
  animation: pulse 2s infinite;
}

.week-box.ongoing:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 152, 0, 0.4);
}

.week-box.ongoing a {
  color: #ffffff;
}

.week-box.ongoing p {
  color: rgba(255, 255, 255, 0.95);
}

.week-box.ongoing .ongoing-badge {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
  }
}


#markdown-content {
  text-align: left !important;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

#markdown-content h1 { 
  font-size: 2.2em; 
  margin-top: 40px; 
  margin-bottom: 25px; 
  color: #313236; 
  border-bottom: 3px solid #0066ff;
  padding-bottom: 15px;
}

#markdown-content h2 { 
  font-size: 1.8em; 
  margin-top: 35px; 
  margin-bottom: 20px; 
  color: #313236;
  border-left: 4px solid #0066ff;
  padding-left: 15px;
}

#markdown-content h3 { 
  font-size: 1.3em; 
  margin-top: 25px; 
  margin-bottom: 15px; 
  color: #0066ff;
  font-weight: bold;
}

#markdown-content p { 
  margin: 15px 0; 
  line-height: 1.8;
  color: #333;
  font-size: 1em;
}

#markdown-content ul { 
  margin: 20px 0; 
  padding-left: 40px;
  list-style-type: disc;
}

#markdown-content ol { 
  margin: 20px 0; 
  padding-left: 40px;
  list-style-type: decimal;
}

#markdown-content li { 
  margin: 10px 0;
  line-height: 1.6;
  color: #333;
}

#markdown-content ul ul {
  list-style-type: circle;
  margin-top: 10px;
}

#markdown-content code { 
  background-color: #f4f4f4; 
  padding: 3px 8px; 
  border-radius: 4px; 
  font-family: 'Courier New', monospace;
  color: #d63384;
}

#markdown-content pre { 
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 20px; 
  border-radius: 8px; 
  overflow-x: auto; 
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  line-height: 1.5;
}

#markdown-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

#markdown-content a { 
  color: #0066ff; 
  text-decoration: none;
  font-weight: 500;
}

#markdown-content a:hover { 
  text-decoration: underline;
}

#markdown-content hr { 
  margin: 40px 0; 
  border: none; 
  border-top: 2px solid #ddd;
}

#markdown-content blockquote {
  border-left: 4px solid #0066ff;
  padding-left: 20px;
  margin-left: 0;
  color: #666;
  font-style: italic;
}

#markdown-content strong {
  font-weight: bold;
  color: #000;
}


#markdown-content img {
  max-width: 1000px;
  width: 90%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  display: block;
  border: 1px solid #e0e0e0;
}

/* Italic Command Styles - Copy to Clipboard */
#markdown-content em {
  position: relative;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

#markdown-content em:hover {
  background-color: #e3f2fd;
  border: 1px solid #0066ff;
  padding-right: 32px;
}

#markdown-content em::after {
  content: '📋';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.9em;
  cursor: pointer;
}

#markdown-content em:hover::after {
  opacity: 1;
}
/* Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0066ff, #4CAF50);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.5);
}

/* Back to Top Button */
#back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #0066ff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

#back-to-top-btn:hover {
  background-color: #0052cc;
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
  transform: translateY(-3px);
}

#back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  #back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* Container for the code */
pre {
  background: #282c34; /* Dark theme for code */
  color: #abb2bf;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  position: relative;
}

/* The Copy Button */
.copy-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #4a4a4a;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.copy-button:hover {
  background: #666;
}