.breathing-app {
   --primary-text-color: #000000;
}

.breathing-app label {
   margin-bottom: 0;
}

.breathing-app__screen,
.breathing-app__breathing {
   display: flex;
}

.breathing-app__screen {
   position: relative;
   margin-bottom: 15px;
   padding: 14px 14px 50px 14px;
   border-radius: 12px;
   /* background: #f2f2f2; */
   background: #e0f1f8;

}

.breathing-app__screen.assistive-mode-off {
   background: none;
}

.assistive-mode-off .breathing-app__animation-container {
   visibility: hidden;
}

.breathing-app__outer-circle,
.breathing-app__static-circle,
.breathing-app__prep-countdown,
.breathing-app__action-btns .play-btn {
   display: flex;
   justify-content: center;
   align-items: center;
}

.breathing-app__breathing,
.breathing-app__controls {
   width: 100%;
}

.breathing-app__controls {
   position: absolute;
   width: 100%;
   max-width: calc(100% - 14px);
   right: -100%;
   right: 14px;
   z-index: 1;
   top: 50px;
   opacity: 0.2;
   transform: scale(0);
   transform-origin: right top;
   transition: all 300ms;
   transition-timing-function: cubic-bezier(0.46, 0.03, 0.52, 0.96);
}

.control-panel-open .breathing-app__controls {
   opacity: 1;
   transform: scale(1);
}

.breathing-app__breathing {
   flex-direction: column;
   align-items: center;
}

.breathing-app__animation-container {
   min-width: 220px;
   margin-top: 70px;
}

.breathing-app__outer-circle {
   position: relative;
   overflow: hidden;
   width: 170px;
   height: 170px;
   margin-right: auto;
   margin-left: auto;
   margin-bottom: 10px;
   border-radius: 200px;
   background: #cccccc;
}

.breathing-app__static-circle,
.breathing-app__prep-countdown,
.breathing-app__main-circle {
   border-radius: 100%;
   width: 70px;
   height: 70px;
}

.breathing-app__main-circle {
   background: #3A4775;
   -webkit-transition-timing-function: linear;
   transition-timing-function: linear;
}

.breathing-app__static-circle,
.breathing-app__prep-countdown {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   color: #fafafa;
   font-size: 40px;
}

.breathing-app__static-circle {
   background: #c1914e;
}

.breathing-app__prep-countdown {
   /* background: rgba(0, 0, 0, 0); */
   background: #989898;
}

.assistive-mode-off .breathing-app__prep-countdown {
   visibility: visible;
}

.breathing-app__static-circle.fade-out-text,
.breathing-app__prep-countdown.fade-out-text {
   transition: color 400ms 550ms cubic-bezier(0.5, 1, 0.89, 1);
   color: #0000;
}

.breathing-app__breathing-guides {
   height: 45px;
   margin-bottom: 12px;
}

.breathing-app__breathing-guides .breathing-guide,
.breathing-app .breathing-app__control__label {
   font-size: 14px;
   text-align: center;
   font-weight: 600;
   color: var(--primary-text-color);
}

.breathing-app__breathing-guides .breathing-guide {
   display: none;
}

.breathing-app__breathing-guides .breathing-guide.active {
   display: block;
}

.breathing-time-held-indicator-group {
   margin-top: 10px;
   display: flex;
   justify-content: center;
   height: 6px;
   /* visibility: hidden; */
}

/* .breathing-guide--held.active .breathing-time-held-indicator-group {
   visibility: visible;
} */

.breathing-guide--held .breathing-app__held-indicator {
   width: 16px;
   height: 16px;
   background: #3a47753b;
   margin-right: 7px;
   border-radius: 8px;
}

.breathing-guide--held .breathing-app__held-indicator:last-child {
   margin-right: 0;
}

.breathing-guide--held .breathing-app__held-indicator.active {
   animation: backgroundFadeIn forwards 1000ms cubic-bezier(0.5, 1, 0.89, 1);
}

.breathing-app__action-btns .play-btn {
   width: 100px;
   height: 42px;
   margin: 0;
   border-radius: 5px;
   border: 1px solid;
   outline: none;
   font-size: 13px;
   font-weight: bold;
   text-transform: capitalize;
   background: #fff;
   color: #000;
   /* box-shadow: 6px 6px 15px rgb(204 220 237 / 50%); */
   cursor: pointer;
}

.breathing-app__action-btns .play-btn:hover {
   background: #ddd;
   /* box-shadow: 6px 6px 15px #f3dbba80; */
   color: #3a4775;
}

.breathing-app__countdown {
   position: absolute;
   left: 25px;
   top: 14px;
   font-size: 20px;
   color: var(--primary-text-color);
   /* font-weight: 600; */   
   display:none;
}

.breathing-app__cycles {
   position: absolute;
   left: 25px;
   top: 40px;
   font-size: 20px;
   font-weight: 500;
   color: var(--primary-text-color);
}

.breathing-app__cycles-count {
   /* font-weight: bold; */
   font-size: 20px;
}

.assistive-mode-off .breathing-app__countdown,
.assistive-mode-off .breathing-app__cycles,
.assistive-mode-off .breathing-app__cycles-count {
   color: #fff;
}

/* ----- controls start ------- */
.breathing-app__controls-inner {
   width: 100%;
   background: #fff;
   border-radius: 12px;
   padding: 14px 18px;
   box-shadow: 6px 6px 15px #00000012;
}

.breathing-app__control-group {
   margin-bottom: 22px;
}

.breathing-app .breathing-app__control__label {
   font-size: 15px;
}

.breathing-app__control-group--slider .breathing-app__control__label {
   margin-bottom: 18px;
}

.breathing-app__control-group--ratios .breathing-app__control__label {
   margin-bottom: 13px;
   margin-top: 28px;
}

.breathing-app__control-group--ratios .breathing-ratio-input-col {
   display: flex;
   justify-content: space-between;
}

.breathing-app__control-group--ratios .breathing-ratio-button {
   position: relative;
   width: calc(50% - 6px);
   height: 35px;
}

.breathing-app__control-group--ratios .breathing-ratio-button .breathing-ratio-label {
   width: 100%;
   height: 100%;
   background: #f3dbba;
   border-radius: 4px;
   text-align: center;
   line-height: 1 !important;
   font-size: 14px !important;
   font-weight: 500;
   cursor: pointer;
   transition: background 200ms ease-in;
   display: flex;
   align-items: center;
   justify-content: center;
}

.breathing-app__control-group--ratios .breathing-ratio-button input,
.breathing-app .assistive-mode-check-label .assistive-mode-check {
   position: absolute;
   opacity: 0;
   cursor: pointer;
   height: 0;
   width: 0;
}

.breathing-app__control-group--ratios .breathing-ratio-button .breathing-ratio-label:hover,
.breathing-app__control-group--ratios .breathing-ratio-button input:checked+.breathing-ratio-label {
   background: #3A4775;
   color: #fff;
}

/* -------- noUi slider -------- */
.breathing-app__noui-slider.noUi-target {
   background: none;
}

.breathing-app__noui-slider .noUi-base {
   width: 90%;
   margin: auto;
}

.breathing-app__noui-slider .noUi-connects {
   height: 7px !important;
   width: 100% !important;
}

.breathing-app__noui-slider .noUi-origin .noUi-handle {
   top: -11px !important;
   right: -14px !important;
   width: 28px !important;
   height: 28px !important;
}

.breathing-app__noui-slider .noUi-origin .noUi-handle:before {
   width: 30px !important;
   height: 30px !important;
}

.breathing-app__noui-slider .noUi-origin .noUi-handle .noUi-tooltip {
   bottom: 100% !important;
   font-size: 13px !important;
   line-height: 24px !important;
}

.breathing-app__noui-slider .noUi-origin .noUi-handle .noUi-tooltip {
   font-weight: normal !important;
}

/* ------ control toggle button -------- */
.breathing-app .toggle-controls-btn, .emdr-breathing-app .toggle-controls-btn {
   position: absolute;
   right: 14px;
   top: 14px;
   border: none;
   outline: none;
   background: transparent;
   width: max-content;
   padding: 0;
   border-radius: 50px;
   cursor: pointer;
}

.breathing-app .toggle-controls-btn__icon, .emdr-breathing-app .toggle-controls-btn__icon {
   width: 100%;
   height: 100%;
   -o-object-fit: contain;
   object-fit: contain;
   transition: all 300ms ease;
   transform: rotateZ(0);
}

.breathing-app .toggle-controls-btn__icon--light,
.emdr-breathing-app .toggle-controls-btn__icon--light,
.breathing-app .assistive-mode-off .toggle-controls-btn__icon--dark, 
.emdr-breathing-app .assistive-mode-off .toggle-controls-btn__icon--dark {
   display: none;
}

.breathing-app .toggle-controls-btn__icon--dark,
.emdr-breathing-app .toggle-controls-btn__icon--dark,
.breathing-app .assistive-mode-off .toggle-controls-btn__icon--light, 
.emdr-breathing-app .assistive-mode-off .toggle-controls-btn__icon--light {
   display: block;
}

.breathing-app .control-panel-open .toggle-controls-btn__icon,
.emdr-breathing-app .control-panel-open .toggle-controls-btn__icon {
   transform: rotateZ(120deg);
}

/* --------- tooltip --------- */
.toggle-controls-btn-tooltip {
   display: none;
   position: absolute;
   right: 14px;
   background: #fff;
   top: 50px;
   border-radius: 9px;
   padding: 16px;
   padding-right: 12px;
   width: 135px;
   font-size: 16px;
   /* font-weight: 600; */
   box-shadow: 2px 2px 10px #00000029;
   -webkit-animation: none 3s linear infinite;
   animation: none 3s linear infinite;
   -webkit-animation-fill-mode: both;
   animation-fill-mode: both;
   -webkit-animation-name: tooltipBouncingTop;
   animation-name: tooltipBouncingTop;
}

.toggle-controls-btn-tooltip.shown {
   display: block;
}

.toggle-controls-btn-tooltip.no-animation {
   -webkit-animation-name: none;
   animation-name: none;
}

.toggle-controls-btn-tooltip .tooltip-close {
   margin: 0;
   padding: 0;
   border: none;
   outline: none;
   width: 24px;
   height: 24px;
   text-align: center;
   line-height: 12px;
   border-radius: 20px;
   /* font-weight: 700; */
   background: #fff;
   /* color: #fff; */
   position: absolute;
   top: 7px;
   right: 7px;
   /* transform: translateY(-50%); */
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
}

.toggle-controls-btn-tooltip::after {
   content: "";
   position: absolute;
   display: block;
   border: 11px solid #fff;
   border-color: #0000 #0000 #fff #0000;
   border-left-width: 10px;
   border-right-width: 10px;
   top: -17px;
   right: 2px;
}

/* ------ custom check --------- */
.breathing-app .assistive-mode-check-label {
   position: relative;
   display: flex;
   align-items: center;
   width: -webkit-max-content;
   width: max-content;
   cursor: pointer;
}

.breathing-app .assistive-mode-check-label .custom-checkbox {
   position: relative;
   display: inline-block;
   width: 35px;
   height: 20px;
   margin-right: 8px;
   border-radius: 30px;
   border: 1px solid #3a4775;
   transition: background 200ms ease-in;
}

.breathing-app .assistive-mode-check-label .custom-checkbox::before {
   position: absolute;
   content: "";
   display: block;
   width: 14px;
   height: 14px;
   background: #3a4775;
   border-radius: 40px;
   right: calc(100% - 14px - 2px);
   top: 2px;
   transition: right 200ms ease-in;
}

.breathing-app .assistive-mode-check-label .assistive-mode-check:checked+.custom-checkbox {
   background: #3a4775;
}

.breathing-app .assistive-mode-check-label .assistive-mode-check:checked+.custom-checkbox::before {
   left: initial;
   right: 2px;
   background: #f3dbba;
}

.breathing-app__no-assistive-mode-screen {
   position: absolute;
   top: 0px;
   bottom: 0px;
   left: 0px;
   z-index: -1;
   display: none;
   width: 100%;
   border-radius: inherit;
   overflow: hidden;
}

.breathing-app__no-assistive-mode-screen img {
   width: 100%;
   height: 100%;
   -o-object-fit: cover;
   object-fit: cover;
}

.assistive-mode-off .breathing-app__no-assistive-mode-screen {
   display: block;
}

.assistive-mode-off .breathing-app__no-assistive-mode-screen::after {
   content: "";
   position: absolute;
   top: 0;
   bottom: 0;
   left: 0;
   display: block;
   width: 100%;
   background: #fff5e74f;
}

@media (min-width: 320px) {
   .breathing-app__controls {
      max-width: calc(100% - 28px);
   }
}

@media (min-width: 576px) {
   .breathing-app__controls {
      max-width: 420px;
   }

   .breathing-app__control-group--ratios .breathing-ratio-button .breathing-ratio-label {
      font-size: 14px;
   }
}

@media (max-width: 575.91px) {
   .breathing-app__breathing {
      margin-top: 35px;
   }
}

@media (max-width: 454.91px) {
   .breathing-app__breathing {
      margin-top: 60px;
   }

   .breathing-app__countdown {
      left: 50%;
      transform: translateX(-50%);
   }

   .breathing-app__cycles {
      left: 50%;
      transform: translateX(-50%);
      top: 38px;
   }
}

@-webkit-keyframes tooltipBouncingTop {

   0%,
   30%,
   40%,
   53.3%,
   66.667%,
   100% {
      -webkit-transform: translate3d(0, 0, 0);
      -moz-transform: translate3d(0, 0, 0);
      -ms-transform: translate3d(0, 0, 0);
      -o-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
      -webkit-animation-timing-function: ease-out;
      -moz-animation-timing-function: ease-out;
      -ms-animation-timing-function: ease-out;
      -o-animation-timing-function: ease-out;
      animation-timing-function: ease-out;
   }

   35% {
      -webkit-transform: translate3d(0, 25px, 0);
      -moz-transform: translate3d(0, 25px, 0);
      -ms-transform: translate3d(0, 25px, 0);
      -o-transform: translate3d(0, 25px, 0);
      transform: translate3d(0, 25px, 0);
      -webkit-animation-timing-function: ease-in;
      -moz-animation-timing-function: ease-in;
      -ms-animation-timing-function: ease-in;
      -o-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
   }

   46.667% {
      -webkit-transform: translate3d(0, 12.5px, 0);
      -moz-transform: translate3d(0, 12.5px, 0);
      -ms-transform: translate3d(0, 12.5px, 0);
      -o-transform: translate3d(0, 12.5px, 0);
      transform: translate3d(0, 12.5px, 0);
      -webkit-animation-timing-function: ease-in;
      -moz-animation-timing-function: ease-in;
      -ms-animation-timing-function: ease-in;
      -o-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
   }

   60% {
      -webkit-transform: translate3d(0, 6.25px, 0);
      -moz-transform: translate3d(0, 6.25px, 0);
      -ms-transform: translate3d(0, 6.25px, 0);
      -o-transform: translate3d(0, 6.25px, 0);
      transform: translate3d(0, 6.25px, 0);
      -webkit-animation-timing-function: ease-in;
      -moz-animation-timing-function: ease-in;
      -ms-animation-timing-function: ease-in;
      -o-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
   }
}

@keyframes tooltipBouncingTop {

   0%,
   30%,
   40%,
   53.3%,
   66.667%,
   100% {
      -webkit-transform: translate3d(0, 0, 0);
      -moz-transform: translate3d(0, 0, 0);
      -ms-transform: translate3d(0, 0, 0);
      -o-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
      -webkit-animation-timing-function: ease-out;
      -moz-animation-timing-function: ease-out;
      -ms-animation-timing-function: ease-out;
      -o-animation-timing-function: ease-out;
      animation-timing-function: ease-out;
   }

   35% {
      -webkit-transform: translate3d(0, 25px, 0);
      -moz-transform: translate3d(0, 25px, 0);
      -ms-transform: translate3d(0, 25px, 0);
      -o-transform: translate3d(0, 25px, 0);
      transform: translate3d(0, 25px, 0);
      -webkit-animation-timing-function: ease-in;
      -moz-animation-timing-function: ease-in;
      -ms-animation-timing-function: ease-in;
      -o-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
   }

   46.667% {
      -webkit-transform: translate3d(0, 12.5px, 0);
      -moz-transform: translate3d(0, 12.5px, 0);
      -ms-transform: translate3d(0, 12.5px, 0);
      -o-transform: translate3d(0, 12.5px, 0);
      transform: translate3d(0, 12.5px, 0);
      -webkit-animation-timing-function: ease-in;
      -moz-animation-timing-function: ease-in;
      -ms-animation-timing-function: ease-in;
      -o-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
   }

   60% {
      -webkit-transform: translate3d(0, 6.25px, 0);
      -moz-transform: translate3d(0, 6.25px, 0);
      -ms-transform: translate3d(0, 6.25px, 0);
      -o-transform: translate3d(0, 6.25px, 0);
      transform: translate3d(0, 6.25px, 0);
      -webkit-animation-timing-function: ease-in;
      -moz-animation-timing-function: ease-in;
      -ms-animation-timing-function: ease-in;
      -o-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
   }
}

@-webkit-keyframes backgroundFadeIn {
   from {
      background: #3a47753b;
   }

   to {
      background: #3A4775;
   }
}

@keyframes backgroundFadeIn {
   from {
      background: #3a47753b;
   }

   to {
      background: #3A4775;
   }
}