@font-face {
  font-family: Monocraft;
  src: url('/oc2r-create/fonts/Monocraft.ttf');
}

* {
  font-family: 'Monocraft', monospace !important;
}

/* Main Content Area - restored original styling */
section {
  margin-left: 250px;
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
}

footer {
  margin-left: 250px;
  padding: 10px 20px;
  text-align: center;
  color: #666;
}

/* Side Nav Bar - improved version */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 1000;
}

#sidebar > a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 5px;
}

#sidebar > a:hover {
  color: #007acc;
  background-color: #f0f0f0;
  padding-left: 10px;
  transition: all 0.2s ease;
}

#sidebar h4 {
  margin: 20px 0 10px 0;
  color: #555;
  font-size: 16px;
  border-bottom: 2px solid #007acc;
  padding-bottom: 5px;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

#sidebar li {
  margin: 0;
}

#sidebar li a {
  padding-left: 15px;
  border-bottom: none;
  color: #666;
  display: block;
  padding: 8px 0 8px 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

#sidebar li a:hover {
  padding-left: 20px;
}

/* Code Blocks - restored original styling */
code, pre, .highlight, .highlighter-rouge {
  font-size: 14px !important;
}

p code, li code {
  font-size: 14px !important;
}

.highlight, .highlighter-rouge {
  border: 1px solid #ddd !important;
  border-radius: 1px !important;
  padding: 3px !important;
  margin: 3px 0 !important;
  background-color: #f8f8f8 !important;
  overflow-x: auto !important;
}

.highlight pre, .highlighter-rouge pre {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Dark Mode - restored original styling */
@media (prefers-color-scheme: dark) {
  .highlight, .highlighter-rouge {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #f8f8f8 !important;
  }

  body {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
  }

  #sidebar {
    background-color: #2d2d2d;
    border-right: 1px solid #444;
  }

  #sidebar > a {
    color: #e0e0e0;
    border-bottom: 1px solid #444;
  }

  #sidebar > a:hover {
    color: #4da6ff;
    background-color: #404040;
  }

  #sidebar h3 {
      color: #ccc;
      border-bottom: 2px solid #4da6ff;
    }

  #sidebar h4 {
    color: #ccc;
    border-bottom: 2px solid #4da6ff;
  }

  #sidebar li a {
    color: #bbb;
  }

  #sidebar li a:hover {
    color: #4da6ff;
  }

  footer {
    color: #bbb;
  }
}

/* Responsive for Smaller Screens - improved mobile behavior */
@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  #sidebar:hover {
    transform: translateX(0);
  }

  #sidebar::before {
    content: "☰";
    position: absolute;
    right: -40px;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: #007acc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 18px;
  }

  section, footer {
    margin-left: 0;
  }

  @media (prefers-color-scheme: dark) {
    #sidebar::before {
      background-color: #4da6ff;
    }
  }
}