@font-face { 
	font-family: leckerli-one;
	src: url('./Leckerli_One/LeckerliOne-Regular.ttf'); 
}

* {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	/* font-family: 'Coustard', serif; */
}

h1, h2, h3 {
	font-weight: bold;
}

p, span, a {
	/* Makes a big difference in mobile screen */
	font-size: 1rem;
}

.accordion-body {
	font-size: 1rem;
}

.navbar-brand {
	font-family: leckerli-one, cursive;
	/* color: #2a2b27; */
	/* Overide bootstrap */
	color: #f3a35e !important;
	text-decoration: none;
}

.btn-main {
	background-color: #f3a35e !important;
	color: white;
	border-color: #f3a35e !important;
}

.btn-main:hover {
	color: white;
}

#chat-viewport {
	background-color: #f1f1f1;
	display: flex;
	font-family: 'Lato', sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	color: #2c3e50;
	/* height: 100vh; */
	overflow-y: hidden;
}
/* CUSTOM SCROLLBAR FOR CHATBOX */
.chats::-webkit-scrollbar { width: 0.125rem; }
.chats::-webkit-scrollbar-thumb { background: #CFD8DC; }
.chats::-webkit-scrollbar-thumb:hover { background: #B0BEC5; }
/* INPUT TEXT PLACEHOLDER CUSTOMIZE */
::-webkit-input-placeholder { color: #B0BEC5; }
::-moz-placeholder { color: #B0BEC5; }
:-ms-input-placeholder { color: #B0BEC5; }
:-moz-placeholder { color: #B0BEC5; }

#chat-viewport { 
	display: flex;
	flex: 1;
	justify-content: center;
	align-items: center;
}
#chat-viewport > .chatbox {
	position: relative;
	display: table;
	float: left;
	margin: 1rem;
	width: 20rem;
	height: 36rem;
	background-color: white;
	box-shadow: 0 0.25rem 2rem rgba(38,50,56, 0.1);
	overflow: hidden;
}

#chat-viewport > .chatbox > .chats {
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;	
	display: table-cell;
	vertical-align: bottom;
	padding: 1rem;
	margin-bottom: 2.875rem;
	overflow: auto;
}
ul { padding: 0; }
ul > li {
	position: relative;
	list-style: none;
	display: block;
	margin-top: 1.5rem;
	margin: 1rem 0;
	transition: 0.5s all;
}
ul > li:after {
	display: table;
	content: '';
	clear: both;
}
.msg {		
	max-width: 85%;
	display: inline-block;
	padding: 0.5rem 1rem;
	line-height: 1rem;
	min-height: 2rem;
	font-size: 0.875rem;
	border-radius: 1rem;
	margin-bottom: 0.5rem;
	/* word-break: break-all; */
	/* text-transform: capitalize; */
	text-align: left;
}
.msg.him {
	float: left;
	/* background-color: #E91E63; */
	background-color: #f3a35e;
	color: #fff;
	border-bottom-left-radius: 0.125rem;
}
.msg.you {
	float: right;
	background-color: #ECEFF1;
	color: #607D8B;
	border-bottom-right-radius: 0.125rem;
}
.msg.suggestion {
	/* float: right; */
	border: #ECEFF1 2px solid;
	color: #607D8B;
	border-bottom-right-radius: 0.125rem;
}
.msg.load { 
	background-color: #F8BBD0; 
	border-bottom-left-radius: 0.125rem;
}

.msg > span {
	font-weight: 500;
	position: absolute;
}
.msg > span.partner {
	color: #B0BEC5;
	font-size: 0.5rem;
	top: 0;
	font-size: 0.675rem;
	margin-top: -1rem;
	text-transform: capitalize;
}
.msg > span.time {
	color: #CFD8DC;
	font-size: 0.5rem;
	bottom: -0.35rem;
	display: none;
}
.msg:hover span.time { display: block; }
.msg.him > span { left: 0;	 }
.msg.you > span {	right: 0; }
.msg.suggestion > span {	right: 0; }
.sendBox {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: white;
}
.sendBox input {
	font-family: 'Lato', sans-serif;
	font-size: 0.875rem;
	display: block;
	width: 100%;
	border: none;
	padding: 0.75rem 0.75rem;
	line-height: 1.25rem;
	border-top: 0.125rem solid #ECEFF1;
	transition: 0.5s ease-in-out;
}
input:hover,
input:focus,
input:active { 
	outline: none!important; 
	border-top: 0.125rem solid #E91E63;
}
.copy-icon {
	width: 1.2rem;
}

@media (max-width: 992px) { 
	body {
		font-size: 2rem;
	}
	.btn, .form-control {
		font-size: 2rem;
	}
	h1 {
		font-size: calc(2.6rem + .6vw);
	}
	.navbar-brand {
		font-size: 3.75rem;
	}

	.navbar-toggler {
		font-size: 2.5rem;
		padding: .5rem 1.5rem;
	}

	.copy-icon {
		width: 2.4rem;
	}

	#chat-viewport > .chatbox {
		margin: 1rem;
		width: 100vw;
		height: 90vh;
	}
	#chat-viewport > .chatbox > .chats {
		padding: 2rem;
	}
	.msg {
		/* Triple all */
		padding: 1.5rem 1em;
		line-height: 3rem;
		min-height: 6rem;
		font-size: 2.625rem;
		border-radius: 2rem;
		margin-bottom: 2rem;
	}

	.msg > span.partner {
		font-size: 2rem;
		margin-top: -3rem;
	}

	.msg.action-btn {
		padding: 0.75rem 1.5rem;
	}

	.toast-header {
		font-size: 3rem;
	}

	.form-select {
		font-size: 1.2em;
	}

	.navbar-brand-container {
		justify-content: center !important;
	}
}

footer {
	border-top: 1px solid #111;
	margin: 0 10%;
	height: 50px;
	padding-top: 27px;
	display: flex;
	justify-content: space-between;
}

/*  LOADING MESSAGE CSS */
.load .dot {
	display: inline-block;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 0.25rem;
	margin-right: 0.125rem;
	background-color: rgba(255,255,255,0.75);	
}
.load .dot:nth-last-child(1) {animation: loadAnim 1s .2s linear infinite;}
.load .dot:nth-last-child(2) {animation: loadAnim 1s .4s linear infinite;}
.load .dot:nth-last-child(3) {animation: loadAnim 1s .6s linear infinite;}
@keyframes loadAnim {
    0 {transform: translate(0,0);}
    25% {transform: translate(0,-0.25rem);}
    50% {transform: translate(0,0);}
}