.virtual-tryon-button {
  display: inline-block;
  background-color: #0074d9;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}

.virtual-tryon-button:hover {
  background-color: #005fa3;
}


#vto_modal {
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    z-index: 94000;
    display: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}


#vto_content {
    position: fixed;
/*    height: 85vh;
    width: 85vh;*/
    height: 100%;
    width: 100%;
    background-color: rgb(255, 255, 255);
/*    top: 50%;*/
/*    left: 50%;*/
/*    -webkit-transform: translate(-50%, -50%);*/
/*    transform: translate(-50%, -50%);*/
/*    border-radius: 10px;*/
}



/*#snap_button {
    display: flex;
    color: white;
    padding: 1em;
     border-radius: 0.2em; 
    text-align: center;
     width: 170px;
    border-radius: 10px;
    cursor: pointer;
    justify-content: center;
    color: white;
    background-color: #ff8f00;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}*/




#circle_top_right {
    position: absolute;
    top: 0;
    right: 0;
    height: 20em;
    width: 10em;

    background-image: url('circle_top_right.webp');
    background-size: contain;       /* or contain */
    background-position: top right; 
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    transform-origin: top right;
}

#circle_top_right:hover {
  transform: scale(1.1);
}

#circle_bottom_left {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 20em;
    width: 10em;
    
    background-image: url('circle_bottom_left.webp');
    background-size: contain;       /* or contain */
    background-position: left bottom;  /* position the image */
    background-repeat: no-repeat; /* prevent tiling */
    transition: transform 0.3s ease;
    transform-origin: bottom left;
}


#circle_bottom_left:hover {
  transform: scale(1.1);
}


#snap_button > div:first-child {
    mask: url(camera.svg) no-repeat center;
     background-color: white; 
    width: 1.8em;
    height: 1.5em;
    display: block;
    margin-right: 0.5em;
}

#snap_button > div:last-child {
    line-height: 1.5em;
    text-transform: uppercase;
    font-weight: 600;
    font-family: sans-serif;
    margin-top: .1em;

}




#canvas_snap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
/*    border-radius: 10px;*/
    background-color: #383838;

    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;

}

/*#canvas_snap {
    height: 100%;
    width: 100%;
    background-color: #383838;
}*/



.fade_out {
    opacity: 0;
}



#button_start {
    position: absolute;
    width: 180px;
    height: 50px;
    text-align: center;
    color: white;
    bottom: 5%;
    font-size: 1em;
    border-radius: 2em;
    border: 2px solid white;
    margin: 1em 0.2em;
    /* padding: 1em 5.5em; */
    background-color: #7577ff;
    transition: cubic-bezier(0, 2.28, 0.95, 0.69) 0.5s;
    /* transition: transform .3s; */
    transform: translate(-50%, -50%);
    top: 60%;
    left: 50%;
}




#bottom_buttons {
    display: none;
    position: absolute;
    bottom: 8%;
    width: 100%;
    justify-content: center;
    gap: 1.5em;
/*    opacity: 0;*/
}

#snap_switch_cam {
    display: none;
    width: 5em;
    height: 5em;
    color: white;
    border-radius: 2.5em;
    background-color: white;
    box-shadow: 0px 0px .5em rgba(0, 0, 0, .3);
    transform: scale(.7);
    transition: transform .3s ease-in-out;
}

#snap_switch_cam div {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E") no-repeat center;
    background-color: black;
    height: 100%;
    width: 100%;
    display: block;
    transform: scale(1.4);
}

#photo_snap {
    /*display: none;*/
    width: 5em;
    height: 5em;
    color: white;
    border-radius: 2.5em;
    background-color: white;
    box-shadow: 0px 0px .5em rgba(0, 0, 0, .3);
    transform: scale(.7);
    transition: transform .3s ease-in-out;
}

#photo_snap div {
    mask: url(camera.svg) no-repeat center;
    background-color: black;
    height: 100%;
    width: 100%;
    display: block;
    transform: scale(1.4);
}

#capture_snap {
/*    display: flex;*/
/*    position: absolute;*/
    width: 5em;
    height: 5em;
    color: white;
    border-radius: 2.5em;
    background-color: white;
    box-shadow: 0px 0px .5em rgba(0, 0, 0, .3);
/*    left: 50%;*/
/*    justify-content: center;*/
/*    align-items: center;*/
    transform: scale(1);
    transition: transform .3s ease-in-out;
}

#capture_snap div {
    background-color: red;
    height: 100%;
    width: 100%;
    display: block;
    transform: scale(1.4);
    position: absolute;
}




#share_close {
    display: none;
    width: 5em;
    height: 5em;
    color: white;
    border-radius: 2.5em;
    background-color: white;
    box-shadow: 0px 0px .5em rgba(0, 0, 0, .3);
    transform: scale(.7);
    transition: transform .3s ease-in-out;
}

#share_close div {
    mask: url(x.svg) no-repeat center;
    background-color: black;
    height: 100%;
    width: 100%;
    display: block;
    transform: scale(1.7);
}


#share_save {
    display: none;
    width: 5em;
    height: 5em;
    color: white;
    border-radius: 2.5em;
    background-color: white;
    box-shadow: 0px 0px .5em rgba(0, 0, 0, .3);
    transform: scale(.7);
    transition: transform .3s ease-in-out;
}

#share_save div {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4c0 1.1-0.9 2-2 2H5c-1.1 0-2-0.9-2-2v-4'/%3E%3Cpolyline points='7,10 12,15 17,10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") no-repeat center;
    background-color: black;
    height: 100%;
    width: 100%;
    display: block;
    transform: scale(1.4);
}


#share_share {
    display: none;
    width: 5em;
    height: 5em;
    color: white;
    border-radius: 2.5em;
    background-color: white;
    box-shadow: 0px 0px .5em rgba(0, 0, 0, .3);
    transform: scale(.7);
    transition: transform .3s ease-in-out;
}

#share_share div {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E") no-repeat center;
    background-color: black;
    height: 100%;
    width: 100%;
    display: block;
    transform: scale(1.6);
}




/*#share_close {
    position: absolute;
    right: 0px;
    top: 4em;
    border-radius: 10px 0 0 10px;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    width: 3em;
    height: 3em;
}

#share_close div {
    mask: url(x.svg) no-repeat center;
    background-color: white;
    height: 100%;
    width: 100%;
    display: block;
}*/


/*#share_save {
    width: 3em;
    height: 3em;
}

#share_share {
    display: none;
    cursor: pointer;
    width: 3em;
    height: 3em;
}



#save_block {
    position: absolute;
    bottom: 3em;
    cursor: pointer;
    left: 50%;
    transform: translate(-50%,0);
    display: none;
}

#save_block div {
    margin: 3em 1em;
}*/







#capture.scaled {
    transform: scale(1);  /* Scale to 20% */
}
#capture.opacity {
    opacity: 1;  /* Scale to 20% */
}


/*.fade_in {
    opacity: 1;
}*/



#record_svg {
    display: none;
    position: absolute;
    width: 5em;
    height: 5em;
    color: white;
/*    bottom: 3vh;*/
    left: 50%;
    transform: translate(-50%, 0) scale(1.3) rotate(-90deg);
    transition: opacity .5s linear;
}


#record_svg_full {
    display: none;
    position: absolute;
    opacity: .3;
    width: 5em;
    height: 5em;
    color: white;
/*    bottom: 3vh;*/
    left: 50%;
    transform: translate(-50%, 0) scale(1.3) rotate(-90deg);
    transition: opacity .5s linear;
}




.circle_border {
    animation: drawCircle 14s linear infinite;
}

@keyframes drawCircle {
    from {
        stroke-dashoffset: 565; /* Начальный отступ, полностью скрыта */
    }
    to {
        stroke-dashoffset: 0;   /* Конечный отступ, граница нарисована */
    }
}


  .circle-with-shadow {
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
  }



#canvas {
    height: 100%;
    width: 100%;
}



#loader {
    display: none;
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #993333;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/*.center {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}*/


#snap_logo {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
/*    width: 5em;*/
    height: 1.5em;
    z-index: 999;
/*    opacity: .5;*/

}


.logo {
    width: 250px;
    z-index: 999;

}




#snap_close {
    position: absolute;
    right: 0px;
    top: 0px;
/*    border-radius: 0 10px 0 10px;*/
    border-radius: 0 0 0 10px;
    background-color: rgba(0, 0, 0, 0.5);
/*    padding: .5em;*/
    cursor: pointer;
    width: 3em;
    height: 3em;
    z-index: 95000;
}

#snap_close div {
    mask: url(x.svg) no-repeat center;
    background-color: white;
    height: 100%;
    width: 100%;
    display: block;
}




.preview_bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9999;

}

.preview {
    position: absolute;
      width: 90%;
      height: 90%;
      bottom: 0;
      left: 50%;
      margin-right: -50%;
      transform: translate(-50%, 0);
      filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));

}




.disableSelection {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: 0;
    z-index: 99999;
}



.preview img {
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 0 0;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.5);
    /*          object-fit: contain;*/

}

.preview video {
    width: 100%;
    height: 100%;
    /*          object-fit: contain;*/
    border-radius: 10px 10px 0 0;

}






#sound_switch {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    border-radius: 10px 0;
    background-color: white;
    cursor: pointer;
    width: 3em;
    height: 3em;
}

#sound_switch div {
    mask: url(volume-x.svg) no-repeat center;
    background-color: black;
    height: 100%;
    width: 100%;
    display: block;
}

#sound_lens_switch {
    display: none;
    position: absolute;
    left: 0px;
    top: 40px;
    border-radius: 0 0 10px 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    width: 3em;
    height: 3em;
}

#sound_lens_switch div {
    mask: url(volume-x.svg) no-repeat center;
    background-color: white;
    height: 100%;
    width: 100%;
    display: block;
}









#svg_loading {
  animation: rotateAnimation 5s linear infinite; /* Rotate infinitely */
  transform-origin: center;  /* Optional: ensure it rotates around the center */
}

@keyframes rotateAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



#load_num {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: white;
    font-weight: 600;

}


/* For older browsers (e.g., Safari) */
.no-select {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Modern browsers */
}






#vto_loading_overlay {
    display: none;
    color: #7577ff;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: #383838;
    z-index: 999999;
    border-radius: 10px;
}

#loading_flex {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}


#vto_loading {
    display: block;
    text-transform: uppercase;
    font-weight: 600;
    font-family: sans-serif;
}



.lds-grid {
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: auto;
    margin-bottom: 2em;
}

.lds-grid div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    animation: lds-grid 1.2s linear infinite;
    display: block;
}

.lds-grid div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}

.lds-grid div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}

.lds-grid div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}

.lds-grid div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}

.lds-grid div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}

@keyframes lds-grid {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}








@media screen and (max-width: 768px) {

    #vto_content {
        position: fixed;
        height: 100%;
        width: 100%;
        top: 0px;
        left: 0px;
/*        border-radius: 0px;*/
/*        -webkit-transform: translate(0%, 0%);*/
/*        transform: translate(0%, 0%);*/
        z-index: 94000;
    }


    #canvas_snap {
        border-radius: 0px;
    }

    #vto_close {
        position: absolute;
        right: 0px;
        top: 0px;
        border-radius: 0 0 0 10px;
        background-color: rgba(0, 0, 0, 0.5);
        padding: .5em;
        cursor: pointer;
        width: 3em;
        height: 3em;
        z-index: 95000;
    }


    #vto_loading_overlay {
      border-radius: 0px;
    }


}



