textarea::-webkit-scrollbar,
#phraseDiv::-webkit-scrollbar {
  width: 0.4em;
  background-color: #ffffff00 !important;
}

textarea::-webkit-scrollbar-track,
#phraseDiv::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3) !important;
  border-radius: 0.4em;
  background-color: #3b3b3b !important;
}

textarea::-webkit-scrollbar-thumb,
#phraseDiv::-webkit-scrollbar-thumb {
  border-radius: 0.4em;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3) !important;
  background-color: #847b7b !important;
}

textarea::-webkit-scrollbar-corner,
#phraseDiv::-webkit-scrollbar-corner {
  background-color: #847b7b;
}

/* @font-face {
font-family: 'ChinesePinyin';
src: URL('../font/DFGBKI5HWUU1.ttc') format('truetype');
}
 */

@font-face {
  font-family: "ChinesePinyin";
  src: url("../font/DFGBKI5HWUU1.woff2") format("woff2"),
    url("../font/DFGBKI5HWUU1.woff") format("woff");

  font-style: normal;
}
body {
  background-color: #62666b1f;
  margin: 0px;
  font-family: "Helvetica Neue", Helvetica, ChinesePinyin, Arial, sans-serif;
  font-size: 20px;
  
  
}
#footer {
  background-color: #2c2c2c;
  color: #ccc;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
}

#footer a{
  color : #ccc;
  text-decoration: none!important;
}
#footer a:hover {
  text-decoration: underline;
}



.hidden-text {
  text-align: left !important;
  margin: 0px !important;
  height: 0px !important;
  width: 0px !important;
  font-size: 0px !important;
  padding: 0px !important;
  opacity: 0 !important;
}
#textRecognition {
  text-align: left;
  margin-top: 13px;
  display: block;
  width: 100%;
  padding: 8px;
  padding-top: 16px;
  background-color: #333;
  color: white;
  border-radius: 5px;
  white-space: pre-wrap;
  word-break: break-word;
}
#googleTranslateInstant {
  text-align: left;
  margin: 0px;
  padding-bottom: 10px;
}

p {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

input[type="radio"],
input[type="checkbox"] {
  border: 0px;
  width: 1.2em;
  height: 1.2em;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.blinking {
  animation: blink 2s infinite;
}

.fade-out{
  animation: blink 2s 1;
}
.translate-pair {
  text-align: justify;
  display: inline-block; /* nhẹ hơn, chuẩn hơn cho khối */
  margin-bottom: 10px;
  max-width: 100%;
}
.target-lang {
  color: white;
  padding: 4px 8px;
  padding-bottom: 22px;
  padding-top: 10px;
  border-radius: 20px 20px 0px;
  font-size: 19px;
  line-height: 31px;
}
.source-lang {
 
  color: #e5ebf7;
  padding: 0px 5px;
  padding-top: 14px;
  border-radius: 20px;
  margin-top: -18px;
  margin-left: 23px;
  margin-bottom: 7px;
  font-size: 19px;
  line-height: 36px;
}

#phraseDiv {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 10px;
  /*  height: calc(100vh - 150px); */
}

.odd-source-lang {
  background-color: #3a3a3a;
}
.odd-target-lang {
  background-color: #5c5c5c;
}

.even-source-lang {
  background-color: #43853d;
}
.even-target-lang {
  background-color: #5560f5;
}
#googleTranslateFinal {
  position: relative;
  margin-bottom: 0px;
  padding-right: 35px;
  text-align: justify;
}

#button-group {
  position: fixed;
  top: -4px;
  right: 2px;
  display: block;
  gap: 7px;
  z-index: 999;
}
#topStatus{
  margin: 1px;
  padding: 7px;
  text-align: justify;
  height: 24px;
  width: calc(100vw - 155px);
  font-size: small;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.no-border {
  border: none !important;
  box-shadow: none; /* nếu có hiệu ứng shadow */
}

.btn-emoji {
  font-size: 23px;
}

.btn:active {
  filter: brightness(85%);
}
#switch-lang-btn{
  margin-bottom: 3px;

}

.custom-outline {
  color: green;
  text-shadow:
    -1px -1px 0 white,
     1px -1px 0 white,
    -1px  1px 0 white,
     1px  1px 0 white;
}

a{
  cursor: pointer;
  text-decoration: none;
}


#timerOverlay {
  position: absolute;
  top: 0;
  right: 0px;
  width: 48%;
  height: 100%;
  color: #ffffff;
  font-weight: bold;
  display: flex
;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  font-size: 0.65rem;
    -webkit-text-stroke: 0.3px #608eb2;
}
