h1, h3 { color: #007A33;}
body { background-color: #e0f2e0; font-family: Arial, sans-serif; margin: 20px; }
input { margin-bottom: 10px; display: inline; width: 4rem;}
#output {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}
a { color: #007A33; text-decoration: none;}
button { margin-top: 10px; background-color: #007A33; color: #ffffff}
canvas { max-width: 100%; height: auto;}

#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed; /* Stay in the center of the screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    z-index: 1000; /* Ensure it's above all other elements */
}

.spinner {
    border: 4px solid rgba(0, 122, 51, 0.1); /* Light version of #8f223a for background */
    border-top: 4px solid rgb(0, 122, 51); /* Solid #8f223a for the rotating part */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Adjust the height for smaller screens using media queries */
@media (max-width: 768px) {
    canvas { max-height:250px; }
}
