@import url("/wp-content/themes/elsa-tot/static/Fonts/font-custom.css");

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
html {
  font-size: 14px;
  scroll-behavior: smooth;
  height: 100%;
  font-family: "SF Pro Display", sans-serif;
  -webkit-user-select: none; /* Safari */
  user-select: none; /* Standard syntax */
}
img {
  max-width: 100%;
}
.form-group.invalid .form-control {
  border-color: #f33a58;
}

.form-group.invalid .form-error {
  color: #f33a58;
  margin-bottom: 3px;
  margin-top: 5px;
  font-size: 15px;
  margin-left: 5px;
  text-align: left;
}
#main {
  background: url("../img/bg.png") no-repeat top center / cover;
  height: 100%;
  min-height: 100vh;
  padding-bottom: 30px;
  position: relative;
}
.game {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 82px;
}
.game__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game__logo {
  width: 240px;
}
.game__title {
  margin: 20px 0 0;
  text-align: center;
}
.game__notice {
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}
@media (min-width: 767px) {
  .game__notice {
    display: none
  }
}
.voucher {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  background: linear-gradient(180deg, #FFD687 0%, #E79800 100%);
  border: 2px solid #FFD687;
  box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
  margin: 40px auto 0;
  border-radius: 220px;
  padding: 40px 0;
}
#form__voucher {
  margin-right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-group {
  width: 70%;
}
.form-group label {
  display: block;
  font-size: 18px;
  margin-bottom: 13px;
}
.fa-envelope {
  margin-right: 10px;
}
#form__voucher h3 {
  margin-bottom: 30px;
  font-weight: bold;
  font-size: 40px;
  text-align: center;
}
#form__voucher .form-control {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: #1f1b4e;
}
.voucher__image {
  padding: 0 30px;
}
.btn__voucher {
  background: linear-gradient(180deg, #ff9f59 -46.11%, #cc1300 151.97%);
  border-radius: 50px;
  height: 50px;
  margin-top: 16px;
  width: 60%;
  border: none;
  color: white;
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
  line-height: 28px;
  /* identical to box height, or 156% */
  text-align: center;
  text-transform: uppercase;
}
.btn__voucher:hover {
  color: white;
}
@keyframes fadein {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.assessment-test {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  height: 684px;
  width: 581px;
  user-select: none;
  position: relative;
}

.assessment-test::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: url("../img/bg-phone.png") no-repeat 0 0 / contain;
  pointer-events: none;
  z-index: 2;
}

.button {
  transition: 0.3s;
}

.animated {
  transition-duration: 0.3s/2;
}

.hidden {
  display: none;
}
/* ------------------- Progress bar ------------------ */
progress[value] {
  margin: auto;
  /* Reset the default appearance */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Get rid of default border in Firefox. */
  border: none;
  border-radius: 37.5px;
  /* For IE10 */
  color: EEEFF4;
}
progress[value]::-webkit-progress-bar {
  background-color: #eeeff4;
  border-radius: 37.5px;
}

progress[value]::-moz-progress-bar {
  border-radius: 37.5px;
  background: linear-gradient(177.67deg, #4cd964 9.54%, #27ae60 149.18%);
}

progress[value]::-webkit-progress-value {
  background: linear-gradient(177.67deg, #4cd964 9.54%, #27ae60 149.18%);
  border-radius: 37.5px;
}
.radial-progress-container {
  position: relative;
}
.radial-progress-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.playContainer,
.viewContainer {
  position: relative;
}

.tooltiptext {
  position: absolute;
  text-align: center;
  width: 100%;
  animation: fadein 2s ease-in;
  opacity: 0;
}
@media (min-width: 769px) {
  progress[value] {
    width: 238px;
    height: 7px;
    border-radius: 37.5px;
    background: #eeeff4;
  }
}

@media (max-width: 768px) {
  progress[value] {
    width: 100%;
    height: 7px;
    border-radius: 37.5px;
    background: #eeeff4;
  }
}
.progress-bar {
  background-color: #eeeff4;
  border-radius: 2px;
  width: 250px;
  height: 20px;
  position: relative;
  display: block;
}

.progress-bar > span {
  background: linear-gradient(175deg, #4cd964 9.54%, #27ae60 149.18%);
  border-radius: 2px;

  display: block;
  text-indent: -9999px;
}
/* ------------------- Progress bar ------------------ */
/* ------------------- app container ------------------ */
#app {
  margin: auto;
  background-color: #fff;
  position: relative;
}
@media (min-width: 769px) {
  #app {
    width: 284px;
    height: 580px;
    background-position-y: bottom;
    margin: 39px auto 0;
    padding-top: 30px;
    left: -3px;
  }
  #instruction > img {
    width: 150px;
    height: 50px;
  }
  #instruction {
    width: 150px;
    margin: auto;
    margin-bottom: 25px;
  }
  .close-button {
    background-image: url("https://d1t11jpd823i7r.cloudfront.net/assessment/button/close_desktop.svg");
    background-size: contain;
    position: absolute;
    width: 48px;
    height: 48px;
    /* right: 13px;
                top: 13px; */
    right: 40px;
    top: 43px;
    background-color: #171f48;
    border-radius: 50%;
  }
}

@media (max-width: 768px) {
  #app {
    width: 183px;
    height: 405px;
    padding-top: 50px;
    background-position-y: 50%;
    border-radius: 40px 40px 0 0;
    left: -2px;
  }
  #instruction > img {
    width: 108px;
    height: 36px;
    margin-left: 25px;
  }
  #instruction {
    width: 108px;
    /* margin: auto; */
    margin-bottom: 5px;
  }
  .elsa-logo {
    width: 375px;
    margin: auto;
  }
  .close-button {
    background-image: url(https://d1t11jpd823i7r.cloudfront.net/assessment/button/close_mobile.svg);
    background-size: contain;
    position: absolute;
    width: 32px;
    height: 32px;
    right: 24px;
    top: -38px;
    background-color: #ffffff;
    border-radius: 50%;
  }
}
/* ------------------- app container ------------------ */
/* ------------------- title container ------------------ */
.titleContainer {
  margin: auto;
  font-style: normal;
  color: #171f48;
}
@media (min-width: 769px) {
  .titleContainer {
    margin-top: 40px;
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    text-align: center;
    letter-spacing: 0.005em;
    width: 240px;
  }
}

@media (max-width: 768px) {
  .titleContainer {
    padding: 0 5px;
    margin-top: 30px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
  }
}
/* ------------------- title container ------------------ */
/* ------------------- button ------------------ */
.playback,
.recorder,
.hearback {
  background-size: contain;
  margin: auto;
}
.playback {
  background-image: url("https://d1t11jpd823i7r.cloudfront.net/assessment/button/Speaker.svg");
}
.hearback {
  background-image: url("https://d1t11jpd823i7r.cloudfront.net/assessment/button/Hearback.svg");
}
.playContainer .playback {
  background-image: url("https://d1t11jpd823i7r.cloudfront.net/assessment/button/Speaker_disable.svg");
}
.playContainer .recorder {
  background-image: url("https://d1t11jpd823i7r.cloudfront.net/assessment/button/green_mic.svg");
  border-radius: 50%;
  border: lightblue 3px;
  animation: mymove 2s infinite;
  box-sizing: border-box;
}

.viewContainer .recorder {
  background-image: url("https://d1t11jpd823i7r.cloudfront.net/assessment/button/mic/Normal.svg");
  animation: zoom-in-zoom-out 1s ease infinite;
}
.finishContainer .recorder {
  /* background-image: url(https://d1t11jpd823i7r.cloudfront.net/assessment/button/waiting.gif); */
  border-radius: 50%;
  background-color: #e6e6e6;
  display: flex;
}
.finishContainer .recorder > img {
  width: 50%;
  height: 50%;
  margin: auto;
}
.retry, .continue {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  font-weight: 600;
  height: 45px;
  width: 200px;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
}
.retry {
  background: #fff;
  border: 2px solid #dfe2f1;
  margin-bottom: 16px;
}
.continue {
  background: linear-gradient(180deg, #29f4ff -46.11%, #5257ff 151.97%);
  box-shadow: 0 8px 18px rgba(66, 150, 255, 0.26);
  background-size: 100% 100%;
  color: #fff;
}
.recorder,
.retry,
.continue,
.playback {
  cursor: pointer;
}
.pagination {
  margin: auto;
  margin-top: 40px;
}
.resultPlayback {
  display: none;
  /* display: flex;  */ /* for inline children or centering one child by margin auto  */
  text-align: center; /* center a group of childs  */
}
@media (min-width: 769px) {
  .playback,
  .hearback {
    margin-top: 24px;
    width: 48px;
    height: 48px;
  }
  .resultPlayback > .playback,
  .hearback {
    display: none;
  }
  .recorder {
    margin-top: 200px;
    width: 80px;
    height: 80px;
  }
  .tooltiptext {
    bottom: 118px;
  }
  .pagination {
    width: 272px;
    display: flex;
    flex-direction: column;
  }
  .retry {
    width: 200px;
  }
  .continue {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .playback,
  .hearback {
    margin-top: 24px;
    width: 40px;
    height: 40px;
  }
  .resultPlayback > .playback,
  .hearback {
    display: none;
  }
  .recorder {
    margin-top: 30px;
    width: 60px;
    height: 60px;
  }
  .tooltiptext {
    bottom: 84px;
  }
  .pagination {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .retry,
  .continue {
    width: 82%;
    font-size: 14px;
    height: 35px;
  }
  .retry {
    margin-bottom: 5px;
  }
  .pagination {
    margin-top: 10px;
  }
}
/* ------------------- button ------------------ */
/* ------------------- result ------------------ */
.result {
  margin: auto;
  display: flex;
}
.power_by {
  background-image: url("https://d1t11jpd823i7r.cloudfront.net/assessment/power_by_elsa.svg");
  background-repeat: no-repeat;
  background-size: contain;
}
.level {
  font-family: "SF Pro Rounded", "Varela Round", sans-serif;
  font-style: normal;
  font-weight: normal;
  color: #0000006b;
}
.level > span {
  font-weight: 600;
  color: #121131;
}

.chart .naitive-score {
  font-family: "SF Pro Rounded", "Varela Round", sans-serif;
  font-style: normal;
  font-weight: bold;
  /* identical to box height, or 150% */
  text-align: center;

  /* Dark */
  color: #121131;
}
.text {
  margin: auto;
}
@media (min-width: 769px) {
  .game-gift-mb {
    display: none;
  }
  .chart .naitive-score {
    font-size: 30px;
    margin-bottom: 0px;
  }
  .chart {
    width: 140px;
  }
  .text {
    flex: 1;
    padding: 0 10px;
  }
  .power_by {
    width: 118px;
    height: 24px;
  }
  .result {
    margin-top: 6px;
    align-items: center;
    width: 272px;
    height: 170px;
  }
  .level {
    font-size: 14px;
  }
  .level > span {
    font-size: 18px;
  }
  .result_text_line {
    background: #e6e6e6;
    width: 128px;
    height: 1px;
    margin-top: 24px;
    margin-bottom: 23px;
  }
}

@media (max-width: 768px) {
  .chart .naitive-score {
    font-size: 20px;
    margin-bottom: 0;
  }
  .chart {
    width: 80px;
    /* height: 144px; */
  }

  .text {
    flex: 1;
  }
  .power_by {
    height: 21px;
  }
  .result {
    margin-top: 20px;
    padding: 0 6px;
    min-height: 80px;
  }
  .level {
    font-size: 10px;
  }
  .level > span {
    font-size: inherit;
    display: flex;
    align-items: center;
  }
  .result_text_line {
    width: 46px;
    height: 1px;
    background: #e6e6e6;
    margin-top: 24px;
    margin-bottom: 20px;
  }
}
.score-warning {
  color: #ff7a00;
}
.score-normal {
  color: #05c150;
}
.score-error {
  color: #ff0000;
}
.m-0 {
  margin: 0 !important;
}
span {
  display: inline-block !important;
}
@media (max-width: 425px) {
  .container {
    margin-left: 0;
    margin-right: 0;
  }
}
.inactive {
  cursor: not-allowed;
  opacity: 0.4;
}
.news-title {
  font-weight: 600;
  font-size: 36px;
  padding-left: 16px;
  border-left: 4px solid #478dff;
  margin-bottom: 34px;
  text-align: left;
  margin-left: 10%;
}
.section-news {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.card-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  max-width: 282px;
  width: 282px;
  height: auto;
  margin: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: none;
}

.card-image {
  max-height: 100%;
}

.card-image img {
  max-width: 100%;
  height: auto;
}

.card-info {
  padding: 16px 0px 10px;
}

.card-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #121131;
  text-align: left;
}

.card-info p {
  font-size: 18px;
  color: #121131;
  margin-bottom: 10px;
  text-align: left;
}

.pagination-news {
  text-align: center;
  margin: 30px 30px 60px;
  user-select: none;
}

.pagination-news li {
  display: inline-block;
  margin: 5px;
  box-shadow: 0 5px 25px rgb(1 1 1 / 10%);
}

.pagination-news li a {
  color: #000;
  text-decoration: none;
  font-size: 1.2em;
  line-height: 45px;
}

.previous-page,
.next-page {
  background: #478dff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.previous-page:hover {
  transform: translateX(-5px);
}

.next-page:hover {
  transform: translateX(5px);
}

.current-page,
.dots {
  background: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #c4c4c4;
}

.active {
  background: #478dff;
}

.disable {
  background: #ccc;
}
.card-btn {
  color: #478dff;
  text-align: left;
  font-size: 18px;
}
@media (max-width: 768px) {
  #main {
    background: linear-gradient(197.17deg, #7613a5 12.59%, #601090 25.55%, #470c76 45.48%, #350964 66.41%, #2a085a 88.33%, #260756 112.25%);
  }
  .game {
    padding-top: 30px;
  }
  .game__title {
    margin-bottom: 10px;
  }
  .game__gift {
    display: none;
  }
  .game__logo {
    width: 180px;
  }
  .game__content {
    padding: 0 15px;
  }
  .voucher {
    margin: -70px auto 0;
    border-radius: 40px;
    padding: 100px 0 40px;
  }
  .voucher__image {
    display: none;
  }
  #form__voucher {
    margin-right: 0;
  }
  #form__voucher h3 {
    font-size: 36px;
    line-height: 43px;
    width: 80%;
  }
  .form-group {
    width: 90%;
  }
  .btn__voucher {
    width: 80%;
  }
  .assessment-test {
    width: 375px;
    height: 441px;
    margin: 0 auto;
  }
  .game-gift-mb {
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 1;
  }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .game__content {
    margin-right: 45px;
  }
  .game__title {
    font-size: 42px;
  }
  #form__voucher h3 {
    width: 70%;
  }
}
.progressContainer {
  padding: 0 20px;
}

@keyframes mymove {
  0% {
    border: 3px solid lightblue;
  }
  50% {
    border: 15px solid lightblue;
  }
  100% {
    border: 3px solid lightblue;
  }
}
@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(0.9, 0.9);
  }
  100% {
    transform: scale(1, 1);
  }
}
