styles.css 3.2 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-title {
  16. text-align: center;
  17. font-size: 2.5em;
  18. margin: 0 0 20px 0;
  19. text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  20. background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  21. background-size: 300% 300%;
  22. -webkit-background-clip: text;
  23. -webkit-text-fill-color: transparent;
  24. background-clip: text;
  25. animation: gradientShift 3s ease infinite;
  26. }
  27. @keyframes gradientShift {
  28. 0% { background-position: 0% 50%; }
  29. 50% { background-position: 100% 50%; }
  30. 100% { background-position: 0% 50%; }
  31. }
  32. .game-container {
  33. text-align: center;
  34. background-color: #2a2a2a;
  35. padding: 20px;
  36. border-radius: 10px;
  37. box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  38. }
  39. #gameCanvas {
  40. border: 2px solid #444;
  41. image-rendering: pixelated;
  42. image-rendering: -moz-crisp-edges;
  43. image-rendering: crisp-edges;
  44. cursor: pointer;
  45. max-width: 100%;
  46. height: auto;
  47. width: 800px;
  48. max-height: 80vh;
  49. }
  50. .controls {
  51. text-align: center;
  52. margin-top: 20px;
  53. font-size: 13px;
  54. opacity: 0.9;
  55. background: rgba(0,0,0,0.3);
  56. padding: 15px;
  57. border-radius: 10px;
  58. backdrop-filter: blur(5px);
  59. }
  60. .controls p {
  61. margin: 8px 0;
  62. line-height: 1.4;
  63. }
  64. .controls strong {
  65. color: #4ecdc4;
  66. text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  67. }
  68. /* Estilos para las letras */
  69. .lyrics-container {
  70. position: absolute;
  71. bottom: 10px;
  72. left: 50%;
  73. transform: translateX(-50%);
  74. text-align: center;
  75. font-family: 'CustomFont', Arial, sans-serif;
  76. color: white;
  77. text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  78. z-index: 1000;
  79. }
  80. /* Responsive design */
  81. @media (max-width: 900px) {
  82. body {
  83. padding: 10px;
  84. }
  85. .game-container {
  86. margin: 0;
  87. }
  88. .game-title {
  89. font-size: 2em;
  90. margin-bottom: 15px;
  91. }
  92. #gameCanvas {
  93. max-width: 100%;
  94. height: auto;
  95. }
  96. .controls {
  97. font-size: 11px;
  98. margin-top: 10px;
  99. padding: 12px;
  100. }
  101. }
  102. @media (max-width: 600px) {
  103. body {
  104. padding: 5px;
  105. }
  106. .game-title {
  107. font-size: 1.5em;
  108. margin-bottom: 10px;
  109. }
  110. .controls {
  111. font-size: 10px;
  112. margin-top: 8px;
  113. padding: 10px;
  114. }
  115. .controls p {
  116. margin: 6px 0;
  117. }
  118. }
  119. @media (max-height: 700px) {
  120. #gameCanvas {
  121. max-height: 70vh;
  122. }
  123. .game-title {
  124. font-size: 1.8em;
  125. margin-bottom: 10px;
  126. }
  127. }
  128. /* Estilos específicos para dispositivos táctiles */
  129. @media (hover: none) and (pointer: coarse) {
  130. .controls {
  131. background: rgba(0,0,0,0.5);
  132. border: 2px solid #4ecdc4;
  133. }
  134. .controls p:last-child {
  135. color: #4ecdc4;
  136. font-weight: bold;
  137. margin-top: 10px;
  138. }
  139. #gameCanvas {
  140. touch-action: none;
  141. user-select: none;
  142. -webkit-user-select: none;
  143. -webkit-touch-callout: none;
  144. }
  145. }