/* RESET */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

.clear {
        clear: both;
}

.social-share {
        margin-top:  50px;
        margin-left: 20px;
        position: absolute;
        z-index: 1000;
        
        &.pie {
                display: block;
        }
}

.cover {
        background-size: cover;
        background-position: center center;
}

.transition( @duration:800ms, @target:all ) {
        -webkit-transition: @target @duration ease;
        -moz-transition: @target @duration ease;
        -o-transition: @target @duration ease;
        transition: @target @duration ease;
}

.box-sizing {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
}

.radius( @value: 1000px ) {
        -webkit-border-radius: @value;
        border-radius: @value;
    background-clip: padding-box;
}

.box-scale(@value) {
  -webkit-transform: scale(@value);
     -moz-transform: scale(@value);
      -ms-transform: scale(@value); 
       -o-transform: scale(@value);
          transform: scale(@value);
}

.transform-origin( @x, @y ) {
        transform-origin: @x @y;
        -ms-transform-origin: @x @y;
        -moz-transform-origin: @x @y;
        -o-transform-origin: @x @y;
        -webkit-transform-origin: @x @y;
}

html, body {
        width: 100%;
        height: 100%;
        background: #e8e8e8;
}

.no-select {
        -webkit-user-select: none;
        -moz-user-select: none;
}

@font-face {
    font-family: 'w4';
    src: url('waldemar_4f-black-webfont.eot');
    src: url('waldemar_4f-black-webfont.eot?#iefix') format('embedded-opentype'),
         url('waldemar_4f-black-webfont.woff') format('woff'),
         url('waldemar_4f-black-webfont.ttf') format('truetype'),
         url('waldemar_4f-black-webfont.svg#waldemar_4fblack') format('svg');
    font-weight: normal;
    font-style: normal;

}

@height: 1370px;

#page {
        position: relative;
        width: 100%;
        height: 100%;
        min-width: 1200px;
        min-height: 600px;
        
        &.high {
        	min-height: @height;
        	
        	#generator {
        		height: @height;
        		
        		.action {
        			height: @height;
        		}
        	}
        }
}

#generator {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        
        .layer {
                width: 100%;
                height: 100%;
                position: relative;
                overflow: hidden;
                background-image: url(../images/bg.jpg);
                background-attachment: fixed;
                .cover;
                .transition;
                
                &.start {
                        .title {
                                color: #ffffff;
                                font-family: ProximaNova-Regular;
                                font-size: 62px;
                                line-height: 70px;
                                width: 300px;
                                height: 100px;
                                position: absolute;
                                left: 50%;
                                margin-left: -465px;
                                top: 50%;
                                margin-top: -260px;
                                background-image: url(../images/zahod.png);
                                width: 727px;
                                height: 349px;
                                
                        }
                        
                        .lead {
                                color: #ffffff;
                                font-family: ProximaNova-Regular;
                                font-size: 14px;
                                line-height: 22px;
                                width: 400px;
                                height: 100px;
                                position: absolute;
                                margin-left: -450px;
                                left: 50%;
                                top: 50%;
                                margin-top: -95px;
                        }
                        
                        .authors {
                                color: #ffffff;
                                font-family: ProximaNova-Regular;
                                font-size: 14px;
                                line-height: 22px;
                                width: 600px;
                                height: 100px;
                                position: absolute;
                                left: 50%;
                                margin-left: -450px;
                                top: 50%;
                                margin-top: 60px;
                                
                                a {
                                        color: #ffffff;
                                }
                        }
                        
                        .button {
                                background-image: url(../images/start.png);
                                width: 582px;
                                height: 120px;
                                cursor: pointer;
                                position: absolute;
                                left: 50%;
                                margin-left: -450px;
                                top: 50%;
                                margin-top: 115px;
                                
                                &:hover {
                                        background-image: url(../images/start_h.png);
                                }
                        }
                        
                        .label {
                                color: #000000;
                                text-align: center;
                                font-family: ProximaNova-Regular;
                                font-size: 16px;
                                line-height: 17px;
                                width: 180px;
                                height: 180px;
                                position: absolute;
                                left: 50%;
                                margin-left: 80px;
                                top: 50%;
                                margin-top: -190px;
                                padding-top: 60px;
                                background-color: fadeout(#ece259, 30%);
                                display: none;
                                .radius;
                                .box-sizing;
                        }
                }
                
                &.sex {
                        .who {
                                color: #ffffff;
                                font-family: ProximaNova-Regular;
                                font-size: 62px;
                                line-height: 70px;
                                width: 500px;
                                height: 100px;
                                position: absolute;
                                left: 50%;
                                margin-left: -250px;
                                top: 50%;
                                margin-top: -260px;
                                text-align: center;
                        }
                        
                        .buttons {
                                width: 1014px;
                                height: 120px;
                                position: absolute;
                                left: 50%;
                                margin-left: -507px;
                                top: 50%;
                                margin-top: -70px;
                                background-image: url(../images/buttons_2.png);
                        
                                .button {
                                        width: 49%;
                                        height: 100%;
                                        display: inline-block;
                                        cursor: pointer;
                                        background-position: 90px 35px;
                                        background-repeat: no-repeat;
                                        
                                        &.male {
                                                background-image: url(../images/m.png);
                                                
                                                &:hover {
                                                        background-image: url(../images/m_h.png);
                                                }
                                        }
                                        
                                        &.female {
                                                background-image: url(../images/j.png);
                                                
                                                &:hover {
                                                        background-image: url(../images/j_h.png);
                                                }
                                        }
                                }
                        }
                }
                
                &.action {
                
                        .backgrounds {
                                width: 100%;
                                height: 100%;
                                top: 0;
                                left: 0;
                                position: absolute;
                                z-index: 1;
                                
                                .background {
                                        width: 100%;
                                        height: 100%;
                                        top: 0;
                                        left: 0;
                                        position: absolute;
                                        opacity: 0;
                                        .cover;
                                        .transition;
                                        
                                        &.shown {
                                                opacity: 1;
                                        }
                                }
                        }
                        
                        .wall {
                                width: 100%;
                                top: 0;
                                left: 0;
                                position: fixed;
                                z-index: 10;
                                background-color: rgba(0, 0, 0, 0.8);
                                overflow: hidden;
                                .transition;
                                
                                .table {
                                        font-family: 'w4';
                                        font-size: 50px;
                                        line-height: 70px;
                                        text-align: center;
                                        color: #ffffff;
                                        width: 560px;
                                        height: 430px;
                                        position: absolute;
                                        z-index: 3;
                                        top: 50%;
                                        left: 50%;
                                        margin-top: -215px;
                                        margin-left: -280px;
                                        display: table;
                                        
                                        .answer {
                                                width: 100%;
                                                height: 100%;
                                                display: table-cell;
                                                vertical-align: middle;
                                        }
                                }
                                
                                .label {
                                        font-family: ProximaNova-Regular;
                                        font-size: 20px;
                                        line-height: 40px;
                                        text-align: center;
                                        color: #ffffff;
                                        width: 200px;
                                        height: 40px;
                                        position: absolute;
                                        z-index: 3;
                                        top: 50%;
                                        left: 50%;
                                        margin-top: -270px;
                                        margin-left: -100px;
                                        border: 1px solid #ffffff;
                                }
                                
                                .timer {
                                        width: 180px;
                                        height: 2px;
                                        top: 50%;
                                        left: 50%;
                                        margin-top: 230px;
                                        margin-left: -90px;
                                        background-color: #ffffff;
                                        position: absolute;
                                        
                                        &.decreased {
                                                width: 0px;
                                                margin-left: 0px;
                                                -webkit-transition: all 7s linear;
                                                -moz-transition: all 7s linear;
                                                -o-transition: all 7s linear;
                                                transition: all 7s linear;
                                        }
                                }
                                
                                .onemore {
                                        font-family: ProximaNova-Regular;
                                        font-size: 20px;
                                        line-height: 40px;
                                        text-align: center;
                                        color: #ffffff;
                                        width: 200px;
                                        height: 40px;
                                        position: absolute;
                                        z-index: 3;
                                        top: 50%;
                                        left: 50%;
                                        margin-top: 240px;
                                        margin-left: -100px;
                                        cursor: pointer;
                                }
                                
                                &.hidden {
                                        height: 0px!important;
                                }
                        }
                        
                        .circles {
                        	position: relative;
                        	width: 100%;
                        	height: 100%;
                        	z-index: 2;
                        	
                        	.rules {
                        		width: 353px;
                        		height: 73px;
                        		background-image: url(../images/prosto.png);
                        		top: 30px;
                        		left: 50%;
                        		margin-left: -176px;
                        		position: absolute;
                        	}
                        	
                        	.circle {
                        		position: absolute;
                        		width: 180px;
                        		height: 180px;
                        		top: 30px;
                        		left: 50%;
                        		
                        		.border {
                        			width: 100%;
                        			height: 100%;
                        			border: 1px solid #ffffff;
                        			position: absolute;
                        			top: 0;
                        			left: 0;
                        			z-index: 1;
                        			.box-sizing;
                        			.radius;
                        		}
                        		
                        		.pad {
                        			width: 160px;
                        			height: 160px;
                        			margin-top: 10px;
                        			margin-left: 10px;
                        			background-color: #ffffff;
                        			position: absolute;
                        			top: 0;
                        			left: 0;
                        			z-index: 2;
                        			.radius;
                        			/*.transition;*/
                        		}
                        		
                        		.text {
                        			width: 100%;
                        			height: 100%;
                        			text-align: center;
                        			position: absolute;
                        			top: 0;
                        			left: 0;
                        			z-index: 3;
                        			padding: 20px;
                        			cursor: pointer;
                        			.box-sizing;
                        			
                        			.inn-one {
                        				position: relative;
                        				display: table;
                        				width: 100%;
                        				height: 100%;
                        			
                        				.inn-two {
                        					width: 100%;
                        					height: 100%;
                        					display: table-cell;
                        					vertical-align: middle;
                        					color: #006df6;
                        					font-family: 'w4';
                        					font-size: 18px;
                        					line-height: 21px;
                        				}
                        			}
                        		}
                        		
                        		&:hover {
                        			@size: 16px;
                        		
                        			.pad {
                        				-webkit-filter: blur(@size);
                        				-moz-filter: blur(@size);
                        				-o-filter: blur(@size);
                        				-ms-filter: blur(@size);
                        				filter: blur(@size);
                        			}
                        		}
                        	}
                        }
                        
                        /*.play {
                                width: 741px;
                                height: 153px;
                                background-image: url(../images/button_main.png);
                                cursor: pointer;
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                margin-top: -76px;
                                margin-left: -370px;
                                z-index: 3;
                        
                                .question {
                                        font-family: ProximaNova-Extrabld;
                                        font-size: 30px;
                                        width: 741px;
                                        height: 153px;
                                        text-align: center;
                                        line-height: 153px;
                                        padding-left: 100px;
                                        .box-sizing;
                                }
                                
                                &:hover {
                                        background-image: url(../images/button_main_h.png);
                                }
                        }
                        
                        .another {
                                width: 112px;
                                height: 153px;
                                background-image: url(../images/next.png);
                                cursor: pointer;
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                margin-top: -76px;
                                margin-left: 360px;
                                z-index: 2;
                                
                                &:hover {
                                        background-image: url(../images/next_hover.png);
                                }
                        }
                        
                        .description {
                                width: 331px;
                                height: 87px;
                                position: absolute;
                                z-index: 3;
                                top: 50%;
                                left: 50%;
                                margin-top: 200px;
                                margin-left: -165px;
                                background-image: url(../images/press.png);
                        }*/
                }
                
                &.hidden {
                        height: 0%;
                }
        }
}

.comm {
        width: 920px;
        margin: 0 auto;
        
        @active_color: #ffca24;

        .most-read {
                color: #000000!important;
        
                a {
                        color: #000000!important;
                }
                margin-bottom: 30px;
        
                .container {
                        width: 920px;
                        margin: 0 auto;
                
                        .label {
                                padding: 30px 0px;
                                font-family: PTSansPro-Caption;
                                font-size: 19px;
                        }
                
                        .item {
                                width: 200px;
                                float: left;
                                margin-left: 40px;
                        
                                .image {
                                        display: block;
                                        width: 200px;
                                        height: 200px;
                                        background-size: cover;
                                        background-position: 50% 50%;
                                }
                                
                                .title {
                                        display: block;
                                        padding: 10px 0px;
                                        font-family: PTSerif-Regular;
                                        font-size: 18px;
                                        line-height: 20px;
                                        color: #000000;
                                        text-decoration: none;
                                }
                                
                                .lead {
                                        font-family: PTSansPro-Caption;
                                        font-size: 12px;
                                        line-height: 13px;
                                }
                                
                                &:nth-child(2) {
                                        margin: 0px;
                                }
                                
                                &:hover {
                                        .title {
                                                color: @active_color;
                                        }
                                }
                        }
                }
        }
        
        .same-read {
                color: #000000!important;
        
                a {
                        color: #000000!important;
                }
                margin-bottom: 30px;
                
                .container {
                        width: 920px;
                        margin: 0 auto;
                        
                        .label {
                                padding: 30px 0px;
                                font-family: PTSansPro-Caption;
                                font-size: 19px;
                        }
                        
                        .item {
                                width: 300px;
                                height: 100px;
                                margin-bottom: 30px;
                                float: left;
                                
                                .image {
                                        display: block;
                                        width: 100px;
                                        height: 100px;
                                        float: left;
                                        background-size: cover;
                                        background-position: 50% 50%;
                                        .transition;
                                }
                                
                                .info {
                                        float: left;
                                        width: 170px;
                                        padding: 0px 15px;
                                        
                                        .rubrics {
                                                margin-bottom: 15px;
                                                
                                                 a {
                                                        color: #000000;
                                                        text-decoration: none;
                                                        font-family: MonoCondensed-Bold;
                                                        font-size: 11px;
                                                        line-height: 13px;
                                                        
                                                        &:hover {
                                                                color: @active_color;
                                                        }
                                                 }
                                        }
                                        
                                        .title {
                                                margin-bottom: 20px;
                                                display: block;
                                                font-family: PTSerif-Regular;
                                                font-size: 20px;
                                                line-height: 21px;
                                                color: #000000;
                                                text-decoration: none;
                                                
                                                &:hover {
                                                        color: @active_color;
                                                }
                                        }
                                }
                                
                                &:hover {
                                        .title {
                                                color: @active_color;
                                        }
                                }
                        }
                }
        }
}