/* `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;
}

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

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

.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;
@fontThin:ProximaNovaT-Thin;
@fontExtrabold:ProximaNova-Extrabld;
@fontGaramond:'garamond-premier-pro-caption';
@fontOuk:'oukwat-regular';
@textColor:rgb(44,57,212);

.clearfix {
    zoom: 1;
}
.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;
}
div#page {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 1200px;

  .cont {
    position: relative;
    width: 1000px;
    margin: 0 auto;
    height: auto;
  }
}

.test-start-page {
    position: relative;
    background-color: #111111;
    height: 100%;
    min-height: 700px;
    padding-top: 50px;
    .box-sizing;
    .title {
        font-size: 40px;
        line-height: 54px;
        font-family: @fontOuk;
        color: #fff;
        margin-bottom: 20px; 
    }
    .subtitle {
        font-size: 18px;
        line-height: 30px;
        font-family: @fontOuk;
        color: #fff;
        margin-bottom: 20px;
    }
    .description {
        font-size: 16px;
        line-height: 24px;
        font-family: 'trivia-grotesk';
        color: #fff;
    }
    .start-btn {
        position: absolute;
        width: 217px;
        height: 217px;
        border:solid 8px #111;
        left: 543px;
        top: 175px;
        background-color: #fff;
        border-radius: 100%;
        cursor: pointer;
        span {
            font-family: @fontOuk;
            font-size: 32px;
            color: #000;
            text-align: center;
            display: block;
            position: relative;
            top: 77px;
        }

        &:hover {
            border-color:#fff; 
        }
    }
}

.test-action-page {
    height: 100%;
    min-height: 700px;
    background-color: #d9d9d9;
    .test-wrapper {
        width: 1200px;
        margin: 0 auto;
        position: relative;
        .base-datail {
            position: relative;
            width: 539px;
            height: 166px;
            background-image: url(../images/d0.png);
            left: 100px;
            top: 313px;
            z-index: 12;
        }
        .cont-item {
            position: absolute;
             z-index: 13;
        }
        .detail {
            display: block;
            position: absolute;
            z-index: 14;
        }
        .detail[data-cont="d1"] {
            background-image: url(../images/detailsPng/1.png);
            top: 278px;
            left: 1093px;
            width: 24px;
            height: 44px;
        }
        .cont-item[data-cont="c1"] {
            width: 24px;
            height: 44px;
            left: 455px;
            top: 342px;
        }
        .detail[data-cont="d2"] {
            background-image: url(../images/detailsPng/2.png);
            top: 254px;
            left: 791px;
            width: 222px;
            height: 34px;
        }
        .cont-item[data-cont="c2"] {
            width: 222px;
            height: 34px;
            left: 801px;
            top: 308px;
        }
        .detail[data-cont="d3"] {
            background-image: url(../images/detailsPng/3.png);
            top: 453px;
            left: 681px;
            width: 121px;
            height: 57px;
        }
        .cont-item[data-cont="c3"] {
            width: 121px;
            height: 57px;
            left: 808px;
            top: 282px;
        }
        .detail[data-cont="d4"] {
            background-image: url(../images/detailsPng/4.png);
            top: 502px;
            left: 801px;
            width: 131px;
            height: 52px;
        }
        .cont-item[data-cont="c4"] {
            width: 131px;
            height: 52px;
            left: 560px;
            top: 262px;
        }
        .detail[data-cont="d5"] {
            background-image: url(../images/detailsPng/5.png);
            top: 332px;
            left: 758px;
            width: 178px;
            height: 85px;
        }
        .cont-item[data-cont="c5"] {
            width: 178px;
            height: 85px;
            left: 635px;
            top: 277px;
        }
        .detail[data-cont="d6"] {
            background-image: url(../images/detailsPng/6.png);
            top: 431px;
            left: 851px;
            width: 112px;
            height: 31px;
        }
        .cont-item[data-cont="c6"] {
            width: 112px;
            height: 31px;
            left: 508px;
            top: 283px;
        }
        .detail[data-cont="d7"] {
            background-image: url(../images/detailsPng/7.png);
            top: 174px;
            left: 726px;
            width: 262px;
            height: 38px;
        }
        .cont-item[data-cont="c7"] {
            width: 222px;
            height: 38px;
            left: 358px;
            top: 278px;
        }
        .detail[data-cont="d8"] {
            background-image: url(../images/detailsPng/8.png);
            top: 479px;
            left: 985px;
            width: 41px;
            height: 75px;
        }
        .cont-item[data-cont="c8"] {
            width: 41px;
            height: 75px;
            left: 977px;
            top: 269px;
        }
        .detail[data-cont="d9"] {
            background-image: url(../images/detailsPng/9.png);
            top: 205px;
            left: 1044px;
            width: 85px;
            height: 28px;
        }
        .cont-item[data-cont="c9"] {
            width: 85px;
            height: 28px;
            left: 1014px;
            top: 311px;
        }
        .detail[data-cont="d10"] {
            background-image: url(../images/detailsPng/10.png);
            top: 350px;
            left: 1031px;
            width: 136px;
            height: 213px;
        }
        .cont-item[data-cont="c10"] {
            width: 136px;
            height: 213px;
            left: 503px;
            top: 324px;
        }
        .detail[data-cont="d11"] {
            background-image: url(../images/detailsPng/12.png);
            top: 113px;
            left: 996px;
            width: 122px;
            height: 41px;
            z-index: 13;
        }
        .cont-item[data-cont="c11"] {
            width: 122px;
            height: 41px;
            left: 401px;
            top: 298px;
        }
    }
}
.timer {
    position: absolute;
    font-family: 'oukwat-regular';
    font-size: 20px;
    margin-left: 430px;
    top: 50px;
    color: #000;
}
.start-afresh {
    float: left;
    font-family: 'oukwat-regular';
    font-size: 20px;
    position: absolute;
    top: 50px;
    right: 410px;
    position: absolute;
    text-decoration: underline;
    cursor: pointer;
    &:hover {
        text-decoration:none;
    }
}
.test-finish-page {
    margin:0 auto;
    height: 100%;
    min-height: 700px;
    padding-top: 50px;
    background-color: #d9d9d9;
    .end-title {
        font-size: 18px;
        font-family: @fontOuk;
        text-align: center;
        margin-bottom: 40px;
    }
    .finish-time {
        font-size: 60px;
        font-family: @fontOuk;
        text-align: center;
        margin-bottom: 40px;
    }
    .social {
        margin-bottom: 40px;
    }
    .place {
        font-size: 18px;
        font-family: @fontOuk;
        text-align: center;
        margin-bottom: 60px;   
    }
    .replace-btn {
        margin: 0 auto;
        width: 289px;
        height: 85px;
        -webkit-border-radius: 14px;
        -moz-border-radius: 14px;
        border-radius: 14px;
        background-color: #fff;
        border: solid 3px #000;
        font-family: @fontOuk;
        font-size: 24px;
        text-decoration: underline;
        line-height: 85px;
        text-align: center;
        cursor: pointer;
        &:hover {
            background-color: #000;
            color: #fff;
        }
    }
    .table-of-records-btn {
        display: block;
        font-size: 24px;
        font-family: @fontOuk;
        cursor: pointer;
        margin: 0 auto;
        margin-top: 50px;
        width: 330px;
        text-align: center;
        &:hover {
            color: blue;
        }
    }
}

.pop-up {
    position: absolute;
    z-index: 9999;
    width: 600px;
    height: auto;
    max-height: 600px;
    overflow-y: scroll;
    left: 50%;
    top: 50px;
    margin-left: -300px;
    background-color: #fff;
    box-shadow: 0 0 10px #2f2f2f;
    div.players {
        display: block;
        .player {
            height: 70px;
            font-family: 'trivia-grotesk';
            color: #000;
            border-bottom: solid 1px #ccc; 
            box-sizing: border-box;
            padding-top: 10px;

            .num {
                display: inline-block;
                width: 50px;
                text-align: center;
                margin-right: 20px;
            }
            .photo {
                height: 50px;
            }
            .score {
                display: inline-block;
                width: 100px;
            }
            .name {
                display: inline-block;
                margin-left: 70px;
            }
        }
    }
}

/* SOCIAL BUTTON STYLE */

.social {

  width: 480px;
  height: 45px;
  margin: 0 auto;
}
.social span {
  width: 150px;
  height: 45px;
  float: left;
  font-size: 0;
  margin-right: 15px;
  &:last-child {
    margin-right: 0;
  }
}
.social span.fb {
  background: url(../images/socialButtons.png) 0 0 ;
  &:hover {
    background-position: 0 -46px;
  }
}

.social span.tw {
  background: url(../images/socialButtons.png) -165px 0;
  &:hover {
    background-position: -165px -46px;
  }
}

.social span.vk {
  background: url(../images/socialButtons.png) -330px 0;
  &:hover {
    background-position: -330px -46px;
  }
}


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

@media (max-width: 760px) {
    .social-shares {
        display: none;
    }
    html, body {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .social-share.pie {
        display: none;
        margin: 0;
    }
    div#page {
        width: 100%;
        min-width: 100%;
        overflow: hidden;
        .cont {
            width: 87.5% !important;
            margin-left: 6.25%;
            margin-right: 6.25%;
        }
        .test-start-page {
            width: 100%;
            overflow: hidden;
            height: auto;
            padding-top: 10px;
            .start-img {
                background-image: url(../images/mobileStart.png);
                background-size: 320px;
                padding-top: 0;
                background-position: center 130px;
                .title {
                    width: 100%;
                    font-size: 45px;
                    line-height: 40px;
                    margin-top: 0px;
                }
                .subtitle {
                    font-size: 18px;
                    line-height: 22px;
                    margin-top: 10px;
                }
                .description {
                    margin-top: 340px;
                    width: 87.5%;
                    left: 0;
                    position: relative;
                    box-sizing: border-box;
                    margin-left: 6.25%;
                    margin-right: 6.25%;
                }
            }

        }
        .test-action-page {
            width: 100%;
            height: auto;
            margin-top: 0;
            .answers {
                width: 87.5%;
                margin: 0 6.25%;
                .title {
                    font-size: 24px;
                }
                .answers-items {
                    .item {
                        padding: 5px 12px;
                        font-size: 15px;
                    }
                }

            }
            .info {
                width: 87.5%;
                padding: 40px 6.25%;
                box-sizing:content-box;
                .text {
                    font-size: 24px;
                }
                .social {
                    margin-top: 50px;
                    width: 82.14285714%;
                    span {
                        display: block;
                        height: 50px;
                        background-image: none;
                        background-color: blue;
                        color: #fff;
                        float: none;
                        text-align: center;
                        font-size: 14px;
                        font-family: 'trivia-grotesk';
                        width: auto;
                        margin-bottom: 10px;
                        .box-sizing;
                        line-height: 50px;

                    }
                }
                .restart-btn {
                    width: 82.14285714%;
                    height: 40px;
                    padding: 0;
                    font-size: 14px;
                    padding-top: 12px;
                    margin-top: 50px;
                    margin-left: 8.928571429%;
                    margin-right: 8.928571429%;

                    br {
                        display: none;
                    }
                }
                .link-to {
                    .restart-btn;
                    margin-left: 0;
                    margin-top: 10px;
                    padding-top: 5px;
                }
            }

        }
        .test-finish-page {
            width: 100%;
            
            .social {
                width: 100%;
                padding-left: 0;
                padding-right: 0;
                text-align: center;
                span {
                    display: inline-block;
                    width: 130px;
                    background-size: contain;
                    float: none !important;
                    background-size: 420px;
                }
            }
        }
        .footer {
            .comm {
                width: 100%;
                .most-read {
                    display: none;
                }
                .block-comments {
                    display: none;
                }
                .some-materials {
                    width: 100%;
                    .cell {
                        width: 100%;
                        height: auto;
                    }
                }
            }
        }
    }
    
}


