/* Custom CSS styles */
body {
    padding-top: 56px; /* Adjust for fixed header */
    margin: 0;
    overflow: hidden; /* Prevent scrolling */
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}
#infoBox{
    position: absolute;
    top: 50px;
    right: 10px;
    width :150px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    z-index: 1000;
}
#pixelCanvas {
    display: block;
    border: 1px solid #ddd;
}

.modal-dialog {
    max-width: 500px;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 10px;
}

#quickColors div {
    width: 30px;
    height: 30px;
    margin: 2px;
    border: 1px solid #ddd;
    cursor: pointer;
}

#quickColors {
    display: flex;
    flex-wrap: wrap;
}
/* Full-screen Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    z-index: 10000; /* High z-index to ensure it appears above all other content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
}

.loading-overlay .spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Initially hide the overlay */
.hidden {
    display: none;
}
