.icon_placeholder {
	border: 1px solid black;
	padding: 3px 8px;
}

.icon_placeholder img {
	display: inline-block;
	vertical-align: middle;
}

.icon_placeholder span {
	display: inline-block;
	vertical-align: middle;
	margin-left: 5px;
	font-size: 1.0em;
}

#popup_langs {
	width: max-content; 
	border: 1px solid black; 
	display: block;
	box-shadow:0 3px 5px #666;
	-webkit-box-shadow:0 3px 5px #666;
	-moz-box-shadow:0 3px 5px #666;
}

#popup_langs button {
	width: 150px; 
	height: 30px; 
	border: 1px solid black; 
	display: block; 
	background-color: white;
}

#popup_translation, #popup_dictionary {
	width: 900px; 
	height: 600px; 
	min-width: 350px;
	min-height: 350px;
	border: 1px solid #808080; 
	background-color: white; 
	position: fixed; 
	left: 0; 
	right: 0; 
	top: 0; 
	bottom: 0; 
	margin: auto; 
	z-index: 10;
	overflow: auto;
	resize: both;
}

#popup_header {
	padding: 0; 
	border-bottom: 1px solid #808080; 
	background-color: white; 
	display: flex; 
	flex-direction: row; 
	justify-content: flex-start;
	position: sticky;
	top: 0;
}

#header_read_button, #header_stop_button {
	height: 50px; 
	width: 50px; 
	padding: 3px 0 0 0; 
	border: none; 
	border-right: 1px solid #dddddd;
}

#header_zoom_plus, #header_zoom_minus, #header_info_button {
	height: 50px; 
	width: 50px; 
	padding: 0; 
	border: none; 
	border-right: 1px solid #dddddd;
	font-weight: bold;
	font-size: 16px;
}

#header_close_button {
	height: 50px; 
	width: 50px;
	padding: 0; 
	border: none; 
	border-left: 1px solid #dddddd; 
	background-color: white; 
	cursor: pointer; 
	margin-left: auto; 
	font-weight: bold;
	font-size: 16px;
}

#popup_header button:hover {
	background-color: #f2f2f2; 
}

.button_active {
	background-color: white; 
	cursor: pointer;
}

.button_disabled {
	background-color: #f2f2f2;
	cursor: auto;
	color: #dddddd;
}

#popup_main_container {
	width: 100%;
}

#translation_label, #dictionary_label {
	display: inline-block;
	padding: 30px 10px 20px 20px; 
	border: none; 
	font-weight: bold; 
	font-size: 18px;
}

#info_block {
	display: none;
	margin: 0 20px 10px 20px;
	padding: 6px 8px;
	border: 1px solid #dddddd; 
	border-radius: 2px;
	font-size: 1.0em;
	text-align: justify;
}

#info_block p {
	margin: 0;
}

#translation_text {
	padding: 0 20px 30px 20px; 
	border: none; 
	font-size: 15px;
}

#dictionary_text {
	padding: 0 20px 30px 20px; 
	border: none;
}

#popup_footer {
	border-top: 1px solid #808080;
	background-color: white;
	padding: 10px 0 0 0;
	width: inherit;
	display: flex;
	justify-content: space-between;
}

#popup_translation #popup_footer {
	position: absolute;
	bottom: 10px;
}

#footer_close_button {
	border: none;
	background-color: #808080;
	color: white;
	text-transform: uppercase;
	font-weight: bold;
	margin: 10px 20px;
	padding: 5px 20px;
	cursor: pointer;
	border-radius: 2px;
	height: 31px;
}

#close_info_button {
	border: none;
	background-color: #808080;
	color: white;
	text-transform: uppercase;
	font-weight: bold;
	margin: 7px 0;
	padding: 5px 20px;
	cursor: pointer;
	border-radius: 2px;
	height: 31px;
}

#popup_footer a {
	color: #808080;
	margin: 15px 20px;
	font-weight: 500;
	font-size: 12px;
}

#popup_footer a:hover {
	color: #808080;
	text-decoration: none;
}

#overlay {
	position: fixed; 
	left: 0; 
	right: 0; 
	top: 0; 
	bottom: 0; 
	margin: auto; 
	background-color: white; 
	opacity: 0.7;
}

#waiting_spinner {
	margin: auto;
    border: 18px solid #ebebeb;
    border-top: 18px solid #808080;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 1.5s linear infinite;
	z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 1125px) {
	#popup_translation, #popup_dictionary {
		width: 80%; 
	}
	
	#popup_footer {
		width: 100%;
	}
	
	.icon_placeholder {
		padding: 15px 25px;
	}
	
	.icon_placeholder span {
		font-size: 2.0em;
		margin-left: 15px;
	}
	
	#popup_langs button {
		width: 300px; 
		height: 2.5em; 
		font-size: 2em;
		font-weight: bold;
	}
	
	#header_read_button, #header_stop_button {
		height: 100px; 
		width: 100px; 
		padding: 3px 0 0 0; 
	}
	
	#header_read_button img, #header_stop_button img {
		width: 40%;
		height: auto;
	}

	#header_info_button, #header_close_button {
		height: 100px; 
		width: 100px; 
		font-size: 2.5em;
	}
	
	#header_zoom_plus, #header_zoom_minus {
		display: none;
	}
	
	#footer_close_button {
		margin: 20px 40px;
		padding: 20px 50px;
		border-radius: 5px;
		height: auto;
		font-size: 2.0em;
	}
	
	#close_info_button {
		margin: 7px 0;
		padding: 20px 50px;
		border-radius: 5px;
		height: auto;
		font-size: 2.0em;
	}
	
	#popup_footer a {
		font-size: 1.5em;
		margin: auto 40px;
	}
	
	#translation_label {
		padding: 60px 40px 30px 40px; 
		font-size: 3.0em;
	}
	
	#translation_text {
		padding: 30px 40px 60px 40px; 
		font-size: 3.0em;
		line-height: 1.2em;
	}
	
	#info_block {
		margin: 0 40px 30px 40px;
		padding: 20px;
		font-size: 1.0em;
	}
}

@media only screen and (max-height: 1440px) {
	#popup_translation, #popup_dictionary {
		height: 70%; 
	}
}