@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: local('Lato Black'), local('Lato-Black'), url(http://themes.googleusercontent.com/static/fonts/lato/v7/G2uphNnNqGFMHLRsO_72ngLUuEpTyoUstqEm5AMlJo4.woff) format('woff');
}
     
/* `XHTML, HTML4, HTML5 Reset
----------------------------------------------------------------------------------------------------*/

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
dialog,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
font,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
hr,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
main,
mark,
menu,
meter,
nav,
object,
ol,
output,
p,
pre,
progress,
q,
rp,
rt,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video,
xmp {
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 100%;
}

html,
body {
  height: 100%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
/*
  Override the default (display: inline) for
  browsers that do not recognize HTML5 tags.

  IE8 (and lower) requires a shiv:
  http://ejohn.org/blog/html5-shiv
*/
  display: block;
}

b,
strong {
/*
  Makes browsers agree.
  IE + Opera = font-weight: bold.
  Gecko + WebKit = font-weight: bolder.
*/
  font-weight: bold;
}

img {
  color: transparent;
  font-size: 0;
  vertical-align: middle;
/*
  For IE.
  http://css-tricks.com/ie-fix-bicubic-scaling-for-images
*/
  -ms-interpolation-mode: bicubic;
}

ol,
ul {
  list-style: none;
}

li {
/*
  For IE6 + IE7:

  "display: list-item" keeps bullets from
  disappearing if hasLayout is triggered.
*/
  display: list-item;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td,
caption {
  font-weight: normal;
  vertical-align: top;
  text-align: left;
}

q {
  quotes: none;
}

q:before,
q:after {
  content: "";
  content: none;
}

sub,
sup,
small {
  font-size: 75%;
}

sub,
sup {
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}
.clearfix:before,
.clearfix:after {
  content: '.';
  display: block;
  overflow: hidden;
  visibility: hidden;
  font-size: 0;
  line-height: 0;
  width: 0;
  height: 0;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  zoom: 1;
}

svg {
/*
  For IE9. Without, occasionally draws shapes
  outside the boundaries of <svg> rectangle.
*/
  overflow: hidden;
}

.clear {
        clear: both;
}

.social-share {
        top:  50px;
        right: 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;
}

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


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

@fontRegular:ProximaNova-Regular;
@fontExtrabold:ProximaNova-Extrabld;
@fontThin:ProximaNovaT-Thin;


*, *:before, *:after{
  box-sizing:border-box;
}

div#page {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 1200px;
  background-size: cover;

  .cont {
    position: relative;
    width: 1200px;
    min-width: 1200px;
    margin: 0 auto;
    height: 100%;
  }
}

.test-start-page {
  height: auto;
  padding-bottom: 40px;
  min-width: 1024px;
  position: relative;
  overflow: hidden;
  /*min-height: 900px;*/
    .worm {
      position: absolute;
      display: block;
      width: 129px;
      height: 167px;
      background-image: url(../images/worm.gif);

        &.w1 {
          left: 620px;
          top: 540px;
        }
        &.w2 {
          right:20px;
          top: 140px;
        }
        &.w3 {
          left: 380px;
          top: 182px;
        }
        &.w4 {
          left:20px;
          top: 240px;
        }
        &.w5 {
          right:23px;
          top: 240px;
        }
        &.w6 {
          right:220px;
          top: -10px;
        }
        &.w7 {
          left:230px;
          top: 40px;
        }
        &.w8 {
          right:100px;
          top: 494px;
        }
        &.w9 {
          left:240px;
          top: 640px;
        }
        &.w10 {
          right:440px;
          top: 340px;
        }
      }
    .header {
      font-family: 'Proximanova-extrabld', sans-serif;
      padding-top: 40px;
      
      div.foo{
        width: 90%;
        margin: 0 auto;
        text-align: center;
      }
      .letter{
        display: inline-block;
        font-weight: 900;
        font-size: 6em;
        margin: 0.05em;
        position: relative;
        color: #515151;
        -webkit-perspective:: 400;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        perspective: 400;
        
        z-index: 1;
      }
      .letter:before, .letter:after{
        position:absolute;
        content: attr(data-letter);
        -webkit-transform-origin: top left;
        transform-origin: top left;
        top:0;
        left:0;
      }
      .letter, .letter:before, .letter:after{
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
      }
      .letter:before{
        color: #fff;
        text-shadow: 
          -1px 0px 1px rgba(255,255,255,.4),
          1px 0px 1px rgba(0,0,0,.8);
        z-index: 3;
        -webkit-transform:
          rotateX(0deg)
          rotateY(-0deg)
          rotateZ(0deg);
        transform:
          rotateX(0deg)
          rotateY(-0deg)
          rotateZ(0deg);
      }
      .letter:after{
        color: rgba(0,0,0,.11);
        z-index:2;
        -webkit-transform:
          scale(1.08,1)
          rotateX(0deg)
          rotateY(0deg)
          rotateZ(0deg)
          skew(0deg,1deg);
        transform:
          scale(1.08,1)
          rotateX(0deg)
          rotateY(0deg)
          rotateZ(0deg)
          skew(0deg,1deg);
      }
      .letter:hover:before{
        color: #fafafa;
        -webkit-transform:
          rotateX(0deg)
          rotateY(-40deg)
          rotateZ(0deg);
        transform:
          rotateX(0deg)
          rotateY(-40deg)
          rotateZ(0deg);
      }
      .letter:hover:after{
        -webkit-transform:
          scale(1.08,1)
          rotateX(0deg)
          rotateY(40deg)
          rotateZ(0deg)
          skew(0deg,22deg);
        transform:
          scale(1.08,1)
          rotateX(0deg)
          rotateY(40deg)
          rotateZ(0deg)
          skew(0deg,22deg);
      }
    }
    .descript {
      .t-info {
        font-family: @fontExtrabold;
        font-size: 12px;
        line-height: 27px;
        color: #000;
        text-transform: uppercase;
        text-align: center;
        margin-top: 20px;
        margin-bottom: 20px;
      }
      .t-auth {
          text-align: center;
          font-family: @fontRegular;
          font-size: 10px;
          line-height: 10px;
          text-transform: uppercase;

            a {
              color: #000;

              &:hover {
                text-decoration:none;
              }
            }
      }
      .t-descripion {
        font-family: @fontExtrabold;
        font-size: 12px;
        line-height: 27px;
        color: #000;
        text-transform: uppercase;
        text-align: center;
        margin-top: 20px;
      }  
    }
    
      

}
.test-action-page {
  height: 100%;
  
  .t-quest {
    height: 100%;
    background-size: cover;
    position: relative;

    .answers-box.w-auto {
      width: auto !important;
    }
    .answers-box[data-id='2'] {
      width: 610px;
      margin-left: -305px;
    }
    .answers-box[data-id='5'] {
      width: 610px;
      margin-left: -305px;
    }
    .answers-box[data-id='9'],
    .answers-box[data-id='12'] {
      width: 455px;
      margin-left: -227px;
      margin-top: -240px;
        .true-video {
          margin-bottom: 10px;
        }
    }
    .answers-box[data-id='10'] {
      width: 400px;
      margin-left: -200px;
      margin-top: -250px;
        .true-video {
          margin-bottom: 10px;
        } 
    }
    .answers-box[data-id='10'] {
      margin-top: -220px;
        .true-video {
          margin-bottom: 10px;
        } 
    }
    .answers-box[data-id='4'] {
      width: 456px;
      margin-left: -228px;
      margin-top: -230px;
        .answ {
          height: auto;
          line-height: 16px;
          padding-top: 5px;
          padding-bottom: 5px;
        }
        .true-video {
          margin-bottom: 15px;
        }
    }
    .answers-box {
      position: absolute;
      display: block;
      width: 400px;
      height: auto;
      box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
      padding-bottom: 10px;
      padding-top: 10px;
      background-color: #fff;
      top: 50%;
      left: 50%;
      margin-left: -200px;
      margin-top: -190px;

      .true-ans-text {
        font-family: @fontRegular;
        font-style: italic;
        font-size: 14px;
        line-height: 16px;
        margin-bottom: 10px;
        margin-left: 15px;

      }
      .crt {
        position: absolute;
        top: -20px;
        font-family: ProximaNova-Regular;
        color: #fff;
        font-size: 12px;
        margin-left: 2px;
      }
      h1.quest {
        font-family: @fontRegular;
        font-size: 14px;
        line-height: 22px;
        font-weight: normal;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
        width: 400px;

      }
      .answ {
        display: block;
        
        height: auto;
        line-height: 16px;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 10px;
        background-color: rgb(50,50,50);
        font-family: @fontRegular;
        font-size:12px;

        color: #fff;
        margin-bottom: 1px; 
        
        box-sizing:border-box;
        cursor: pointer;
        
        &:hover {
          opacity:0.7;
        }

        &.active {
          /*background-color: red;*/
        }

        &.disabled {
          pointer-events: none;
        }
      }
      .leftCol {
        width: 280px;
        margin-right: 20px;
        margin-left: 15px;
        float: left;
          .answ {
            margin-bottom: 10px;
          }
      }
      .rightCol {
        width: 280px;
        float: left;
          .answ {
            margin-bottom: 10px;
          }
      }
      .true-video {
        padding: 0 15px;
        margin-bottom: 10px;
      }
      .true-text {
        font-family: @fontRegular;
        font-size: 14px;
        line-height: 22px;
        padding: 0 15px;
        width: 400px;
          b {
            font-family: @fontExtrabold;
          }
      }
      .nextQues {
        cursor: pointer;
        height: 25px;
        line-height: 25px;
        font-size: 12px;
        text-transform: uppercase;
        color: #fff;
        font-family: @fontRegular;
        padding-left: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        background-color: rgb(50,50,50);
          &:hover {
            opacity:0.8;
          }
      }

    }
  }
  .t-quest.hide {
    display: none;
  }

}

.test-finish-page {
  height: 100%;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  .worm {
    position: absolute;
    display: block;
    width: 129px;
    height: 167px;
    background-image: url(../images/worm.gif);

      &.w1 {
        left: 620px;
        top: 540px;
      }
      &.w2 {
        right:20px;
        top: 140px;
      }
      &.w3 {
        left: 380px;
        top: 182px;
      }
      &.w4 {
        left:20px;
        top: 240px;
      }
      &.w5 {
        right:23px;
        top: 240px;
      }
      &.w6 {
        right:220px;
        top: -10px;
      }
      &.w7 {
        left:230px;
        top: 40px;
      }
      &.w8 {
        right:100px;
        top: 494px;
      }
      &.w9 {
        left:240px;
        top: 640px;
      }
      &.w10 {
        right:440px;
        top: 340px;
      }
      &.w11 {
        left:429px;
        top: 520px;
      }
      &.w12 {
        left: -56px;
        top: 4px;
      }
      &.w13 {
        left:893px;
        top: -23px;
      }
      &.w14 {
        right:240px;
        bottom: 640px;
      }
  }
  
  .result-img {
    display: block;
    width: 266px;
    height: 186px;
    margin: 0 auto;
    margin-bottom: 50px;
    margin-top: 50px;
    position: relative;
    z-index: 999;

  }
  .result-box {
    position: relative;
    z-index: 999;
    width: 600px;
    height: 210px;
    background-color: #fff;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.7);
    padding: 15px;
    box-sizing:padding-box;
    margin: 0 auto;
    font-family: @fontExtrabold;
    text-align: center;
      .r-rext {
        display: inline-block;
        font-size: 18px;
        line-height: 30px;
      }
      .r-score {
        display: inline-block;
        font-size: 20px;
        line-height: 30px;
      }
      .r-score-text {
        display: inline-block;
        margin-top: 20px;
        font-family: @fontRegular;
        line-height: 22px;
      }

  }
}




/* SOCIAL BUTTON STYLE */

.social {

  width: 300px;
  height: 35px;
  margin: 0 auto;
  margin-top: 40px;
}
.social span {
  width: 140px;
  height: 35px;
  float: left;
}
.social span.vk {
  background: url(../images/vk.png);
}
.social span.vk:hover {
  background: url(../images/vk_hover.png);

}
.social span.tw {
  background: url(../images/twitter.png);
  float: right;
}
.social span.tw:hover {
  background: url(../images/twitter_hover.png);
}
.social-btn {
  cursor: pointer;
}

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


@red: #c1000f;
@green: #00b739;
@blue: #0620f4;

.visual-data {
  width: 800px;
  margin: 0 auto;
  position: relative;
  /*display: none;*/

  .place-container {
    
    .place {
      position: relative;
      height: 150px;
    
      .bar {
        @height: 50px;
      
        position: relative;
        height: @height;
        background-color: @blue;
        overflow: hidden;
      
        .runner {
          width: 0px;
          height: 100%;
          position: relative;
          background-color: #000000;
          .transition;
        
          .you {
            position: absolute;
            height: @height;
            top: 0;
            line-height: @height;
            left: 100%;
            width: 100px;
            margin-left: 0px;
            color: @blue;
            font-size: 24px;
          }
        }
        
        .worse-percent {
          position: absolute;
          line-height: @height;
          height: @height;
          width: 100px;
          top: 0px;
          left: 0px;
          color: #ffffff;
          font-size: 34px;
          padding-left: 20px;
        }
        
        .better-percent {
          position: absolute;
          line-height: @height;
          height: @height;
          width: 100px;
          top: 0px;
          left: 100%;
          margin-left: -100px;
          color: #ffffff;
          font-size: 34px;
        }
      }
      
      .worse-count {
        position: absolute;
        width: 200px;
        top: 70px;
        left: 0px;
        text-align: left;
        font-family: ProximaNova-Extrabld;
        font-size: 16px;
        line-height: 20px;
      }
      
      .better-count {
        position: absolute;
        width: 200px;
        top: 70px;
        left: 100%;
        margin-left: -200px;
        text-align: right;
        font-family: ProximaNova-Extrabld;
        font-size: 16px;
        line-height: 20px;
      }
    }
  }
  
  .distribution-container {
    position: relative;
    
    .text-two {
      font-size: 28px;
      line-height: 30px;
      margin-bottom: 15px;
      text-align: left;
      font-family: @fontRegular;
    }
  
    .distribution {
      @height: 250px;
    
      width: 100%;
      padding-bottom: 30px;
      position: relative;
      height: @height + 50px;
      
      .field {
        height: @height;
        position: relative;
        background-color: #ffffff;
      }
      
      .bars {
        position: relative;
        text-align: center;
        height: @height;
        top: -@height;
        cursor: pointer;
      
        .bar {
          position: relative;
          background-color: #000000;
          display: inline-block;
          margin-right: 15px;
          opacity: 0.8;
          
          &:last-of-type {
            margin-right: 0px;
          }
          
          .value {
            width: 100%;
            position: absolute;
            height: 22px;
            top: -22px;
            font-size: 18px;
            text-align: center;
          }
          
          .number {
            font-size: 18px;
            position: absolute;
            width: 100%;
            height: 22px;
            top: 100%;
            text-align: center;
          }
          
          .hint {
            overflow: hidden;
            padding: 0px;
            background-color: #050505;
            color: #fff;
            font-family: @fontRegular;
            font-size: 14px;
            line-height: 20px;
            width: 130px;
            position: absolute;
            top: 0px;
            left: 0px;
            padding: 10px;
            display: none;
            z-index: 100;
          }
          
          &:hover {
            opacity: 1;
          
            .hint {
              display: block;
            }
          }
        }
      }
    }
  }
}
