@import 'color.less';
//common
.head {
  > .logo {
    font-size: 20px;
    //font-weight: bold;
    line-height: 2.5rem;
  }
}

.footer {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  li {
    opacity: 0.7;
    font-size: 12px;
    float: left;
  }
  .footer-link-separator {
    background-color: rgba(230, 234, 237, 0.5);
    display: inline-block;
    width: 1px;
    height: 10px;
    vertical-align: baseline;
    margin: 0 15px;
  }
}

.bodyBG {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('../img/loginBg1.jpg') no-repeat 0 0;
  background-size: 100% 100%;
}

//login
.login-box {
  position: fixed;
  top: 47%;
  left: 50%;
  margin: -300px 0 0 -300px;
  //transform: translate(-50%, -50%);
  width: 600px;
  min-height: 600px;
  padding: 50px 30px 80px;
  border-radius: 5px;
  h2 {
    font-size: 44px;
    margin-bottom: 10px;
  }
  p.intro {
    //margin:40px 0;
    font-size: 14px;
    //line-height: 36px;
    //height:300px;
    //text-align:justify;
    width: 100%;
  }
  > .login-btn {
    margin-top: 250px;
    display: inline-block;
    text-align: center;
    background: #fff;
    height: 42px;
    line-height: 42px;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    width: 55%;
    cursor: pointer;
    position: relative;
  }
}
.login-arrow {
  font-size: 16px;
  position: absolute;
  right: 15px;
  height: 100%;
}
.footer-logo {
  position: fixed;
  z-index: 1;
  bottom: 10px;
  left: 20px;
  width: 22px;
}
//create
.create {
  .form-box {
    width: 750px;
    height: 500px;
    border: 1px solid #ddd;
    margin: 30px auto;
    background: #fff;
  }
}

.ivu-form .ivu-form-item-label {
  font-size: 14px !important;
  height: 28px;
  text-align: justify;
  &::after {
    display: inline-block;
    width: 100%;
    content: '';
    height: 0;
  }
  min-height: 100px;
}

.ivu-checkbox-inner {
  width: 16px;
  height: 16px;
  margin-right: 3px;
}

.ivu-checkbox-inner:after,
.ivu-checkbox-checked .ivu-checkbox-inner:after {
  width: 5px;
  height: 9px;
}

.ivu-form-item-required .ivu-form-item-label:before {
  display: none;
}

//
@borD: 1px solid #ddd;
@activeY: #f1ab40;
.board {
  .top-right-info {
    position: fixed;
    width: 100%;
    max-width: 500px;
    display: flex;
    top: 5px;
    right: 0px;
    z-index: 10;

    .class-num {
      flex: 1.3;
      position: relative;
      display: inline-block;
      font-weight: bold;
      font-size: 2rem;
      color: #dcdcdc;
      top: 2px;
      //transform: rotate(8deg);
      cursor: pointer;
      //text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
      .q-icon {
        font-size: 20px !important;
        display: inline-block;
        margin-right: 8px;
        top: -3px;
      }
      &:hover {
        color: @main-color;
      }
    }
    .pdfnum {
      flex: 1;
      position: relative;

      line-height: 32px;

      font-weight: bold;
      //text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);

      .pdftext {
        position: absolute;
        //margin-left: 30px;
        font-size: 26px;
        top: 6px;
        color: #dcdcdc;
        .stroke-icon {
          stroke: #dcdcdc;
          fill: transparent !important;
        }
        .doc-type {
          padding-right: 5px;
        }
        &:hover {
          cursor: pointer;
          color: @main-color;
          .stroke-icon {
            stroke: @main-color;
            fill: transparent !important;
          }
        }
      }
    }

    .teachinfo {
      cursor: pointer;
      flex: 1;
      top: 10px;
      left: -10px;
      position: relative;
      height: 32px;
      z-index: 999;

      &:hover {
        p {
          color: @main-color !important;
        }
      }
      .teachimg {
        position: relative;
        top: -2px;
        width: 28px;
        height: 28px;
        border-radius: 4px;
      }
      .teachname {
        position: absolute;
        top: 3px;
        width: 70px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #dcdcdc;
        font-weight: bold;
        left: 36px;
        &:hover {
          color: @main-color !important;
        }
      }
    }
    .total-studentnum {
      cursor: pointer;
      flex: 1.2;
      position: relative;
      color: #dcdcdc;
      z-index: 999;
      font-weight: bold;
      top: 4px;
      font-size: 26px;

      .students-icon {
        stroke: #dcdcdc;
        fill: transparent !important;
        font-size: 32px;
        position: relative;
        top: 2px;
        margin-right: 6px;
      }
      &:hover {
        color: @main-color;
        .students-icon {
          stroke: @main-color;
          fill: transparent !important;
        }
      }
    }
    .percentage-studentanswer {
      cursor: pointer;
      position: fixed;
      top: 5px;
      right: 0%;
      z-index: 999;
      .q-circular-progress__circle {
        stroke: @main-color !important;
      }
    }
  }
  .percentage-studentanswer-under {
    cursor: pointer;
    position: fixed;
    bottom: 5%;
    right: 0%;
    z-index: 999;
    .q-circular-progress__circle {
      stroke: @main-color !important;
    }
  }

  .board-head {
    display: none;
    overflow: visible;
    width: 100%;
    height: 44px;
    line-height: 44px;
    //background:#4b55e1;
    background: linear-gradient(to right, #4b55e1, #454fd3);
    color: #fff;
    padding: 0 20px;
    transition: 0.5s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    margin-top: 0;

    > li {
      width: 33.33%;
    }

    > li.class-num {
      b {
        cursor: pointer;
        display: inline-block;
        width: 210px;
      }

      b:hover {
        background: #2b36c6;
      }
    }

    .QRcode {
      padding: 10px;

      p {
        color: #000;
        font-size: 14px;
      }
    }
  }

  .board-head.drawer {
    opacity: 0;
    margin-top: -44px;
  }

  .board-main {
  }
}

.board-left {
  width: 210px;
  background: #eaeef1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0px;
  left: 0;
  z-index: 99;
  height: calc(100% - 44px);
  transition: 0.5s;
  h2 {
    font-size: 12px;
    background: #d8d8d8;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    i {
      margin-top: 13px;
    }
  }
  ul {
    padding: 10px 12px;
    height: calc(100% - 40px);
    overflow-y: auto;
    li {
      position: relative;
      border: @borD;
      margin: 10px 0;
      span {
        position: absolute;
        bottom: 2px;
        right: 5px;
        font-size: 12px;
        color: #999;
      }
      img {
        display: block;
      }
    }
    li.active {
      border-color: @activeY;
      border-radius: 0;
      span {
        color: @activeY;
      }
    }
  }
  //.toggle-left{
  //  position: absolute;
  //  right:-20px;
  //  bottom:50%;
  //  //background: #eaeef1;
  //  color:#adcbe2;
  //  //color:#4b55e1;
  //  padding:10px 5px;
  //  border-radius:0  50% 50% 0;
  //  cursor: pointer;
  //}
}
.toggle-left {
  position: fixed;
  left: 210px;
  bottom: 50%;
  z-index: 10;
  color: #adcbe2;
  padding: 10px 5px;
  border-radius: 0 50% 50% 0;
  cursor: pointer;
  transition: 0.5s;
}
.toggle-left.toggle-arraw {
  left: 0;
}
.board-left.drawer {
  left: -210px;
}

//menu
.menu {
  width: 50%;
  height: 70%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

//TOOLS
.tools {
  position: fixed;
  right: 10px;
  top: 48%;
  transform: translateY(-50%);
  z-index: 999;
  cursor: pointer;
  > ul {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 10px 8px;
    margin: 3px 0;
    width: 50px;

    background: #fff;
    li {
      width: 100%;
      span.fontbox {
        color: @main-color;
        display: block;
        width: 32px;
        height: 32px;
        line-height: 26px;
        padding: 4px;
        cursor: pointer;
        text-align: center;
        margin: 3px 0;
        background: #fff;
        border-radius: 50%;
      }
      span.zoomToDefault-btn {
        p {
          font-weight: bolder;
          font-size: 17px;
          line-height: 22px;
          position: relative;
          left: -1px;
        }
      }
      span.fontbox {
        .q-icon {
          position: relative;
          top: -3px;
        }
        .fill-icon {
          color: @main-color;
          font-size: 20px;
        }
        //邊匡類
        .stroke-icon {
          stroke: @main-color;
          fill: transparent !important;
          font-size: 20px;
        }
        .irs-icon {
          font-size: 24px;
          position: relative;
          top: -1px;
        }
        &:hover,
        &:active {
          background: @main-color;
          color: #fff;
          .fill-icon {
            fill: rgb(255, 255, 255);
            font-size: 20px;
          }
          //邊匡類
          .stroke-icon {
            stroke: rgb(255, 255, 255) !important;
            fill: transparent !important;
            font-size: 20px;
          }
          .irs-icon {
            font-size: 24px;
            position: relative;
            top: -1px;
          }
        }
      }
      span.active {
        background: @main-color;
        color: #fff;
        .fill-icon {
          fill: rgb(255, 255, 255);
          font-size: 20px;
        }
        //邊匡類
        .stroke-icon {
          stroke: rgb(255, 255, 255) !important;
          fill: transparent !important;
          font-size: 20px;
        }
        .irs-icon {
          font-size: 24px;
          position: relative;
          top: -1px;
        }
      }
    }
  }
  .svg-inline--fa,
  .fab {
    font-size: 16px;
  }
}

.ivu-poptip,
.ivu-poptip-rel {
  display: block !important;
}

.ivu-poptip-body-content {
  overflow: visible;
}
.ivu-drawer-body {
  background: #eee;
  padding: 0 !important;
}

.ivu-drawer {
  top: 40px !important;
}

.closeDrawer {
  position: absolute;
  top: 0px;
  right: 0;
  z-index: 10;
}

.ivu-carousel,
.ivu-carousel-list {
  width: 100%;
  height: 100%;
  img {
    display: block;
    margin: 0 auto;
  }
}

.ivu-carousel-dots {
  display: none !important;
}

//计分板
.flop {
  width: 100%;
  height: 100%;
  padding: 0px;
}
.flop-title-box {
  line-height: 45px;
  margin-bottom: 20px;
}
.flop-title {
  font-size: 19px;
  float: left;
  margin-right: 50px;
}

.flop-select {
}
.q-checkbox__label {
  padding: 0;
  margin-right: 15px;
}
.status-text {
  color: #e0e0e0 !important;
}
.every-study {
  position: relative;
  width: 9%;
  background-color: #6aabef;
  float: left;
  margin: 0.5%;
  padding: 5px 0;
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
  //-webkit-transition:all 1s;
  //-moz-transition:all 1s;
  //-o-transition:all 1s;
}
//.every-study:hover{
//  -webkit-transform:scale(1.2) rotate(10deg);
//  -moz-transform:scale(1.2) rotate(10deg);
//  -o-transform:scale(1.2) rotate(10deg);
//}
.icon-ranking {
  position: absolute;
  top: 38px;
  left: -10px;
  background: #3ccde0;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 50%;
  z-index: 2;
}
.avatar-img-box {
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0 10px;
  //border-bottom: 1px solid #ddd;
}
.avatar-img {
  position: absolute;
  top: 0;
  //right:50%;
  //top:0;
  width: 30%;
  transform: translate(-20%, -20%);
  img {
    width: 100px;
    height: 100px;
  }
}

.avatar-name {
  float: right;
  width: 70%;
  font-size: 14px;
  margin-top: 4px;
}
.avatar-content {
  width: 100%;
  float: left;
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  padding: 8px;
}

.avatar-scoring {
  line-height: 18px;
}
.avatar-scoring span {
  color: #f1ab40;
  font-size: 22px;
}
.avatar-scoring span.status_text {
  color: #aaa;
}

//单选
.ivu-radio-group-button .ivu-radio-wrapper {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  text-align: center;
}
.ivu-radio-group-button .ivu-radio-wrapper:after,
.ivu-radio-group-button .ivu-radio-wrapper:before {
  display: none !important;
}

//border-menu
.board-menu {
  .ivu-tabs-bar {
    float: left;
    height: 123px;
    border: 0;
    margin: 0;
    background: #f1f1f1;
    margin-right: 15px;
  }
  .ivu-tabs-ink-bar {
    display: none;
  }
  .ivu-tabs-nav {
    .ivu-tabs-tab {
      display: block;
      padding: 10px 20px;
      margin-right: 0;
    }
    .ivu-tabs-tab.ivu-tabs-tab-active {
      background: #fff;
    }
  }
  .ivu-tabs-content {
    float: left;
    width: 850px;
    box-sizing: border-box;
    padding: 0px 40px 0px 60px;
  }
  .text-box {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    .headImg {
      width: 30px;
      height: 30px;
      border-radius: 50%;
    }
  }
  .text-box:last-child {
    border-bottom: 0;
  }
}
@media screen and (max-width: 960px) {
  .top-right-info {
    width: 100%;
  }
}
