@charset "utf-8";

body {
	margin: 0; /*上下左右の間隔*/
	position: relative;
	font-family: "Helvetica Neue", Arial, sans-serif;
	background-color: #e8e8e8;
}

.dic-ai-area {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-left: 20px;
	margin-top: 100px;
	gap: 8px;
}

#dic-select-wrapper {
	display: flex;
	position: relative;
	align-items: center;
	margin: 0;
}

#dic-select-wrapper::after {
	position: absolute;
	right: 15px;
	width: 10px;
	height: 7px;
	background-color: #535353;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	content: "";
	pointer-events: none;
}

#dic-select {
	appearance: none;
	top: 100px;
	min-width: 230px;
	height: 2.8em;
	padding: 0.4em calc(0.8em + 30px) 0.4em 0.8em;
	border: 1px solid #000;
	border-radius: 25px;
	background-color: #b9b9b9;
	color: #000;
	font-size: 1em;
	cursor: pointer;
}

#ai {
	margin: 0;
}

.main-contents {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-content: center;
	width: 80%;
	margin: 20px auto;
}

.text {
	/* display: -webkit-flex; */
	display: flex;
	justify-content: center;
	align-items: stretch;
	align-content: center;
	width: 100%;
	margin: 0;
	flex-wrap: wrap;
	font-size: 10.5pt;
}

.word-input {
	position: relative;
	margin: 0;
	padding: 10px;
	box-sizing: border-box;
	width: 100%;
	font-size: 1em;
	resize: none;
	word-break: normal;
	overflow: auto;
	line-break: anywhere;
	white-space: pre-wrap;
}

.result-text {
	position: relative;
	font-size: 1em;
	border: 1px solid #000;
	background-color: #f2f2f2;
	word-break: normal;
	overflow: auto;
	line-break: anywhere;
	white-space: pre-wrap;
}

.changed-word {
	color: blue;
	cursor: pointer;
}
.changed-word:hover {
	text-decoration: underline;
}

.tooltip {
	position: absolute;
	background: #fff;
	/* border-radius: 8px; */
	font-size: 14px;
	max-width: 200px;
	z-index: 1000;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	white-space: normal;
	/* line-height: 1.4; */
}
.tooltip-original-word {
	padding: 8px 12px;
}
.tooltip-changed-word {
	padding: 8px 12px;
	background: #eee;
	cursor: pointer;
}
.tooltip-changed-word:hover {
	filter: brightness(0.95);
}
.tooltip-changed-word-selected {
	background: #ccf;
}

.button-box {
	position: relative;
	display: flex;
	top: 0;
	left: 0;
	height: 30px;
	width: 100%;
	background-color: #eeeeee;
}

.button-box > * {
	left: 0;
	height: 30px;
	width: 30px;
	margin-right: 10px;
}

#buttons {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	align-content: center;
	width: 100%;
	margin: 0;
}

.circle-button {
	border: 1px solid #000;
	border-radius: 50%;
	background-color: #b9b9b9;
}

#cam-button {
	margin: 0 20px;
}

#rec-button {
	margin: 0 20px;
}

@media (width <= 600px) {
	.text {
		flex-direction: column;
	}

	.word-input,
	.result-text {
		position: relative;
		top: 0%;
		min-height: 100px;
		width: 100%;
		padding: 10px;
		box-sizing: border-box;
	}

	#cam-button > a > .circle-button {
		height: 75px;
		width: 75px;
	}

	#rec-button > a > .circle-button {
		height: 75px;
		width: 75px;
	}
}

@media (600px < width) {
	.text {
		flex-direction: row;
	}

	.word-input,
	.result-text {
		position: relative;
		top: 0%;
		min-height: 100px;
		width: 50%;
		padding: 10px;
		box-sizing: border-box;
	}

	.button-box::before {
		content: "";
		display: block;
		height: 100%;
		width: 50%;
	}

	#cam-button > a > .circle-button {
		height: 100px;
		width: 100px;
	}

	#rec-button > a > .circle-button {
		height: 100px;
		width: 100px;
	}
}

/*＃はID。.はクラス*/
