/* General styles for the modal */

/*
Styles for the html/body for special modal where we want 3d effects
Note that we need a container wrapping all content on the page for the
perspective effects (not including the modals and the overlay).
*/
.md-perspective,
.md-perspective body {
	height: 100%;
	overflow: hidden;
}

.md-perspective body  {
	background: #222;
	-webkit-perspective: 600px;
	-moz-perspective: 600px;
	perspective: 600px;
}


.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width: 630px;
	min-width: 320px;
	height: auto;
	z-index: 2000;
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.md-show {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: #929292d1;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.md-content {
	color: #000;
	background: #eeeeee;
	position: relative;
	border-radius: 25px;
	margin: 0 auto;
}

.exit {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 15px;
    height: 30px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.exit:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.exit::before,
.exit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 4px;
    background-color: #fff;
    transform-origin: center;
}

.exit::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.exit::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Для темного фона */
.md-content .exit::before,
.md-content .exit::after {
    background-color: #fff;
}

.md-content h3 {
    background-image: linear-gradient(137deg, #810000 0%, #9e0b0f 100%);
    padding: 15px 20px;
    margin: 0;
    color: #FFFFFF !important;
    text-align: center;
    font-size: 1.8em;
    font-weight: 500;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(168, 50, 50, 0.2);
}

.md-content h3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.3) 50%, 
                rgba(255,255,255,0) 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.md-content > div {
    padding: 25px 40px 30px;
    margin: 0;
    font-weight: 300;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.md-content > div p {
    margin: 0;
    padding: 12px 0;
    line-height: 1.6;
    color: #555;
}

.md-content > div ul {
	margin: 0;
	padding: 0 0 30px 20px;
}

.md-content > div ul li {
	padding: 5px 0;
}

.md-content button {
	display: block;
	margin: 0 auto;
	/* font-size: 0.8em; */
}

/* Individual modal styles with animations/transitions */

/* Effect 4: Newspaper */
.md-effect-4 .md-content {
	-webkit-transform: scale(0) rotate(720deg);
	-moz-transform: scale(0) rotate(720deg);
	-ms-transform: scale(0) rotate(720deg);
	transform: scale(0) rotate(720deg);
	opacity: 0;
}

.md-show.md-effect-4 ~ .md-overlay,
.md-effect-4 .md-content {
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	transition: all 0.5s;
}

.md-show.md-effect-4 .md-content {
	-webkit-transform: scale(1) rotate(0deg);
	-moz-transform: scale(1) rotate(0deg);
	-ms-transform: scale(1) rotate(0deg);
	transform: scale(1) rotate(0deg);
	opacity: 1;
}


/*----------------------------------
  Media Queries
------------------------------------*/
@media (max-width: 800px) {
.md-modal {
    width: 98%!important;
	max-width: 98%!important;
	min-width: 96%;
}

.md-content h3 {
	font-size: 64px!important;
}

.md-content > div {
	font-size: 54px!important;
}

.md-content > div p {
	padding: 0;
	font-size: 40px!important;
}

}