@import '../../../../styles/vars/breakpoints.css';

.component {
  @media (--ms-and-down) {
    padding: 0 15px;
    box-sizing: border-box;
  }

}

.loading {
  margin: 15px 0 ;
}

.result {
  width: 647px;	
  border-radius: 20px;	
  background-color: #FFFFFF;	
  box-shadow: 0 6px 40px 0 rgba(190,196,200,0.4);
  padding: 43px 26px;
  display: flex;
  position: relative;

  @media (--ms-and-down) {
    width: 100%;
    flex-wrap: wrap;
    padding: 32px 38px 3px 38px;
  }
}

.correct {
  .circle {
    background-color: #60C97C;
  }
  .iconResult {
    font-size: rem(45px);
    font-size: 2.813rem;
  }
  .current {
    color: #19C18A;
  }
}

.incorrect{
  .current {
    color: #F56851
  }
}

.circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #F56851;
  height: 58px;
  width: 58px;
  border-radius: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconResult {
  font-size: rem(27px);
  color: #fff;
}

.item {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  &:not(:last-child) {
    margin-right: 16px;
  }
  @media (--ms-and-down) {
    width: calc(50% - 8px);
    margin-bottom: 25px;
    &:nth-child(2n-1) {
      margin-right: 0;
    }
  }
}

.title {
  color: rgba(27, 28, 31, 0.6);
  font-size: rem(14px);
  font-weight: 500;
  line-height: rem(18px);
  text-align: center;
  margin-bottom: 7px;
  word-break: break-word;
  @media (--ms-and-down) {
    font-size: rem(12px);
    font-size: 0.75rem;
  }
}

.value {
  color: #1B1C1F;
  font-size: rem(36px);
  font-weight: 500;	
  line-height: rem(44px);
  text-align: center;
  &.minimum {
    color: rgba(27, 28, 31, 0.4);
  }
  @media (--ms-and-down) {
    font-size: rem(28px);
    font-size: 1.75rem;
  }
}

.btns {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  /* margin-bottom: 60px; */
}

.againBtn {
  padding: 15px 19px;
  /* border-radius: 25px; */
  background-color: #EFEFEF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7C7C7C;
  font-size: rem(15px);
  letter-spacing: 0.4px;
  margin-right: 10px;
  text-decoration: none;
  font-weight: 500;
  line-height: rem(20px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  &:global(.p-buttons-bg) {
    color: #fff;
  }
  span {
    position: relative;
    z-index: 2;
  }
  &:hover,
  &:focus,
  &.active {
    &:before {
      opacity: 0.08;
    }
  }
  &:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
}
