styles.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. width: 640px;
  29. height: 480px;
  30. max-width: 100%;
  31. max-height: 80vh;
  32. object-fit: contain;
  33. }
  34. .controls {
  35. text-align: center;
  36. margin-top: 20px;
  37. font-size: 13px;
  38. opacity: 0.9;
  39. background: rgba(0,0,0,0.3);
  40. padding: 15px;
  41. border-radius: 10px;
  42. backdrop-filter: blur(5px);
  43. }
  44. .controls p {
  45. margin: 8px 0;
  46. line-height: 1.4;
  47. }
  48. .controls strong {
  49. color: #4ecdc4;
  50. text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  51. }
  52. /* Estilos para las letras */
  53. .lyrics-container {
  54. position: absolute;
  55. bottom: 10px;
  56. left: 50%;
  57. transform: translateX(-50%);
  58. text-align: center;
  59. font-family: 'CustomFont', Arial, sans-serif;
  60. color: white;
  61. z-index: 1000;
  62. }
  63. /* Responsive design */
  64. @media (max-width: 900px) {
  65. body {
  66. padding: 10px;
  67. }
  68. .game-container {
  69. margin: 0;
  70. }
  71. .game-title {
  72. font-size: 2em;
  73. margin-bottom: 15px;
  74. }
  75. #gameCanvas {
  76. max-width: 100%;
  77. height: auto;
  78. }
  79. .controls {
  80. font-size: 11px;
  81. margin-top: 10px;
  82. padding: 12px;
  83. }
  84. }
  85. @media (max-width: 600px) {
  86. body {
  87. padding: 5px;
  88. }
  89. .game-title {
  90. font-size: 1.5em;
  91. margin-bottom: 10px;
  92. }
  93. .controls {
  94. font-size: 10px;
  95. margin-top: 8px;
  96. padding: 10px;
  97. }
  98. .controls p {
  99. margin: 6px 0;
  100. }
  101. }
  102. @media (max-height: 700px) {
  103. #gameCanvas {
  104. max-height: 70vh;
  105. }
  106. .game-title {
  107. font-size: 1.8em;
  108. margin-bottom: 10px;
  109. }
  110. }
  111. /* Media query para orientación landscape en móviles */
  112. @media screen and (orientation: landscape) and (max-height: 600px) {
  113. body {
  114. padding: 5px;
  115. min-height: 100vh;
  116. }
  117. .game-container {
  118. padding: 10px;
  119. }
  120. #gameCanvas {
  121. width: auto;
  122. height: 85vh;
  123. max-width: 90vw;
  124. max-height: 85vh;
  125. }
  126. }
  127. /* Estilos específicos para dispositivos táctiles */
  128. @media (hover: none) and (pointer: coarse) {
  129. .controls {
  130. background: rgba(0,0,0,0.5);
  131. border: 2px solid #4ecdc4;
  132. }
  133. .controls p:last-child {
  134. color: #4ecdc4;
  135. font-weight: bold;
  136. margin-top: 10px;
  137. }
  138. #gameCanvas {
  139. touch-action: none;
  140. user-select: none;
  141. -webkit-user-select: none;
  142. -webkit-touch-callout: none;
  143. }
  144. }