* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-image: url("image.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #e0e0e0;
}

.container {
  background: rgba(0, 0, 0, 0.7);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 0px 20px #328336;
  max-width: 600px;
  width: 100%;
  border: 2px solid #328336;
}

h1 {
  color: white;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 0px 20px #328336;
  letter-spacing: 2px;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  color: #64cc4f;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0px 20px #328336;
}

textarea {
  width: 100%;
  min-height: 160px;
  padding: 1.25rem;
  border: 2px solid #328336;
  border-radius: 20px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  transition: all 0.3s ease;
  line-height: 1.6;
  box-shadow: 0 3px 10px #328336;
  overflow: hidden;
}

textarea:focus {
  outline: none;
  border: solid 2px #2d8731;
  box-shadow: 0 0px 20px #328336;
}

textarea.warning {
  border-color: #ffab40;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 3px 20px rgba(255, 171, 64, 0.9);
}

textarea.max-reached {
  border-color: #ff4444;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 3px 20px rgba(255, 41, 41, 0.9);
}

.counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  border: 1px solid #64cc4f;
  box-shadow: 0 3px 20px #64cc4f;
}
.char-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: #00e676;
  text-shadow: 0 0px 20px #328336;
  letter-spacing: 0.5px;
}

.char-count.warning {
  color: #ffab40;
  text-shadow: 0 0 15px rgba(255, 171, 64, 0.6);
}

.char-count.max {
  color: #ff4444;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
}

.limit-info {
  font-size: 0.9rem;
  color: #328336;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 0px 10px #328336;
}

.warning-message {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 16px;
  margin-top: 1rem;
  display: none;
  border: 2px solid rgba(255, 68, 68, 0.6);
  font-weight: 700;
  box-shadow: 0 3px 20px rgba(255, 41, 41, 0.9);
  backdrop-filter: blur(10px);
}

.warning-message.show {
  display: block;
  animation: omnitrixPulse 0.6s ease-out;
}

@keyframes omnitrixPulse {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 480px) {
  body{
    padding: 1rem;
  }
  .container {
    padding: 1rem;
    border-width: 2px;
  }
  h1 {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  textarea {
    min-height: 140px;
    padding: 1rem;
  }
  .counter {
    padding: 0.875rem 1rem;
  }
}
