/* Global Styles */

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
  }
  
  .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0px;
  }
  
  /* Header Styles */
  
  header {
    background-color: #007bff;
    color: #fff;
    padding: 0px;
    text-align: center;

    position: fixed;
    width: 100%;
    box-shadow: 1px -2px 10px 2px rgb(51 51 53);
  }
  
  h1 {
    margin: 0;
    font-size: 28px;
    color: #021c6a;
    text-shadow: 6px -2px 6px black;
    transform: translate(0px, 5px);
    display: block;
    position: sticky;
    z-index: 1;
    font-family: 'FontAwesome';
    text-align: center;
    padding: 10px;
  }
  
  /* Form Styles */

  .srcinp {
    position: fixed;
    top: 0;
    width: 100%;
    width: -webkit-fill-available;
}
  
  form {
    
  }

  form#searchForm {
    display: flex;
    align-items: baseline;
    margin-bottom: 50px;
    padding: 2px;
    box-shadow: 0px 0px 10px 1px rgb(0 0 0);
    z-index: 2;
    position: fixed;
    bottom: 0;
    width: 100%;
    width: -webkit-fill-available;
  }
  
  input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  input#word {
    display: flex;
    max-width: -webkit-fill-available;
    box-shadow: inset 0px 0px 2px rgb(175 170 170);
    transform: translate(0px, -4px);
  }

  button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transform: translate(0px, -4px);
  }

  i.fa-solid.fa-book.fa-2xl {
    transform: translate(-1px, -4px);
    color: #002c53;
}
  
  /* Results Styles */
  
  div#search-results {
    padding-top: 70px;
    padding-bottom: 120px;
}

  /* Error Message Styles */
  
  .error-message {
    color: #ff0000;
    margin-top: 20px;
  }

  p {
    padding: 5px;
    text-align: center;
  }
  .wlcm {
    font-family: cursive;
  }

  div#api-data {
    margin-top: 60px;
    border: 3px outset #f2f6fa;
    border-radius: 10px;
    box-shadow: 0px 0px 1px 0px rgb(5 19 51 / 84%);
    height: 90% ;
    height: -webkit-fill-available;
  }
  
  /* Footer Styles */
  
  footer {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 10px;
  }

  .highlighted {
    background-color: yellow;
    font-weight: bold;
  }

  
  /* Media Queries for Responsive Design */
  
  @media (max-width: 600px) {
    h1 {
      font-size: 24px;
    }
  }
  
/* Style for button navigation */
.button-navigation {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  background-color: #d6dbe1de;
  box-shadow: 0px 0px 10px rgb(0 0 0 / 31%);
}

.button-navigation ul {
  display: flex;
  padding: 0;
  justify-content: space-evenly;
  list-style: none;
  margin: 6px 0px 0px 0px;
}

.button-navigation li {
  padding: 10px;
  cursor: pointer;
}

.button-navigation li i {
  font-size: 16px;
}

/* Optional: Add styles for active button (if you want to highlight the active page) */
.button-navigation li.active {
  color: #01182a;
  background: #71aef754;
  font-size: large;
  margin-top: 2px;
  border-radius: 20px 20px 0px 0px;
  box-shadow: 0 0 8px 2px rgb(3 30 55 / 73%);
  transform: translate(0px, 1px);
}

/* Slide effect for page transition */
.page {
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  transition: opacity 0.8s, transform 0.5s;
  transform: translateX(0);
  
}

.page.active {
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
    margin-bottom: 100px;
    background: #dfe4e7;
    box-shadow: 0px 0px 1px rgb(0 0 0);
    border-radius: 3px;
    padding: 3px;
    margin: 3px;
    position: fixed;
}

.slide-in {
  animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.pxbutton {
    display: block;
    position: absolute;
    bottom: 0;
    left: 40%;
}

/* Chat bubble styles */
strong.fa-solid.fa-message.fa-flip-horizontal.fa-lg {
  display: block;
  position: absolute;
  z-index: 1;
  left: 2px;
  color: #b6bfc4;
  text-shadow: -2px 2px 2px #000000bd;
}
.typing-animation {
  display: inline-block;
  border-radius: 20px;
  padding: 10px 10px;
  background-color: inherit;
  color: #333;
  font-size: 16px;
  font-family: monospace;
  margin-bottom: 0px;
  /* animation: typing 2s infinite; */
}
.typing-animation b {
  color: #221616;
  text-shadow: 0 0 10px #c27878ad;
  /*border-right: 3px double;*/
  border-radius: 3px;
  padding-right: 2px;
}
.typing-animation i {
  color: #85148a;
  text-shadow: 0 0 10px #262323ad;
  border-bottom: 1px dashed;
}
.typing-animationxx {
  display: inline-block;
  border-right: 2px solid #000; /* Simulate a blinking cursor */
  padding-right: 5px; /* Adjust the cursor's distance from text */
  color: #000; /* Text color */
}


@keyframes typing {
  0%, 100% {
      opacity: 0.6;
  }
  50% {
      opacity: 1;
  }
}

div#translationResult {
  background-color: #fbfbfb;
  margin: 100px 3px 100px 3px;
  padding: 3px;
  border-radius: 10px;
  box-shadow: 0px 0px 2px 0px rgb(69 68 68);
}
img.myctn {
  mix-blend-mode: multiply;
  max-width: 50%;
  transform: translate(50%, -100px);
  position: relative;
}
span.avt {
  display: flex;
  position: absolute;
  max-width: 60px;
  padding: 2px;
  border-radius: 50%;
  box-shadow: 0px 0px 1px 0px rgb(0 0 0);
  transform: translate(-65px, -10px);
}
span.avt img {
  max-width: 50px;
  /* position: fixed; */
  border-radius: 50%; 
	box-shadow: 0px 0px 1px 0px rgb(0 0 0);
}

a#showInterstitialButton {
    display: flex;
    position: fixed;
    text-shadow: 0 0 10px #7aeedd;
    background: #c2eda4a3;
    margin: 2px;
    padding: 5px 1px 5px 1px;
    bottom: 200px;
    text-decoration: none;
    box-shadow: 0px 0px 4px 0px rgb(16 16 16 / 88%);
    border-radius: 12px;
    /* transform: translate(100px, 100px); */
    flex-direction: column;
    align-items: center;
    color: #062702;
}

.share {
  display: flex;
  justify-content: space-evenly;
  position: relative;
  top: auto;
  margin: 10px;
}
.share span {
  display: flex;
  /* background: #4b8bc4; */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0px 0px 10px 0px rgb(30 188 207);
  /* transform: translate(10px, 10px); */
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  text-shadow: 0px 0px 2px #3c0aeec2;
}
.scrollbox {
  height: 86% !important;
  width: 98%;
  width: -webkit-fill-available;
  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 82%;
  overflow-y: auto;
  padding-bottom: 40px;
}
button.tts-button {
    position: fixed;
    right: 0;
	bottom: 150px;
    /* transform: translate(-13px, -172px); */
    border-radius: 80px;
    background: #3877c20a;
    text-shadow: 0 0 8px black;
}