@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {

    /* Colors: */
    --unnamed-color-f2f0e6: white;
    --unnamed-color-bf2428: #bf2428;
    --color-primary: #FFDA23;
    --color-secondary: #00047D;

    /* Font/text values */
    --unnamed-font-family-apex-serif: "Open Sans";
    --unnamed-font-style-normal: normal;
    --unnamed-font-weight-bold: bold;
    --unnamed-font-size-12: 12px;
    --unnamed-font-size-16: 16px;
    --unnamed-font-size-18: 18px;
    --unnamed-character-spacing-0: 0px;
    --unnamed-line-spacing-16: 16px;
    --unnamed-line-spacing-21: 21px;
}


.rotate {
    animation: rotation 3s infinite linear;
    height: 2em;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.html,
body {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    letter-spacing: 0px;
    overflow-x: hidden;
    color: white;
    background-color: var(--color-secondary); /* #bf2428; */
}

body {
    overscroll-behavior-y: contain;
}

#mainContainer {
    width: 100%;
}

.header {
    width: 100%;
    height: 3.7em;
    background: #020F39 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    opacity: 1;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    z-index: 1000;
}

.headerDistancer {
    height: 4em;
}

.logo {
    margin-top: 8px;
    margin-left: 3vw;
    width: 90px;
}

#close {
    position: absolute;
    right: calc(3vw + 3px);
    top: 20px;
}

.stepContainer {
    top: 60px;
    left: 10px;
    width: 94vw;
    background: white 0% 0% no-repeat padding-box;
    opacity: 1;
    margin: 3vw;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.stepText {
    padding-left: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 700;
}

.stepText.left {
    padding-right: 1em;
    padding-left: 0;
}

.stepTitle {
    letter-spacing: var(--unnamed-character-spacing-0);
    text-align: left;
    font: normal normal normal 19px/27px "Open Sans";
    letter-spacing: 0px;
    color: black;
    text-transform: uppercase;
    opacity: 1;
    margin-bottom: 0px;
    font-weight: 800;
}

.stepDescription {
    letter-spacing: var(--unnamed-character-spacing-0);
    text-align: left;
    letter-spacing: 0px;
    color: black;
    margin-top: 5px;
}

.stepPicture {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 1em;
    padding-left: 2em;
}

.stepPicture.left {
    padding-right: 2em;
    padding-left: 1em;
}

.divider {
    display: flex;
    flex-direction: row;
    width: 94vw;
    margin: 3vw;
    margin-top: 1em;
}

.divider .line {
    color: #FEDE1F;
    flex-grow: 1;
}

.divider .text {
    flex-grow: 0;
    margin: 0 2em;
}

.divider hr {
    border-color: #FEDE1F;
}

#startScan {
    margin: 0 auto;
    display: block;
    border: 0;
    color: var(--color-secondary);
    width: 12em;
    height: 3em;
    background: var(--color-primary) 0% 0% no-repeat padding-box;
    opacity: 1;
    font: var(--unnamed-font-style-normal) normal normal 20px/28px "Open Sans";
    text-transform: uppercase;
    transition: 0.3s;
    font-weight: 800;
}

#startScan:disabled,
#startScan[disabled] {
    opacity: .85;
}

.uploadText {
    width: 94vw;
    margin: 3vw;
    text-align: center;
}

.uploadTitle {
    font: normal normal normal 19px/27px "Open Sans";
    letter-spacing: 0px;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.uploadDescription {
    margin-top: 0.3em;
    color: white;
    font-weight: 600;
}

.uploadPictureLabel {
    margin: 0 auto;
    display: block;
    border: 0;
    color: var(--color-secondary);
    width: 9em;
    height: 3em;
    background: var(--color-primary) 0% 0% no-repeat padding-box;
    opacity: 1;
    font: var(--unnamed-font-style-normal) normal normal var(--unnamed-font-size-18)/26px "Open Sans";
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

#uploadPicture {
    display: none;
}

#uploadPicture1 {
    display: none;
}

#uploadPicture2 {
    display: none;
}

.enableCameraText {
    font: normal normal bold 34px/49px Apex Serif;
    color: #ffffff;
    width: 90vw;
    padding: 0 5vw;
    margin-top: 70px;
    text-align: center;
}

.footer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background: #020F39 0% 0% no-repeat padding-box;
    color: #FFFFFF;
    text-decoration: underline;
    text-align: center;
    padding: 0.2em;
    z-index: 1000;
}

.footer a {
    margin-left: 0.3em;
}

.footerDistance {
    height: 3em;
}

#video {
    z-index: 1;
    position: fixed;
    margin: 0 auto;
}

#videoOverlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.centerHole {
    position: absolute;
    height: 97%;
    border-radius: 110px;
    border: 64px solid rgba(0, 0, 0, .3);
    box-sizing: content-box;
    width: 95%;
}

.roundBtn {
    border-radius: 40px;
    width: 80px;
    height: 80px;
    background-color: white;
}

#imageQuality {
    font-size: 30px;
    color: rgb(106, 6, 6);
    text-align: center;
    line-height: 80px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: url('assets/ok_small.svg');
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: left 20px top 21px;
}

#capture {
    position: absolute;
    bottom: 0;
    right: 0;
    background-image: url('assets/camera.svg');
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: left 20px top 21px;
}

.hints {
    text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
    text-align: center;
    color: white;
    width: 100vw;
    font-size: 3em;
}

#instructions {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    color: white;
    overflow-y: scroll;
}

.instructionsContent {
    height: 100%;
    margin-left: 4vw;
    margin-right: 4vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instructionsHeader {
    font-weight: bold;
    font-size: 20px;
}

.instructionStep {
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: center;
    margin-left: 1em;
    margin-right: 1em;
}

.instructionStep img {
    margin-top: 1em;
    margin-bottom: 1em;
}

.stepChange {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: #FEDE1F;
    display: inline-block;
    background-repeat: no-repeat;
}

#nextInstructionStep {
    background-image: url('assets/arrow_right.svg');
    background-position: bottom 8px right 9px;
}

#previousInstructionStep {
    background-image: url('assets/arrow_left.svg');
    background-position: bottom 8px right 11px;
}

.instructionStepsButtons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
}

.instructionStepsButtons .number {
    margin: 0 1.5em;
}

#instructionStepNumber {
    font-weight: bold;
}

.instructionIcon {
    max-width: 50vh;
    flex-shrink: 1;
}

#closeInstructions {
    display: none;
    margin: 0 auto;
    margin-top: 1em;
    border: 0;
    color: white;
    width: 8em;
    height: 4em;
    background: #B91C25 0% 0% no-repeat padding-box;
    box-shadow: 0px -3px 12px #00000038;
    opacity: 1;
    font: var(--unnamed-font-style-normal) normal normal 16px/22px "Open Sans";
    text-transform: uppercase;
}

#closeInstructions:disabled,
#closeInstructions[disabled] {
    opacity: .85;
}

#validatePictureContainer {
    margin-left: 4vw;
    margin-right: 4vw;
}

.validationTitle {
    font: normal normal normal 19px/27px "Open Sans";
    letter-spacing: 0px;
    color: white;
    margin-bottom: 0px;
}

#takenPicture {
    width: 100%;
}

#takenPicture canvas {
    width: 100%;
}

.validateButtons {
    margin-top: 2em;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 2em;
}

.validateButtons button {
    letter-spacing: 0px;
    color: white;
    width: 9em;
    height: 4em;
    border: 0;
    box-shadow: 0px -3px 12px #00000038;
    font: var(--unnamed-font-style-normal) normal normal 16px/22px "Open Sans";
    text-transform: uppercase;
}

#oneMoreTime {
    background: #D7A664 0% 0% no-repeat padding-box;
}

#uploadTakenPicture {
    background: var(--color-primary) 0% 0% no-repeat padding-box;
}

#cameraBlockedContainer {
    margin-left: 4vw;
    margin-right: 4vw;
}

.blockedCameraInfo {
    padding: 1em;
    background: #614747 0% 0% no-repeat padding-box;
    margin-top: 1em;
    margin-bottom: 1em;
}

.blockedCameraInfoTitle {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0px;
    color: #FFFFFF;
}

.blockedCameraInfoDesciption {
    letter-spacing: 0px;
    color: #FFFFFF;
}

.alternativeUploadText {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0px;
    color: #ffffff;
    margin-top: 3em;
}

.blockedUploadPicture {
    background: #B91C25 0% 0% no-repeat padding-box;
    padding: 1em;
}

.blockedUploadTitle {
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0px;
    color: #FFFFFF;
}

.blockedUploadDescription {
    letter-spacing: 0px;
    color: #FFFFFF;
}

#uploadPictureFromDevice {
    margin: 0 auto;
    margin-top: 2em;
    margin-bottom: 2em;
    display: block;
    border: 0;
    color: #FFFFFF;
    width: 15em;
    height: 4em;
    background: #F99700 0% 0% no-repeat padding-box;
    box-shadow: 0px -3px 12px #00000038;
    opacity: 1;

}

.imageQualityStack {
    display: flex;
    flex-direction: column-reverse;
    width: 40px;
    height: 50px;
    justify-content: space-between;
    gap: 5%;
    margin: 14px auto;

}

.stack {
    background-color: #F99700;
    height: 16%;
}

#stack1 {
    width: 40%;
}

#stack2 {
    width: 60%;
}

#stack3 {
    width: 80%;
}

#stack4 {
    width: 100%;
}

#initialRect {
    margin: 0 auto;
    width: 70vw;
    height: calc(80vh - 70px);
    border: 5px dashed #48f948;
    position: fixed;
    top: 20px;
    left: 15vw;
}

#checkImg {
    margin: 0 auto;
    width: 70vw;
    margin-top: 30vh;
    display: none;
}

#preload {
    display: none;
}

#helpInstructions {
    display: none;
    top: 0;
    left: 0;
    background-color: #bf2428;
    color: white;
    width: 100%;
    height: 100%;
    z-index: 10;
}

#helpInstructions .stepTitle {
    text-align: center;
    color: white;
}

#closeHelpInstructions {
    display: block;
    margin: 0 auto;
    margin-top: 2rem;
    border: 0;
    color: #6E0002;
    width: 6em;
    height: 2em;
    background: #FEDE1F 0% 0% no-repeat padding-box;
    box-shadow: 0px -3px 12px #00000038;
    opacity: 1;
    font: normal normal 600 24px/24px Source Sans Pro;
    text-transform: uppercase;
    font-weight: 800;
}

#nextHelpInstructionStep {
    background-image: url('assets/arrow_right.svg');
    background-position: bottom 8px right 9px;
}

#previousHelpInstructionStep {
    background-image: url('assets/arrow_left.svg');
    background-position: bottom 8px right 11px;
}

.instructionsSmallTitle {
    margin-top: 0;
}

a.text-link,
a.text-link:hover,
a.text-link:active,
a.text-link:visited,
a.text-link:focus {
    color: #FEDE1F;
}
