:root {
	--color-primary: #f68712;
	--color-primary-light: #f9a352;
	--color-primary-dark: #c25e00;

	--color-secondary: #1281f6;
	--color-secondary-light: #255b93;
	--color-secondary-lighter: #c4dffd;
	--color-secondary-dark: #05407f;
	--color-secondary-darker: #043366;
	--color-secondary-darker-border: #345b84;

	--color-panel: #363636;
	--color-panel-light: #494949;
	--color-panel-dark: #232323;

	--panel-shadow: 0px 0 10px rgba(0, 0, 0, 0.25);

	--main-content-title-height: 70px;
	--footer-chat-height: 80px;
	--message-photo-size: 45px;

	--border-radius: 5px;
	--border-radius-round: 50%;
}

html,
body {
	font-family: Verdana, 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

body {
	background-color: #f5f5f5;
}

.container {
	background-color: #fff;
	width: 100vw;
	padding: 0;
}

/* ===== MENU ===== */
.menu {
	position: relative;
	z-index: 100;

	flex: 0;
	height: 100vh;
	background-color: var(--color-panel-dark);
	box-shadow: var(--panel-shadow);
}

.contribution_menu {
	display: none;
	position: absolute;
	top: 50%;
	left: 90%;
	transform: translate(-50%, -50%);
	z-index: 9;
	width: 480px;
	height: 100%;
	overflow-y: scroll;
	background-color: #f9f9f9;
	border-style: solid;
	border-width: 3px;
	border-color: #4768b5;
	padding: 0px;
	text-align: center;
	align-items: center;
	background-color: white;
	border-radius: var(--border-radius);
	box-shadow: 0px 0px 5px 2px black;
}

#contribution_configheader {
	padding: 10px;
	z-index: 10;
	background-color: #2196f3;
	color: #fff;
}

.menu .items {
	list-style: none;
	margin: auto;
	padding: 0;
}

.menu .items .item {
	display: flex;
	justify-content: center;
	align-items: center;

	/* match the height of the main content title bar to make design more consistent */
	height: var(--main-content-title-height);
	padding: 1.5rem;
	border-bottom: 1px solid var(--color-panel-light);

	color: #fff;
	font-size: 17pt;
}

.menu .items .item-active {
	background-color: var(--color-secondary);
}

.menu .items .item:hover {
	cursor: pointer;
	background-color: var(--color-secondary);
}

/* === CONVERSATIONS === */

.discussions {
	position: relative;
	z-index: 90;

	width: 400px;
	box-shadow: var(--panel-shadow);
	background-color: var(--color-secondary-dark);
	display: inline-block;

	overflow-y: auto;
	scrollbar-color: grey;
	scrollbar-width: thin;
}

.discussions .discussion {
	display: flex;
	align-items: center;

	width: 100%;
	height: auto;
	padding: 0.5rem;
	background-color: #fafafa;
	border-bottom: solid 1px #e0e0e0;
	display: flex;
	align-items: center;
	cursor: pointer;
	gap: 1rem;
}

.discussions .discussion:hover {
	cursor: pointer;
	background-color: #f1f1f1;
	color: #e4edf9;
}

.discussions .search {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	color: #e0e0e0;
}

.discussions .search .searchbar {
	height: 40px;
	background-color: #fff;
	width: 100%;
	padding: 0 1.5rem;
	border-radius: 50px;
	border: 1px solid #eeeeee;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.discussions .search .searchbar input {
	margin-left: 15px;
	height: 38px;
	width: 100%;
	border: none;
}

.discussions .search .searchbar *::-webkit-input-placeholder {
	color: #e0e0e0;
}
.discussions .search .searchbar input *:-moz-placeholder {
	color: #e0e0e0;
}
.discussions .search .searchbar input *::-moz-placeholder {
	color: #e0e0e0;
}
.discussions .search .searchbar input *:-ms-input-placeholder {
	color: #e0e0e0;
}

.discussions .message-active {
	width: 98.5%;
	height: 50px;
	background-color: #fff;
	border-bottom: solid 1px #e0e0e0;
	font-weight: bold;
}

.discussions .discussion .photo {
	display: block;
	width: 45px;
	height: 45px;

	background: #e6e7ed;
	-moz-border-radius: var(--border-radius-round);
	-webkit-border-radius: var(--border-radius-round);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.online {
	position: relative;
	top: 30px;
	left: 35px;
	width: 13px;
	height: 13px;
	background-color: #8bc34a;
	border-radius: 13px;
	border: 3px solid #fafafa;
}

.desc-contact {
	flex: 1;
	min-width: 0;
}

.desc-contact .name,
.desc-contact .message {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.discussions .discussion .name {
	margin: 0;
	font-size: 11pt;
	font-weight: bold;
	color: #515151;
}

.discussions .discussion .message {
	margin: 0;
	font-size: 9pt;
	color: #515151;
}

.timer {
	margin-left: auto;
	font-size: 0.8rem;
	padding: 0.25rem 0.5rem;
	color: #999;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 15px;
}

.chat {
	visibility: hidden;
	opacity: 0;

	display: flex;
	flex-direction: column;

	overflow-y: auto;
	scrollbar-color: grey;
	scrollbar-width: thin;
}

.chat.active {
	visibility: visible;
	opacity: 1;
}

.chat .header-chat {
	position: relative;
	z-index: 80;

	display: flex;
	flex-direction: column;

	background-color: var(--color-panel-light);
	color: #fff;

	height: auto;
	padding: 1.5rem 2rem;
	box-shadow: var(--panel-shadow);
}

.chat .header-chat .icon {
	margin-left: 30px;
	font-size: 1rem;
}

.chat .header-chat .name {
	margin: 0;
	font-size: 1.4rem;
	font-weight: bold;
}

.chat .header-chat .subname {
	margin: 0;
	font-size: 1rem;
	opacity: 0.8;
}

.chat .header-chat .right {
	position: absolute;
	right: 40px;
}

.chat .messages-chat {
	flex: 1;

	display: flex;
	flex-direction: column;

	padding: 2rem 2rem 0;
	overflow-y: auto;
	background-color: #f5f5f5;
}

.chat .messages-chat .message {
	margin-bottom: 0.25rem;
	display: flex;
	max-width: 75%;
}

.chat .messages-chat .message.user {
	margin-left: auto;
}

.chat .messages-chat .message.ai {
	margin-right: auto;
}

.chat .messages-chat .message .photo {
	flex: 1 0 var(--message-photo-size);

	display: block;
	width: var(--message-photo-size);
	height: var(--message-photo-size);
	margin-right: 1rem;
	background: #e6e7ed;
	-moz-border-radius: var(--border-radius-round);
	-webkit-border-radius: var(--border-radius-round);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* all texts */
.chat .messages-chat .text {
	background-color: #ddd;
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: var(--border-radius);

	font-size: 1rem;
	white-space: pre-wrap;
}

/* user text */
.chat .messages-chat .response .text {
	background-color: var(--color-secondary-lighter);
	white-space: pre-wrap;
}

.time,
.resptime {
	font-size: 0.8rem;
	opacity: 0.5;
}

/* ai timestamp */
.time {
	margin: 0 auto 2rem calc(var(--message-photo-size) + 1rem);
}

/* user timestamp */

.resptime {
	margin: 0 0 2rem auto;
}

/* message  */

.text-only {
	font-size: 1rem;
	white-space: pre-wrap;
}

.text-only_header {
	margin-left: 10px;

	font-size: 1rem;
}

.text-only_normal {
	margin-left: 10px;
	font-size: 11pt;
}

.response-time {
	float: right;
	margin-right: 40px !important;
	padding: 25px 35px;
}

.footer-chat {
	width: 100%;
	padding: 1rem;

	display: flex;
	align-items: center;
	gap: 1rem;

	background-color: white;
	border-top: 2px solid #eee;
}

.write-message {
	flex: 1;

	border: none !important;
	height: 60px;
	padding: 0.5rem;
	resize: none;
	overflow-y: auto;
}

.chat .footer-chat .icon {
	color: #c0c0c0;
	font-size: 1.2rem;
}

.next_back_buttons {
	align-content: center;
	width: 100%;
}

.footer-nav-next {
	color: #fff;
	background-color: #4f6ebd;
	padding: 1rem;
	border-radius: var(--border-radius-round);
	font-size: 1rem;
	margin-top: 1rem;
	margin-left: 125px;
}
.footer-upload {
	color: #fff;
	background-color: #4f6ebd;
	padding: 1rem;
	border-radius: var(--border-radius-round);
	font-size: 1rem;
	margin-top: 1rem;
	margin-left: calc(50% - 75px);
}

.chat .footer-chat .send {
	margin-left: auto;
	color: #fff;
	background-color: var(--color-secondary);
	padding: 1rem;
	border-radius: var(--border-radius-round);
	font-size: 1.4rem;
}

.chat .footer-chat .send:hover,
.chat .footer-chat .send:active {
	background-color: var(--color-secondary-dark);
}

.chat .footer-chat .name {
	margin: 0 0 0 1.5rem;
	text-transform: uppercase;
	font-size: 1rem;
	color: #515151;
}

.chat .footer-chat .right {
	position: absolute;
	right: 40px;
}

.footer-chat *::-webkit-input-placeholder {
	color: #c0c0c0;
	font-size: 1rem;
}
.footer-chat input *:-moz-placeholder {
	color: #c0c0c0;
	font-size: 1rem;
}
.footer-chat input *::-moz-placeholder {
	color: #c0c0c0;
	font-size: 1rem;
	margin-left: 5px;
}
.footer-chat input *:-ms-input-placeholder {
	color: #c0c0c0;
	font-size: 1rem;
}

.clickable {
	cursor: pointer;
}

.progress-bar {
	color: #c0c0c0;
	background-color: #ffffff;
	width: 250px;
	margin-left: 2rem;
	margin-bottom: 0.5rem;
}

#form-map-backdrop {
	position: absolute;
	z-index: 1000;

	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal {
	position: absolute;
	z-index: 1500;

	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	width: 520px;
	height: auto;
	padding: 2rem;

	background-color: #fff;
	border-radius: var(--border-radius);
	box-shadow: var(--panel-shadow);

	text-align: center;
}

#login-map {
	display: block;
}

#register-map {
	display: none;
}

#login-header {
	margin: 0 0 2rem;
}

#main-holder-login {
	position: absolute;
	top: 350px;
	z-index: 299;
	width: 250px;
	height: 120px;
	align-items: center;
	background-color: white;
	border-radius: var(--border-radius);
	box-shadow: 0px 0px 5px 2px black;
}

#login-form {
}

.login-form-field::placeholder {
	color: #ccc;
}

.login-form-field {
	width: 280px;
	margin-bottom: 0.5rem;
	padding: 0.75rem 1.25rem;

	border: none;
	border: 1px solid var(--color-panel);
	border-radius: var(--border-radius);

	outline: none;
}

.form {
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	justify-items: center;
	align-items: center;
}

.button {
	margin-bottom: 0.5rem;
	padding: 1rem 4rem;
	border: none;
	border-radius: var(--border-radius);

	background-color: var(--color-secondary);
	color: white;

	font-weight: bold;
	cursor: pointer;
	outline: none;
}

.button:hover,
.button:active {
	background-color: var(--color-secondary-dark);
}

.inputs {
	display: flex;
	flex-direction: column;
	margin-bottom: 1rem;
}

#login-form-submit {
}

#register-form-submit {
}

#login-form-register {
	width: 50%;
	padding: 7px;
	border: none;
	border-radius: var(--border-radius);
	color: white;
	font-weight: bold;
	background-color: #ff3a3a;
	cursor: pointer;
	outline: none;
}

.main {
	display: flex;
	justify-content: center;
	height: 100vh;
}

.main-content {
	flex: 1;

	display: flex;
	flex-direction: column;
}

.main-content-chat {
	flex: 1;

	display: flex;
	flex-direction: row;

	height: calc(100% - var(--main-content-title-height));
}

.main-content-title {
	position: relative;
	z-index: 95;

	display: flex;
	align-items: center;

	height: var(--main-content-title-height);
	padding: 0.5rem 1.5rem;

	background-color: var(--color-panel-dark);
	color: #fff;
	box-shadow: var(--panel-shadow);
	font-size: 1.6rem;
	font-weight: bold;
}

.main .chat {
	position: relative;
	flex: 1;
}

.main .chat .footer-chat {
	width: 100%;
}

ul.previous-discussions {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--color-secondary-darker-border);
}

ul.previous-discussions li {
	padding: 1rem 3rem 1rem 1.5rem;
	margin: 0;
}

.previous-discussions-title {
	margin: 0;
	padding: 1rem 1.5rem;
	font-size: 0.9rem;
	color: white;
	background-color: var(--color-secondary-darker);
}

li.previous-discussions-item {
	position: relative;
	border-bottom: 1px solid var(--color-secondary-darker-border);
	color: rgba(255, 255, 255, 0.8);
}

li.previous-discussions-item u {
	text-decoration: none;
}

li.previous-discussions-item b {
	display: block;
	padding-left: 1rem;
	color: rgba(255, 255, 255, 1);
}

li.previous-discussions-item b:after {
	font-family: FontAwesome;
	content: '\f105';
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.5;
	font-weight: normal;
	font-size: 1.5rem;
}
