

/* Container */
.container {
  max-width: 900px;
  margin: auto;
  padding: 0 15px;
}

/* Card */
.converter-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .converter-card {
  background: #1e1e1e;
  color: #f1f1f1;
}

/* Headings & Text */
.converter-card h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

body.dark-mode .converter-card h1 {
  color: #fff;
}

.converter-card p {
  margin-bottom: 12px;
  color: #555;
}

body.dark-mode .converter-card p {
  color: #ccc;
}

/* Form */
form {
  margin-top: 30px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

/* Input */
.input-half,
.input-full,
textarea {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  padding: 12px;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

body.dark-mode .input-half,
body.dark-mode .input-full,
body.dark-mode textarea {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
}

/* Textarea specific */
textarea {
  width: 100%;
  height: 150px;
  resize: vertical;
  margin-bottom: 20px;
}

/* Button */
.newbutton {
  padding: 12px 24px;
  background: #007BFF;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.newbutton:hover {
  background: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
  .input-half {
    flex: 1 1 100%;
  }

  .converter-card {
    padding: 20px;
  }
}

/* Scroll-to-top button */
.top-to-home-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ca2f2e;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 18px;
  text-align: center;
  display: none;
  z-index: 999;
  transition: background-color 0.3s ease;
}

.top-to-home-btn:hover {
  background-color: black;
}

/* Blink animation */
@keyframes blink {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}
