body {
  background: #eef2fe;
}

/* WhatsApp Button */
.whatsapp-btn {
  margin: 5px 0px;
  display: flex;
  justify-content: center;
  background-color: #25d366;
  /* WhatsApp brand color */
  color: #fff;
}

.whatsapp-btn:hover {
  color: #fff;
  background-color: #1eab39;
  /* Darkened WhatsApp brand color */
}

/* Telegram Button */
.telegram-btn {
  margin: 5px 0px;
  display: flex;
  justify-content: center;
  background-color: #0088cc;
  /* Telegram brand color */
  color: #fff;
}

.telegram-btn:hover {
  color: #fff;
  background-color: #006699;
  /* Darkened Telegram brand color */
}

/* Facebook Button */
.facebook-btn {
  margin: 5px 0px;
  display: flex;
  justify-content: center;
  background-color: #3b5998;
  /* Facebook brand color */
  color: #fff;
}

.facebook-btn:hover {
  color: #fff;
  background-color: #2a3f6d;
  /* Darkened Facebook brand color */
}

/* SMS Button */
.sms-btn {
  margin: 5px 0px;
  display: flex;
  justify-content: center;
  background-color: #007bff;
  /* SMS brand color */
  color: #fff;
}

.sms-btn:hover {
  color: #fff;
  background-color: #0056b3;
  /* Darkened SMS brand color */
}

.sub-btn {
  margin: 5px 0px;
  display: flex;
  justify-content: center;
  background-color: #6366f1;
  color: #fff;
}

.sub-btn:hover {
  color: #fff;
  background-color: #4f51c0;
}

.isDisabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

header {
  background-color: #6366f1;
  padding: 8px 0px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 200px;
}

.share svg {
  width: 20px;
  height: 20px;
}

@media only screen and (max-width: 600px) {
  .logo img {
    width: 150px;
  }

  .share {
    font-size: 15px;
  }

  .share svg {
    width: 16px;
    height: 16px;
  }
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
}

.main_textarea {
  min-height: 250px !important;
  resize: vertical;
}

.added {
  background-color: #d4edda;
  color: #155724;
}

.removed {
  background-color: #f8d7da;
  color: #721c24;
  text-decoration: line-through;
}

.output-box-diff {
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #f9f9f9;
}

.diff-equal {
  background-color: #e9f7ef;
}

.diff-diff {
  background-color: #fdecea;
}

.diff-empty {
  background-color: #f8f9fa;
  font-style: italic;
}

.output-box-updown {
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 100px;
}

.output-container-random {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  padding: 15px;
  background-color: #f8f9fa;
}

.kamoji_alert {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #e0ffe0;
  color: green;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  z-index: 9999;
}

.card-box a {
  text-decoration: none;
  color: #000;
}

.codehap_item {
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(71, 75, 255, 0.075);
  padding: 8px 5px;
  border-radius: 10px;
  margin: 10px 5px;
  border: 1px solid #fff;
  text-align: center;
}

.codehap_active {
  border: 1px solid green;
  background: #e6fff4;
}

.color-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.color-btn.border {
  border: 3px solid #333;
}

.canvas-container {
  position: relative;
}
.placeholder-text {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.textartsboxsec {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* boxed */
.textartsbox {
  flex: none;
  padding: 0.75rem;
  margin: 5px;
  display: flex;
  float: left;
}
.textartsbox .items {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5em 1em -0.125em rgb(10 10 10 / 10%),
    0 0 0 1px rgb(10 10 10 / 2%);
  color: #4a4a4a;
  display: block;
  padding: 1rem;
  float: left;
  height: 100%;
  position: relative;
}
.textartsbox .prewrap {
  max-height: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  height: 80%;
  max-height: 500px;
  position: relative;
}
.textartsbox pre,
.the_copied_text {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #000000;
  overflow: hidden;
  font-weight: bold;
  padding: 1.25rem 1.5rem;
  white-space: pre;
  word-wrap: normal;
  -moz-osx-font-smoothing: auto;
  -webkit-font-smoothing: auto;
  font-family: monospace;
  cursor: pointer;
}

.the_copied_text {
  font-size: 2px !important;
}

.textartsbox pre:hover {
  background: #ffe08a;
  border-radius: 12px;
}

.art {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5em 1em -0.125em rgb(10 10 10 / 10%),
    0 0 0 1px rgb(10 10 10 / 2%);
  color: #4a4a4a;
  display: flex;
  justify-content: center;
  padding: 1rem;

  flex-direction: column;
  min-width: 300px;
}

.art_box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 300px;
}

@media screen and (max-width: 600px) {
  .art {
    margin: auto;
  }
}

.tool-card {
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #dee2e6;
}

.tool-card:hover {
  background-color: #f0f0f0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.tool-card svg {
  width: 30px;
  height: 30px;
  fill: #0d6efd;
  margin-bottom: 0.5rem;
}

.tool-card-title {
  font-weight: 500;
  color: #212529;
  font-size: 1.05rem;
}

.tool-link {
  text-decoration: none;
}

.navbar {
  background-color: #fff;
  box-shadow: 0 0 0 1px #eaeaea, 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 150px;
  height: auto;
}

.sharebtn {
  padding: 10px 15px;
  margin: 5px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex; /* Use flex to align text properly */
  align-items: center; /* Center text vertically */
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  height: 40px;
  color: #fff;
  min-width: 110px;
}

.copy-btn {
  background: #333;
}

.whatsapp {
  background: #25d366;
}
.telegram {
  background: #0088cc;
}
.twitter {
  background: #1da1f2;
}
.facebook {
  background: #1877f2;
}

.display-text {
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.input-area {
  font-size: 18px;
  resize: none;
}

.highlight-correct {
  background-color: #d4edda;
}

.highlight-incorrect {
  background-color: #f8d7da;
  text-decoration: underline;
}

.current-word {
  background-color: #cce5ff;
}

.timer {
  font-size: 24px;
  font-weight: bold;
}

.test-finished {
  display: none;
}

.input-disabled {
  background-color: #e9ecef;
}

#keyboard {
  text-align: center;
  margin-top: 20px;
}

.key {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 2px;
  line-height: 40px;
  text-align: center;
  background-color: #e9ecef;
  border-radius: 5px;
  font-weight: bold;
}

.key-active {
  background-color: #007bff;
  color: white;
}

.key-special {
  width: auto;
  min-width: 60px;
  padding: 0 10px;
}

.key-space {
  width: 200px;
}
