:root {
  --primary-color: #232120;
  --secondary-color: #03dac6;
  --surface-color: #ffffff;
  --error-color: #b00020;
  --on-primary-color: #ffffff;
  --on-secondary-color: #000000;
  --on-surface-color: #000000;
  --elevation-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --floral-white: rgb(255, 251, 242);
}


section {
  width: 100%;
  margin: auto;
}


textarea {
  min-width: 98%;
  min-height: 150px;
  max-width: 98%;
  width: 98%;
  height: 200px;
  max-height: 500px;
  padding: 10px;
  background-color: #181717;
  /* Background color set */
  border-radius: var(--border-radius);
  border: 1px solid #181717;
  box-shadow: var(--elevation-shadow);
  color: #fff;
  /* Optional: Set text color to white for better contrast */
}

#result {
  display: none;
}

.card-container {
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 20px;
  color: var(--floral-white);
  box-shadow: var(--elevation-shadow);
  transition: box-shadow 0.3s ease;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: row;

}

.card-container:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.result-item {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  background-color: #f0f4ff;
  /* Light background for distinction */
  padding: 10px;
  border-radius: 8px;
  color: var(--primary-color);
}

.sentences-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.sentences-list {
  list-style-type: disc;
  padding-left: 20px;
}

.sentences-list li {
  margin-bottom: 0.3rem;
  padding: 5px;
  border-radius: 4px;
  background-color: #e8f2fc;
  /* Light blue background for sentences */
}

#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Ensure it covers everything */
}

.loader {
  font-size: 24px;
  color: white;
  /* Loader text color */
  text-align: center;
  /* Add a spinner */
  position: relative;
}

.loader::after {
  content: '';
  width: 50px;
  height: 50px;
  border: 5px solid white;
  /* Spinner color */
  border-top: 5px solid transparent;
  /* Spinner color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  /* Spinner animation */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


.card-heading-text {
  color: var(--floral-white);
  font-size: 25px;
}

.heading-text {
  color: var(--floral-white);
  font-size: 45px;
  text-align: center;
  font-weight: bold;
}

.primary-btn {
  padding: 10px 20px;
  background-color: white;
  /* Background color when enabled */
  color: black;
  /* Text color when enabled */
  border: 2px solid white;
  /* White outline */
  border-radius: 100px;
  font-weight: bold;
  cursor: pointer;
  /* Pointer on hover */
  transition: background-color 0.3s, color 0.3s;
  /* Smooth transition */
}

.primary-btn:disabled {
  background-color: transparent;
  /* Background color when disabled */
  color: white;
  /* Text color when disabled */
  border: 2px solid white;
  /* Maintain white outline */
  cursor: not-allowed;
  /* Not-allowed cursor when disabled */
}

.primary-btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
  /* Slight change on hover */
}

.primary-btn:disabled:hover {
  background-color: transparent;
  /* No hover effect when disabled */
  color: white;
  /* Maintain text color when disabled */
}

.textarea-section {
  flex: 1;
  padding: 20px;
}

.result-section {
  padding: 20px;
  width: 25%;
}

.btn-container {
  display: flex;
  justify-content: space-between;
}

.button-container {
  display: flex;
  align-items: center;
  /* Vertically center the buttons */
}

.button i {
  color: white;
  /* Set the icon color to white */
  font-size: 18px;
  /* Increase the icon size */
}

.separator {
  width: 1px;
  /* Adjust the width of the separator line */
  height: 30px;
  /* Adjust the height as needed */
  background-color: gray;
  /* Set the color of the separator */
  margin: 0 2px;
  /* Spacing around the separator */
}

.result-title {
  color: var(--floral-white);
  font-size: 25px;
}

.sentence-result-section {
  background-color: var(--primary-color);
  margin-bottom: 50px;
  border-radius: var(--border-radius);
}

.sentences-title {
  color: var(--floral-white);
  text-align: center;
  font-size: 30px;
}

.sentences-list {
  width: 100%;
  margin: auto;
  color: #000000;
}

ul li {
  text-decoration: none;
}

.product-free .mdl-button {
  background: 0 0;
  border: none;
  border-radius: 2px;
  color: #000;
  position: relative;
  height: 36px;
  margin: 0;
  min-width: 64px;
  padding: 0 16px;
  display: inline-block;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow: hidden;
  will-change: box-shadow;
  transition: box-shadow .2s cubic-bezier(.4, 0, 1, 1), background-color .2s cubic-bezier(.4, 0, .2, 1), color .2s cubic-bezier(.4, 0, .2, 1);
  outline: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 36px;
  vertical-align: middle;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}