/* style facematch link */
a#facematch {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
	cursor: pointer;
    border-radius: 50%;
    background-color: #3E9DCC;
    box-shadow:  0 0 10px  rgba(0,0,0,0.6);
    -moz-box-shadow: 0 0 10px  rgba(0,0,0,0.6);
    -webkit-box-shadow: 0 0 10px  rgba(0,0,0,0.6);
    -o-box-shadow: 0 0 10px  rgba(0,0,0,0.6);
    background-image: url('/bundles/snappicadmin/images/facematch.png');
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999;
}
a#facematch:hover {
    -webkit-transform: rotate(360deg); /* Safari */
    transform: rotate(360deg);
}
p.strong-italic {
	font-weight: 600;
	font-style: italic;
}

/* style pop up modal */
.modal.in .modal-dialog {
    top: 2%;
}
.bootbox-facematch .modal-content .modal-header {
    background: none;
	border-bottom: none;
	text-align: center;
}
.bootbox-facematch .modal-content .modal-header .close {
    margin-top: 0;
    margin-left: -12px;
}
.bootbox-facematch .modal-content .img-responsive {
	margin: 0 auto;
    width: 30%;
    margin-top: 15px;
}
.bootbox-facematch .modal-content {
	border-radius: 15px;
	background: #3E9DCC;
}
.bootbox-facematch .modal-body {
	background: #ffffff;
}
.bootbox-facematch .modal-body .suspended {
	-webkit-box-shadow: 0 0 15px #888;
	border-radius: 15px;
	padding: 10% 15%;
	margin-top: -10%;
	margin-left: 5%;
	margin-right: 5%;
	background: #fff;
	z-index: 2;
}
.bootbox-facematch .modal-body .suspended-backdrop {
	height: 60px;
    margin-top: -31px;
	margin-left: -15px;
	margin-right: -15px;
	background: #3E9DCC;
	z-index: 1;
}
.bootbox-facematch .modal-footer {
    padding: 20px 15px 15px 15px;
}
.bootbox-facematch .modal-footer .facematch-btn {
    width: 80%;
    padding: 4%;
    margin: 0 auto;
    text-transform: uppercase;
    color: #fff;
	font-weight: bolder;
    border-color: #fff;
    background: #66b1d4;
    background-image: url('/bundles/snappicadmin/images/FacematchButton.png');
    background-repeat: no-repeat;
    background-position: 10% 50%;
	background-size: 10%;
}
.bootbox-facematch .modal-footer .facematch-nobtn {
	text-transform: capitalize;
	font-size: 16px;
	color: #fff;
	font-weight: bolder;
    background: transparent;
}
.bootbox-facematch .modal-body .suspended #reference_image {
    max-width: 230px;
    max-height: 250px;
    position: relative;
}
/* image processing spinner*/
.spinner {
    position: absolute;
    margin: auto;
    width: 100px;
    height: 100px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.spinner > div {
    background-color: #3E9DCC;
    height: 100%;
    width: 5px;
    margin: 1px;
    display: inline-block;
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
    20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }  20% {
           transform: scaleY(1.0);
           -webkit-transform: scaleY(1.0);
       }
}

.facematch-typewriter {
    white-space: nowrap;
    overflow: hidden;
    -webkit-animation: typing 3s steps(50, end) infinite;
    -moz-animation: typing 3s steps(50, end) infinite;
}
@-webkit-keyframes typing {
    from { width: 0 }
    to { width: 16.3em }
}

@-moz-keyframes typing {
    from { width: 0 }
    to { width: 16.3em }
}

.personal-gallery
{
    position: fixed;
    bottom: 10px;
    width: 80%;
    left: 5%;
    right: 5%;
    border-radius: 10px;
    max-width: 220px;
    margin-left: auto;
    margin-left: auto;
    margin-right: auto;
    height: 50px;
    border: 2px solid white;
    background: black;
    z-index: 999;
    color: white;
}

/**
 * Custom page gallery button styles
 */

.gallery-button-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px; /* space between buttons */
    z-index: 1000;
    padding: 0 10px;
}

.gallery-button {
    border-radius: 10px;
    height: 50px;
    border: 2px solid white;
    background: black;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
    max-width: 220px;
    flex: 1;
}

.gallery-button:hover {
    background: #333;
}

/* Legacy styles for backward compatibility */
.personal-gallery,
.multi-share,
.full-gallery {
    position: static !important;
    margin: 0 !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
}

@media (max-width: 520px) {
    .gallery-button-container {
        flex-direction: column;
        align-items: center;
    }

    .gallery-button {
        margin-bottom: 10px;
    }
}