* { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: #1e1e1e; color: #ffffff; font-family: 'Arial', sans-serif; overflow: hidden; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { display: flex; flex-direction: column; height: 95vh; width: 95vw; padding: 20px; background-color: #2d2d2d; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); } #registerForm { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; background-color: #333; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } #registerForm h2 { text-align: center; color: #fff; margin-bottom: 10px; } #registerForm input { padding: 10px; border: 2px solid #555; border-radius: 5px; background-color: #444; color: #fff; font-size: 16px; transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; } #registerForm input:focus { border-color: #00aaff; transform: scale(1.02); box-shadow: 0 0 10px rgba(0, 170, 255, 0.5); outline: none; } #registerForm input::placeholder { color: #aaa; } #registerForm button { padding: 10px; border: none; border-radius: 5px; background-color: #555; color: #fff; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; } #registerForm button:hover { background-color: #666; transform: scale(1.05); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } #registerForm button:active { transform: scale(0.95); } .controls { display: flex; gap: 10px; margin-bottom: 20px; justify-content: center; flex-wrap: wrap; background-color: #333; padding: 15px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } #colorPicker { width: 50px; height: 50px; border: none; background: none; cursor: pointer; padding: 5px; border-radius: 50%; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; } #colorPicker:hover { transform: rotate(15deg) scale(1.1); } button { padding: 10px 20px; background-color: #555; color: #fff; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; font-size: 16px; } button:hover { background-color: #666; transform: scale(1.05); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } button:active { transform: scale(0.95); } #eraserButton.active { background-color: #ccc; color: #333; animation: pulse 1.5s infinite; } #drawImageButton.active { background-color: #ccc; color: #333; animation: pulse 1.5s infinite; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(204, 204, 204, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(204, 204, 204, 0); } 100% { box-shadow: 0 0 0 0 rgba(204, 204, 204, 0); } } #clearWorld:hover { animation: shake 0.5s; } @keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } } #drawImageButton:hover { animation: float 2s ease-in-out infinite; } @keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0); } } .canvas-wrapper { flex: 1; position: relative; overflow: hidden; background-color: #2d2d2d; border-radius: 10px; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); } #pixelCanvas { position: absolute; top: 0; left: 0; cursor: crosshair; image-rendering: pixelated; } .info { margin-top: 20px; text-align: center; font-size: 14px; background-color: #333; padding: 10px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } .info p { margin: 5px 0; } @media (max-width: 768px) { .controls { flex-direction: column; align-items: center; } #colorPicker { width: 40px; height: 40px; } button { padding: 8px 16px; font-size: 14px; } .info { font-size: 12px; } }