/* `XHTML, HTML4, HTML5 Reset
----------------------------------------------------------------------------------------------------*/

a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,caption,canvas,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 {
  display: block;
}

b,strong {
  font-weight: bold;
}

img {
  color: transparent;
  font-size: 0;
  vertical-align: middle;
  -ms-interpolation-mode: bicubic;
}

ol,
ul {
  list-style: none;
}

li {
  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;
}
/*Fonts*/
@fontRegular    : 'ProximaNova-Regular';
@fontThin       : 'ProximaNovaT-Thin';
@fontExtrabold  : 'ProximaNova-Extrabld';
@fontMore       : 'ff-more-web-pro';
@fontGrotesk    : 'trivia-grotesk';
@fontSerif      : 'trivia-serif';
@fontOukwat     : 'oukwat-regular';
@fontGaramond   : 'garamond-premier-pro-caption';

/*Colors*/
@textColor:rgb(44,57,212);

// html, body {
//     height: auto;
// }

div#page {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 1000px;

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


.test-start-page {
  	min-height: 100%;
  	padding-top: 60px;
    // background: url(../images/bg.jpg);
    // background-position: center center;
    // background-size: auto 100%;
    // background-repeat: no-repeat;
    .bg {
        height: 835px;
        width: 100%;
        min-width: 1000px;
        position: absolute;
        left: 0;
        top: 0;
        background: url(../images/bg.jpg);
        // background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    header {
        height: auto;
        position: relative;
        .title {
        	width: 750px;
            font-family: @fontSerif;
            font-size: 57px;
            line-height: 70px;
            color: #000;
        }
    
        .auth {
            font-family: @fontGrotesk;
            font-size: 12px;
            line-height: 14px;
            margin-bottom: 20px;
            color: #000;
            margin-top: 37px;
            width: 150px;
            float: left;
            margin-right: 20px;
            a {
                color: #000;
                text-decoration: underline;
                &:hover {
                	text-decoration: none;
                }
            }

        }
        .head-text {
        	width: 530px;
        	height: auto;
        	font-family: 'trivia-grotesk';
        	font-size: 16px;
        	line-height: 25px;
        	text-align: left;
        	margin-top: 30px;
        	margin-bottom: 30px;
            color: #000;
            float: left;

        }
        .level-title-wr {
            height: 140px;
            background-color: rgba(255, 0, 0, 0.8);
            margin-top: 72px;
            .title-text {
                font-family: @fontGaramond;
                font-size: 37px;
                line-height: 37px;
                color: #fff;
                width: 550px;
                text-align: center;
                box-sizing: border-box;
                padding-top: 33px;
                font-style: italic;

            }
        }
        .btns-level {
            padding-top: 40px;
            background-color: #ED454F;
            height: 500px;
            .start-btn {
                width: 600px;
                height: 80px;
                margin-bottom: 35px;
                cursor: pointer;
                color: #fff;
                font-family: @fontGrotesk;
                font-size: 30px;
                line-height: 80px;
                text-align: center;
                opacity: 1;
                border-radius: 50px;
                border:solid 5px #fff;
                box-sizing: border-box;
                opacity: 0.8;
                &:hover {
                    opacity:1;
                }
            }
        }
              
    }

}

.test-action-page {
	height: 100%;
    background: url('../images/bg2.jpg');
    background-size: cover;
    padding-top: 20px;
    min-height: 1000px;
    .question-box {
        .crt {
            font-size: 27px;
            line-height: 27px;
            float: left;
            font-family: @fontSerif;
            color: #fff;
            margin-top: 15px;
            margin-right: 30px;
        }
        .answer {
            font-family: @fontSerif;
            font-size: 57px;
            line-height: 70px;
            color: #fff;
            float: left;
            max-width: 560px;
            span {
                color: #FF0000;
            }
        }
        .score {
            font-size: 27px;
            color: #fff;
            padding:0 20px;
            min-width: 100px;
            height: 50px;
            border:solid 3px #fff;
            float: right;
            line-height: 50px;
            margin-top: 15px;
            text-align: center;
            position: relative;
            z-index: 2;
        }
    }  
	.map-box-wr {
        height: 800px;
        position: relative;
        top: -140px;
        z-index: 1;
        .map-box {
            width: 1000px;
            height: 608px;
            .map-shadow {
                width: 1000px;
                height: 608px;
                position: absolute;
                top: 50px;
                left: 0;
                z-index: 1;
                background: url(../images/shadow.png);
            }
            .map {
                width: 1000px;
                height: 608px;
                position: absolute;
                top: 0;
                left: 0;
                z-index: 2;
                // cursor: url('../images/pin.png'), pointer;
                cursor: pointer;
                &.level-1 {
                    background: url(../images/map1.png);
                }
                &.level-2 {
                    background: url(../images/map1.png);
                }
                &.level-3 {
                    background: url(../images/map2.png);
                }
                .point {
                    display: block;
                    font-family: @fontGrotesk;
                    font-size: 13px;
                    line-height: 13px;
                    position: absolute;
                    float: left;
                    color: #2C89FF;
                    padding-left: 15px;
                    z-index: 3;
                    margin-left: -5px;
                    margin-right: -5px;
                    &:before {
                        content: '';
                        position: absolute;
                        width: 10px;
                        height: 10px;
                        border-radius: 100%;
                        background-color: #2C89FF;
                        top: 0;
                        left: 0;
                        display: block;
                    };
                }
                .pin {
                    position: absolute;
                    width: 25px;
                    height: 48px;
                    z-index: 3;
                    background-color: #2C89FF;
                    margin-left: -12px;
                    margin-top: -48px;
                    background: url('../images/pin.png'); 
                }
            }
        }    
    }
}
.show {
    display: block !important;
}
.hide {
    display: none !important;
}
.test-finish-page {
    height: 100%;
    background: url('../images/bg2.jpg');
    background-size: cover;
    padding-top: 120px;
    min-height: 900px;
    box-sizing: border-box;
    .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: @fontGrotesk;
                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;
                }
            }
        }
    }
    .result-wr {
        height: 100%;
        display: block;
        .left-col {
            width: 600px;
            float: left;
            .result-score {
                font-family: @fontGrotesk;
                font-size: 50px;
                line-height: 67px;
                color: #fff;
            }
            .result-table-title {
                font-family: @fontGrotesk;
                font-size: 20px;
                line-height: 27px;
                color: #fff;
                margin-bottom: 70px;
                .table-of-records {
                    text-decoration: underline;
                    color: #FFFF00;
                }
            }
            .log-in-btn {
                width: 180px;
                float: left;
                .btn {
                    width: 150px;
                    height: 57px;
                    border-radius: 50px;
                    border:solid 3px #ffff00;
                    color: #ffff00;
                    line-height: 51px;
                    margin-bottom: 10px;
                    box-sizing: border-box;
                    padding-left: 25px;
                    font-family: @fontGrotesk;
                    cursor: pointer;
                }
                .title {
                    font-family: @fontGrotesk;
                    font-size: 16px;
                    line-height: 20px;
                    color: #fff;
                    margin-bottom: 30px;
                }
            }
            .repeat-btn {
                width: 255px;
                height: 57px;
                border-radius: 50px;
                border:solid 3px #ffff00;
                color: #ffff00;
                line-height: 51px;
                margin-bottom: 10px;
                box-sizing: border-box;
                padding-left: 25px;
                float: left;
                font-family: @fontGrotesk;
                cursor: pointer;
            }
        }

        .right-col {
            width: 300px;
            float: left;
            margin-left: 100px;
            .graphic-element {
                width: 96px;
                height: 206px;
                background: url('../images/end.png');
                margin-top: -120px;
                position: absolute;
            }
            .result-crt {
                margin-top: 120px;
                font-family: @fontGrotesk;
                font-size: 20px;
                line-height: 27px;
                color: #fff;
                width: 280px;
                margin-bottom: 40px;
            }
           
            .result-text {
                font-family: @fontGrotesk;
                font-size: 20px;
                line-height: 27px;
                color: #fff;
                width: 280px;
                margin-bottom: 40px;
            }
            .social {
                margin-bottom: 40px;
                .box-sizing;
                position: relative;
                margin-left: -13px;
            }
        }

        
    }
	
    
}




/* 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/socialButtons.png) -150px 0 ;
  &:hover {
    background-position: -150px -40px;
  }
}

.social span.tw {
  float: right;
  background: url(../images/socialButtons.png) -300px 0;
  &:hover {
    background-position: -300px -40px;  
  }
}

.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;
    }
    div#page {
        width: 100%;
        min-width: 100%;
        .cont {
            width: 100%;
        }
    }
    .comm {
        width: 100%;
    }
    .test-start-page {
        header {
            .title {
                width: 100%;
                text-align: center;
                font-size: 30px;
                line-height: 35px;
            }
            .title-descript {
                width: 100%;
                text-align: center;
                font-size: 30px;
            }
            .auth {
                text-align: center;
            }
            .head-text {
                width: 80%;
                padding-left: 10%;
                padding-right: 10%;
                font-size: 16px;
                line-height: 21px;
            }
            .start-btn {
                width: 80%;
                margin-left: 10%;
                margin-right: 10%;
                height: 50px;
                height: 50px;
                line-height: 54px;
                font-size: 28px;
            }
        }
    }
    .test-action-page {

        .question-wr {
            .cell {
                .question-text {
                    font-size: 24px;
                    line-height: 35px;
                    width: 80%;
                    padding-left: 10%;
                    padding-right: 10%;
                }
                .answers-btn-wrapper {
                    width: 100%;
                    height: 120px;
                    .answers-btn {
                        width: 90%;
                        margin-left: 5% !important;
                        margin-right: 5% !important;
                        margin-bottom: 10px;
                        height: 50px;
                        line-height: 50px;
                        font-size: 26px;
                    }
                }
            }
        }
        .answer-type-wr {
            width: 100%;
            .answer-type-line {
                opacity: 0.7;
            }
            .answer-type-text {
                .title {
                    font-size: 20px;
                    &:before {
                        display: block;
                    }
                }
                .type-text {
                    font-size: 20px;
                    line-height: 30px;
                }
                .confirm-link {
                    font-size: 14px;
                    line-height: 70px;
                }
            }
            .next-btn {
                width: 90%;
                margin-left: 5%;
                margin-right: 5%;
                height: 50px;
                line-height: 50px;
                font-size: 17px;
                .next-ico-box {
                    height:48px;
                }
            }
        }
        
    }
    .test-finish-page {
        .result-wr {
            .cell {
                .result-crt {
                    width: 100%;
                    font-size: 25px;
                }
                .result-title {
                    width: 90%;
                    font-size: 16px;
                    padding-left: 5%;
                    padding-right: 5%;
                    line-height: 29px;
                }
                .result-text {
                    width: 100%;
                    font-size: 18px;
                    height: auto;
                    line-height: 24px;
                }
                .social {
                    width: 90%;
                    margin-left: 5%;
                    margin-right: 5%;
                    height: 50px;
                    padding: 7px 0 0 0;
                    &:after {
                        height: 48px;
                        margin-left: 7px;
                    }
                }
            }
        }
    }
}
