/* 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: fixed;
        z-index: 1000;
        
        &.pie {
                display: block;
        }
}

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

.transition(@duration:150ms, @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%;
}

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

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

@beige: #fee9c9;
@red: #fb0016;

#page {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 1200px;
    min-height: 600px;
    
    .bordered {
    	border: 40px solid @beige;
    	.box-sizing;
    }
    
    .f-container {
    	width: 1200px;
    	margin: 0 auto;
    }
    
    .start {
    	position: relative;
    	display: none;
    	
    	.f-container {
    		height: 1630px;
    	}
    	
    	.title {
    		width: 1081px;
    		height: 356px;
    		background-image: url(../images/1.png);
    		position: absolute;
    		z-index: 1;
    		left: 50%;
    		margin-left: -540px;
    		top: -60px;
    	}
    	
    	.image {
    		width: 980px;
    		height: 453px;
    		background-image: url(../images/2.jpg);
    		position: absolute;
    		z-index: 1;
    		left: 50%;
    		margin-left: -590px;
    		top: 300px;
    	}
    	
    	.description {
    		position: absolute;
    		width: 800px;
    		font-family: 'PTSerif-Regular';
    		font-size: 20px;
    		line-height: 41px;
    		left: 50%;
    		top: 800px;
    		margin-left: -470px;
    	}
    	
    	.authors {
    		width: 200px;
    		position: absolute;
    		z-index: 2;
    		left: 50%;
    		top: 570px;
    		margin-left: -20px;
    		font-family: 'ProximaNova-Regular';
    		font-size: 16px;
    		line-height: 19px;
    		
    		a {
    			color: #0000ff;
    		}
    	}
    	
    	.hand {
    		width: 661px;
    		height: 378px;
    		background-image: url(../images/3.jpg);
    		position: absolute;
    		z-index: 3;
    		right: 0;
    		top: 1240px;
    	}
    	
    	.choose-sex {
    		position: absolute;
    		width: 800px;
    		font-family: 'ProximaNova-Regular';
    		font-size: 80px;
    		left: 50%;
    		margin-left: -470px;
    		top: 1230px;
    		z-index: 4;
    	}
    	
    	.sex {
    		position: absolute;
    		z-index: 4;
    		width: 170px;
    		height: 170px;
    		line-height: 164px;
    		text-align: center;
    		color: @red;
    		font-family: 'ProximaNova-Regular';
    		font-size: 80px;
    		border: 3px solid @red;
    		left: 50%;
    		top: 1360px;
    		cursor: pointer;
    		text-transform: lowercase;
    		background-color: #ffffff;
    		.box-sizing;
    		.radius;
    		.transition;
    		
    		&.male {
    			margin-left: -470px;
    		}
    		
    		&.female {
    			margin-left: -250px;
    		}
    		
    		&:hover {
    			border: 8px solid @red;
    		}
    	}
    	
    	&.shown {
    		display: block;
    	}
    }
    
    .action {
    	position: relative;
    	display: none;
    	height: 100%;
    	
    	.f-container {
    		position: absolute;
    		width: 900px;
    		height: 500px;
    		left: 50%;
    		top: 50%;
    		margin-left: -450px;
    		margin-top: -250px;
    	}
    	
    	.question {
    		display: none;
    		
    		.counter {
    			position: absolute;
    			width: 90px;
    			height: 36px;
    			top: 0px;
    			left: 50%;
    			margin-left: -45px;
    			line-height: 36px;
    			text-align: center;
    			font-family: 'ProximaNova-Regular';
    			font-size: 20px;
    			border: 2px solid #000000;
    		}
    		
    		.text {
    			position: absolute;
    			width: 800px;
    			left: 50%;
    			margin-left: -400px;
    			top: 40px;
    			height: 330px;
    			text-align: center;
    			font-family: 'PTSerif-Regular';
	    		font-size: 34px;
	    		line-height: 42px;
	    		
	    		.outer {
	    			width: 100%;
	    			height: 100%;
	    			display: table;
	    			
	    			.inner {
	    				width: 100%;
	    				height: 100%;
	    				display: table-cell;
	    				vertical-align: middle;
	    			}
	    		}
    		}
    		
    		.answer {
    			position: absolute;
    			width: 130px;
    			height: 130px;
    			line-height: 124px;
    			text-align: center;
    			font-family: 'ProximaNova-Regular';
    			font-size: 40px;
    			text-transform: lowercase;
    			border: 2px solid #000000;
    			left: 50%;
    			bottom: 0px;
    			cursor: pointer;
    			.box-sizing;
    			.radius;
    			.transition;
    			
    			&.yes {
    				margin-left: -175px;
    				
    				/*&:after {
    					content: 'Да';
    					position: absolute;
    					top: 0;
    					left: 0;
    					width: 100%;
    					height: 100%;
    				}*/
    			}
    			
    			&.no {
    				margin-left: 40px;
    				
    				/*&:after {
    					content: 'Нет';
    					position: absolute;
    					top: 0;
    					left: 0;
    					width: 100%;
    					height: 100%;
    				}*/
    			}
    			
    			&.disabled {
    				cursor: default;
    			}
    			
    			&:hover:not(.disabled) {
    				border: 7px solid #000000;
    			}
    		}
    		
    		&.shown {
    			display: block;
    		}
    	}
    	
    	&.shown {
    		display: block;
    	}
    }
    
    .finish {
		position: relative;
    	display: none;
    	height: 100%;
    	
    	.f-container {
    		position: absolute;
    		width: 900px;
    		height: 400px;
    		left: 50%;
    		top: 50%;
    		margin-left: -450px;
    		margin-top: -200px;
    	}
    	
    	.title {
    		font-family: 'ProximaNova-Extrabld';
    		font-size: 50px;
    		text-align: center;
    		position: absolute;
    		width: 700px;
    		left: 50%;
    		margin-left: -350px;
    		top: 0;
    	}
    	
    	.buttons {
			height: 35px;
			text-align: center;
			width: 100%;
			position: absolute;
			top: 100px;
			
			.button {
				width: 145px;
				height: 35px;
				display: inline-block;
				cursor: pointer;
				
				&.vk {
					background-image: url(../images/vk.png);
					
					&:hover {
						background-image: url(../images/vk_hover.png);
					}
				}
				
				&.tw {
					background-image: url(../images/twitter.png);
					
					&:hover {
						background-image: url(../images/twitter_hover.png);
					}
				}
				
				&.fb {
					background-image: url(../images/fb.png);
					
					&:hover {
						background-image: url(../images/fb_hover.png);
					}
				}
			}
		}
    	
    	.result {
    		font-family: 'PTSerif-Regular';
    		font-size: 40px;
    		line-height: 48px;
    		width: 800px;
    		left: 50%;
    		margin-left: -400px;
    		text-align: center;
    		position: absolute;
    		top: 180px;
    	}
    	
    	&.shown {
    		display: block;
    	}
	}
    
    .footer {
    	
    }
}

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

        .most-read {
                color: #000000!important;
        
                a {
                        color: #000000!important;
                }
                margin-bottom: 30px;
        
                .container {
                        width: 920px!important;
                        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;
                                        }
                                }
                        }
                }
        }
}