@charset "UTF-8";

.popupup h1,
.popupup h2,
.popupup h3 {
    color: #008000;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
    font-weight: normal;
}
.popupup h1 {
    font-size:24px;
}
.popupup h2 {
    font-size: 1.5em;
}
.popupup h3 {
    font-size: 1.2em;
}
.overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    position: fixed; /* фиксированное поцизионирование */
    cursor: default;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    -ms-transition: all 0.6s;
    -o-transition: all 0.6s;
    transition: all 0.6s;
}
.popupup {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 99.2%;
    padding: .8%;
    color: #2b2e38;
    background-image: url("test.png");
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    top: 0;
    right: 0;
    left: 50%;
    font-size: 14px;
    z-index: 10000;
    margin: 0 auto;
    width: 100%;
    min-width: 320px;
    max-width: 820px;
    position: fixed;
    padding: 15px;
    border: 1px solid #383838;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
    background-color: #2f3847;
    -webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -moz-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -ms-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -o-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -webkit-transform: translate(-50%, -150%);
    -ms-transform: translate(-50%, -150%);
    -o-transform: translate(-50%, -150%);
    transform: translate(-50%, -150%);
}
.popupupBorder{
    width: 99.2%;
    border: 1px solid #e1e1e1;
    padding: 4% 5% 0.8%;
}
.popupupBorder2{
    width: 99.2%;
    border: 0px;
    padding: 4% 5% 0.8%;
}
.overlay:target+.popupup {
    top: 50%;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.close {
    position: absolute;
    padding: 0;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    background-color: rgba(61, 61, 61, 0.8);
    -webkit-box-shadow: 0px 0px 10px #000;
    -moz-box-shadow: 0px 0px 10px #000;
    box-shadow: 0px 0px 4px 2px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    line-height: 20px;
    -webkit-transition: all ease .8s;
    -moz-transition: all ease .8s;
    -ms-transition: all ease .8s;
    -o-transition: all ease .8s;
    transition: all ease .8s;
}
.close:before {
    color: rgba(0, 0, 0, 1);
    content: '\2715';
    font-size: 12px;
}
.close:hover {
    background-color: rgba(255, 135, 15, 0.8);
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
}
.popupup p {
    margin: 0;
    padding: 10px;
}
@media only screen and (min-width: 768px) and (max-width: 959px) {
	.popupup {
		width: 95%;
	}
}
@media only screen and (min-width: 320px) and (max-width: 767px) {
	.popupup {
		width:85%;
	}
}
.popupup img {
    display: block;
    border: none;
    width: 100%;
    height: auto;
}
.pic-left, 
.pic-right {
    width: 25%;
    height: auto;
}
.pic-left {
    float: left;
    margin: 5px 15px 5px 0;
}
.pic-right {
    float: right;
    margin: 5px 0 5px 15px;
}
.video { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow:hidden; 
} 
.video iframe, 
.video object, 
.video embed {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%;
    height: 100%; 
}