@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css");

:root {
    --width: 500px;
}

* {
    font-family: "Open Sans";
    padding: 0;
    margin: 0;
}

body {
    background: linear-gradient(-45deg, #1d6368, #1d7380, #43dcb1, #2ae0e3);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.wrapper {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container-center {
    background: #fff;
    width: var(--width);
    margin: auto;
}

@media(max-width: 720px) {
    .container-center {
        width: 100%;
    }
}

.container-cam {
    background: #fff;
}

.cam-header {
    background: #57b1e6;
    padding: 15px;
}

.card-header .logo {
    background: #eee;
    border-radius: 50%;
    margin-right: 5px;
    float: left;
    width: 40px;
    height: 40px;
}

.cam-wrapper {
    position: relative;
}

video {
    border-radius: 10px;
}

.title {
    font-size: 17px;
    font-weight: bold;
}

.time {
    font-size: 16px;
    font-weight: bold;
}

.frame-top {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
}

.frame-bottom {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
}

.corner-lt {
    position: absolute;
    top: 50px;
    left: 50px;
    border-top: 5px solid #57b1e6;
    border-left: 5px solid #57b1e6;
    width: 50px;
    height: 50px;
    z-index: 999;
}

.corner-rt {
    position: absolute;
    top: 50px;
    right: 50px;
    border-top: 5px solid #57b1e6;
    border-right: 5px solid #57b1e6;
    width: 50px;
    height: 50px;
    z-index: 999;
}

.corner-lb {
    position: absolute;
    bottom: 50px;
    left: 50px;
    border-bottom: 5px solid #57b1e6;
    border-left: 5px solid #57b1e6;
    width: 50px;
    height: 50px;
    z-index: 999;
}

.corner-rb {
    position: absolute;
    bottom: 50px;
    right: 50px;
    border-bottom: 5px solid #57b1e6;
    border-right: 5px solid #57b1e6;
    width: 50px;
    height: 50px;
    z-index: 999;
}

.card {
    background: #fff;
    border: none !important;
    /* padding: 20px */
}

.card-header {
    border-bottom: none !important;
}

.card-footer {
    border-top: none !important;
}

@media(max-width: 1080px) {
    .card {
        width: 100%;
    }
}

@media(max-width: 720px) {
    .card {
        width: 100%;
    }
}

.card-body {
    padding: 20px;
}

.card-title {
    color: #333;
}

.card-subtitle {
    font-size: 14px;
    padding: 5px;
}

.d-none {
    display: none;
}

.text-center {
    text-align: center;
}

textarea {
    background: #f8f8f8 !important;
    border: none !important;
    cursor: default;
}

.img-scan {
    display: block;
    text-align: center;
    padding: 20px;
}

.waiting {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    position: absolute;
    margin: auto;
    color: #fff;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
    width: var(--width);
    height: 100vh;
    z-index: 99;
}

.waiting-text {
    margin: 50% auto 0;
}

/* Toast */
.toaster {
    color: #fff;
    width: 100%;
    display: none;
    position: fixed;
    bottom: 70px;
    font-size: 12px;
    text-align: center;
    z-index: 9999;
}

.toaster-body {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 30px;
    padding: 14px 22px;
    width: auto;
    display: inline-block;
    margin-left: -5px;
}

@media(max-width: 720px) {
    .toast .toast-body {
        margin: 0 10px;
    }

    .waiting {
        width: 100%;
    }
}