.invalid {
    color: red !important;
    text-decoration: underline !important;
}
.autocorrect {
    color: blue !important;
}
.results {
    margin-top: 1000px;
}


#popup li {
    cursor: pointer;
    display: block;
    min-height: 1.5em;
    margin: 6px 0 0 0;
    padding: 0px 5px;
    white-space: nowrap;
    min-width: 50px;
    border-radius: 5px;
}

#popup ul{
  padding-inline-start: unset;
  min-width: 50px;
  font-size: 15x;
  font-family: Noto Sans Sinhala;
  

}

#popup{
position: absolute;
    display: none;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cdcdcd;
    padding: 6px;
    font-size: 16px;
    -webkit-box-shadow: 0 4px 16px #00000033;
    -moz-box-shadow: 0 4px 16px #00000033;
    box-shadow: 0 4px 16px #00000033;
    z-index: 2147483644;
    text-align: justify;
    overflow: hidden;
    border-radius: 10px;
    left: auto! important;
}

#popup li:hover {
    background-color: #d9d9f4;
}


    div #txtRe, #txtUnicode{
        border-radius: 25px;
        padding: 10px 20px;
    }



/* Focus styles (Fix!) */

#txtUnicode{
max-width: 100% !important;
}

div #txtRe{
min-width: 100%;
max-width: 100%;
transition: height 0.2s ease;

}




/* Modern toggle switch style */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  aspect-ratio: 2 / 1; /* height will be 30px if width is 60px */
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #d9d9f4;
  transition: 0.4s;
  border-radius: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 4px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  aspect-ratio: 1 / 1; /* height will be 15px if width is 15px */
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #6964f7;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Optional label text */
.toggle-label {
  font-family: Noto Sans Sinhala;
  margin-left: 5px;
  vertical-align: middle;
}

#mode{
   position: absolute;
   top: 10px;
   left: 100px;
}

@media only screen and (max-width: 768px){

#mode{
 position: unset;;
}


}