styles.css 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. body {
  7. background-color: #1a1a1a;
  8. font-family: 'Courier New', monospace;
  9. display: flex;
  10. justify-content: center;
  11. align-items: center;
  12. min-height: 100vh;
  13. color: white;
  14. }
  15. .game-container {
  16. text-align: center;
  17. background-color: #2a2a2a;
  18. padding: 20px;
  19. border-radius: 10px;
  20. box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  21. }
  22. #gameCanvas {
  23. border: 2px solid #444;
  24. image-rendering: pixelated;
  25. image-rendering: -moz-crisp-edges;
  26. image-rendering: crisp-edges;
  27. cursor: pointer;
  28. }
  29. .controls {
  30. margin-top: 15px;
  31. font-size: 12px;
  32. color: #ccc;
  33. }
  34. .controls p {
  35. margin: 0;
  36. }
  37. /* Estilos para las letras */
  38. .lyrics-container {
  39. position: absolute;
  40. bottom: 10px;
  41. left: 50%;
  42. transform: translateX(-50%);
  43. text-align: center;
  44. font-family: 'CustomFont', Arial, sans-serif;
  45. color: white;
  46. text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  47. z-index: 1000;
  48. }
  49. /* Responsive design */
  50. @media (max-width: 400px) {
  51. .game-container {
  52. padding: 10px;
  53. }
  54. #gameCanvas {
  55. width: 100%;
  56. max-width: 320px;
  57. height: auto;
  58. }
  59. }