/* 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:600ms, @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;
}

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

#page {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 1000px;
    min-height: 600px;
    
    .f-container {
    	width: 1000px;
    	margin: 0 auto;
    	position: relative;
    }
    
    .start {
    	position: relative;
    	height: 1000px;
    	
    	.shape {
    		position: absolute;
    		width: 152px;
    		height: 119px;
    		left: 230px;
    		top: 80px;
    		background-image: url(../images/shape1.jpg);
    	}
    	
    	.title {
    		position: absolute;
    		width: 550px;
    		height: 150px;
    		left: 40px;
    		top: 210px;
    		font-family: 'PTSerif-Regular';
    		font-size: 50px;
    		line-height: 60px;
    		text-align: center;
    		
    		span {
    			font-size: 31px;
    			line-height: 37px;
    		}
    	}
    	
    	.authors {
    		position: absolute;
    		width: 550px;
    		height: 150px;
    		left: 40px;
    		top: 370px;
    		text-align: center;
    		font-family: 'ProximaNova-Regular';
    		font-size: 14px;
    		line-height: 22px;
    		
    		a {
    			color: #000000;
    		}
    	}
    	
    	.lead {
    		position: absolute;
    		width: 264px;
    		height: 132px;
    		right: 440px;
    		top: 680px;
    		background-image: url(../images/podzag.jpg);
    	}
    	
    	.description {
    		position: absolute;
    		font-family: 'ProximaNova-Regular';
    		font-size: 17px;
    		line-height: 24px;
    		width: 399px;
    		right: 0px;
    		top: 630px;
    		
    		a {
    			color: #000000;
    		}
    	}
    	
    	.portrait {
    		width: 399px;
    		height: 550px;
    		position: absolute;
    		right: 0px;
    		top: 50px;
    		
    		.painter {
    			position: absolute;
    			width: 100%;
    			height: 100%;
    			.box-scale(0);
    			/*.transition;*/
    			
    			&.monet {
    				background-image: url(../images/cMonet.jpg);
    			}
    			
    			&.manet {
    				background-image: url(../images/eManet.jpg);
    			}
    			
    			&.shown {
    				.box-scale(1);
    				/*.transition;*/
    			}
    		}
    	}
    }
    
    .action {
    	height: 800px;
    
    	.counter {
    		width: 80px;
    		height: 30px;
    		position: absolute;
    		left: 50%;
    		top: 0px;
    		margin-left: -40px;
    		font-family: 'ProximaNova-Regular';
    		font-size: 14px;
    		line-height: 28px;
    		text-align: center;
    		border: 1px solid #000000;
    		.box-sizing;
    	}
    	
    	.paint {
    		position: absolute;
    		width: 700px;
    		height: 700px;
    		left: 0px;
    		top: 80px;
    		display: none;
    	}
    	
    	.name {
    		font-family: 'PTSerif-Italic';
    		font-size: 16px;
    		line-height: 24px;
    		position: absolute;
    		width: 273px;
    		left: 725px;
    		top: 500px;
    	}
    	
    	.next {
    		font-family: 'ProximaNova-Regular';
    		font-size: 40px;
    		line-height: 40px;
    		position: absolute;
    		width: 273px;
    		left: 725px;
    		top: 630px;
    		cursor: pointer;
    		color: #000000;
    		display: none;
    		text-align: center;
    		/*text-decoration: underline;*/
    		
    		&:hover {
    			color: #4741f5;
    		}
    	}
    	
    	.or {
    		font-family: 'PTSerif-Italic';
    		font-size: 16px;
    		line-height: 24px;
    		position: absolute;
    		width: 50px;
    		height: 30px;
    		top: 317px;
    		left: 870px;
    	}
    	
    	.option {
    		position: absolute;
    		width: 273px;
    		height: 100px;
    		cursor: pointer;
    		left: 725px;
    		
    		&.disabled {
    			pointer-events: none;
    		}
    		
    		&.monet {
    			top: 200px;
    			background-image: url(../images/moneBtn.png);
    			
    			&.right {
    				background-image: url(../images/moneGreen.png);
    			}
    			
    			&.wrong {
    				background-image: url(../images/monePushed.png);
    			}
    			
    			&:hover:not(.disabled) {
    				background-image: url(../images/moneHover.png);
    			}
    		}
    		
    		&.manet {
    			top: 350px;
    			background-image: url(../images/maneBtn.png);
    			
    			&.right {
    				background-image: url(../images/maneGreen.png);
    			}
    			
    			&.wrong {
    				background-image: url(../images/manePushed.png);
    			}
    			
    			&:hover:not(.disabled) {
    				background-image: url(../images/maneHover.png);
    			}
    		}
    	}
    }
    
    .finish {
		display: none;
		padding-top: 30px;    
    
    	.you {
    		font-family: 'PTSerif-Regular';
    		font-size: 50px;
    		line-height: 60px;
    		text-align: center;
    		height: 60px;
    		margin-bottom: 40px;
    	}
    
    	.buttons {
    		height: 35px;
    		text-align: center;
    		width: 100%;
    		
    		.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);
    				}
    			}
    		}
    	}
    	
    	.images {
    		height: 2550px;
    	
    		.section {
    			position: relative;
    			margin-top: 40px;
    			
    			.letter {
    				position: absolute;
    				width: 30px;
    				font-family: 'PTSerif-Regular';
    				font-size: 50px;
    				line-height: 60px;
    			}
    			
    			.text {
    				position: absolute;
    				font-family: 'ProximaNova-Regular';
    				font-size: 18px;
    				line-height: 26px;
    			}
    			
    			.image {
    				position: absolute;
    			}
    			
    			.name {
    				position: absolute;
    				font-family: 'PTSerif-Italic';
    				font-size: 16px;
    				line-height: 24px;
    			}
    		}
    	}
    }
    
    .footer {
    	margin-top: 100px;
    }
}

.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;
                                        }
                                }
                        }
                }
        }
}