/* CSS Document */


#chat {
	/*background-color: #fff;
	padding: 1em;*/
    position: relative;
	padding-bottom: 1em;
}

#chat_history {
	max-height: 50vh;
	overflow-y: scroll;
	padding: 1em;
	border: 1px solid var(--color1-5);
	border-radius: 4px;
	box-sizing: border-box;
	background-color: #fff;
	/*background-color: var(--color1-1);*/
}

#chat_history a {
	color: #000;
}

.chat_reply,
#chat_reply {
	display: block;
	padding: 0.2em 0.2em 0.2em 0.5em;
	border-left: 4px solid var(--color1);
	font-size: 70%;
	opacity: 0.5;
	margin-top: 0.5em;
	background-color: var(--color-gray1);
}
#chat_reply:empty {
	display: none;
}

.chat_message .chat_reply,
.chat_message #chat_reply {
	/*border: 1px solid var(--color-gray2);*/
	border-left: 4px solid var(--color1);
}

#chat_new {
	padding-top: 0.5em;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: nowrap;
}

#chat_new_text {
	background-color: #fff;
	padding: 0.5em;
	height: auto;
	max-height: 10em;
	overflow-y: auto;
	border: 1px solid var(--color-gray2);
	border-radius: 4px;
}

#chat_new_text[placeholder]:empty:before {
    content: attr(placeholder);
    color: var(--color-gray2);
}

#chat_send {
	padding: 0.5em 1em;
	margin: 0 0 0 0.5em;
}

#chat_bottom {
	margin-top: 0.5em;
	text-align: left;
	font-size: 120%;
}

#chat_file {
	/*border: 0;
	box-shadow: 0 0 0 0 transparent;
	background-color: transparent;*/
	/*outline: 0;
	opacity: 0;
	pointer-events: none;
	user-select: none;*/
	display: none;
}


#chat_file_label, #chat_emoji {
	border: 1px solid var(--color-gray2-5);
	border-radius: 4px;
	display: inline-block;
	padding: 0.2em 0.2em 0 0.2em;
	transition: 0.4s;
	cursor: pointer;
	text-decoration: none;
	margin-right: 0.5em;
}

#chat_file_title {
	color: var(--color-gray2);
}
#chat_file_label:hover, #chat_emoji:hover {
	background-color: var(--color1-3);
	text-decoration: none;
}


#chat_previous {
	text-align: center;
}

#chat_users_online {
	font-size: 70%;
    opacity: 0.5;
    text-align: right;
    padding-right: 0.5em;
}

#chat_user_list {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    max-height: 100%;
	font-size: 70%;
    padding: 1em;
    overflow-y: scroll;
    background-color: rgba(255, 255, 255, 1.00);
    box-shadow: -0.5em 0.5em 1em 0 rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color1-5);
}

#chat_user_list a {
	color: #000;
}

#chat_emoji_select {
	position: absolute;
	bottom: 1.8em;
	left: 0;
	width: 600px;
	max-width: 90vw;
	height: 300px;
	overflow-y: scroll;
	display: none;
	background-color: var(--color-gray1);
	padding: 0.5em;
	box-shadow: 0 0 1em 0 var(--color-gray2);
	font-size: 120%;
}

.chat_message {
	margin-bottom: 0.5em;
	display: flex;
}

.chat_message > div {
	max-width: 90%;
}

.chat_mine_outer {
	justify-content: flex-end;
}

.chat_another_outer {
	justify-content: flex-start;
}

.chat_mine {
	border-radius: 0.5em 0 0.5em 0.5em;
	padding: 0.2em 0.5em;
	text-align: left;
	background-color: rgba(0,100,255,0.08);
}

.chat_another {
	border-radius: 0 0.5em 0.5em 0.5em;
	padding: 0.2em 0.5em;
	text-align: left;
	background-color: rgba(0,0,0,0.08);
}

.chat_admin {
	/*background-color: rgba(255,0,100,0.08);*/
	background-color: var(--color1-1);
}

.chat_image {
	height: 5em;
}

.chat_new_cnt {
	font-family: Verdana, "sans-serif";
	background-color: rgba(255,0,0,0.50);
	border-radius: 2em;
	font-size: 60%;
	color: #fff;
	padding: 0.2em 0.4em;
}

.chat_link {
	color: var(--color1);
}

.chat_link:hover {
}

.reply_name {
	font-weight: bold;
}

.reply_del {
	text-decoration: none;
}

.reply_del:hover {
	text-decoration: none;
}

.message_id, .message_user {
	display: none;
}

