﻿#page-cover
{
	opacity: 0.0;
	z-index: 400;

	position: fixed;
	top: 0px;
	left: 0px;

	width: 100%;
	height: 100%;

	background-color: rgba(0, 0, 0, 0.5);
	transition: opacity 0.5s;
}

#page-cover.opened
{
	opacity: 1.0;
	visibility: visible;
}

#page-cover.hidden
{
	z-index: -1000;
	visibility: hidden;
}

.glossary-popup
{
	position: fixed;
	top: 0px;
	left: 0px;

	width: 100%;
	height: calc(100% - 0px);

	transition: opacity 0.5s;
}

.glossary-popup.hidden
{
	z-index: -1000 !important;
	visibility: hidden;
}

.glossary-popup.closed
{
	z-index: 400;
	opacity: 0.0;
	visibility: visible;
}

.glossary-popup.opened
{
	opacity: 1.0;
	z-index: 400;
	visibility: visible;
}

.glossary-popup > iframe
{
	width: 100%;
	height: calc(100% - 4px);

	border: none;
}

.term-page
{
	margin: 0px auto;
	max-width: 880px;
}

.term-page .glossary
{
	display: inline-block;

	cursor: pointer;
	color: #f46717;
	font-weight: bold;
}

.term-page .glossary:hover
{
	text-decoration: underline;
}

@media screen and (max-width: 700px)
{
	.glossary-popup
	{
		top: 0px;
		height: calc(100% - 0px);
	}

	.glossary-popup > .dialog
	{
		margin: 0px;
		top: 35px;
		left: 10px;
		width: calc(100% - 0px);
		height: calc(100% - 45px);
		max-width: inherit;
	}
}