﻿@charset "utf-8";
@import url("keyfram.css");

/* модальные окна */


/* Слой перекрытия */
.fixed_overlay 
{
	/*overflow: auto;			 Полосы прокрутки добавляются только при необходимости. */
    position: fixed;
	overflow-x:  hidden;
	overflow-y:  auto;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
	background: -webkit-linear-gradient(top, rgba(0,13,70,0.85) 0%, rgba(100,170,210,0.85) 60%, rgba(40,70,0,0.9) 100%);
	background: -moz-linear-gradient(top, rgba(0,13,70,0.85) 0%, rgba(100,170,210,0.85) 60%, rgba(40,70,0,0.9) 100%);
	background: -ms-linear-gradient(top, rgba(0,13,70,0.85) 0%, rgba(100,170,210,0.85) 60%, rgba(40,70,0,0.9) 100%);
	background: -o-linear-gradient(top, rgba(0,13,70,0.85) 0%, rgba(100,170,210,0.85) 60%, rgba(40,70,0,0.9) 100%);
	background: linear-gradient(top, rgba(0,13,70,0.85) 0%, rgba(100,170,210,0.85) 60%, rgba(40,70,0,0.9) 100%);
	backdrop-filter: blur(3px); /* Размытие фона */

	/*text-align: center;
	white-space: nowrap;*/

	/* Трансформации прозрачности при открытии  */
	-webkit-transition: opacity 0.5s ease-in, visibility 0.5s ease-in;
	-moz-transition: opacity 0.5s ease-in, visibility 0.5s ease-in;
	-o-transition: opacity 0.5s ease-in, visibility 0.5s ease-in;
	transition: opacity 0.5s ease-in, visibility 0.5s ease-in;
	
	/* Скрываем изначально */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1000;
}

.fixed_overlay__modal 
{
	text-align: center;
	white-space: nowrap;
}

.fixed_overlay__modal:after 
{
    display: inline-block;
	display: -moz-inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
    content: '';
}

/* Показываем модальное окно после клика по ссылке */
.fixed_overlay:target 
{
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Изменяем анимацию при открытии модального окна*/
.fixed_overlay:target div
{
	-webkit-animation: open_modal 1s ease-out forwards;
	-moz-animation: open_modal 1s ease-out forwards;
	-o-animation: open_modal 1s ease-out forwards;
	animation: open_modal 1s ease-out forwards;
}


/*==========================================================*/

/* Модальное окно (расширяется в зависимости от контекста)*/
.modal
{
    display: inline-block;		/* &~ inline-block, -moz-inline-block */
	display: -moz-inline-block;
    vertical-align: middle;
	margin-left: 15%;
	margin-right: 15%;
    text-align: left;
    white-space: normal;  
    color: #000;
}

/* Анимация при закрытии, срабатывает, как только закрываем окно
(не работает пока работает анимация в окне .fixed_overlay:target div */
/* Содержание ( действует только на первый уровень вложенности! )*/
.modal > div
{
    display: inline-block;
	display: -moz-inline-block;
    position: relative;
	background: #fff7e5;
	margin: 0 auto;
	padding: 100px;		/* &~100 */
	
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
	
	-webkit-animation: close_modal 1s ease-in forwards;
	-moz-animation: close_modal 1s ease-in forwards;
	-o-animation: close_modal 1s ease-in forwards;
	animation: close_modal 1s ease-in forwards;

	-webkit-box-shadow: 7px 12px 20px rgba(0,0,0,1);
	-moz-box-shadow: 7px 12px 20px rgba(0,0,0,1);
	-o-box-shadow: 7px 12px 20px rgba(0,0,0,1);
	box-shadow: 7px 12px 20px rgba(0,0,0,1);
}



/*=====================================================================*/
/* Создаем кнопку Закрыть */
.modal a[href="#close"],
.close_
{
	display: block;
	width: 60px;
	height: 60px;
	position: absolute;
	right: 30px;
	top: 30px;
	background-size: 100% 100%;
	background: #25405E url('/Images/close_sm.png') no-repeat;

	-webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
	
	-webkit-border-radius: 40px;
	-moz-border-radius: 40px;
	border-radius: 40px;
	
	-webkit-box-shadow: 0 0 20px #FF0000;
	-moz-box-shadow: 0 0 20px #FF0000;
	-o-box-shadow: 0 0 20px #FF0000;
	box-shadow: 0 0 20px #FF0000;
}


/* Анимация кнопки Закрыть */
.modal a[href="#close"]:hover,
.close_:hover
{
	-webkit-transform: scale(1.3, 1.3);
	-moz-transform: scale(1.3, 1.3);
	-o-transform: scale(1.3, 1.3);
	transform: scale(1.3, 1.3);
	background: red url('/Images/close_sm.png') no-repeat;
}

.close_
{
	right: 100px;
	top: 100px;
}



/*=====================================================================*/
/* Создаем кнопку Назад */
.modal a[href="#back"],
.back_ 
{
	display: block;
	width: 60px;
	height: 60px;
	position: absolute;
	left: 30px;
	top: 30px;
	background: #25405E url('/Images/back_sm.png') no-repeat;
	-webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
	-webkit-border-radius: 40px;
	-moz-border-radius: 40px;
	border-radius: 40px;
	-webkit-box-shadow: 0 0 20px #00c8ff;
	-moz-box-shadow: 0 0 20px #00c8ff;
	-o-box-shadow: 0 0 20px #00c8ff;
	box-shadow: 0 0 20px #00c8ff;
}



/* Анимация кнопки Назад */
.modal a[href="#back"]:hover,
.back_:hover
{
	-webkit-transform: scale(1.3, 1.3);
	-moz-transform: scale(1.3, 1.3);
	-o-transform: scale(1.3, 1.3);
	transform: scale(1.3, 1.3);

	background: #00c8ff url('/Images/back_sm.png') no-repeat;
}

.back_
{
	left: 100px;
	top: 100px;
}


/*=====================================================================*/
/* Создаем кнопку Влево */
#left
{
	position: absolute;
	content: "";
	display: block;
	bottom: 30%;
	left: 100px;
	border-width: 100px 50px;
	border-color: transparent rgba(225, 225, 225, 0.5) transparent transparent;
	border-style: solid;
	cursor: pointer;

	-webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;

	-webkit-box-shadow: 3px 0 0 rgba(0,0,0,0.75);
	-moz-box-shadow: 3px 0 0 rgba(0,0,0,0.75);
	-o-box-shadow: 3px 0 0 rgba(0,0,0,0.75);
	box-shadow: 3px 0 0 rgba(0,0,0,0.75);
}

/* Анимация кнопки Влево */
#left:hover
{
	-webkit-transform: scale(1.1, 1.1);
	-moz-transform: scale(1.1, 1.1);
	-o-transform: scale(1.1, 1.1);
	transform: scale(1.1, 1.1);

	border-color: transparent gold transparent transparent;

	-webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
}


/*=====================================================================*/
/* Создаем кнопку Вправо */
#right
{
	position: absolute;
	content: "";
	display: block;
	bottom: 30%;
	right: 100px;
	border-width: 100px 50px;
	border-color: transparent transparent transparent rgba(225, 225, 225, 0.5);
	border-style: solid;
	cursor: pointer;

	-webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;

	-webkit-box-shadow: -3px 0 0 rgba(0,0,0,0.75);
	-moz-box-shadow: -3px 0 0 rgba(0,0,0,0.75);
	-o-box-shadow: -3px 0 0 rgba(0,0,0,0.75);
	box-shadow: -3px 0 0 rgba(0,0,0,0.75);
}

/* Анимация кнопки Вправо */
#right:hover
{
	-webkit-transform: scale(1.1, 1.1);
	-moz-transform: scale(1.1, 1.1);
	-o-transform: scale(1.1, 1.1);
	transform: scale(1.1, 1.1);

	border-color: transparent transparent transparent gold;

	-webkit-transition-duration: 0.3s;
	-moz-transition-duration: 0.3s;
	-o-transition-duration: 0.3s;
	transition-duration: 0.3s;
}


