* {
  box-sizing: border-box;
}

/* Base styles */
html {
  color: #222;
  font-size: 16px;
  line-height: 1.4;
}

body {
  font-family: Arial, sans-serif;
  margin: 0 auto;
  padding: 20px;
  max-width: 800px;
  background-color: #f4f4f4;
}

/* Selection highlight */
::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/* Form elements */
textarea {
  resize: vertical;
}

/* Layout elements */
header,
main,
footer {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1,
h2 {
  color: #2c3e50;
}

/* Input section */
#markdownInput {
  width: 100%;
  height: 200px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
/* Button container */
.button-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
#clearBtn {
  background-color: #e74c3c;
}

#clearBtn:hover {
  background-color: #c0392b;
}
/* Responsive design */
@media (max-width: 600px) {
  .button-container {
    flex-direction: column;
  }
}

/* Output section */
#output-section {
  display: none;
}

#canvasContainer {
  overflow-x: auto;
  margin-bottom: 20px;
}

#canvas {
  border: 1px solid #ddd;
  background-color: white;
}

/* Theme selector */
.theme-selector {
  margin-top: 10px;
}

/* Helper classes */
.hidden {
  display: none !important;
}

/* Print styles */
@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    padding: 0;
  }

  #canvasContainer {
    overflow: visible;
  }

  #downloadLink,
  .theme-selector {
    display: none;
  }
}

/* Responsive design */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  header,
  main,
  footer {
    padding: 10px;
  }
}

/* Add these styles to your style.css file */

.table-theme-default,
.table-theme-dark,
.table-theme-colorful {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.table-theme-default table,
.table-theme-dark table,
.table-theme-colorful table {
  border-collapse: collapse;
  width: 100%;
}

.table-theme-default th,
.table-theme-default td,
.table-theme-dark th,
.table-theme-dark td,
.table-theme-colorful th,
.table-theme-colorful td {
  border: 1px solid;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

.table-theme-default img,
.table-theme-dark img,
.table-theme-colorful img {
  max-height: 20px;
  max-width: 30px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Default theme */
.table-theme-default {
  color: #333;
}

.table-theme-default th,
.table-theme-default td {
  border-color: #ddd;
}

.table-theme-default th {
  background-color: #f2f2f2;
}

/* Dark theme */
.table-theme-dark {
  color: white;
  background-color: #333;
}

.table-theme-dark th,
.table-theme-dark td {
  border-color: #555;
}

.table-theme-dark th {
  background-color: #444;
}

/* Colorful theme */
.table-theme-colorful {
  color: #333;
  background-color: #f0f8ff;
}

.table-theme-colorful th,
.table-theme-colorful td {
  border-color: #2196f3;
}

.table-theme-colorful th {
  background-color: #4caf50;
  color: white;
}

/* Dark theme heading styles */
.table-theme-dark h1,
.table-theme-dark h2,
.table-theme-dark h3,
.table-theme-dark h4 {
  color: #e0e0e0;
}
