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

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

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

@textMainColor:rgb(255,170,11);
@textMainFam: "ProximaNova-Regular";
@textMainBold: "ProximaNova-Extrabld";

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


.start-box {
  height: auto;
  min-height: 100%;
  background-size: cover;
    header {
        height: auto;
        padding-top: 20px;
        position: relative;

        .auth {
          position: absolute;
          top: 100px;
          left: 100px;
          font-family: @textMainFam;
          font-size: 10px;
          line-height: 12px;
          color: #000;
          text-transform: uppercase;
            a {
              color: #000 !important;
            }

        }
        .t-img {
          width: 250px;
          height: 230px;
          background-color: #000;
          margin: 0 auto;
          margin-bottom: 30px;
          background-image: url(../images/start.jpg);
        }
        .t-name {
          font-family: @textMainBold;
          font-weight: bold;
          font-size: 48px;
          line-height: 57px;
          color: #000;
          margin: 0 auto;
          text-align: center;
          width: 1000px;
          height: 105px;
          text-transform: uppercase;

          b {
            display: block;
          }
          span {
            font-family: @textMainFam;
            display: block;
            font-weight: normal;
            font-size: 22px;
            line-height: 48px;

          }
        }
        .t-desc {
          width: 600px;
          height: auto;
          margin: 0 auto;
          margin-top: 60px;

          font-family: @textMainFam;
          font-size: 16px;
          line-height: 21px;
          text-align: left;
            a {
              color: #000;
            }

          .rubric {
            font-family: @textMainFam;
            font-size: 12px;
            line-height: 18px;
            text-align: left;
            width: 500px;
            margin-top: 60px;

              a {
                color: #000;
              }


          }
        }
        .t-desc2 {
          font-family: @textMainBold;
          text-align: center;
          width: 1000px;
          margin: 0 auto;
          margin-top: 60px;
          text-transform: uppercase;
          margin-bottom: 30px;
          b {
            font-size: 18px;
            line-height: 30px;
          }
          span {
            font-size:27px;
            line-height: 30px; 
          }

        }
    }   
}

.action-box {
  min-height: 100%;
  height: 100%;
  padding-bottom: 20px;

  .t-cont {
    height: 100%;

    .img-box {
      position: relative;
      height: 100%;

      .item {
        height: 100%;
        width: 100%;
        background-size: cover;
        background-position: center;
      }
      .item.hidden {
        display: none;
      }
      .item.cur {
        display: none;
      }
      .t-questions {
        width: 500px;
        height: auto;
        background-color: rgba(255,255,255,0.8);
        position: absolute;
        bottom: 50px;
        left: 50%;
        margin-left: -250px; 
        font-family: @textMainFam;
        font-size: 16px;
        line-height: 24px;
        padding: 10px;
        box-sizing:border-box;
        display: none;

          .t-name {
            display: block;
            margin-bottom: 4px;
            display: block;
            font-family: @textMainBold;
          }
          .t-answer {
            cursor: pointer;
            display: block;

            b {
              font-weight: normal;
            }
            i {
              font-style: normal;
            }

            &.lock {
              pointer-events: none;
            }
          }
          .t-answer.error {
            color:red;
            text-decoration: line-through;
          }
          .t-answer.correct {
            color:green;
          }
      }
      .t-result {
        display: none;
        width: 700px;
        height: 240px;
        background-color: rgba(255,255,255,0.8);
        font-family: @textMainBold;
        font-size: 24px;
        line-height: 28px;
        text-align: center;
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -350px;
        margin-top: -120px;
        box-sizing:border-box;
        padding: 30px;

          span {
            display: block;
            text-align: center;
          }

      }

    }
  }
}


.test-repeat {
    width: 144px;
    height: 66px;
    line-height: 66px;
    text-align: center;
    font-family: "ProximaNova-Regular";
    border:solid 1px @textMainColor;
    color: @textMainColor;
    text-transform: uppercase;
    font-size: 15px;
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 60px;
    border-radius: 30px;
    cursor: pointer;

    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;

    &:hover {
      background-color:@textMainColor;
      color: #fff;
    }
}

.social {
  width: 330px;
  height: 35px;
  margin: 0 auto;
  padding-top: 28px;

  .social-btn {
    cursor:pointer;
  }

  .vk {
    width: 145px;
    height: 35px;
    background: url(../images/vk.png);
    float: left;
    

    &:hover {
      background: url(../images/vk_hover.png);
    }
  }
  .tw {
    width: 145px;
    height: 35px;
    background: url(../images/twitter.png);
    float: left;
    margin-right: 30px;

    &:hover {
      background: url(../images/twitter_hover.png);
    }
  }
}

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