body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
}

header {
  background-color: #333;
  color: white;
  padding: 20px;
  width: 100%;
  text-align: center;
}

canvas {
  border: 2px solid #333;
  margin-top: 20px;
  max-width: 100%;
  height: auto;

}

.text-editor-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  max-width: 100%;
  padding: 0 20px;
}

button {
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #555;
}

#download-button {
  margin-top: 20px;
}

nav {
  width: 100%;
}

/* Responsive Styles for Tablets */
@media (min-width: 600px) and (max-width: 1024px) {
  canvas {
      width: 80%;
  }

  .text-editor-container {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-around;
      max-width: 90%;
  }

  button {
      width: 48%;
  }
}

/* Responsive Styles for Smartphones */
@media (max-width: 599px) {
  canvas {
      width: 100%;
      height: auto;
  }

  .text-editor-container {
      flex-direction: column;
      padding: 10px;
  }

  button {
      width: 100%;
  }

  input, select {
      width: 100%;
  }
}
