@font-face { 
    font-family: 'Pinar';
    src: url('../fonts/Pinar-DS1-FD.woff') format('woff');
}

@font-face { 
    font-family: 'Estedad';
    src: url('../fonts/Estedad-VF-FD.woff2') format('woff2-variations');
}

input:focus{
    outline: none;
}


body {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

* {
  transition-duration: 1s;
}

#bg {
    background: url("../img/bg.webp");
    background-size: cover;
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: -1;
    filter: blur(2px)
}

#scan {
    text-align: center;
    padding-top: 20vh;
}

#scan h1 {
    margin-bottom: 50px;
    color: #fff;
    font-family: Pinar;
}

#scan .error {
    color: #e12b2b;
    font-family: Pinar;
    font-size: 20px;
    display: none;
}

#scan .form {
    width: 80%;
    background: #fff;
    display: inline-block;
    max-width: 600px;
    text-align:left;
    border-radius: 20px;
    box-shadow: 0px 0px 20px 4px #284b66;
}

#scan input {
    background: #fff;
    border-radius: 20px;
    font-size: 20px;
    display:inline-block;
    width:calc(100% - 95px);
    text-align: left;
    direction: ltr;
    padding: 10px;
    margin:0;
    border: none;
    vertical-align: top;
    height: 48px;
}

#scan button {
    border-radius: 20px;
    background: #fff;
    display: inline-block;
    border: none;
    margin:0;
    padding:10px;
    cursor: pointer;
}

#scan button img {
    width: 45px;
}

#scan button:hover img {
        transform: rotate(90deg);
}

/* Loading */
#loading {
    position: fixed;
    top:0;
    width:100%;
    height: 100vh;
    right:0;
    object-fit: contain;
    background: #fbfbfb;
    display: none;
    z-index: 1;
}

/* Results */
#result {
display: none;
    position: relative;
    font-size: 20px;
    margin-top: 70vh;
    background: #00000070;
    color: #fff;
    text-align: center;
    padding: 50px;
}

#result img {
    width: 70%;
    max-width: 300px;
    padding: 10px;
    margin-bottom: 30px;
    background: #fff;
}

#result p {
    text-align: center;
    padding:10px 0;
    margin:0;
    font-family: Pinar;
}

#result input {
    font-family: Estedad;
    padding:0;
    background: none;
    color: #fff;
    width:100%;
    margin:5px 0 20px 0;
    font-size:20px;
    border: none;
    border-bottom: 1px solid #ffffff61;
    text-align: center;
    direction: ltr;
}

#result #btt {
    width: 50px;
    border-radius: 40%;
    position: absolute;
    margin:0;
    bottom: 10px;
    right: 10px;
}

/* Mobile */
@media only screen and (max-width: 600px) {

#scan h1 {
    margin-bottom: 20px;
    font-size: 20px;
}

#scan .form {
    width: 95%;
}

#scan input {
    background: #fff;
    border-radius: 20px;
    font-size: 16px;
    display:inline-block;
    width:calc(100% - 75px);
    height: 27px;
}

#scan button {
    padding:5px;
}

#scan button img {
    width: 35px;
}
#result {
    font-size: 17px;
    padding: 50px 10px;
}

#result img {
    margin-bottom: 20px;
}

#result p {
    padding:5px 0;
}


#result input {
    font-size:15px;
}


#result #btt {
    width: 30px;
}

}