/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #f7f9fc;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  user-select: none;
}

.container {
  background: #fff;
  max-width: 480px;
  width: 100%;
  border-radius: 12px;
  padding: 2.5rem 2rem 3rem;
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.1);
  text-align: center;
  user-select: text;
}

/* Visually hidden for accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.logo {
  font-weight: 700;
  font-size: 2.75rem;
  margin-bottom: 1.75rem;
  letter-spacing: 0.1em;
  color: #3b82f6; /* Blue-500 */
  user-select: text;
}

/* Textarea */
textarea#originalText {
  width: 100%;
  min-height: 180px;
  border-radius: 10px;
  border: 2px solid #cbd5e1; /* Gray-300 */
  padding: 1rem;
  font-size: 1rem;
  font-family: 'Source Code Pro', monospace, monospace;
  color: #334155; /* Gray-700 */
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.05);
}

textarea#originalText::placeholder {
  color: #94a3b8; /* Gray-400 */
  font-style: italic;
}

textarea#originalText:focus {
  outline: none;
  border-color: #3b82f6; /* Blue-500 */
  box-shadow: 0 0 8px #3b82f6;
  color: #1e293b; /* Gray-900 */
  background-color: #fff;
}

/* Button */
#stripHTML {
  margin-top: 1.75rem;
  background-color: #3b82f6; /* Blue-500 */
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 6px 15px rgb(59 130 246 / 0.5);
  user-select: none;
}

#stripHTML:hover,
#stripHTML:focus {
  background-color: #2563eb; /* Blue-600 */
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgb(37 99 235 / 0.7);
  outline: none;
}

/* Message */
#message {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #dbeafe; /* Blue-100 */
  color: #1e40af; /* Blue-900 */
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 20px #93c5fd; /* Blue-300 */
  transition: opacity 0.5s ease;
  user-select: none;
  z-index: 9999;
}

#message.show {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 480px) {
  .logo {
    font-size: 2rem;
  }
  #stripHTML {
    width: 100%;
    font-size: 1.1rem;
  }
  textarea#originalText {
    min-height: 150px;
  }
}
