#identityLivenessSdk canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(-1);
    /*visibility: hidden;*/
}

#alphasdk-video {
    transform: scaleX(-1);
    width: 100%;
    height: 100%;
    /*border-radius: 10px;*/
    background: gainsboro;
    display: flex;
    object-fit: cover;
    position: absolute;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#alphasdk-video-face {
    transform: scaleX(-1);
    width: 100%;
    height: 100%;
    /*border-radius: 10px;*/
    background: gainsboro;
    display: flex;
    object-fit: cover;
    /*mask: url(#videoMask);*/
    /*-webkit-mask: url(#videoMask);*/
    /*mask-size: cover;*/
    /*-webkit-mask-size: cover;*/
    /*mask-type: alpha;*/
    /*-webkit-mask-composite: destination-in;*/

    mask-image: url("/miniapp/identity-sdk/assets/img/face-detection-mask.svg");
    mask-repeat: no-repeat;
    mask-position: center calc(50% - 14px);
    mask-size: 260px 500px;

    -webkit-mask-image: url("/miniapp/identity-sdk/assets/img/face-detection-mask.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center calc(50% - 14px);
    -webkit-mask-size: 260px 500px;
}

.alphasdk-video-face {
    mask-image: none !important;
    -webkit-mask-image: none !important;
    mask-position: center calc(5%) !important;
    -webkit-mask-position: center calc(5%) !important;
    mask-size: 65% 500px !important;
    -webkit-mask-size: 65% 500px !important;
}

@media only screen and (min-width: 768px) {
    .alphasdk-video-face {
        -webkit-mask-position: center center !important;
    }
}

#alphasdk-video-show {
    /* transform: scaleX(-1); */
    width: 100%;
    height: 100%;
    /*border-radius: 10px;*/
    background: gainsboro;
    display: flex;
    direction: ltr;
    object-fit: cover;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg); /* Safari and Chrome */
    -moz-transform: rotateY(180deg); /* Firefox */
}

#alphasdk-video-show::-webkit-media-controls-enclosure {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg); /* Safari and Chrome */
    -moz-transform: rotateY(180deg); /* Firefox */
}

.yekanBakhBold {
    font-family: inherit;
    font-weight: bold;
}

.yekanBakhSemibold {
    font-family: inherit;
    font-weight: 600;
}

.yekanBakh {
    font-family: inherit;
}

.Vue-Toastification__toast-body {
    font-family: "Yekan Bakh" !important;
}

/* When setting CSS, remember that priority increases with specificity, so don't forget to select the existing classes as well */

.Vue-Toastification__toast--default.my-custom-toast-class {
    font-family: inherit;
}

/* Applied to the toast body when using regular strings as content */
.Vue-Toastification__toast-body.custom-class-1 {
    font-family: inherit;
}

/* Applied to a wrapper div when using a custom component as content */
.Vue-Toastification__toast-component-body.custom-class-2 {
    font-family: inherit;
}

.mask-group {
    width: 100% !important;
    position: relative;
}

.containerWithBgWhite {
    background-color: #e4e9f0 !important;
}

.alpha-video-wrapper {
    display: flex;
    width: 100%;
    /* height: 100%; */
    /* max-height: 320px; */
    position: relative;
    min-height: 420px;
    /*border: 4px solid transparent;*/
}

@media (max-width: 768px) {
    .alpha-video-wrapper {
        /*max-height: 320px;*/
    }
}

.alpha-countdown-container {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*bottom: 0;*/
    /*right: 0;*/
    /*background: rgba(0, 0, 0, 0.5);*/
    /*border-radius: 10px;*/
}

.alpha-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 6em;
    font-weight: bold;
}

.small-countdown {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    margin-top: 10px;
    transform: unset !important;
    font-size: 1rem !important;
}

.rects-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3em;
    direction: ltr;
    margin-top: 10px;
    width: 100%;
}

.rect {
    flex: 1;
    /* width: 10px; */
    height: 15px;
    margin: 0 4px;
    border-radius: 2px;
    background: #b0bdcd;
    transition: background-color 0.3s ease;
}

@keyframes stretch {
    100% {
        height: 100%;
    }
}

.rect.stretched {
    animation: stretch 0.3s ease forwards;
    background-color: #38c172 !important;
}

.hidden {
    display: none;
}

.countdown-animate {
    animation: ease-out countdown;
}

@keyframes countdown {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0%);
    }

    25% {
        opacity: 100%;
    }

    75% {
        opacity: 100%;
    }

    100% {
        transform: translate(-50%, -50%) scale(150%);
        opacity: 0;
    }
}

.rec-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e53935;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    will-change: border-radius, width, height;
    transition:
        border-radius 0.2s ease-out,
        width 0.2s ease-out,
        height 0.2s ease-out;
    z-index: 3;
    margin: 0;
    padding: 0;
}

.rec-button-outline {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: border-color 0.3s ease;
}

.rec-button.active {
    border-radius: 12px;
    width: 30px;
    height: 30px;
    background-color: #e53935;
    background-image: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

.record-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* width: 100px; */
    height: 85px;
    margin: 0 auto;
    margin-top: 45px;
}

.timer-counter {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    z-index: 3;
}

/* Remove old progress styles */
.progress-ring,
.progress-ring__circle,
.progress-ring__background,
.rec-button-progress {
    display: block;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.alpha-video-wrapper.recording {
    border: 4px solid red;
    border-radius: 15px;
    /*background-image: url("/miniapp/identity-sdk/assets/img/authorization/stop.svg");*/
}



.hidden {
    display: none;
}

.rec-button-container {
    bottom: 0px !important;
}

.consent-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.3rem 0;
}

.consent-hint {
    margin: 0.2rem 0;
}

.halfPath {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: halfPath 1s forwards;
}

.finalPath {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: finalPath 0.65s forwards;
}

@keyframes halfPath {
    from {
        stroke-dashoffset: 1500;
    }
    to {
        stroke-dashoffset: 1354;
    }
}

@keyframes finalPath {
    from {
        stroke-dashoffset: 1354;
    }
    to {
        stroke-dashoffset: 1204;
    }
}

@keyframes layerAnimation1 {
    0% {
        opacity: 1;
        transform: translateX(0%);
    }

    50% {
        opacity: 1;
        transform: translateX(0%);
    }
    75% {
        opacity: 1;
        transform: translateX(0%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes layerAnimation2 {
    0% {
        opacity: 1;
        transform: translateX(0%);
    }
    50% {
        opacity: 1;
        transform: translateX(-5%);
    }
    75% {
        opacity: 1;
        transform: translateX(-5%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes layerAnimation3 {
    0% {
        opacity: 1;
        transform: translateX(0%);
    }
    50% {
        opacity: 1;
        transform: translateX(-10%);
    }
    75% {
        opacity: 1;
        transform: translateX(-10%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes layerAnimation4 {
    0% {
        opacity: 1;
        transform: translateX(0%);
    }
    50% {
        opacity: 1;
        transform: translateX(-15%);
    }
    75% {
        opacity: 1;
        transform: translateX(-15%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes arrowMove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-30px);
    }
    100% {
        transform: translateX(0);
    }
}

.layer {
}

.layer:nth-child(1) {
    animation: layerAnimation1 2s ease-in-out infinite;
    position: absolute;
    transform: scaleX(-1);
}

.layer:nth-child(2) {
    animation: layerAnimation2 2s ease-in-out infinite;
    position: absolute;
    transform: scaleX(-1);
}

.layer:nth-child(3) {
    animation: layerAnimation3 2s ease-in-out infinite;
    position: absolute;
    transform: scaleX(-1);
}

.layer:nth-child(4) {
    animation: layerAnimation4 2s ease-in-out infinite;
    position: absolute;
    transform: scaleX(-1);
}

.arrow {
    animation: arrowMove 2s ease-in-out infinite;
}

svg {
    display: block;
    margin: auto;
}

/* Progress ring styles */
.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    z-index: 4;
    width: 72px;
    height: 72px;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.progress-ring__circle {
    stroke-dasharray: 195; /* Circumference of circle with radius 31px: 2 * PI * 31 */
    stroke-dashoffset: 195; /* Start with full offset (empty) */
    transform-origin: center;
    transition: stroke-dashoffset 0.5s linear;
    stroke-width: 5;
    stroke: #ffffff;
    stroke-linecap: round;
}

/* When recording is active */
.recording .rec-button-outline {
    border-color: rgba(0, 0, 0, 0.3); /* Change to translucent black */
}

.recording .progress-ring {
    opacity: 1; /* Show when recording */
    visibility: visible;
}

/* Override any conflicting styles */
.progress-ring,
.progress-ring__circle,
.progress-ring__background,
.rec-button-progress {
    display: block !important;
}

/* REC indicator styles */
.rec-indicator {
    display: none; /* Hidden by default */
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    top: 15px;
    left: 15px;
}

.rec-indicator.visible {
    display: flex !important;
}

.rec-indicator.hidden {
    display: none !important;
    visibility: hidden !important;
}

.rec-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #e53935;
    margin-right: 6px;
    animation: blink 1s infinite;
}

.rec-text {
    color: #e53935;
    font-size: 16px;
    font-weight: bold;
    margin-top: 2px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

.blur-video {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    transition:
        filter 0.5s ease-out,
        -webkit-filter 0.5s ease-out;
}

.alpha-rects-container {
    visibility: hidden;
    opacity: 0;
}

.rec-button-container, .record-button-wrapper, .asr-center-frame, .frame-border {
    visibility: hidden;
    opacity: 0;
}
