/* Fonts */
@font-face 
{
	font-family: 'Lexend';
	src: url('../fonts/LexendExa-VariableFont_wght.ttf') format('truetype');
}
@font-face 
{
	font-family: 'Spinnaker';
	src: url('../fonts/Spinnaker-Regular.ttf') format('truetype');
}

@font-face 
{
	font-family: 'Rakkas';
	src: url('../fonts/Rakkas-Regular.ttf') format('truetype');
}

:root {
	--background: #faf9f7;            /* Warm White */
	--foreground: #202329;            /* Dark Charcoal Text */

	--primary: #171a20;               /* Deep Charcoal */
	--primary-foreground: #faf9f7;    /* Warm White */

	--secondary: #ede9e6;             /* Warm Gallery Gray */
	--secondary-foreground: #202329;  /* Dark Charcoal */

	--muted: #f0ece8;                 /* Subtle Gray */
	--muted-foreground: #6b7280;      /* Medium Gray */

	--accent: #d4c4a0;                /* Champagne Gold */
	--accent-dark: #c2b391;
	--accent-foreground: #171a20;     /* Deep Charcoal */

	--card: #ffffff;                  /* Pure White */
	--card-foreground: #202329;       /* Dark Charcoal */

	--card-low: #FCFCFC;
	--card-lower: #F8F7F7;

	--border: #e0dbd6;                /* Warm Border */

	--text-header: #181e2a;    /* Headers and titles */
	--text-body: #1f2637;      /* Body text */
	--text-meta: #686c73;      /* Timestamps and metadata */
	--text-accent: #d4c4a0;    /* Icons and accents */

	--gradient-gold: linear-gradient(135deg, hsl(42 45% 75%), hsl(35 35% 65%));
	--shadow-gold: 0 4px 20px -4px hsl(42 45% 75% / 0.25);

	--gradient-subtle: linear-gradient(180deg, hsl(35 6% 97%), hsl(30 8% 94%));

}

html, body {
	margin:0px;
	padding:0px;
	height:100%;
    background-image: var(--gradient-subtle);
	color: var(--text-body);
}

html {
	/* Standard text-settings below */
	font-size: 1em;
    line-height: 1.4em;
}

header
{
    margin: 0 auto 0 auto;
    padding: 2em 0 2em 0;
	position: relative;
	z-index: 99;
	width: 95%;
	max-width: 850px;
}
header h1
{
    margin: 0;
	margin-bottom: 1vh;
	font-family: 'Rakkas';
	font-size: 1.5em;
	text-align: right;
	letter-spacing: 0;
	line-height: 0.8em;
}

#container 
{
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 80%;
	width: 95%;
    max-width: 850px;
    margin: 0 auto 0 auto;
	background-color: var(--card);
	color: var(--card-foreground);
	border: solid 1px var(--border);
	border-radius: 0.6em;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.1);
}

#chatHeader 
{
	padding: 1.5em;
    border-bottom: solid 1px var(--border);
}
#chatSignal
{
	display: inline-block;
    margin: auto 4px auto auto;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	background-color: var(--accent-dark);
	animation: chatSignalGlow 1s infinite alternate;
}
#chatHeader h1
{
	display: inline;
	font-family: 'Spinnaker';
	font-size: larger;
	color: var(--text-meta);
}

chatWindow
{
	display: block;
	margin-top: auto;
	border: 0;
    overflow-y: auto;
    padding-left: 2vw;
    padding-right: 2vw;
	padding-top: 1vh;
	padding-bottom: 1vh;
}
/* ScrollBar */      
#chatWindow::-webkit-scrollbar {
	width: 8px;
}

#chatWindow::-webkit-scrollbar-track {
	border-radius: 6px;
	background-color: #e7e7e7;
	border: 1px solid #ffffff;
}

#chatWindow::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background-color: #E0E0CE
}
#chatLog
{
	display: flex;
	justify-content: flex-end;
	flex-direction: column;
}

user, bot 
{
	display: block; 
	width: fit-content;
	font-size: 0.75em;
	margin-bottom: 2vh;
	padding: 1em;
	border-radius: 0.5rem;
	box-shadow: 0px 2px 10px 1px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	border: 1px solid var(--border);
	max-width: 80%;
	min-width: 1em;
	min-height: 1em;
}
bot
{
	font-family: 'Lexend';
	text-align: left;
	color: #474747;
	margin-right: auto;
}
user
{
	font-family: 'Spinnaker';
	font-size: 0.9em;
	text-align: right;
	background-color: var(--accent);
	color: white;
	margin-left: auto;
}
.timestamp {
    display: block;
    font-size: 0.75em;
    margin-top: 0.25em;
    opacity: 0.7;
}
user .timestamp {
    text-align: right;
    color: var(--card-low);
}
bot .timestamp {
    text-align: left;
    color: var(--muted-foreground);
}

chatType
{
	display:flex;
	justify-content: center;
	align-items: center;
	gap: 2%;
	width: 100%;
	height: 80px;
	border: none;
	border-width: thin;
	margin: 0 auto 0 auto;
	position: relative;
	z-index: 99;
    border-top: solid 1px var(--border);
    background-color: var(--card-low);
	border-radius: 0 0 0.6em 0.6em;
}
#userInput
{
	border: 0;
	height: 40px;
	flex: 1 1 80%;
	font-family: 'Lexend';
	font-size: 0.7em;
	padding-left: 3%;
	margin-left: 10px;
	border-radius: 0.3em;
    outline-width: thin;
	background-color: var(--card-lower);
    border: 1px solid var(--border);
}
#sendButton
{
	display: inline-flex;
    align-items: center;
    justify-content: center;
	height: 44px;
	width: 44px;
	margin: 0;
	margin-right: 10px;
	background-image: var(--gradient-gold);
 	box-shadow: var(--shadow-gold);
    border-radius: 0.3em;
	cursor: pointer;
}
#sendButton img
{
	height: 50%;
	opacity: 80%;	
	filter: invert(1);
}
#sendButton:hover {
    opacity: 80%;
}

/* Styles for the login overlay */
#loginOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
	font-family: 'Lexend';
}

#loginBox {
    background-color: white;
    padding: 1vw;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	padding: 20px;
}

#loginBox label {
    display: block;
    margin-bottom: 40px;
    font-weight: bold;
	color: var(--text-header);
	font-size: 1.3em;
}
#loginBox label p
{
	text-align: left;
}

#loginBox input[type="text"],
#loginBox input[type="password"] {
    width: 90%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
	font-family: 'Lexend';
    font-size: 0.7em;
	background-color: var(--card-lower);
}

#userInput:focus,
#loginBox input[type="text"]:focus,
#loginBox input[type="password"]:focus {
	outline: 1px solid var(--accent);
}

#loginBox button {
    width: 96%;
    padding: 10px;
    background-color: var(--accent);
 	box-shadow: var(--shadow-gold);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75em;
	font-family: 'Lexend';
	margin-bottom: 40px;
}

#loginBox button:hover {
    opacity: 80%;
}

#loginIcon
{
	display: inline-block;
	height: 30px;
	margin: 0;
	margin-bottom: 10px;
	margin-top: 40px;
    border: solid var(--accent) 2px;
    border-radius: 50%;
	padding: 22px;
    background: var(--primary-foreground);
}
#loginIcon img
{
	height: 100%;
	opacity: 50%;
}

@keyframes chatSignalGlow {
	from {
		background-color: var(--accent-dark);
	}
	to {
		background-color: var(--accent); 
	}
}

/* ========================================
MEDIA QUERIES!
You can adjust the min-width numbers below, and add as many new media queries as you need.
======================================== */

/* Minimum width for laptops. */
@media all and (min-width: 769px) 
{
	/* ScrollBar */      
	#chatWindow::-webkit-scrollbar {
		width: 6px;
	}
} /* closes 769px+ */

/* Minimum width for desktop screens. */
@media all and (min-width: 1024px) 
{
	
} /* closes 1024px+ */