/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Body styling */
body {
  background-color: #f4f6f8;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px;
}

/* Buttons */
button {
  background-color: #0078d7;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  font-size: 3rem;
  margin: 10px;
}

button:hover {
  background-color: #005fa3;
}

button:active {
  transform: scale(0.98);
}

/* Text area styling */
textarea {
  width: 80%;
  height: 150px;
  margin: 20px 0;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 3rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
  border-color: #0078d7;
  box-shadow: 0 0 6px rgba(0, 120, 215, 0.3);
}

#response {
    background-color: #e9ecef;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 50px;
    /* These two lines are key for readable JSON in a <pre> tag */
    white-space: pre-wrap;
    word-wrap: break-word; 
    font-family: monospace;
    margin-top: 15px;
}
