/* 🌑 General Body Styling */
body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: black;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden; /* Prevents unwanted scroll */
}

/* 🌐 Main Container Styling */
.container {
  background-color: orangered;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  margin: 10px;
  border-radius: 15px; /* Smoother rounded corners */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  z-index: 1;
  box-sizing: border-box;
}

/* 🌑 Textarea Styling */
.textarea {
  border-radius: 9px;
  resize: none;
  width: 100%;
  height: 120px;
  font-size: 16px;
  font-family: sans-serif;
  padding: 10px;
  box-sizing: border-box;
  border: solid 2px darkgray;
  transition: all 0.3s ease;
}

/* Focus effect on textarea */
.textarea:focus {
  outline: none;
  border-color: #fff;
}

/* 🌐 Counter Container Styling */
.counter-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 5px 0;
}

/* 🌑 Counter Text Styling */
.counter-container p {
  font-size: 16px;
  color: white;
  margin: 5px 0;
}

.total-counter,
.remaining-counter {
  color: white;
  font-weight: bold;
}

/* 🌊 Watermark Styling */
.watermark {
  font-family: 'Times New Roman', Times, serif;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 10px;
  font-size: 130px;
  color: rgba(251, 243, 243, 0.2);
  pointer-events: none;
  transform: rotate(-20deg);
  margin-bottom: 80px;
  margin-right: 160px;
  z-index: 0;
  transition: all 0.3s ease;
}

/* 🌍 Footer Styling */
.footer {
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 10px;
  color: orangered;
  text-align: right;
  z-index: 2;
  transition: all 0.3s ease;
}

.footer:hover {
  color: #fff;
  transform: scale(1.1);
}

/* 🌐 Responsive Design */

/* Large Screens */
@media (min-width: 1200px) {
  .container {
    max-width: 500px;
    padding: 20px;
  }

  .textarea {
    font-size: 16px;
    height: 120px;
  }

  .counter-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .watermark {
    font-size: 130px;
  }

  .footer {
    font-size: 14px;
    padding: 10px;
  }
}

/* Tablets & Medium Screens */
@media (max-width: 1200px) and (min-width: 768px) {
  .container {
    max-width: 85%;
    padding: 20px;
  }

  .textarea {
    font-size: 15px;
    height: 110px;
  }

  .counter-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .watermark {
    font-size: 120px;
  }

  .footer {
    font-size: 13px;
    padding: 8px;
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
    margin: 10px 0;
    max-width: 100%;
  }

  .textarea {
    font-size: 14px;
    height: 100px;
  }

  .counter-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .counter-container p {
    font-size: 14px;
  }

  .watermark {
    font-size: 100px;
    margin-bottom: 50px;
    margin-right: 100px;
  }

  .footer {
    font-size: 12px;
    padding: 8px;
  }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
  body {
    padding: 5px;
  }

  .container {
    padding: 12px;
    margin-bottom: 50px;
    max-width: 100%;
  }

  .textarea {
    font-size: 13px;
    height: 90px;
  }

  .counter-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .counter-container p {
    font-size: 12px;
  }

  .watermark {
    font-size: 90px;
    margin-bottom: 40px;
    margin-right: 80px;
  }

  .footer {
    font-size: 11px;
    padding: 6px;
  }
}
