/*
 * n01_chat.css
 *
 * Copyright (C) 1996-2016 by Ohno Tomoaki. All rights reserved.
 */

#chat_button {
	width: 60%;
	margin: 10px 0 0 0;
}

@-webkit-keyframes chatPulseMotion {
	0% {
		-webkit-box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.5);
		box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.5);
	}
	100% {
		-webkit-box-shadow: 0px 0px 0px 40px rgba(255, 255, 255, 0.0);
		box-shadow: 0px 0px 0px 40px rgba(255, 255, 255, 0.0);
	}
}

@keyframes chatPulseMotion {
	0% {
		-webkit-box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.5);
		box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.5);
	}
	100% {
		-webkit-box-shadow: 0px 0px 0px 40px rgba(255, 255, 255, 0.0);
		box-shadow: 0px 0px 0px 40px rgba(255, 255, 255, 0.0);
	}
}

#t_chat_button.unread {
	-webkit-animation: chatPulseMotion 1.4s linear infinite;
	animation: chatPulseMotion 1.4s linear infinite;
}

#chat_window {
	z-index: 30;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.7);
	margin-top: env(safe-area-inset-top);
}

#chat_contents {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

#return_area {
	z-index: 2;
	top: 0px;
	left: 0px;
	width: 100%;
	text-align: center;
}

#chat_return_button {
	width: 99%;
	-webkit-appearance: none;
	padding: 10px;
	
	border: 0px solid #2a2b2e;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;

	background-color: #0084ff;
	color: #fff;
	outline:none;
}

#chat_return_button:hover, .chat_return_button:focus {
	background-color: #0069f1;
}

#chat_return_button:active {
	background-color: #00377d;
}

#chat_area {
	z-index: 3;
	color: #fff;
	font-size: 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.chat_translate_bar {
	z-index: 3;
	color: #fff;
	font-size: 14px;
	padding: 4px 8px;
	text-align: right;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.chat_translate_bar label {
	cursor: pointer;
}

.chat_translate_bar input {
	vertical-align: middle;
}

.chat_translate_bar select {
	vertical-align: middle;
}

.chat_msg {
	width: 100%;
	word-break: break-word;
}

.chat_msg_name {
	color: #a8d5ff;
	font-weight: bold;
}

.chat_mention {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	padding: 0 3px;
}

.chat_mention_me {
	background-color: rgba(0, 97, 224, 0.75);
	color: #fff;
	font-weight: bold;
}

.chat_name_menu {
	display: none;
	position: fixed;
	z-index: 40;
	background-color: #fff;
	color: #000;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

.chat_name_menu_item {
	padding: 10px 16px;
	cursor: pointer;
	white-space: nowrap;
}

.chat_name_menu_item:hover {
	background-color: #eee;
}

.chat_name_menu_item:active {
	background-color: #ddd;
}

.chat_msg_content a:link {
	color: #fff;
}
.chat_msg_content a:visited {
	color: #eee;
}
.chat_msg_content a:hover {
	color: #fff;
}
.chat_msg_content a:active {
	color: #00f;
}

.chat_date {
	width: 100%;
	word-break: break-word;
	position: relative;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	margin: 25px 0 10px 0;
}

.chat_date_area {
	display: inline-block;
	position: absolute;
	top: -17px;
	width: 100%;
	text-align: center;
}

.chat_date_msg {
	font-size: 20px;
}

#input_area {
	text-align: center;
	padding-bottom: calc(env(safe-area-inset-bottom) + 10px);
	position: relative;
}

.c_input_table {
	width: 100%;
}

.c_input_td {
	vertical-align: middle;
	width: 100%;
}

.c_button_td {
	vertical-align: middle;
	text-align: left;
}

#c_send_button {
	width: 99%;
	-webkit-appearance: none;
	padding: 10px;

	border: 0px solid #2a2b2e;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;

	background-color: #fff;
	color: #000;
	outline:none;
}

#c_send_button:hover, #c_send_button:focus {
	background-color: #e0e0e0;
}

#c_send_button:active {
	background-color: #a0a0a0;
}

#chat_msg_input {
	width: 90%;
	background-color: #fff;
	color: #000;
	display: inline-block;
	box-sizing: border-box;
	min-height: 1.4em;
	padding: 6px 8px;
	text-align: left;
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	outline: none;
	-webkit-user-select: text;
	user-select: text;
	vertical-align: middle;
	scrollbar-width: none;
}

#chat_msg_input::-webkit-scrollbar {
	display: none;
}

.c_input_flex {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	width: 100%;
}

.c_input_flex #chat_msg_input {
	-webkit-flex: 1 1 auto;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

.c_input_flex #c_send_button {
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	width: auto;
	margin-left: 6px;
}

#chat_msg_input:empty:before {
	content: attr(data-placeholder);
	color: #888;
	pointer-events: none;
}

.chat_input_mention {
	background-color: rgba(0, 132, 255, 0.18);
	color: #0060df;
	border-radius: 4px;
	padding: 0 3px;
	white-space: nowrap;
}

.chat_at_menu {
	display: none;
	position: absolute;
	z-index: 41;
	background-color: #fff;
	color: #000;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	overflow-y: auto;
	max-height: 40vh;
	-webkit-overflow-scrolling: touch;
}

.chat_at_item {
	padding: 8px 14px;
	cursor: pointer;
	white-space: nowrap;
}

.chat_at_item.active, .chat_at_item:hover {
	background-color: #e0e0e0;
}

.chat_tw, .chat_fb, .chat_g {
	height: 10px;
	vertical-align: top;
}

.chat_count {
	display: inline-block;
	position: absolute;
	background-color: #ff0000;
	color: #fff;
	width: max-content;
	font-weight: bold;
	cursor: default;
}
