body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: linear-gradient(45deg, #1c1c1c 25%, transparent 25%, transparent 75%, #1c1c1c 75%, #1c1c1c),
                    linear-gradient(-45deg, #1c1c1c 25%, transparent 25%, transparent 75%, #1c1c1c 75%, #1c1c1c);
  background-size: 20px 20px;
  animation: animatedBackground 4s linear infinite;
}

@keyframes animatedBackground {
  from { background-position: 0 0; }
  to { background-position: 20px 20px; }
}

.hero {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  padding: 40px;
  text-align: center;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.hero h2 {
  color: #ff3333;
  margin-bottom: 10px;
}

header {
  background: linear-gradient(to bottom, #212121, #1a1a1a);
  padding: 25px 0; 
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); 
}

header h1 {
  color: #ff4d4d; 
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
  animation: flicker 1.5s infinite alternate; 
  font-size: 2.5em;
}

@keyframes flicker {
  0%, 100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); opacity: 1; }
  50% { text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); opacity: 0.9; }
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #d4d4d4;
  text-decoration: none;
  padding: 10px 15px; 
  margin: 0 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  transform: scale(1.05); 
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background: transparent; 
  animation: fadeIn 1s ease-out;
  flex: 1;
}

section {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 6px;
  background-color: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

section h3 {
  color: #ff3333;
  margin-bottom: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main h2 {
  color: #ff4d4d;
  margin-bottom: 25px;
  text-align: center;
  font-size: 2em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Modern Dropdown Styles - Adapted for Dark Theme */
:root {
  --primary-color: #ff4d4d;
  --hover-color: #e64a19;
  --bg-color: #1a1a1a;
  --border-color: #333;
  --text-color: #e0e0e0;
  --light-text: #aaa;
  --animation-duration: 0.8s;
}

.modern-dropdown {
  margin-bottom: 30px;
}

.modern-dropdown ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.modern-dropdown li {
  margin: 12px 0;
  list-style-type: none;
}

.modern-dropdown .folder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #272727;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.modern-dropdown .folder-header:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(255, 77, 77, 0.2);
}

.modern-dropdown .folder-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-color);
}

.modern-dropdown .toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #333;
  color: #ccc;
  transition: transform 0.4s, background-color 0.3s;
}

.modern-dropdown input[type="checkbox"] {
  display: none;
}

.modern-dropdown .folder-content {
  margin-top: 5px;
  margin-left: 20px;
  border-left: 2px solid var(--border-color);
  padding-left: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--animation-duration) ease-in-out, padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  transform: translateY(-10px);
  transition: 
    max-height var(--animation-duration) ease-in-out, 
    padding 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
  background-color: #1d1d1d;
  display: block;
}

.modern-dropdown input[type="checkbox"]:checked ~ .folder-content {
  max-height: 2000px;
  padding: 12px 15px;
  opacity: 1;
  transform: translateY(0);
}

.modern-dropdown input[type="checkbox"]:checked ~ .folder-header .toggle-icon {
  transform: rotate(90deg);
  background-color: var(--primary-color);
  color: white;
}

.modern-dropdown .file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 6px;
  transition: background-color 0.2s, transform 0.2s;
  color: var(--text-color);
  text-decoration: none;
}

.modern-dropdown .file-item:hover {
  background-color: #333;
  transform: translateX(4px);
  color: var(--primary-color);
}

/* Nested folder styles */
.nested-folder {
  margin: 8px 0;
  list-style-type: none;
}

.nested-folder .folder-header {
  background-color: #2a2a2a;
}

.nested-folder .folder-content {
  background-color: #222;
  margin-left: 15px;
}

.nested-folder .nested-folder .folder-header {
  background-color: #303030;
}

.nested-folder .nested-folder .folder-content {
  background-color: #252525;
}

/* Fix for deeply nested folders */
.nested-folder .nested-folder .nested-folder .folder-header {
  background-color: #353535;
}

.nested-folder .nested-folder .nested-folder .folder-content {
  background-color: #282828;
}

/* Ensure proper spacing in nested folders */
.folder-content .file-item {
  margin: 6px 0;
}

.folder-content .nested-folder {
  margin-top: 10px;
  margin-bottom: 10px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  background: transparent;
  flex-wrap: wrap;
}

.link-button {
  padding: 18px 35px;
  font-size: 1.2em;
  background: linear-gradient(to right, #ff4d4d, #e64a19);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Courier New', monospace;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  display: inline-flex; 
  justify-content: center;
  text-align: center;
}

.link-button:hover {
  background: linear-gradient(to right, #e64a19, #d84315);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}

footer {
  background-color: #1a1a1a;
  text-align: center;
  padding: 20px;
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  color: #999; 
  font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  main {
    padding: 15px;
  }

  .button-container {
    flex-direction: column;
    align-items: center;
  }

  .link-button {
    width: 100%;
    max-width: 300px;
  }
}
.button {
  background-color: #ff3333;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}