/* Container styling */
.container2 {
    width: 480px; /* Default width for larger screens */
    margin: 100px auto;
    padding: 45px; /* Default padding for larger screens */
    position: relative;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
    background-color: #e6f7ff; /* Very light blue background */
    border: 1px solid #ddd;
    overflow: hidden; /* Ensures background doesn't spill outside the container */
    
    /* Prominent black outline */
    outline: 2px solid black;
}

/* Add background image with 25% opacity using ::after */
.container2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('ijpbg.jpg'); /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    opacity: 0.10; /* Set image opacity to 10% */
    z-index: 1;
}

/* Ensure content appears above the background */
.container2 * {
    position: relative;
    z-index: 2;
}

/* "Powered By" text styling */
.powered-by {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    color: #000; /* Black text */
    font-family: Arial, sans-serif;
    font-weight: bold; /* Bold text */
    font-style: italic; /* Italic text */
}

/* Status text styling */
#status-text {
    margin-bottom: 20px;
    font-size: 20px; /* Increased by ~25% */
    color: #333;
}

/* Loading graphic styling */
#loading-graphic {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Animation for loading graphic */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button styling */
.button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #b30000; /* Dark red */
    color: #ffffff; /* White font */
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #800000; /* Darker red on hover */
    text-decoration: none;
}

/* Ensure body has a background color for contrast */
body {
    background-color: #f4f4f4;
}

/* Media query for smaller devices */
@media only screen and (max-width: 768px) {
    .container2 {
        width: 90%; /* Make the container adapt to the screen width on smaller devices */
        padding: 30px; /* Reduce padding to fit smaller screens */
    }

    #status-text {
        font-size: 18px; /* Slightly reduce the font size on smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    .container2 {
        width: 95%; /* On very small devices, make it nearly full width */
        padding: 20px; /* Further reduce padding for mobile */
    }

    #status-text {
        font-size: 16px; /* Further reduce text size for small screens */
    }

    #loading-graphic {
        width: 50px; /* Reduce spinner size for smaller screens */
        height: 50px;
        border: 6px solid #f3f3f3;
        border-top: 6px solid #3498db;
    }
}
