@charset "utf-8";

:root {
	--popupBgColor: #70c1b3;
	--popupContentBgColor: #fff;
	--popupContentFontColor: #000;
	--popupContentFontSize: 16px;
	--popupTitleFontColor: #fff;
	--popupTitleFontSize: 24px;

	--popupButtonColor: rgba(112, 193, 230, 1);
	--popupButtonColorActive: rgba(112, 193, 230, 0);
	--popupCancelColor: rgba(200, 200, 200, 1);
}

.newWindow {
	width: 80%; max-width: 760px; min-height: 140px; max-height: 80vh; background: var(--popupContentBgColor); border: #eee 1px solid; border-radius: 10px;
	position: fixed; left: 50%; top: 55%; transform: translate(-50%, -50%);
	opacity: 0; transition:opacity 0.3s ease-in, top 0.3s ease-in;
}
.newWindowActive {
	opacity: 1; top: 50%;
}
.newWindowActiveBottom {
	opacity: 1; top: 70%;
}
.newWindow > div {
	display: flex; flex-flow: row nowrap; align-content: flex-start; justify-content: flex-start; padding: 20px; width: 100%;
}
.newWindow > div > .content {
	width: 100%; height: 70vh; flex-grow: 1; font-size: var(--popupContentFontSize); line-height: 2em; color: var(--popupContentFontColor); margin: 0 0 60px 0; overflow: scroll;
}
.newWindow > div > .close {
	width: 40px; text-align: right;
}
.newWindow > div > .close img {
	width: 20px; cursor: pointer
}
.newWindow > div > .content > .title {
	font-size: 1.5em; line-height: 1.5em; margin: 0 0 10px 0;
}
.newWindow > div > .content > .alert {
	color: #fc137f;
}
.newWindow > div > .content > .error {
	color: #fc137f;
}
.newWindow > div > .content > .success {
	color: #00d06f;
}
.newWindow > .button {
	width: 100%; position: absolute; bottom: 10px; left: -1px; padding: 0; margin: 0; border-radius: 0 0 10px 10px;
}
.newWindow > .button > div {
	flex: 1; width: 100px; height: 30px; margin: 10px; text-align: center; font-size: 1.5em; line-height: 30px; color: #fff; background: var(--popupButtonColor); cursor: pointer;
	opacity: 1; transition:opacity 0.3s ease-in;
}
.newWindow > .button > div:hover {
	opacity: 0.5;
}

.buttonCancel {
	background: var(--popupCancelColor) !important;
}

.windowModal {
	width: 100%; min-height: 140px; background: var(--popupBgColor); box-sizing: border-box;
	position: fixed; left: 50%; transform: translate(-50%, 0); top: 50px; bottom: 0;
	opacity: 0; transition:opacity 0.3s ease-in, top 0.3s ease-in;
}
.windowModalActive {
	opacity: 1; top: 0;
}
.windowModal > div {
	display: flex; flex-flow: row nowrap; align-content: flex-start; justify-content: flex-start; padding: 20px;
}
.windowModal > div > .title {
	width: 100%; flex-grow: 1; color: var(--popupTitleFontColor); font-size: var(--popupTitleFontSize); line-height: 1em; margin: 0 0 0 0;
}
.windowModal > div > .content {
	background: var(--popupContentBgColor); color: var(--popupContentFontColor); font-size: var(--popupContentFontSize); border-radius: 10px; padding: 20px; overflow: auto; box-sizing: border-box;
	position: absolute; top: 80px; bottom: 20px; left: 20px; right: 20px;
}

.windowModal2 {
	width: 90%; background: #fff; box-sizing: border-box;
	position: fixed; left: 50%; transform: translate(-50%, 0); top: 50px; bottom: 20px;
	opacity: 0; transition:opacity 0.3s ease-in, top 0.3s ease-in;
}
.windowModalMask {
	position:absolute; z-index:6; top: 0; left: 0; bottom: 0; right: 0; overflow: hidden;
	opacity: 1; transition:opacity 0.3s ease-in;
}

.windowModal > div > .close {
	width: 40px; text-align: right;
}
.windowModal > div > .close img {
	width: 20px; cursor: pointer
}
