<!doctype html>
<html lang="en" data-bs-theme="dark">
<head>
  <meta charset="utf-8" />
  <title>{{ title or "Code of Conquest" }}</title>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  
  <!-- Halfmoon CSS -->
  <link href="https://cdn.jsdelivr.net/npm/halfmoon@2.0.2/css/halfmoon.min.css" rel="stylesheet" integrity="sha256-RjeFzczeuZHCyS+Gvz+kleETzBF/o84ZRHukze/yv6o=" crossorigin="anonymous">

  <!-- Google Font -->
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Martian+Mono:wght@300;400;500;700&display=swap">

  <!-- Custom CSS -->
  <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body class="d-flex flex-column justify-content-center align-items-center vh-100">

  <!-- Centered content block -->
  <main class="w-100 d-flex justify-content-center align-items-center flex-grow-1">
      {% block content %}{% endblock %}
  </main>

  <!-- Footer -->
  <footer class="text-center mt-auto mb-3 small text-muted">
      <p class="mb-0">&copy; 2025 <a href="/" class="text-reset text-decoration-none">Code of Conquest</a></p>
      <p class="mb-0"><span class="version">v 0.1.0</span></p>
  </footer>

  <!-- App Write JS Client -->
  <script src="https://cdn.jsdelivr.net/npm/appwrite@17.0.0"></script>

  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha256-CDOy6cOibCWEdsRiZuaHf8dSGGJRYuBGC+mjoJimHGw=" crossorigin="anonymous"></script>
  {% include "_flash_sticky.html" %}
  {% block scripts %}{% endblock %}
</body>
</html>
