@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');
@font-face {
  font-family: Phenomena;
  src: url(../fonts/Phenomena/Phenomena-Regular.ttf);
}


:root {
  --azure: #20D3E5;
  --white: #fff;
  --orange: #F2A000;
  --red: #FE2B45;
  --blue: #13A3EA;
  --brand-color: #7B4EF8;
}

#for-border {
  height: 750px;
  overflow: hidden;
  width: 590px;
  border-radius: 50px;
  border: 4px solid var(--white, #FFF);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

#exercise-level {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#exercise-level object {
  width: 55px;
}

#myStream {
  object-fit: cover;
  transform: rotateY(180deg);
  -webkit-transform:rotateY(180deg); /* Safari and Chrome */
  -moz-transform:rotateY(180deg); /* Firefox */
  background-color: white;
}

#exercise-wrapper {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

#exercise-title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 0px;
}

.exercise-title-image {
  width: 720px;
  height: 80px;
}

#exercise-game-data {
  width: 460px;
  position: relative;
}

#logopedStream {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logopedStream-wrapper {
  width: 460px;
  height: 600px;
  flex-shrink: 0;
  border-radius: 50px;
  border: 4px solid var(--azure);
}

#logopedStream-video-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 45px;
}

.logoped-tools {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 50px;
  border-radius: 80px 130px 0px 80px;
  background: var(--azure, #20D3E5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 8888;
}

@keyframes smileySlideout {
  0% {
    left: -500px;
  }
  30% {
    left: 10%;
  }
  50% {
    left: 10%;
  }
  85% {
    left: 10%;
  }
  100% {
    left: -500px;
  }
}

#smiley, .character-display, .character-error {
  position: fixed;
  bottom: 10px;
  left: 10%;
  width: 320px;
  animation: 7s ease-in-out forwards smileySlideout;
}
.character-error {
  animation: none;
}

.logoped-tools { fill: #000; cursor: pointer; }

#exercise-bottom-buttons {
  margin-top: 10px;
}

.exercise-start-stop-btn,
.exercise-pause-resume-btn,
.word-syll-visibility-btn {
  color: var(--white, #FFF);
  text-align: center;
  font-family: Inter;
  font-size: 35px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  text-transform: uppercase;
  position: relative;
  width: 220px;
  height: 80px;
  cursor: pointer!important;
  overflow: hidden;
  box-sizing: border-box;
}
.word-syll-visibility-btn {
  font-size: 20px;
}
.exercise-start-stop-btn:hover,
.exercise-pause-resume-btn:hover,
.word-syll-visibility-btn:hover {
  transform: scale(1.05);
}
.stop-btn {
  border-radius: 200px;
  border: 5px solid var(--white, #FFF);
  background: linear-gradient(130deg, #FE2B2B 13.21%, #EF0F45 81.73%);
}

.start-btn {
  border-radius: 200px;
  border: 5px solid var(--white, #FFF);
  background: transparent;
}
.button-blik {
  position: absolute;
  top: 5px;
  left: 13px;
}
.button-shadow {
  position: absolute;
  bottom: -2px;
  left: 0px;
}

.pause-btn {
  border-radius: 200px;
  border: 5px solid var(--white, #FFF);
  background: linear-gradient(130deg, #fff04f 13.21%, #C27F13 81.73%);;
}

.word-syll-visibility-btn {
  position: absolute;
  visibility: hidden;
  z-index: 26;
  width: 13%;
  height: 10%;
  top: 10%;
  left: 1%;
  border-radius: 200px;
  border: 5px solid var(--white, #FFF);
  background: linear-gradient(130deg, #6cff4f 13.21%, #13c21c 81.73%);;
}

.exercise-game-stone {
  position: relative;
  display: inline-block;
}
.exercise-game-stone-info {
  position: absolute;
  bottom: -10px;
  left: 20px;
  color: var(--white, var(--white, #FFF));
  text-align: center;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 24px */
}

.sound-exercise-stones-wrap {
  display: flex;
  flex-direction: column;
  gap: 34px;
  color: transparent;
}

.exercise-game-advise {
  display: flex;
  width: 460px;
  height: auto;
  min-height: 170px;
  padding: 20px;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  border-radius: 50px;
  border: 4px solid var(--red);
  background: var(--white);
  margin-top: 30px;
  color: #303030;
  font-family: Inter;
  font-size: 23px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%; /* 31.2px */
}

.advise-success-mode {
  border-color: var(--azure) !important;
}
.advise-good-mode {
  border-color: var(--blue) !important;
}
.advise-error-mode {
  border-color: var(--red) !important;
}
.advise-middle-mode {
  border-color: var(--orange) !important;
}

.exercise-game-advise img {
  position: absolute;
  opacity: 0;
}

.exercise-game-advise #advise-icon-error {
  position: relative;
  opacity: 1;
}

.exercise-game-advise.advise-success-mode #advise-icon-error,
.exercise-game-advise.advise-middle-mode #advise-icon-error,
.exercise-game-advise.advise-good-mode #advise-icon-error {
  position: absolute;
  opacity: 0;
}

.exercise-game-advise.advise-success-mode #advise-icon-success,
.exercise-game-advise.advise-error-mode #advise-icon-error,
.exercise-game-advise.advise-middle-mode #advise-icon-middle,
.exercise-game-advise.advise-good-mode #advise-icon-good {
  position: relative;
  opacity: 1;
}

.exercise-game-stone, .exercise-game-stone object {
  width: 150px;
}

.tag {display: flex;
  width: 110px;
  padding: 8px 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 88.978px;
}
.tag-orange {
  background: var(--orange);
}
.tag-red {
  background: var(--red);
}
.tag-blue {
  background: var(--blue);
}

.clock-large {
  margin-top: 30px;
}
#exercise-title {
  min-width: 720px;
  min-height: 80px;
  flex-shrink: 0;
  color: var(--white, #FFF);
  leading-trim: both;
  text-edge: cap;
  font-family: Phenomena;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  position: relative;
}

#exercise-title-text {
  position: absolute;
  top: 10px;
  left: auto;
}

.wrap-loader {
  opacity: .9;
}

#exercise-game-data .wrapper-timer {
  min-width: 450px;
  left: -110px;
}

@media (max-width: 1919px) {
  .container {
    max-width: 1140px;
    width: 100%;
    box-sizing: border-box;
  }

  .logopedStream-wrapper {
    width: 296px;
    height: 386px;
    border-radius: 42px
  }
  #logoped-tools {
  }
  #logopedStream-video-wrapper {
    border-radius: 39px;
  }
  #for-border {
    width: 418px;
    height: 554px;
    margin: 0;
  }
  #exercise-game-data {
    width: 296px;
  }
  .exercise-game-advise, .clock-large {
    font-size: 20px;
    width: 100%;
    height: auto;
  }
  .exercise-game-advise {
    border-radius: 40px;
  }
  .exercise-game-stones-wrapper {
    display: flex;
    justify-content: space-between;
    color: white;
  }
  .exercise-game-stone, .exercise-game-stone object {
    width: 90px;
  }
  .tag {
    width: 90px;
  }
  .exercise-game-stone-info {
    left: 0;
  }
  #exercise-wrapper {
    justify-content: space-between;
  }
  .circle-progress {
    width: 26px;
    height: 13px;
  }
  #for-border .for-metronome.gif-metro, #for-border .for-metronome.gif-metro-part {
    left: 373px!important;
  }
  #exercise-game-data .wrapper-timer {
    min-width: 320px;
    left: -70px;
  }
}

#control-panel-md {
  display: none;
  z-index: 9999;
  position: fixed;
  bottom: 11px;
  width: 100%;
  max-width: 720px;
  left: calc(50% - 360px);
  flex-direction: row;
  padding: 9px 24.5px 9px 23.5px;
  justify-content: space-evenly;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50px;
  background: var(--brand-color);
  height: 38px;
}

#control-panel-md a {
  color: #A5A6FE;
  text-align: center;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%; /* 10px */
  text-decoration: none!important;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

#control-panel-md a img {
  margin-bottom: 3px;
  width: 20px;
}

@media (max-width: 1200px) {
  .popup__content {
    width: 100%!important;
  }
  #myStream-md {
    object-fit: cover;
    margin-top: 55px;
    height: calc(100% - 55px);
  }
  .logopedStream-wrapper {
    border-radius: 25px!important;
    border: 2px solid var(--azure)!important;
    padding: 0;
    margin: 0;
    object-fit: cover;
    width: 200px!important;
    height: 280px!important;
    left: 10px!important;
    top: 86px!important;
  }
  #logopedStream-wrapper .logoped-tools {
    display: none!important;
  }
  .button-bugreport {
    display: none;
    z-index: 2;
  }
  .exercise-game-advise {
    position: fixed;
    z-index: 9999!important;
    bottom: 110px!important;
    left: calc(50% - 250px)!important;
    width: 95%!important;
    border-radius: 25px!important;
    border-width: 2px;
    min-height: unset;
    padding: 10px;
    max-width: 500px;
  }
  .exercise-game-advise img {
    width: 24px;
  }
  .exercise-game-stones-wrapper {
    position: fixed;
    z-index: 20;
    right: 10px;
    top: 60px;
    width: 100px;
    color: white;
  }

  footer {
    display: none!important;
  }

  html, body {
      padding: 0!important;
  }

  .wrapper {
      padding-top: 90px;
  }

  .buttons-performing {
    min-height: 55px;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    background: #7B4EF8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 2px 0;
  }

  .buttons-performing .btnSettings {
    margin: 0;
  }
  .buttons-performing .wifi{
  }

  .exercise-title-text {
    color: var(--white, #FFF);
    leading-trim: both;
    text-edge: cap;
    font-family: Phenomena;
    font-size: 50px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  #exercise-title .exercise-title-image {
    display: none;
  }
  .title-md-wrapper {
    display: flex;
    min-width: 220px;
    align-items: center;
  }
  .right-icons-md-wrapper {
    display: flex;
    min-width: 150px;
    justify-content: space-evenly;
  }
  #gif-for-preloader, #gif-for-preloader-two {
    width: 200px;
  }
  .for-circle-progress {
    bottom: 45px;
  }
  .circle-progress {

  }
  .feedbackaccord {
    display: none!important;
  }
  #control-panel-md {
    display: flex;
  }
   .button-group {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

  #control-panel-md .exercise-start-stop-btn,
  #control-panel-md .exercise-pause-resume-btn {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }
  #control-panel-md .exercise-start-stop-btn .button-shadow,
  #control-panel-md .exercise-pause-resume-btn .button-shadow {
    bottom: -14px;
  }
  #control-panel-md .exercise-start-stop-btn .button-blik,
  #control-panel-md .exercise-pause-resume-btn .button-blik {
    top: -14px;
  }
  .wrapper-timer {
    bottom: 25%;
    right: -30px;
    left: unset;
    font-size: 15px;
    width: 180px;
  }
}

@media (max-width: 720px) {
  #control-panel-md {
    left: 0;
  }
  .logopedStream-wrapper {
    width: 108px!important;
    height: 146px!important;
  }
  .exercise-game-advise {
    bottom: 85px!important;
    width: 95%!important;
    left: 10px!important;
  }
  .exercise-game-stones-wrapper {
    width: 180px;
    color: white;
  }
  .exercise-game-stone, .exercise-game-stone object {
    width: 50px;
  }
  .exercise-game-stone-info {
    width: 50px;
    font-size: 12px;
  }

  .exercise-title-text {
    font-size: 32px;
  }
}

@media (max-width: 380px) {
  .logopedStream-wrapper {
    width: 115px!important;
    height: 148px!important;
  }
  .wrapper-timer {
    bottom: 35%;
    width: 165px;
  }
}

/* sounds */
.photo-word {
  display: block !important;
  background: white;
  width: 150px;
  height: 150px;
  max-width: 150px;
  max-height: 150px;
  border-radius: 20px;

  @media (min-width: 1200px) {
    width: 295px;
    height: 295px;
    min-width: 295px;
    max-height: 295px;
    border-radius: 40px;
  }

  @media (min-width: 1920px) {
    width: 350px;
    height: 350px;
    max-width: 350px;
    max-height: 350px;
    border-radius: 45px;
  }
}

.word-exercise,
#what-to-say-container {
  display: none;
}

.exercise-game-stones-wrapper {
  color: white;
}

#syll-container {
  display: none;
}

.sound-exercise-container {
  max-width: unset;
  height: 100%;

  @media (min-width: 1201px) {
    padding: 0 40px;
    height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  @media (min-width: 1920px) {
    padding: 0 90px;
  }

  #exercise-title {
    display: none;

    @media (min-width: 1201px) {
      display: flex;
    }
  }

  #exercise-bottom-buttons {
    display: none;

    @media (min-width: 1200px) {
      display: flex;
    }
  }

  #for-border {
    border-color: white !important;
    width: 100% !important;
    background-image: url("/static/main/image/background.webp");
    background-position: center;
    background-size: cover;
    min-height: 632px;

    @media (max-width: 1200px) {
      background: none;
      background-size: cover;
      max-width: 1200px;
      height: 100%;
      width: 100%;
      border: none;
      border-radius: unset;
      min-height: unset;
      overflow: unset;
    }

    @media (min-width: 1920px) {
      min-height: 750px;
    }
  }

  #myStream,
  #myStream-md {
    display: none;
  }

  #syll-container {
    display: flex;
    position: absolute;
    top: 0%;
    bottom: 50px;
    left: 0%;
    right: 200px;
    z-index: 9;

    @media (max-width: 1200px) {
      right: 0;
      left: 10px;
      bottom: 110px;
    }
  }

  .animationStar {
    right: unset;
    left: 50% !important;
    transform: translateX(-50%);
  }

  .word-exercise {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;

    #dragon, #knight {
      position: absolute;
    }
    
    @media (max-width: 1200px) {
      position: relative;
      width: 45%;
      max-width: 200px;
      height: calc(100% - 110px);

      #fairy, #wizard,
      #dragon, #knight {
        position: absolute;
      }

     #fairy {
        width: 160%;
        top: 50%;
        left: -100%;
        transform: translateY(20px);
      }

      #wizard {
        width: 133%;
        right: -60%;
        top: 50%;
        transform: translateY(40%);
      }

      .photo-word-holder {
        width: 100%;
      }

      .photo-word {
        width: 100%;
        height: auto;
        max-width: 250px;
        max-height: 250px;
      }
    }

    @media (min-width: 1201px) {
      max-width: 100px;
      margin-right: 100px;
      margin-top: 100px;
    }

    @media (max-width: 1919px) {
      #dragon {
        height: 450px;
        left: calc(50% + 400px);
        transform: translate(-50%, -20px);
      }

      #knight {
        height: 321px;
        right: calc(50% + 320px);
        transform: translate(50%, 20px);
      }
    }

    @media (max-width: 1200px) {
      #dragon {
        width: 250%;
        height: auto;
        transform: none;
        left: 20px;
        bottom: -8%;
        margin: 0;
      }

      #knight {
        width: 180%;
        bottom: 0;
        left: -80%;
        height: auto;
        transform: none;
      }
    }

    @media (min-width: 1920px) {
      #dragon {
        left: calc(50% + 458px);
        transform: translate(-50%, -20px);
      }

      #knight {
        right: calc(50% + 450px);
        transform: translate(50%, 60px);
      }
    }
  }

  #exercise-game-data {
    .exercise-game-advise {
      display: none;
    }

    @media (max-width: 1920px) {
      .exercise-game-stone-info {
        width: 80px;
        font-size: 18px;
        padding: 6px 20px;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
      }
    }

    @media (max-width: 1200px) {
      position: absolute;

      .exercise-game-stones-wrapper {
        width: fit-content;
        gap: 10px;
        top: 56px;

        color: white;
      }

      .exercise-game-stone {
        width: 40px;
        height: 40px;

          svg {
            width: 40px;
            height: 40px;
          }
      }

      .exercise-game-stone-info {
          width: 30px;
          font-size: 8px;
          padding: 2px 0;
          bottom: -6px;
          left: 50%;
          transform: translateX(-50%);
        }
    }

    @media (min-width: 1201px) {
      position: absolute !important;
      width: fit-content !important;
      top: 50%;
      right: 24px;
      transform: translateY(-50%);

      .exercise-game-stones-wrapper {
          display: flex;
          flex-direction: column;
          gap: 34px;

          color: transparent;
      }
    }

    @media (min-width: 1920px) {
      right: 40px;
    }
  }

  .for-circle-progress {
    right: auto !important;

    @media (max-width: 1200px) {
      bottom: 86px;
      gap: 4px;

      .circle-progress {
        width: 100%;
        max-width: 26px;
        margin: 0;
      }
    }
  }

  #control-panel-md {
    @media (max-width: 1200px) {
      bottom: 20px;

      .exercise-start-stop-btn {
          width: 70px !important;
          height: 70px !important;
      }
    }
  }

  .buttons-performing {
    @media (max-width: 1200px) {
      max-height: 44px !important;
      min-height: unset;
    }
  }


  #what-to-say-container,
  #blue-syllables-container {
    position: absolute;
    top: 27px;
    background-color: white;
    height: 150px;
    width: fit-content;
    padding: 30px 51px;
    border-radius: 25px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    gap: 8px;

    @media (min-width: 1920px) {
      top: 67px;
    }

    @media (max-width: 1200px) {
      height: 55px;
      border-radius: 10px;
      padding: 11px;
      top: calc(50% - 110px);
      transform: translate(50%, -90px);
      gap: 4px;

      img {
        width: 27px;
        height: 43px;
      }
    }
  }

  #blue-syllables-container {
    width: 90%;
    height: 50%;
    top: 40%;
    padding: 16px 9px;
  }

  .photo-word-holder {
    position: relative;

    .smile-left, .smile-right {
      position: absolute;
      z-index: 1;
    }

    .smile-left {
      left: -30px;
      top: 10%;
    }

    .smile-right {
      right: -30px;
      bottom: -10%;
    }

    @media (max-width: 1200px) {
      .smile-left, .smile-right {
        width: 40px;
        height: 100px;
        visibility: hidden;
      }

      .smile-left {
        left: -20px;
      }

      .smile-right {
        right: -20px;
      }
    }
  }

  .exercise-title-text {
    @media (max-width: 1200px) {
      font-size: 24px;
      text-overflow: ellipsis;
      width: 100%;
      white-space: nowrap;
      overflow: hidden;
    }
    }
  }

.sound-differentiation {
  #for-border {
    background-image: url("/static/main/image/bg.webp");
    @media (min-width: 1201px) {
      background-size: 1200px 632px;
    }

    @media (min-width: 1920px) {
      min-height: 750px;
      background-size: 1740px 750px;
    }
  }

  .word-exercise {
    @media (min-width: 1200px) {
      margin-right: 0;
    }
  }



  #exercise-wrapper {
    @media (min-width: 1201px) {
      max-width: 1200px;
    }

    @media (min-width: 1920px) {
      max-width: 1740px;
    }
  }
}

.sound-exercise-wrapper {
  @media (max-width: 1200px) {
    background-image: url("/static/main/image/background.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding-top: 44px !important;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    .main {
      flex: unset !important;
      height: 100%;
    }

    .right-icons-md-wrapper {
      a, #wifi-level-md, svg {
        max-width: 30px !important;
        max-height: 30px;
      }
    }
  }
}

.wrap-preloader {
  height: fit-content;
}

/* text & image */
.question-text {
  color: #f1e9e9;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #111;
  max-width: 90%;
  height: 40px;
  position: absolute;
  visibility: hidden;
  top: 2%;
}

.question-image {
  width: min(420px, 90%);
  height: auto;
  object-fit: contain;
  position: absolute;
  visibility: hidden;
  top: 20%;
}
