/* flbox / ダイアログに類似したUI。操作途中で画面最上部に配置してメッセージを表示する。
----------------------------------------------- */
.dialog {
	/* アニメーションと位置に関する部分 */
	margin: 0;
	position: fixed;
	transition-duration: 0.3s;
	transition-timing-function: cubic-bezier(.3,.81,.38,.99);
	/* ref: https://cubic-bezier.com/#.04,.62,.36,1.2 */
	z-index: 1000;
	
	/* 画面の中央に配置する */
	top: calc(-100vh); /* アニメーション前の初期位置 */
	left: 50%;
	transform: translate(-50%, -50%);
	
	/* 単純に見た目の部分 */
	line-height: 1.4em;
	background-color: #fff;
	/* min-width: 200px; */
	/* width: max(80vw, 320px); */
	width: 80vw;

	/* border: 1px solid #ccc; */
	border: 2px solid #333;
	border-radius: 8px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.dialog.anim {
	top: 50%; /* アニメーション後に画面中央に配置する */
}

.dialog-header {
	background-color: #f2f2f2;
	padding: 8px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
}

.dialog-content {
	padding: 15px;
	min-height: 120px;
}

.dialog-footer {
	background-color: #f2f2f2;
	padding: 10px 15px;
	display: flex;
	justify-content: flex-end;
}

.close-button,
.cancel-button,
.ok-button {
	background-color: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
	transition: background-color 0.3s ease, color 0.3s ease; /* Add transition for smooth hover effect */
	width: 80px;
	text-align: center;
	border-radius: 4px;
}
.close-button {
	width: 40px;
}
 

.close-button:hover,
.cancel-button:hover {
	background-color: #e6e6e6;
}

.ok-button:hover {
	background-color: #0056b3;
	color: #fff;
}

.close-button {
	font-weight: bold;
}

.cancel-button {
	margin-right: 10px;
	padding: 10px 20px;
}

.ok-button {
	background-color: #007bff;
	color: white;
	padding: 10px 20px;
}

pre.dialog {
	font-size: 13px;
	padding: 14px;
	line-height: 1.6em;
}

/* toast
----------------------------------------------- */
/* ref: https://baigie.me/officialblog/2021/02/25/css-tips-1/
    アニメーションのサンプル集
*/
.toast {
	margin: 70px 20px;
/*	border: 1px solid #0080fe; */
	background-color: #f0f0f0;
	color: #333;
	border-radius: 10px;
	padding: 10px 15px;
	position: fixed;
	top: -100px;
	left: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);

	background-color: #9d009d;
	color: #fff;

	font-size: 16px;
	transition-duration: 0.8s;
	transition-timing-function: cubic-bezier(.04,.62,.24,1.45);
	/* ref: https://cubic-bezier.com/#.04,.62,.36,1.2 */

	z-index: 1000;
	opacity: 0;
}

.toast.err {
	background-color: red;
	color: #fff;
}

.toast.less {
	background-color: #777;
	color: #333;
	color: #fff;
}

