.pill-container-down {
  position: absolute;
width: min(785px, calc(100vw - 120px));
  height: 55px;
  display: flex;
  max-height: 450px;
  left: 50%;
  margin-top: 120px;
  transform: translateX(-50%);
}

.pill-container-up {
  position: fixed;
  width: clamp(300px, 70vw, 785px);
  height: 55px;
  bottom: 45%;
  max-height: 450px;
  z-index: 9997;
}

.search-pill {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: none;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--secondary-color);
  /* background-color: blue; */
  /* opacity: 0.2; */
}

.add-container{
  position: absolute;
  margin-left: 12px;
  display: flex;
  align-items: center; /* vertically centers the textarea */
  justify-content: center; /* optional */
  /* background-color: black; */

}

.pill-add {
  position: absolute;
  width: 36px;
  height: 36px;
  padding-top: 2px;
  border-radius: 50%;
  border: none;
  background-color: var(--secondary-color);
  color: white;
  font-size: 28px;
  font-weight: 200px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}

  .text-container {
  position: absolute;
width: calc(100% - 180px);
  height: 55px;
  margin-left: 35px;
  display: flex;
  align-items: center; /* vertically centers the textarea */
  justify-content: flex-start; /* optional */
  /* padding: 0;
  margin: 0; */
  /* box-sizing: border-box; */
  z-index: 9999;
  /* max-height: 450px; */
  /* background-color: pink; */
}

.text-container textarea {
  display: flex;
  line-height: 1.4;
  width: 100%;
  /* padding: 0; */
  /* margin: 0; */
  border: none;
  outline: none;
  resize: none;
  background: var(--secondary-color);
  color: var(--text-color);
  font: inherit;
  max-height: 450px;
}

.text-area::placeholder {
  color: var(--placeholder-color, rgba(255,255,255,0.6));
  
}

.dictate-submit-btns {
  position: absolute;
  right: 0px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-right: 10px;
}

.pill-dictate{
  margin-top: 3px;
  padding-top: 1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.pill-submit{
  position: relative; /* <-- add this */
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in lab, var(--secondary-color) 80%, white);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  opacity: 0.2;
  cursor: default;
}




textarea::placeholder {
  color: color-mix(in lab, var(--primary-color) 40%, white);
  opacity: 1;       /* makes it fully visible */
}

.svg-wrapper {
  display:flex;
}

.svg-wrapper img {
  position: absolute; /* stack on top of each other */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease; /* smooth fade */
}

/* Initially, show arrow, hide box */
.arrow {
  opacity: 1;
}

.box {
  opacity: 0;
}






/* REMOVE X IN INPUT BAR FOR DIFFERENT BROWSERS */
/* Chrome, Edge, Safari */
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Firefox */
.search-input[type="search"]::-moz-search-clear {
  display: none;
}
/* SEARCH PILL ***********************************************************/
  .container_row{
  padding-top: 3px;
  display: flex;
  align-items: center;
  vertical-align: center;
}

.layer1{
  width: 100%;
  height: 100%;
  
  /* background-color: rgba(255,0,0,0.5); */
}

.layer2{
  width: 100%;
  height: 100%;
  margin-left: -100%;
  /* background-color: rgba(0,0,255,0.5); */
}

