/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

::selection {
    color: white;
    background-color: #812dfa;
}

body {
    display: flex;
    padding: 0 10px;
    min-height: 100vh;
    align-items: center;
    background: #ffffff;
    justify-content: center;
    padding-top: 50px;
}

.wrapper {
    height: auto;
    max-width: 800px;
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 7px;
    padding: 20px 25px 10px;
    transition: height 0.2s ease;
    


}

.left-content {
    flex: 1;
    margin-right: 90px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
   
}

.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 300px; 
    
    
}


header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 35px 0px 5px;
} 

header p {
    margin-top: 5px;
    color: #777;
    font-size: 16px;
    margin-bottom: 20px;
    margin: 5px 0px 20px;
}


button {
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #7c2ae8;
    transition: 0.2s ease;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}


button:hover {
    background-color: #6b1fd9;
}

.qr-reader {
    width: 300px;
    height: auto;
    min-height: 220px;
    border: 2px solid #7c2ae8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#placeholder-img {
    -webkit-user-drag: none;
}

@media (max-width: 480px) {
    #placeholder-img {
        display: none !important;
    }
}




.result {
    margin-top: 15px;
    margin-bottom: 7px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-top: 8px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
    height: 180px;
    width: 310px; 
    color: #000000; 
    font-weight: 450;
    text-align: center;
    border-radius: 5px;
    background-color: #f5f2f259;
    border: 1px solid #bbbbbb;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

#action-links-container {
    text-align: center;
}

#action-links-container a {
    text-decoration: underline;
    color: #5a14b6;
}

#action-links-container a:hover {
    color: black;
}




#file-input {
    margin-top: 10px;
    max-width: 300px;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    background-color: #7c2ae8;
    color: white;
    cursor: pointer; 
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

#file-input:hover {
    background-color: #6b1fd9;
}

#scan-image {
    padding: 13px 80px;
    font-size: 1em;
    cursor: pointer;
    background-color: #7c2ae8;
    transition: 0.2s ease;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}

#scan-image:hover {
    background-color: #6b1fd9;
}

.camera-status {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}


@media (max-width: 390px) {

    
    button {
       min-width: 300px;
       margin-top: 10px;
    }



}


@media (max-width: 730px) {
    
    .wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
    
    .left-content {
        flex: 1;
        margin-right: 0px;
        max-width: 300px; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .right-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
    } 

    
    
    header h1 {
        font-size: 26px;
        
      }
    
      header p {
        font-size: 15px;
      } 



}

/* additional css */ 

#camera-permission-denied {
    position: fixed;
    bottom: 27px;
    right: 80px;
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    animation: fade-in-out 3s ease-in-out;
}




#torch-container {
    position: fixed;
    bottom: 7px;
    right: 15px;
    color: #333;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: transform 0.2s ease;
}

#torch-icon {
    color: #000000;
    font-size: 35px;
    user-select: none;
}

/* Hover effect */
#torch-container:hover {
    transform: scale(1.2);
    /* Scale effect on hover */

}

#torch-unsupported {
    position: fixed;
    bottom: 27px;
    right: 80px;
    background-color: orange;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    animation: fade-in-out 3s ease-in-out;
}

#share-icon {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 999;
    transition: transform 0.2s ease;
}

#share-icon img {
    width: 30px;
    height: 30px;
}

#share-icon:hover {
    transform: scale(1.2);
}

.floating-icon {
    position: fixed;
    bottom: 5px;
    left: 25px;
    color: rgb(0, 0, 0);
    padding: 10px;
    cursor: pointer;
    z-index: 999;
    text-decoration: none;
    font-size: 35px;
    transition: transform 0.2s ease;

}

/* Change color on hover */
.floating-icon:hover {
    transform: scale(1.2);
}

@media (max-width: 730px) {
    .floating-icon {
        display: none;
    }
}

/*Custom Css For Menu Bar*/

.navbar {
    width: 100%;
    padding: 30px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

/* Menu links for desktop */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;

}

.nav-links a:hover {
    background-color: #6b1fd9;
    color: #fff;

}


.floating-hamburger {
    display: none;
    font-size: 27px;
    cursor: pointer;
    color: rgb(0, 0, 0);
    position: fixed;
    bottom: 10px;
    left: 27px;
    padding: 10px;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.floating-hamburger:hover {
    transform: scale(1.2);
}

/* Mobile menu overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #6b1fd9;
    z-index: 1000;
    transition: opacity 0.5s ease;
    opacity: 0;
    justify-content: center;
    align-items: center;
}

.overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-menu {
    list-style: none;
    text-align: center;
}

.overlay-menu li {
    margin: 15px 0;
}

.overlay-menu a {
    text-decoration: none;
    font-size: 24px;
    color: white;
    font-weight: bold;
    opacity: 0;
    transform: translateY(100px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}



.overlay-menu a.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive behavior */
@media (max-width: 730px) {
    .nav-links {
        display: none;
    }

    .floating-hamburger {
        display: block;
    }
}


/* Close icon styling */
.overlay-header {
    position: absolute;
    bottom: 12px;
    left: 32px;
}

.close-icon {
    font-size: 35px;
    color: white;
    cursor: pointer;
}


#drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.87); /* Transparent white */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure it’s on top of everything */
    pointer-events: none; /* Prevent blocking interaction */
}

.overlay-content {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    pointer-events: none; /* Allow events to pass through */
}

.overlay-content img {
    width: 80px;
    margin-bottom: 10px;
}
