﻿body {
    margin: 0;
    padding: 0;
    background-color: #111;
    font-family: system-ui, sans-serif;
    color: #fff;
    text-align: center;
}

canvas {
    background-color: #231F20;
    border: none;
    outline: none;
}

#mada-loader {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-family: system-ui, sans-serif;
}

#mada-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #555;
    border-top: 4px solid #1e90ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

#htmlInputContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 20001;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
}

#userInput {
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 18px;
    font-family: system-ui, sans-serif;
    background: #f1f1f1;
    color: #333;
    width: 400px;
    border-radius: 12px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#userInput:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.4); /* cornflowerblue glow */
}

#screen-dimmer {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); /* translucent white */
    z-index: 20000;
    display: none;
    pointer-events: none;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@media (max-width: 500px) {
    #userInput {
        width: 80vw;
        font-size: 16px;
    }
}


