/* body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    /* background: yellow !important; 
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}
 */


body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9; /* fallback color */
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: auto;
}

/* Add blurred background image */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("psgitechbg.jpg") no-repeat center center/cover;
    filter: blur(8px);
    z-index: -1; /* push it behind everything */
}



.search-box {
    margin: 20px auto;
    text-align: center;
}

.search-box input[type="text"] {
    width: 300px;
    padding: 12px 15px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.search-box input[type="text"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.5);
}

.search-box button {
    padding: 12px 18px;
    margin-left: 10px;
    background-color: #3498db;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.search-box button:hover {
    background-color: #2980b9;
}




/* Login button styling */
.login-btn {
    position: absolute;      
    top: 80px;              
    right: 40%;             
    padding: 8px 16px;       
    background-color: #3498db; 
    color: #fff;            
    font-weight: bold;
    border: 2px solid #2980b9; 
    border-radius: 6px;    
    text-decoration: none;   /* remove underline */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* optional shadow */
    transition: 0.3s;      
}

/* Hover effect */
.login-btn:hover {
    background-color: #2980b9;
    border-color: #1c5980;
}

h2 {
    margin-top: 20px;
    font-size: 24px;
    color: #2c3e50;
}

#reader {
    margin: 20px auto;
    padding: 10px;
    border: 2px solid #3498db;
    border-radius: 10px;
    width: 320px;
    height: auto;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Result Box */
#result {
    margin: 20px auto;
    padding: 15px;
    max-width: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Certificate Details Title */
#result h3 {
    color: #3498db;
    margin-top: 0;
}

/* Paragraph Styling */
#result p {
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.4;
}

/* Error Message */
#result p[style*="color:red"] {
    font-weight: bold;
    background: #ffecec;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ff9999;
}


/* Login button styling */
.login-btn {
    padding: 8px 16px;
    background-color: #fff; 
    color: #3498db; 
    font-weight: bold;
    border: 2px solid #2980b9; 
    border-radius: 6px;    
    text-decoration: none;   
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
    transition: 0.3s;      
}

/* Hover effect */
.login-btn:hover {
    background-color: #2980b9;
    color: #fff;
    border-color: #1c5980;
}
@media (max-width: 1150px) {
    .login-btn {
        position: static; 
    }
}

@media (max-width: 600px) {

    h2 {
        font-size: 18px;
        margin: 0; 
    }

    /* Top bar: stack title and login button */
    .top-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px; /* spacing between title and button */
    }

    /* Login button below title, no absolute positioning */
    .login-btn {
        position: static; 
        width: 100%;
        max-width: 200px;
        margin: 0;
        font-size: 12px;
        text-align: center;
    }

    /* QR scanner and result box responsive */
    #reader, 
    #result {
        width: 80%;
        max-width: 90%;
    }

    .search-box {
    display: flex;
    flex-direction: column; /* stack input and button */
    align-items: center;    /* center horizontally */
    gap: 10px;              /* spacing between input and button */
    margin: 20px 20px 0 20px; /* top + left/right margins */
    max-width: none;        /* allow full width minus margins */
}

.search-box input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    box-sizing: border-box;
}

.search-box button {
    width: 100%;           /* same width as input */
    padding: 12px 15px;
    font-size: 15px;
    box-sizing: border-box;
    cursor: pointer;
    margin: 0;             /* no extra margin */
}

/* Make all images responsive */
img {
    max-width: 80%;
    height: auto;
    display: block; /* remove inline spacing */
}

/* If the image is inside a box/container */
#reader img,
#result img,
.search-box img {
    max-width: 80%;
    height: auto;
    display: block;
}

}



