@import (reference) '~antd/es/style/themes/index';

@paper-primary-color: #3d8bf5;

.container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: auto;
  background: @paper-primary-color;

  .answerResult {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    margin-top: -40vw;
    margin-left: -40vw;
    padding: 16px;
    background: white;
    border-radius: 16px;

    .item {
      display: inline-block;
      width: 24px;
      height: 24px;
      margin-right: 4px;
      margin-bottom: 4px;
      line-height: 24px;
      text-align: center;
      border: grey 1px solid;
      border-radius: 12px;
    }

    .itemFinish {
      display: inline-block;
      width: 24px;
      height: 24px;
      margin-right: 4px;
      margin-bottom: 4px;
      color: white;
      line-height: 24px;
      text-align: center;
      background: @paper-primary-color;
      border-radius: 12px;
    }
  }

  .dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 110vw;
    margin-top: -60vw;
    margin-left: -40vw;
    border-radius: 16px;

    img {
      position: absolute;
      width: 80vw;
      height: 100vw;
    }

    .title {
      position: absolute;
      top: 50vw;
      width: 80vw;
      color: #2f2f32;
      font-weight: bold;
      font-size: 18px;
      text-align: center;
    }

    .message {
      position: absolute;
      top: 62vw;
      width: 80vw;
      color: #2f2f32;
      font-size: 16px;
      text-align: center;
    }

    .submit {
      position: absolute;
      top: 76vw;
      width: calc(100% - 80px);
      height: 44px;
      margin: 10px 40px;
    }
  }

  .content {
    flex: 1;
    text-align: center;

    .titleWrapper {
      text-align: center;

      .title {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        width: 90vw;
        margin: auto;
        color: white;
        font-size: 1.1rem;
      }

      .questionBg {
        width: 100%;
        height: 20vh;
      }
    }

    .cardPositionDiv {
      position: relative;
    }
    .card {
      top: 20vh;
      width: calc(100% - 48px);
      // height: 70vh;
      margin-right: 24px;
      margin-left: 24px;
      padding: 12px;
      overflow: visible;
      text-align: left;
      background: #fff;
      border: 1px #d8d8d8 solid;
      border-radius: 12px;
      box-shadow: 3px 6px #10000000;

      .useTimeWrapper {
        position: absolute;
        top: -20px;
        right: 80px;
        text-align: center;

        .useTime {
          width: 40px;
        }

        .useTimeText {
          color: #2f2f32;
        }
      }

      .questionCountWrapper {
        position: absolute;
        top: -20px;
        right: 30px;
        text-align: center;

        .questionCount {
          width: 40px;
        }

        .questionCountText {
          color: #2f2f32;
        }

        .current {
          color: @paper-primary-color;
        }
      }

      .questionSeq {
        margin-top: 16px;
        margin-left: 8px;
        color: #868686;
        font-weight: bold;
        font-size: 16px;
      }

      .questionHint {
        margin-top: 8px;
        margin-right: 8px;
        margin-left: 8px;
        color: grey;
        font-size: 14px;
        text-align: justify;
      }

      .questionTitleWrapper {
        margin: 16px 8px 8px;
        text-align: justify;

        .type {
          margin-right: 8px;
          padding: 4px 6px;
          color: white;
          font-size: 12px;
          text-align: center;
          background: @paper-primary-color;
          border-radius: 4px;
        }

        .title {
          margin-top: 2px;
          color: #2f2f32;
          font-weight: bold;
          font-size: 0.95rem;
        }
      }
    }

    .questionContent {
      height: 32vh;
      margin-top: 16px;
      margin-right: 8px;
      margin-left: 8px;
      overflow-y: scroll;

      .radio {
        --icon-size: 22px;
      }

      .rate {
        display: inline-block;
        width: 24px;
        height: 24px;
        margin-right: 6px;
        line-height: 24px;
        text-align: center;
        border: grey 1px solid;
        border-radius: 12px;
        //--active-color: @paper-primary-color;
        //--star-size: 20px;
      }

      .rateSelected {
        display: inline-block;
        width: 24px;
        height: 24px;
        margin-right: 6px;
        color: white;
        line-height: 24px;
        text-align: center;
        background: @paper-primary-color;
        border-radius: 12px;
      }

      .textArea {
        padding: 6px;
        color: #2f2f32;
        border: #ddd 1px solid;
        border-radius: 10px;
      }

      .optionInput {
        width: 260px;
        margin-top: 6px;
        padding: 6px;
        color: #2f2f32;
        border: #ddd 1px solid;
        border-radius: 10px;
      }

      .checkWrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 290px;
        margin-bottom: 12px;

        .checkGroup {
        }

        .dragHandler {
          font-size: 20px;
        }
      }
    }

    .next {
      // position: absolute;
      // bottom: 78px;
      left: 30px;
      width: calc(100% - 60px);
      height: 44px;
      margin-top: 10px;
    }

    .last {
      // position: absolute;
      // bottom: 20px;
      left: 30px;
      width: calc(100% - 60px);
      height: 44px;
      margin-top: 10px;
    }
  }
}
