/* css code */
 
* {
  font-family: "Noto Sans Tamil", "Lohit Tamil", sans-serif !important;
} 

/* body {
  font-family: 'Noto Sans Tamil', Arial, sans-serif;
} */

body {
  margin: 0;
  padding: 16px;
  background-color: white;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  box-sizing: border-box;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.headerTitle {
  font-weight: bold;
}

.logo-headerTitle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
}

.menu {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.menuButton {
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  background-color: #e0e0e0;
  color: black;
  border: none;
  border-radius: 8px;
  min-height: 44px;
  font-size: 14px;
}

/* LANGUAGE TOGGLE */
.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.lang-toggle button {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  max-width:15%;
}

.key-text {
  font-size: 40px;
  color: black;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 0px;
  text-align: center;
}

.sub-text {
  font-size: 20px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-align: center;
}

.birthDetailHeader {
  display:flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 40px;
}

.birthDetailContainer {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.birthDetails {
  border: 1px solid purple;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 360px;
  min-height: 250px;
  box-sizing: border-box;
}

.map {
  border: 1px solid purple;
  border-radius: 8px;
  width: 100%;
  max-width: 360px;
  height: 250px;
  overflow: hidden;
}

.submitBtn {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  background-color: #ccc;
  color: black;
  border: none;
  border-radius: 4px;
}

/* CHAT WINDOW */
#chatContainer {
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  height: 420px;
  width: 100%;
  max-width: 800px;
  background: #fafafa;
  border-radius: 8px;
}

#chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}



/* INPUT */
.input-box {
  width: 100%;
  padding: 10px;
}

.clear-btn {
  margin-top: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
}

#questionInput {
  margin-top: 10px;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  box-sizing: border-box;
}

.input-row input {
  flex: 1;
}

.input-row button {
  padding: 10px 16px;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: white;
  padding: 25px 20px;
  margin: 8% auto;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}

.modal-content h3 {
  margin-bottom: 15px;
  text-align: center;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0 15px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-width: 90%;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  background: purple;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

.clearBtn {
  background-color: #ccc;
  color: black;
  margin: 10px auto;
  display: block;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  body {
    padding: 12px;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .logo-headerTitle {
    justify-content: center;
  }

  .headerTitle {
    font-size: 22px;
  }

  .menu {
    width: 100%;
    justify-content: center;
  }

  .menuButton {
    flex: 1;
    font-size: 14px;
  }

  .lang-toggle {
    flex-direction: row;
  }

  .lang-toggle button {
    max-width: none;
    width: 100%;
  }

  .key-text {
    font-size: 28px;
    margin-top: 20px;
    line-height: 1.3;
  }

  .sub-text {
    font-size: 16px;
    line-height: 1.5;
  }

  .birthDetailContainer {
    flex-direction: column;
    align-items: center;
  }

  .birthDetails,
  .map {
    width: 100%;
    max-width: 100%;
  }

  .submitBtn {
    width: 100%;
    max-width: 350px;
    min-height: 48px;
  }

  #chatContainer {
    height: 500px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
    min-height: 48px;
  }

  .input-box {
    font-size: 16px;
  }

  h2,
  h3,
  p,
  li {
    word-break: break-word;
  }
}