@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "SF Pro Display", sans-serif;
    overflow: hidden;
    background: #333;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.camera-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #333;
}
#video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.loading-text {
    font-size: 16px;
    margin-top: 10px;
}
/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    color: white;
}
.loading-overlay.hidden {
    display: none;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
.recognizition-label {
    position: absolute;
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 9px;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.08px;
    text-align: center;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 190px;
    height: 32px;
}
.recognizition-label.success {
    border: 1px solid #1dd882;
}
.information-container {
    position: absolute;
    bottom: 32vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #333;
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid #ffa41b;
    height: 121px;
    width: 311px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 20px 0;
}
.information-container .profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 21px;
    margin-bottom: 7px;
}
.information-container .profile-container img {
    border-radius: 999px;
}
.information-container .profile-container .label-container {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
}
.information-container .additional-container {
    display: flex;
    column-gap: 10px;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.08px;
}
.information-container .additional-container .additional-label {
    align-self: flex-end;
}
.action-container {
    position: absolute;
    bottom: 18vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 17px;
}
.action-container .btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 311px;
    height: 46px;
    background-color: #ffa41b;
    color: #333;
    border-radius: 6px;
    outline: none;
    border: none;
    box-shadow: none;
    font-weight: 400;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.43px;
}
.action-container .btn-primary:active {
    background-color: #cc7a00 !important;
}
.action-container .btn-primary:disabled,
.action-container .btn-primary[disabled] {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}
.action-container .action-label {
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.08px;
    color: #333;
}
