/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #00aaff, #88d8f2);
  color: #333;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Make body height 100% of the viewport */
  text-align: center;
  overflow: hidden; /* Prevent the whole page from scrolling */
}

.container {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  overflow: auto; /* Allow scrolling inside the container if needed */
}

h1 {
  color: #007bff;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

textarea {
  width: 90%;
  max-width: 700px;
  height: 120px;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 1.5rem;
  resize: none;
  outline: none;
}

textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
  background-color: #007bff;
  color: white;
  font-size: 1rem;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  margin: 10px;
}

button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Updated response box for scrollable content */
.response {
  margin-top: 2rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  max-height: 250px;  /* Reduced height for a smaller box */
  overflow-y: auto;   /* Enables scrolling */
}

.buttons {
  margin-top: 2rem;
}

.buttons button {
  padding: 12px 24px;
  background-color: #28a745;
  font-weight: 500;
}

.buttons button:hover {
  background-color: #218838;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  textarea {
    font-size: 1rem;
  }
  
  button {
    font-size: 0.9rem;
  }
}

/* Responsive Design Enhancements */
@media (max-width: 500px) {
  .container {
    padding: 2rem;
  }
  
  textarea {
    width: 100%;
  }

  button {
    width: 100%;
    padding: 15px;
  }
}
