/* 2024-04-26 07:30:00 nocodebots.co.uk style sheet */

/* small screens */
@media screen and (max-width: 800px) {
	#wrapper {
		background: #eee;
		width: 98vw;
		max-width: 98vw;
		border: 2px solid #212121;
		border-radius: 24px;
		margin: 20px auto;
	}
	#imessage {
		height: 60vh;
		width: 80vw;
		max-width: 80vw;
		overflow: auto;
		background-color: #ffffff;
		border: 1px solid #e5e5ea;
		border-radius: 4px;
		border-bottom: 4px solid #a7a7a7;
		display: flex;
		flex-direction: column;
		font-family: "SanFrancisco";
		font-size: 1rem;
		margin: 0 auto 1rem;
		margin-bottom: 2px;
		padding: 0.5rem 1.5rem;
	}
	form {
		padding: 2px 25px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		justify-content: center;
	}
	#answer_html,
	.control-group,
	.controls {
		width: 100%;
		margin: 0;
		grid-row-start: 1;
		grid-column-start: 1;
		grid-column-end: 3;
	}
	#jform_answer {
		width: 100%;
		box-sizing: border-box;
		grid-row-start: 1;
		grid-column-start: 1;
		grid-column-end: 3;
	}
	form button {
		grid-row-start: 2;
	}

	/* Modal Content */
	.modal-content {
		background-color: #fefefe;
		margin: auto;
		padding: 20px;
		border: 1px solid #888;
		border-radius: 8px;
		height: 40vh;
		width: 80vw;
		max-width: 80vw;
	}
}

/* large screens */
@media screen and (min-width: 800px) {
	#wrapper {
		margin: 20px auto;
		padding-bottom: 25px;
		background: #eee;
		width: 850px;
		max-width: 900px;
		border: 2px solid #212121;
		border-radius: 24px;
	}
	#imessage {
		height: 60vh;
		max-width: 95vw;
		overflow: auto;
		background-color: #ffffff;
		border: 1px solid #e5e5ea;
		border-radius: 4px;
		border-bottom: 4px solid #a7a7a7;
		display: flex;
		flex-direction: column;
		font-family: "SanFrancisco";
		font-size: 1rem;
		margin: 0 auto 1rem;
		margin-bottom: 25px;
		padding: 0.5rem 1.5rem;
	}
	form {
		padding: 15px 25px;
		display: flex;
		gap: 10px;
		justify-content: center;
	}
	#jform_answer {
		box-sizing: border-box;
		flex: 4;
	}

	/* Modal Content */
	.modal-content {
		background-color: #fefefe;
		margin: auto;
		padding: 20px;
		border: 1px solid #888;
		border-radius: 8px;
		height: 24vh;
		width: 800px;
		max-width: 850px;
	}
}

/* general settings */
body {
	margin: 10px auto;
	font-family: Lato,
	-apple-system,
	BlinkMacSystemFont,
	"Segoe UI",
	Roboto,
	Oxygen-Sans,
	Ubuntu,
	Cantarell,
	"Helvetica Neue",
	sans-serif;
	font-weight: normal;
}
button {
	background: #3333ff;
	border: 2px solid #6699ff;
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 4px;
}
a {
	color: #0000ff;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
#menu {
	padding: 15px 25px;
	display: flex;
}
#welcome {
	flex: 1;
	font-weight: bold;
	font-size: 1.5rem;
}

/* input controls */
input {
	font-family: Lato,
	-apple-system,
	BlinkMacSystemFont,
	"Segoe UI",
	Roboto,
	Oxygen-Sans,
	Ubuntu,
	Cantarell,
	"Helvetica Neue",
	sans-serif;
	font-weight: normal;
	font-size: 1rem;
}
input[name="jform[block_text]"] {
	height: 34px;
	padding: 5px 35px 5px 5px;
	border-radius: 4px;
	border: 1px solid ;
}
input[name="jform[block_number]"] {
	height: 34px;
	padding: 5px 35px 5px 5px;
	border-radius: 4px;
	border: 1px solid ;
}
input[name="jform[block_single]"] {
	height: 34px;
	padding: 5px 35px 5px 5px;
	border-radius: 4px;
	border: 1px solid ;
}
input[name="jform[block_multi]"] {
	height: 34px;
	padding: 5px 35px 5px 5px;
	border-radius: 4px;
	border: 1px solid ;
}
input[name="jform[block_date]"] {
	height: 34px;
	padding: 5px 35px 5px 5px;
	border-radius: 4px;
	border: 1px solid ;
}
input[name="jform[block_file]"] {
	height: 34px;
	padding: 5px 35px 5px 5px;
	border-radius: 4px;
	border: 1px solid ;
}
input[type="file"]::file-selector-button {
	display: none;
}
select {
	padding: 5px 35px 5px 5px;
	font-size: 16px;
	border: 1px solid ;
	height: 34px;
}

/* the message pane */
#imessage p {
	border-radius: 1rem;
	line-height: 1.25;
	max-width: 75%;
	padding: 0.5rem .875rem;
	position: relative;
	word-wrap: break-word;
}
#imessage p::before,
#imessage p::after {
	bottom: -0.1rem;
	content: "";
	height: 1rem;
	position: absolute;
}
p.from-me {
	align-self: flex-end;
	background-color: #e5e5ea;
	color: #000000;
}
p.from-me::before {
	border-bottom-left-radius: 0.8rem 0.7rem;
	border-right: 1rem solid #e5e5ea;
	right: -0.35rem;
	transform: translate(0, -0.1rem);
}
p.from-me::after {
	background-color: #ffffff;
	border-bottom-left-radius: 0.5rem;
	right: -40px;
	transform:translate(-30px, -2px);
	width: 10px;
}
p[class^="from-"] {
	margin: 0.5rem 0;
	width: fit-content;
}
p.from-me ~ p.from-me {
	margin: 0.25rem 0 0;
}
p.from-me ~ p.from-me:not(:last-child) {
	margin: 0.25rem 0 0;
}
p.from-me ~ p.from-me:last-child {
	margin-bottom: 0.5rem;
}
p.from-them {
	align-items: flex-start;
	background-color: #248bf5;
	color: #ffffff;
}
p.from-them:before {
	border-bottom-right-radius: 0.8rem 0.7rem;
	border-left: 1rem solid #248bf5;
	left: -0.35rem;
	transform: translate(0, -0.1rem);
}
p.from-them::after {
	background-color: #ffffff;
	border-bottom-right-radius: 0.5rem;
	left: 20px;
	transform: translate(-30px, -2px);
	width: 10px;
}
p[class^="from-"].emoji {
	background: none;
	font-size: 1rem;
}
p[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;
}
@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");
}
#goback {
	display: none;
}
#continue {
	display: none;
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
  background-color: #3333ff;
  border: 2px solid #6699ff;
  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 modal background */
.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);
}

.modal-buttons {
	display: flex;
	flex-direction: column;
	margin: 0;
	position: relative;
	top: 35%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.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;
}
