.containera {
  max-width: 700px;
  margin: auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.til-g h2 {
  text-align: center;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}

button[type="submit"] {
  background-color: #008080 !important;
  color: white;
  padding: 10px 24px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin: auto;
}

button[type="submit"]:hover {
  background-color: #000 !important;
}
button[type="submit"]:active {
  background-color: #008080 !important; 
}

.output-section {
  position: relative;
  margin-top: 20px;
  padding: 20px;
  background: #eef8ff;
  border-radius: 10px;
  min-height: 100px;
}

#result {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.6;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#copyBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #2ecc71;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  color: white;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#copyBtn:hover {
  background: #27ae60;
}

/* Tooltip style */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 80px;
  background-color: #000;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: -38px;
  right: 0;
  font-size: 12px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
