﻿@font-face {
    font-family: 'Eurostile';
    src: url('../fonts/eurostile/eurostile.ttf') format('truetype');
}

html, body {
    font-family: "Eurostile" !important;
}

#loadinglayer:active {
    overflow-x: scroll;
    overflow-y: hidden;
}
#loadinglayer {
	left: 0;
	overflow: hidden;
	top: 0;
	z-index: 9999999;
	height: 100%;
	position: fixed;
	width: 100%;
	background: #fff;
	opacity: 0.9;
	display: none;
	margin: 0px auto;
	text-align: center;
	color: #9e1c63 !important;
}

#loadinglayer div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.spin-container {
    text-align: center;
    margin-top: 100px;
}

.spin {
    border: 5px solid #868589;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: rotate 2s cubic-bezier(0.26, 1.36, 0.74, -0.29) infinite;
}

#loader2 {
    border: 3px solid #E0EDFF;
    width: 220px;
    height: 220px;
    position: relative;
    top: -210px;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: rotate2 2s cubic-bezier(0.26, 1.36, 0.74, -0.29) infinite;
}

@keyframes rotate {
    0% {
        transform: rotateZ(-360deg)
    }

    100% {
        transform: rotateZ(0deg)
    }
}

@keyframes rotate2 {
    0% {
        transform: rotateZ(360deg)
    }

    100% {
        transform: rotateZ(0deg)
    }
}
#section-valida {
    padding: 130px 0 70px;
    background: #f7f7f7;
    color: #212529;
}

/******** STEPS  ********/
#title-container {
    min-height: 460px;
    height: 100%;
    color: #fff;
    background-color: #23D1CD;
    text-align: center;
    padding: 105px 28px 28px 28px;
    box-sizing: border-box;
    position: relative;
    border-radius: 20px 0 0 20px;
    box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -webkit-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -moz-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
}

#title-container h2 {
    font-size: 45px;
    font-weight: 800;
    color: #fff;
    padding: 0;
    margin-bottom: 0px;
}

#title-container h3 {
    font-size: 25px;
    font-weight: 600;
    color: #82000a;
    padding: 0;
}

#title-container p {
    font-size: 13px;
    padding: 0 25px;
    line-height: 20px;
}
/* FORMS */

#qbox-container {
    position: relative;
    padding: 62px;
    min-height: 540px;
    box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -webkit-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    -moz-box-shadow: 10px 8px 21px 0px rgba(204, 204, 204, 0.75);
    background: #ffffff;
    border-radius: 0 0px 20px 0;
}

#steps-container {
    margin: auto;
    width: 500px;
    min-height: 250px;
    vertical-align: middle;
    align-items: center;
}

.step {
    display: none;
}

.step h4 {
    margin: 0 0 26px 0;
    padding: 0;
    position: relative;
    font-weight: 500;
    font-size: 23px;
    font-size: 1.4375rem;
    line-height: 1.6;
}

.step p {
    color: #212529 !important;
}

button.validar-btns,
button#next-btn,
button#prev-btn,
button#val-btn {
    font-size: 17px;
    font-weight: bold;
    position: relative;
    width: 160px;
    height: 50px;
    background: #23D1CD;
    margin: 0 auto;
    margin-top: 40px;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transition: color .3s;
    text-align: center;
    color: #fff;
    border: 0;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

button:disabled,
button[disabled] {
    background-color: #cccccc !important;
    color: #666666 !important;
}

button.validar-btns:after,
button#next-btn:after,
button#prev-btn:after,
button#val-btn:after {
    position: absolute;
    top: 90%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #148381;
    content: "";
    z-index: -2;
    transition: transform .3s;
}

button.validar-btns:hover::after,
button#next-btn:hover::after,
button#prev-btn:hover::after,
button#val-btn:hover::after {
    transform: translateY(-80%);
    transition: transform .3s;
}

.progress {
    border-radius: 0 20px 0 0;
}

#input-container {
    display: inline-block;
    box-shadow: none !important;
    margin-top: 36px !important;
}
#q-box__buttons {
    text-align: center;
}

input[type="text"],
input[type="email"] {
    padding: 8px 14px;
}

    input[type="text"]:focus,
    input[type="email"]:focus {
        border: 1px solid #DC3545;
        border-radius: 5px;
        outline: 0px !important;
        -webkit-appearance: none;
        box-shadow: none !important;
        -webkit-transition: all 0.15s ease-in-out;
        -moz-transition: all 0.15s ease-in-out;
        -o-transition: all 0.15s ease-in-out;
        transition: all 0.15s ease-in-out;
    }

.form-check-input:checked[type=radio],
.form-check-input:checked[type=radio]:hover,
.form-check-input:checked[type=radio]:focus,
.form-check-input:checked[type=radio]:active {
    border: none !important;
        -webkit-outline: 0px !important;
    box-shadow: none !important;
}

.form-check-input:focus,
input[type="radio"]:hover {
    box-shadow: none;
    cursor: pointer !important;
}

#success {
    display: none;
}

#success h4 {
    color: #DC3545;
}

.back-link {
    font-weight: 700;
    color: #148381;
    text-decoration: none;
    font-size: 18px;
}

.back-link:hover {
    color: #105c5a;
}

/* PRELOADER */

#preloader-wrapper {
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}

#preloader {
    background-image: url('../img/preloader.png');
    width: 120px;
    height: 119px;
    border-top-color: #fff;
    border-radius: 100%;
    display: block;
    position: relative;
    top: 50%;
    left: 50%;
    margin: -75px 0 0 -75px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    z-index: 1001;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#preloader-wrapper .preloader-section {
    width: 51%;
    height: 100%;
    position: fixed;
    top: 0;
    background: #F7F9FF;
    z-index: 1000;
}

#preloader-wrapper .preloader-section.section-left {
    left: 0
}

#preloader-wrapper .preloader-section.section-right {
    right: 0;
}

.loaded #preloader-wrapper .preloader-section.section-left {
    transform: translateX(-100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #preloader-wrapper .preloader-section.section-right {
    transform: translateX(100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded #preloader {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.loaded #preloader-wrapper {
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s 1s ease-out;
}
/* MEDIA QUERIES */

@media (min-width: 990px) and (max-width: 1199px) {
    #title-container {
        padding: 80px 28px 28px 28px;
    }

    #steps-container {
        width: 85%;
    }
}

@media (max-width: 991px) {
    #title-container {
        padding: 30px;
        min-height: inherit;
    }
}

@media (max-width: 767px) {
    #qbox-container {
        padding: 30px;
    }

    #steps-container {
        width: 100%;
        min-height: 300px;
    }

    #title-container {
        padding-top: 50px;
    }
}

@media (max-width: 560px) {
    #qbox-container {
        padding: 40px;
        border-radius: 0;
    }

    #title-container {
        padding-top: 45px;
        border-radius: 0;
    }

    .progress {
        border-radius: 0;
    }
}

/******* MASTER *********/

.input-group {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

input[type=file]:focus, .custom-file-input:focus ~ .custom-file-label {
    cursor: pointer;
}

.custom-file,
.custom-file-label,
.custom-file-input {
    cursor: pointer;
}

    .custom-file-input ~ .custom-file-label::after {
        content: "Seleccionar";
    }

.help-block {
    color: #dc3545 !important;
    font-size: 0.8rem;
    font-weight: 500;
}

.has-error > input, .has-error > div > input {
    border: 1px #ff0000 solid;
}

.snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 99999;
    bottom: 30px;
    font-size: 17px;
    left: 50%;
    white-space: nowrap;
    overflow: hidden;
}

    .snackbar.show {
        visibility: visible;
        -webkit-animation: fadein 0.5s, fadeout 0.5s 4s;
        animation: fadein 0.5s, fadeout 0.5s 4s;
    }

footer {
    width: 100%;
    bottom: 0;
    text-align: center;
    padding-top: 30px;
    background-color: #0c5553;
}


/************/
.btnStyleIniciar {
    background-color: #a60000;
    border-color: #a60000;
    color: #ffffff;
}

    .btnStyleIniciar:hover {
        background-color: #1dae5a;
        border-color: #1dae5a;
        color: #ffffff;
    }

    .btnStyleIniciar:focus {
        background-color: #a60000 !important;
        border-color: #a60000 !important;
        color: #ffffff;
    }
/**************     BTN PROGRESS     **********/

.progress-btn {
    position: relative;
    width: 150px;
    height: 50px;
    display: inline-block;
    background: #00847A;
    border-color: #00847A;
    color: #fff !important;
    font-weight: normal;
    font-size: 1rem;
    border-radius: .25rem;
    transition: all 0.4s ease;
    cursor: pointer;
}


    .progress-btn > .btnProgress {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        line-height: 50px;
        text-align: center;
        z-index: 10;
        opacity: 1;
    }

    .progress-btn > .progress {
        width: 0%;
        z-index: 5;
        background: #17726c;
        border-color: #17726c;
        opacity: 0;
        transition: all 0.3s ease;
        height: 100%;
    }

    .progress-btn.active > .progress {
        opacity: 1;
        animation: progress-anim 4.8s ease 1s;
    }

    .progress-btn[data-progress-style='fill-back'] > .progress {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
    }

@keyframes progress-anim {
    100% {
        width: 100%;
    }
}

@keyframes progress-indefinite-anim {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 0%;
    }
}
/**************     END     **********/

/**************     DNI     **********/
#webcam {
    width: 100% !important;
    height: auto !important;
}

#canvas {
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 350px;
}

.StepTomarFoto > .row > div > p {
    font-size: 1em;
    line-height: 1.2;
    width: 100%;
    height: 35px;
    margin-top: 1px;
    color: #A7A7A7;
    display: flex;
    background-color: #fff;
    font-size: 22px;
    justify-content: center;
    align-items: center;
    width: 510px;
    margin: 15px auto 0 auto;
    border-bottom: 2px solid #74D288;
}

@media (min-width: 300px) and (max-width:320px) {

    #canvas {
        width: 205px;
    }

    .StepTomarFoto > .row > div > p {
        line-height: 1.2;
        width: 100% !important;
        height: 45px;
        margin-top: 1px;
        color: #9e1c63;
        display: flex;
        background-color: #fff;
        justify-content: center;
        align-items: center;
        margin: 30px auto 0 auto;
        border-bottom: 2px solid #9e1c63;
        padding-bottom: 30px;
    }
}

@media (min-width: 321px) and (max-width: 390px) {
    #canvas {
        width: 260px;
    }

    .StepTomarFoto > .row > div > p {
        width: 100% !important;
        line-height: 1.2;
        height: 45px;
        margin-top: 1px;
        color: #9e1c63;
        display: flex;
        background-color: #fff;
        justify-content: center;
        align-items: center;
        margin: 25px auto 0 auto;
        border-bottom: 2px solid #9e1c63;
        padding-bottom: 20px;
    }
}

@media (min-width: 390px) and (max-width:532px) {
    #canvas {
        width: 270px;
    }

    .StepTomarFoto > .row > div > p {
        width: 100% !important;
        line-height: 1.2;
        height: 45px;
        margin-top: 1px;
        color: #9e1c63;
        display: flex;
        background-color: #fff;
        justify-content: center;
        align-items: center;
        margin: 25px auto 0 auto;
        border-bottom: 2px solid #9e1c63;
        padding-bottom: 20px;
    }
}
