body { margin: 0; overflow: hidden; background-color: #e0e0e0; }
canvas {
    display: block;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: none;
}

main {
  text-align: center;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border-top: 3px solid grey;
    border-bottom: 3px solid grey;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    animation: spin 0.5s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#model-name-display, #palette-name-display {
    position: fixed;
    bottom: 20px;
    color: white;
    font-family: Arial, sans-serif;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    z-index: 100;
    margin: 0;
}

#model-name-display {
    right: 20px;
    pointer-events: none;
}

#palette-name-display {
    left: 20px;
    cursor: pointer;
}

@media (min-width: 768px) {
    #model-name-display, #palette-name-display {
        font-size: 2em;
    }
}
