* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background-color: #eaeaea;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

h1 {
  color: #45a049;
  margin-bottom: 20px;
  font-size: 24px;
}

label {
  display: block;
  font-size: 16px;
  color: #555;
  margin-top: 15px;
  margin-bottom: 5px;
  text-align: left;
}

select,
input {
  width: calc(100% - 20px);
  padding: 10px;
  font-size: 16px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  margin: 10px 5px;
}

button:hover {
  background-color: #45a049;
}

#result {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

#history {
  background-color: gray;
  padding: 10px;
  margin-top: 20px;
  border-radius: 4px;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
}

#history p {
  font-size: 14px;
  color: white;
  margin-bottom: 5px;
}

canvas {
  margin-top: 20px;
  max-width: 100%;
  max-height: 20%;
  background: #eaeaea;
}

@media (max-width: 600px) {
  .container {
      padding: 15px;
  }

  h1 {
      font-size: 20px;
  }

  label {
      font-size: 14px;
  }

  select,
  input {
      font-size: 14px;
      padding: 8px;
  }

  button {
      font-size: 14px;
      padding: 8px 12px;
  }

  #result {
      font-size: 16px;
  }
}
