* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Container for canvas and loader */
#canvasWrapper {
    position: relative;
    width: 80%;
    max-width: 1200px; /* Optional limit */
    height: 60vh;
    margin: 5% auto;
    display: block;
    border-radius: 10px;
    border: 2px solid #01396f;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #0a1e42;
    transition: box-shadow 0.3s ease; /* Remove transform scale for overflow safety */  
}


/* Add hover effect to give a floating look */
#canvasWrapper:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    /* translate: 0 -5px; Slight vertical lift */
    background-color: #1e2b44;
}


/* Add a gradient background behind the canvas */
#canvasWrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.3), rgba(0, 188, 212, 0.1));
    z-index: -1;
    border-radius: 10px;
}


/* Canvas styling remains unchanged */
#myCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

/* Loader overlay absolutely inside the canvas wrapper */
#loaderOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    z-index: 10;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 10px;
}

/* Loading Text */
#loaderOverlay span {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Loading Bar */
#loadingBarWrapper {
    width: 80%;
    height: 10px;
    background-color: #444;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

#loadingBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #ff9800);
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

#loaderPercent {
    font-size: 16px;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Styling for the details section */
.details {
    margin: 4%;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Heading styling with clamp() for responsive font size */
.details h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: #0a1e42;
    font-weight: bold;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Subheading styling with clamp() for responsive font size */
.details h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    color: #0a1e42;
    margin-top: 20px;
}

/* Paragraph styling with clamp() for responsive font size */
.details p {
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    line-height: 1.6;
    color: #000000;
    margin-top: 15px;
    text-align: justify;
}

/* Styling for unordered list in details */
.details ul {
    margin-top: 15px;
    list-style-type: disc;
    padding-left: 20px;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: #555;
}

/* Styling list items */
.details ul li {
    margin-bottom: 8px;
}

/* Responsive grid switch from col to row on small screens */
@media (max-width: 767px) {
    .row {
        flex-direction: column;
    }

    .col {
        width: 100%;
    }

    /* Adjust padding for mobile */
    .details {
        padding: 15px;
    }

    /* Center the canvas wrapper in mobile */
    #canvasWrapper {
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Ensure that the canvas does not overflow */
    #myCanvas {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 10px;
    }


}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
    .details {
        padding: 40px;
    }
}