@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@600&display=swap');
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
height: 100vh;
background: #ffffff;
color: #333;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#indexPage #avatarChooser {
display: inline-block;
text-align: center;
padding: 10px;
border: 3px solid #0400ce;
transition: transform 0.2s, box-shadow 0.2s;
cursor: pointer;
}
#indexPage #avatarChooser:hover {
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
#indexPage #avatarChooser img {
width: 300px;
height: 375px;
object-fit: cover;
transition: transform 0.2s, border 0.2s;
}
#indexPage #avatarChooser:hover img {
transform: scale(1.1);
border-color: #6a1b9a;
}
#indexPage #startButton {
padding: 15px 35px;
border: none;
border-radius: 30px;
background: #6a1b9a;
color: #fff;
font-weight: bold;
font-size: 1.2rem;
cursor: pointer;
transition: background 0.3s, transform 0.2s;
}
#indexPage #startButton:hover {
background: #4a148c;
transform: scale(1.05);
}
#chatContainer {
width: 95%;
max-width: 1200px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
margin: 20px auto;
}
#chatContainer h1 {
color: #6a1b9a;
margin-bottom: 20px;
text-align: center;
}
#chatLayout {
display: flex;
align-items: stretch;
justify-content: space-between;
width: 100%;
}
.avatarSide {
display: flex;
flex-direction: column;
align-items: center;
width: 250px;
}
.avatarSide img {
width: 250px;
height: 300px;
object-fit: cover;
border: 3px solid #0400ce;
border-radius: 12px;
margin-bottom: 8px;
}
.avatarLabel {
font-weight: bold;
color: #0400ce;
font-size: 16px;
letter-spacing: 0.5px;
font-weight: 600;
font-family: 'Raleway', sans-serif;
}
.chatCenter {
flex: 1;
margin: 0 20px;
display: flex;
flex-direction: column;
align-items: stretch;
min-width: 0;
}
#chatBox {
width: 100%;
height: 600px;
overflow-x: hidden;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 10px;
padding: 15px;
background: #fafafa;
margin-bottom: 10px;
display: flex;
flex-direction: column;
}
.message {
margin: 6px 0;
padding: 10px 15px;
border-radius: 20px;
max-width: 70%;
word-break: break-word;
width: fit-content;
min-width: 0;
font-size: 15px;
hyphens: auto;
font-family: 'Raleway', sans-serif;
}
.message.you {
background: #DFFFD6;
align-self: flex-start;
border-bottom-left-radius: 5px;
}
.message.stranger {
background: #D0E7FF;
align-self: flex-end;
border-bottom-right-radius: 5px;
}
.message.system {
background: #eee;
color: #555;
text-align: center;
align-self: center;
border-radius: 10px;
font-style: italic;
}
#inputArea {
display: flex;
width: 100%;
justify-content: center;
}
#messageInput {
flex: 1;
padding: 10px 15px;
border-radius: 20px;
border: 1px solid #ccc;
outline: none;
font-size: 14px;
font-family: 'Raleway', sans-serif;
color:
}
#sendButton, #leaveButton {
padding: 10px 20px;
margin-left: 10px;
border: none;
background: #0400ce;
color: #fff;
font-weight: bold;
border-radius: 20px;
cursor: pointer;
transition: background 0.3s;
font-family: 'Raleway', sans-serif;
}
#leaveButton {
background: #321b9a;
}
#sendButton:hover {
background: #4a148c;
}
#leaveButton:hover {
background: rgb(255, 0, 0);
}
footer {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
padding: 10px 0;
background: #f9f9f9;
}
.footer-line {
border-top: 1px solid #ccc;
position: relative;
margin: 0 auto;
max-width: 600px;
padding-top: 10px;
}
.footer-title {
position: absolute;
top: -12px;
left: 50%;
transform: translateX(-50%);
background: #f9f9f9;
padding: 0 10px;
font-weight: bold;
color: #321b9a;
}
#avatarChooser {
text-align: center;
margin: 20px;
}
#avatarChooser img {
width: 150px;
cursor: pointer;
transition: transform 0.2s;
}
#avatarChooser img:hover {
transform: scale(1.1);
}
#prevBtn, #nextBtn {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 3rem;
background: none;
border: none;
color: white;
cursor: pointer;
padding: 20px;
}
#prevBtn { left: 20px; }
#nextBtn { right: 20px; }
#closeCarousel {
position: absolute;
top: 15px;
right: 25px;
font-size: 3rem;
color: white;
cursor: pointer;
}
#selectBtn {
padding: 10px 20px;
border: none;
background: #0f1164;
color: #fff;
font-weight: bold;
border-radius: 10px;
cursor: pointer;
}
#selectBtn:hover {
background: #171ac2;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
background:white;
color: #333;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
header img:hover
{
transform: scale(1.05);
}
p
{
color: #321b9a;
}

ul
{
  color: #321b9a;
}
#logo
{
float: left;
}
header h1 {
color: #1b3d9a;
margin-bottom: 20px;
font-size: 3rem;
text-align: center;
}
header nav {
display: flex;
margin-bottom: 30px;
}
header nav a {
margin: 0 20px;
color: #0400ce;
text-decoration: none;
font-weight: bold;
font-size: 1.1rem;
transition: color 0.3s;
}
header nav a:hover {
color: #4a148c;
transform: scale(1.05);
}
#chatBox {
height: 600px;
overflow-y: auto;
border: 1px solid #ccc;
padding: 10px;
display: flex;
flex-direction: column;
}
#isTyping {
font-style: italic;
color: #666;
margin: 4px 10px;
min-height: 13px;
text-align: left;
font-size: 0.8rem;
}
h1 {
color: #0400ce;
margin-bottom: 20px;
font-size: 3rem;
text-align: center;
}
h2 {
color: #0400ce;
margin-bottom: 20px;
margin-top: 20px;
font-size: 2.5rem;
}
.privacy_text
{
color: #321b9a;
}
#privacy_title
{
font-size: 2rem;
color: #0400ce;
}
.privacy_subtitle
{
font-size: 1.5rem;
}
/* General FAQ styles */
#faq_title {
  text-align: center;
  margin-bottom: 30px;
  color: #0400ce;
  font-size: 2.5rem;
}

.faq-item {
  min-height: 50px;
  margin: 15px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  background: #321b9a;
  color: #fff;
  font-size: 1.2rem; /* slightly bigger for mobile readability */
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #4a148c;
}

.faq-answer {
  height: 0;
  background: #fff;
  padding: 0px 20px;
  transition: max-height 0.5s ease, padding 0.5s ease;
  overflow: hidden; /* ensures text does not overflow */
  font-size: 1rem; /* readable on mobile */
  line-height: 1.5;
}

/* When FAQ is opened */
.faq-answer.open {
  padding: 15px 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #faq_title {
    font-size: 2rem;
  }

  .faq-question {
    font-size: 1.1rem;
    padding: 12px 15px;
  }

  .faq-answer {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .faq-item {
    margin: 10px 10px;
    width: calc(100% - 20px);
  }
}

#chatBox {
scrollbar-width: thin;
scrollbar-color: #0400ce, #f0f0f0;
}
#chatBox::-webkit-scrollbar {
width: 8px;
}
#chatBox::-webkit-scrollbar-track {
background: #f0f0f0;
border-radius: 10px;
}
#chatBox::-webkit-scrollbar-thumb {
background-color: #0400ce;
border-radius: 10px;
border: 2px solid #f0f0f0;
}
#chatBox::-webkit-scrollbar-thumb:hover {
background-color: #9c27b0;
}
#avatarGrid {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.8);
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
padding: 40px;
justify-items: center;
align-items: center;
overflow-y: auto;
z-index: 9998;
}
#avatarGrid img {
width: 240px;
height: 240px;
border-radius: 50%;
cursor: pointer;
transition: transform 0.2s;
border: 3px solid white;
object-fit: cover;
}
#avatarGrid img:hover {
transform: scale(1.1);
}
#avatarGrid.hidden {
display: none;
}
#avatarModal {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.7);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
}
#avatarModal img {
max-width: 400px;
border-radius: 10px;
margin-bottom: 15px;
}
#avatarModal.hidden,
#avatarGrid.hidden {
display: none;
}
#closeModal {
position: absolute;
top: 20px; right: 30px;
font-size: 30px;
color: white;
cursor: pointer;
}
@media (max-width: 768px) {
header
{
scale:0.6;
margin-bottom:0;
}

#indexPage #avatarChooser img {
height: 300px;
object-fit: cover;
transition: transform 0.2s, border 0.2s;
}
#avatarGrid
{
gap: 0;
padding: 0;
justify-items: none;
align-items: none;
}
#avatarGrid img {
width: 80px;
height: 120px;
border-radius: 50%;
cursor: pointer;
transition: transform 0.2s;
border: none;
object-fit: cover;
}
#avatarModal img {
max-width: 80%;
border-radius: 10px;
margin-bottom: 15px;
}

h1
{
  font-size: 12px;
  text-align:center;
  margin:0;
}
}