/* 2025-05-03 14:53:56 nocodebots.ai style sheet */

* {
	-webkit-box-sizing: border-box;
			box-sizing: border-box;
	margin: 0;
	padding: 0;
}

@font-face {
	font-family: "SanFrancisco";
	src: url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff2") format("woff2"),
		 url("https://cdn.rawgit.com/AllThingsSmitty/fonts/25983b71/SanFrancisco/sanfranciscodisplay-regular-webfont.woff") format("woff");
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #ffffff9a;
}

::-webkit-scrollbar-thumb {
	background: #e5e5ea;
}

::-webkit-scrollbar-thumb:hover {
	background: #e3e3e7;
}
html{
	scroll-behavior: smooth;
}
body {
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	padding: 50px 0;
	height: 100vh;
	background-image: linear-gradient(to top, #d3e8fd 0%, white 100%);
}

#menu {
	padding: 15px 25px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
		-ms-flex-align: center;
			align-items: center;
	-webkit-box-shadow: 0px -1px 5px 0 #8989898f, 0 5px 25px 0 #dddddd69;
			box-shadow: 0px -1px 5px 0 #8989898f, 0 5px 25px 0 #dddddd69;
	position: relative;
}

#welcome {
	-webkit-box-flex: 1;
		-ms-flex: 1;
			flex: 1;
	font-weight: bold;
	font-size: 1.5rem;
}

#wrapper {
	margin: auto;
	background: #ffffff;
	width: 800px;
	border: 1px solid #ffffff;
	border-radius: 8px;
	overflow: hidden;
	-webkit-box-shadow: rgb(60 64 67 / 9%) 0px 0px 2px 0px, rgb(60 64 67 / 9%) 1px 0px 41px 30px;
	box-shadow: rgb(60 64 67 / 9%) 0px 0px 2px 0px, rgb(60 64 67 / 9%) 1px 0px 41px 30px;
	-webkit-transition: 0.5s ease;
	-o-transition: 0.5s ease;
	transition: 0.5s ease;
}

#imessage {
	height: 74vh;
	max-width: 95vw;
	overflow: auto;
	background-color: #ffffff;
	border-radius: 4px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	font-family: "SanFrancisco";
	padding: 0.5rem 1.5rem;
}

#imessage div {
	border-radius: 1rem;
	line-height: 1.25;
	max-width: 75%;
	padding: 0.5rem .875rem;
	position: relative;
	word-wrap: break-word;
}

#imessage div::before,
#imessage div::after {
	bottom: -0.1rem;
	content: "";
	height: 1rem;
	position: absolute;
}

div[class^="from-"] {
	margin: 0.5rem 0;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
}

div.from-me {
	-ms-flex-item-align: end;
		align-self: flex-end;
	background-color: #e5e5ea;
	color: #000000;
}

div.from-me::before {
	border-bottom-left-radius: 0.8rem 0.7rem;
	border-right: 1rem solid #e5e5ea;
	right: -0.35rem;
	-webkit-transform: translate(0, -0.1rem);
		-ms-transform: translate(0, -0.1rem);
			transform: translate(0, -0.1rem);
}

div.from-me::after {
	background-color: #ffffff;
	border-bottom-left-radius: 0.5rem;
	right: -40px;
	-webkit-transform: translate(-30px, -2px);
		-ms-transform: translate(-30px, -2px);
			transform: translate(-30px, -2px);
	width: 10px;
}

div.from-them {
	-webkit-box-align: start;
		-ms-flex-align: start;
			align-items: flex-start;
	background-color: #248bf5;
	color: #ffffff;
}

div.from-them::before {
	border-bottom-right-radius: 0.8rem 0.7rem;
	border-left: 1rem solid #248bf5;
	left: -0.35rem;
	-webkit-transform: translate(0, -0.1rem);
		-ms-transform: translate(0, -0.1rem);
			transform: translate(0, -0.1rem);
}

div.from-them::after {
	background-color: #ffffff;
	border-bottom-right-radius: 0.5rem;
	left: 20px;
	-webkit-transform: translate(-30px, -2px);
		-ms-transform: translate(-30px, -2px);
			transform: translate(-30px, -2px);
	width: 10px;
}

div[class^="from-"].img-file{
	width: 55% !important;
}

div[class^="from-"].img-file img.block-image{
	margin-top: 5px;
	width: 100%;
	border-radius: 3%;
}

div[class^="from-"].emoji {
	background: none;
	font-size: 1rem;
}

div[class^="from-"].emoji::before {
	content: none;
}

.no-tail::before {
	display: none;
}

.margin-b_none {
	margin-bottom: 0 !important;
}

.margin-b_one {
	margin-bottom: 1rem !important;
}

.margin-t_one {
	margin-top: 1rem !important;
}

ul {
	list-style-position: outside;
	margin-left:10px;
}

#goback, #continue {
	display: none;
}

.footer-action {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
		-ms-flex-align: center;
			align-items: center;
	-webkit-box-pack: justify;
		-ms-flex-pack: justify;
			justify-content: space-between;
	width: 100%;
	padding: 0 20px;
	gap: 20px;

}

.message-input {
	width: 100%;
	border: 1px solid #ececec;
	padding: 10px 16px;
	background-color: #F0F2F5;
	border-radius: 30px;
	color: #383838;
}

.message-input:focus {
	outline: none;
}

.chatbot-footer {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
		-ms-flex-direction: column;
			flex-direction: column;
	-webkit-box-align: center;
		-ms-flex-align: center;
			align-items: center;
	-webkit-box-pack: center;
		-ms-flex-pack: center;
			justify-content: center;
	padding: 20px 0;
	border-top: 1px solid #ddd;
}

.button {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 30px;
	text-align: center;
	background-color: #2a72bf;
	color: #ffffff;
	border: 1px solid #2a72bf;
	cursor: pointer;
	white-space: nowrap;
	-webkit-transition: 0.4s ease;
	-o-transition: 0.4s ease;
	transition: 0.4s ease;
}

.button.record {
	background-color: #ff0000;
	border-color: #b30000;
}

.button.btnclear, .button.continue, .button.mute, .button.replay {
	background-color: #2a72bf;
	border-color: #2a72bf;
}

.button.btnback {
	background-color: #e5e5ea;
	border-color: #e9e9e9;
	color: #8b8b8b;
}

.button:hover {
	background-color: #2a72bf !important;
	border-color: #2a72bf !important;
	color: #ffffff !important;
}

input[name="jform[block_text]"] {
	width: 100%;
	border: 1px solid ;
	padding: 10px 16px;
	background-color: #F0F2F5;
	border-radius: 30px;
	color: #383838;
}

input[name="jform[block_number]"] {
	width: 100%;
	border: 1px solid ;
	padding: 10px 16px;
	background-color: #F0F2F5;
	border-radius: 30px;
	color: #383838;
}

input[name="jform[block_single]"] {
	width: 100%;
	border: 1px solid ;
	padding: 10px 16px;
	background-color: #F0F2F5;
	border-radius: 30px;
	color: #383838;
}

input[name="jform[block_multi]"] {
	width: 100%;
	border: 1px solid ;
	padding: 10px 16px;
	background-color: #F0F2F5;
	border-radius: 30px;
	color: #383838;
}

input[name="jform[block_date]"] {
	width: 100%;
	border: 1px solid ;
	padding: 10px 16px;
	background-color: #F0F2F5;
	border-radius: 30px;
	color: #383838;
}

input[name="jform[block_file]"] {
	width: 100%;
	border: 1px solid ;
	padding: 10px 16px;
	background-color: #F0F2F5;
	border-radius: 30px;
	color: #383838;
}

input[type="file"]::file-selector-button {
	display: none;
}

select {
	width: 100%;
	border: 1px solid ;
	padding: 10px 16px;
	background-color: #F0F2F5;
	border-radius: 30px;
	color: #383838;
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
  background-color: #2a72bf;
  border: 2px solid #2a72bf;
  color: white;
  padding: 16px 20px;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  text-align: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
}

/* The popup chat - hidden by default */
.chat-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}

/* The audio modal */

.audio-modal {
	display: none;
	position: fixed;
	z-index: 1;
	padding-top: 20vh;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: #ffffff; /* Fallback color */
	background-color: rgba(1,1,1,1.0);
}

.audio-modal-buttons {
	display: flex;
	flex-direction: column;
	margin: 0;
	position: relative;
	top: 35%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.audio-modal-button {
	height: 7vh;
	margin: 10px 10px;
	font-size: 20px;
}

#voicePanel {
	padding: 2px 25px;
	display: flex;
	gap: 10px;
	justify-content: center;
}

.noflex {
	flex: none;
}

.visualizer {
	height: 60px;
	width: 80vw;
}

/* accessibility modal */

.accessibility-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
}

.accessibility-modal-content {
	background: white;
	padding: 50px 20px 20px 20px;
	border-radius: 8px;
	width: min(60%, 200px);
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	box-sizing: border-box;
	position: relative;
}

.accessibility-modal-header {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 10px;
	box-sizing: border-box;
	position: absolute;
	top: 0px;
	right: 0px;
}

.close-accessibility-modal {
	font-size: 28px;
	cursor: pointer;
	color: black;
	background: none;
	border: none;
	padding: 10px;
}

.accessibility-modal-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding-top: 10px;
}

.accessibility-modal-content button {
	background-color: #2a72bf;
	color: #ffffff;
	border: 1px solid #2a72bf;
	width: 100%;
	max-width: 220px;
	padding: 12px;
	cursor: pointer;
	border-radius: 5px;
	text-align: center;
	font-size: 14px;
	margin: 10px 0;
}

.high-contrast {
	background-color: black !important;
	color: yellow !important;
}

.high-contrast .from-me,
.high-contrast .from-them {
	background-color: black !important;
	color: yellow !important;
}
.high-contrast .from-me::before,
.high-contrast .from-me::after,
.high-contrast .from-them::before,
.high-contrast .from-them::after {
	background-color: yellow !important;
	border-color: black !important;
	content: '';
	display: block;
}

@media screen and (max-height: 780px) and (min-width:800px) {
	#wrapper {
		height: 80vh;
	}

	#imessage {
		height: 60vh;
	}
}

@media screen and (max-height: 780px) and (min-width:600px) {
	#wrapper {
		height: 85vh;
	}
}

@media screen and (max-width: 800px) {
	body {
		padding: 0;
		background-image: unset;
		background-color: #fff;
	}

	#wrapper {
		width: 100%;
		height: 90vh;
		margin: 0;
		-webkit-box-shadow: none;
		box-shadow: none;
		border-radius: 0;
	}

	#welcome {
		font-size: 18px;
	}

	#imessage {
		min-height: 100vh;
		max-width: 100%;
		padding: 75px 1rem 95px;
	}
	#imessage::-webkit-scrollbar{
		display: none;
	}

	#answer_html, .control-group, .controls, #jform_answer {
		width: 100%;
		-ms-grid-column: 1;
			grid-column-start: 1;
		-ms-grid-column-span: 2;
		grid-column-end: 3;
	}

	#menu{
		position: fixed;
		top: 0;
		width: 100%;
		left: 0;
		background-color: #fff;
		z-index: 999;
	}
	.chatbot-footer{
		position: fixed;
		width: 100%;
		bottom: 0;
		left: 0;
		background-color: #fff;
		z-index: 999;
	}
}

@media screen and (max-width: 590px) {
	.footer-action {
		padding: 0 10px;
		gap: 6px;
	}

	.button {
		padding: 10px 14px;
		font-size: 12px;
	}

	.visualizer {
		display: block;  /* Make sure it remains visible */
		width: 100%;  /* Adjust the width for smaller screens */
	}
}
