

       
input[type="text"].flash-success {
    animation: flashGreen 0.6s ease;
}

@keyframes flashGreen {
    0% {
        background-color: #e6ffe6;
        border-color: #2ecc71;
    }
    100% {
        background-color: white;
        border-color: #333;
    }
}
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            background-color: bisque;
            text-align: center;
            user-select: none;
            -webkit-user-select: none;
            overflow-x: hidden;
            font-family: sans-serif;
            padding: 10px;
            max-width: 100vw;
        }
        h1{
    color:rgb(53, 50, 50);
}
        h2 {
            font-size: clamp(14px, 4vw, 20px);
            margin-bottom: 15px;
            padding: 0 10px;
        }
p {
    color:rgb(88, 79, 79);  
}
li {
    color:rgb(88, 79, 79);  
}
        .button-group {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        button {
            padding: 10px 15px;
            font-size: 14px;
            border: 2px solid #333;
            background-color: #fff;
            cursor: pointer;
            border-radius: 5px;
            min-width: 70px;
        }

        button:active {
            transform: scale(0.95);
        }

        input[type="text"] {
            padding: 10px;
            font-size: 14px;
            border: 2px solid #333;
            border-radius: 5px;
            margin: 5px 0;
            max-width: 90%;
            width: 300px;
        }
        
        input[type="number"] {
            padding: 10px;
            font-size: 14px;
            border: 2px solid #333;
            border-radius: 5px;
            margin: 5px 0;
            max-width: 90%;
            width: 100px;
        }
        
        .canvas-container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            margin: 15px auto;
            max-width: 100%;
        }
        
        .canvas-container h2 {
            margin-bottom: 5px;
            margin-top: 5px;
            
        }
        
        .canvas-container-container {
            background-color: #fff1e1;
            border: 2px solid #333;
            display: block;
            margin-bottom: 25px;
            width:304px;
        }
.canvas-container-container h2{
            word-wrap: break-word;
        }
        .canvas-container-container:hover .text{
            opacity: 1;
        }
        canvas.paint {
            touch-action: none;
            image-rendering: pixelated;
            border: 2px solid #333;
            display: block;
            max-width: 95vw;
            max-height: 95vw;
            width: 300px;
            height: 300px;
        }
        
        canvas.show {
            image-rendering: pixelated;
            border-top: 2px solid #333;
            display: block;
            max-width: 95vw;
            max-height: 95vw;
            width: 300px;
            height: 300px;
        }
        .text{
            position: absolute;
            opacity:0;
            transform: translate(80px, 0px);
              display: inline-block;
            border: 2px solid #333;
            background-color: #fff;
            cursor: pointer;
            border-radius: 5px;
            min-width: 70px;
        }
        input[type="color"] {
            width: 60px;
            height: 40px;
            border: 2px solid #333;
            border-radius: 5px;
            cursor: pointer;
            margin: 10px 5px;
        }
        
        #buttonContainer {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin: 15px auto;
            max-width: 90%;
        }
        
        #buttonContainer button {
            min-width: 50px;
            padding: 8px 12px;
            font-size: 12px;
        }
        
        .tool-group {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 15px 0;
        }
        
        #brush, #bucket {
            background-color: #e0e0e0;
        }
        
        @media (max-width: 480px) {
            body {
                padding: 5px;
            }
            
            h2 {
                font-size: 16px;
                margin-bottom: 10px;
            }
            
            button {
                padding: 8px 12px;
                font-size: 13px;
                min-width: 60px;
            }
            
            input[type="text"] {
                font-size: 16px;
                width: 95%;
            }
        }