/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0038A8, #CE1126);
  color: #333;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  padding: 20px;
}

/* Particles container covers the entire background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.description {
  text-align: center;
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Card style for sections */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #0038A8;
}

/* Textarea */
textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  font-size: 1em;
  margin-bottom: 15px;
}

/* Buttons */
button {
  width: 100%;
  padding: 12px;
  background: #FCD116;
  color: #0038A8;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
}

button:hover {
  background: #CE1126;
  color: #fff;
}

/* Professional & Modern Response Boxes */
.response-box {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 80px;
  overflow-wrap: break-word;
  white-space: pre-wrap; /* Preserves line breaks and spaces */
}

/* Optional: Format paragraphs within the response box */
.response-box p {
  margin-bottom: 12px;
}

/* Optional: Format code blocks in the response box */
.response-box code {
  display: block;
  padding: 8px;
  background: #f5f5f5;
  border-left: 3px solid #CE1126;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
}

/* File Input */
input[type="file"] {
  display: block;
  margin: 0 auto 15px;
}

/* Separator */
.separator {
  border: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin: 40px 0;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  h1 {
    font-size: 2em;
  }
  
  .card {
    padding: 15px;
  }
  
  textarea, button, .response-box {
    font-size: 0.9em;
  }
  
  .description {
    font-size: 1em;
  }
}
