Spaces:
Running
Running
/*html ,body{ | |
height: 100%; | |
width: 100%; | |
box-sizing: border-box; | |
background-color: white; | |
} | |
body{ | |
gap: 20px; | |
} | |
header{ | |
width: 100%; | |
height: 10%; | |
display: flex; | |
justify-content: flex-start; | |
gap : 20px ; | |
align-items: center; | |
} | |
header img { | |
height: 15vh; | |
width: 5vw; | |
object-fit:cover; | |
} | |
header span{ | |
font-size: 30px; | |
} | |
em{ | |
color:rgb(42, 42, 248); | |
} | |
.convo{ | |
height: 75%; | |
width: 100%; | |
overflow-y: auto; | |
padding: 10px; | |
box-sizing: border-box; | |
} | |
.qt{ | |
width: 70%; | |
height: 50%; | |
border: none; | |
background-color: #8d8b8b; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
border-radius: 10px; | |
margin: 10px; | |
} | |
.qt input{ | |
width: 70%; | |
height: 70%; | |
border: none; | |
background-color: #8d8b8b; | |
color:white; | |
margin : 10px | |
} | |
.qt input::placeholder{ | |
color: white; | |
} | |
.qt input:focus{ | |
border: none; | |
outline: none; | |
} | |
.qtdoc{ | |
width: 100%; | |
height: 10%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
.icons{ | |
width: 18%; | |
display: flex; | |
gap: 2%; | |
font-size: large; | |
cursor: pointer; | |
justify-content: space-around; | |
align-items:center; | |
}*/ | |
/* Base layout */ | |
/* Reset & base layout */ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
html, body { | |
height: 100vh; | |
width: 100vw; | |
font-family: sans-serif; | |
background-color: white; | |
display: flex; | |
flex-direction: column; | |
} | |
/* Header (fixed height) */ | |
header { | |
flex: 0 0 17vh; | |
display: flex; | |
align-items: center; | |
gap: 20px; | |
padding: 0 20px; | |
/*background-color: #f5f5f5;*/ | |
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |
} | |
header img { | |
height: 18vh; | |
width: 5vw; | |
object-fit: cover; | |
} | |
header span { | |
font-size: 30px; | |
} | |
em { | |
color: rgb(42, 42, 248); | |
} | |
/* Conversation area (fills remaining space, scrolls only when needed) */ | |
.convo { | |
flex: 1; | |
overflow-y: auto; | |
padding: 10px 20px; | |
background-color: #fafafa; | |
} | |
/* Bottom input section */ | |
.qtdoc { | |
flex: 0 0 auto; | |
padding: 40px 80px; | |
/*background-color: #f0f0f0;*/ | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
box-shadow: 0 -1px 3px rgba(0,0,0,0.1); | |
} | |
/* Input container */ | |
.qt { | |
flex: 1; | |
display: flex; | |
align-items: center; | |
justify-content: space-between; | |
background-color: #8d8b8b; | |
border-radius: 10px; | |
margin-right: 10px; | |
padding: 0 10px; | |
height: 50px; | |
} | |
.qt input { | |
width: 70%; | |
height: 70%; | |
border: none; | |
background-color: #8d8b8b; | |
color: white; | |
font-size: 16px; | |
} | |
.qt input::placeholder { | |
color: white; | |
} | |
.qt input:focus { | |
outline: none; | |
} | |
/* Icons beside input */ | |
.icons { | |
display: flex; | |
gap: 10px; | |
font-size: 20px; | |
color: white; | |
align-items: center; | |
cursor: pointer; | |
} | |
/* Send button */ | |
.sendingQA { | |
background-color: #3b82f6; | |
color: white; | |
padding: 10px 15px; | |
border-radius: 8px; | |
cursor: pointer; | |
border: none; | |
font-size: 16px; | |
} | |
.sendingQA:hover { | |
background-color: #2563eb; | |
} | |