/* Reset styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center; /* Center everything vertically */
  background-color: #f5f5f5;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: #333;
  overflow: hidden; /* Prevent accidental scrolling */
}

/* Center the container */
#canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Header style */
#canvas-container h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 10px 0;
  color: #222;
}

#canvas-container p {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 5px 0 20px;
  color: #444;
}

/* Default: Hide the textarea */
#textInput {
  display: none;
}

/* Show the textarea on mobile devices */
@media (max-width: 768px) {
  #textInput {
    display: block;
    width: 90%; /* Full width with some padding */
    max-width: 400px;
    padding: 10px;
    font-size: 1rem;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-top: 10px;
    position: static;
  }
}

/* Canvas style */
canvas {
  display: block;
  flex-grow: 1; /* Allow the canvas to grow dynamically */
  max-width: 100%; /* Prevent overflow */
  max-height: 100%; /* Scale dynamically with the container */
  border: 1px solid #bbb;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}
