rule.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. /* Custom formatting for the Rule page - New Figma Style */
  2. :root {
  3. --primary-blue: #0062FF;
  4. --dark-blue: #004ecc;
  5. --bg-light: #ffffff;
  6. --text-dark: #1A1A1A;
  7. --text-muted: #666666;
  8. }
  9. .millions-rule-page {
  10. background-color: var(--primary-blue);
  11. min-height: 100vh;
  12. display: flex;
  13. flex-direction: column;
  14. position: relative;
  15. max-width: 430px;
  16. margin: 0 auto;
  17. font-family: 'Bricolage Grotesque', sans-serif;
  18. }
  19. /* Header with Chevron Pattern */
  20. .millions-rule-page .header {
  21. background-color: var(--primary-blue);
  22. background-image: url("data:image/svg+xml,%3Csvg width='60' height='30' viewBox='0 0 60 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 15 L15 0 L30 15 L45 0 L60 15 L60 30 L45 15 L30 30 L15 15 L0 30 Z' fill='%23004ecc' fill-opacity='0.4'/%3E%3C/svg%3E");
  23. height: 64px;
  24. display: flex;
  25. align-items: center;
  26. padding: 0 16px;
  27. color: #fff;
  28. position: sticky;
  29. top: 0;
  30. z-index: 100;
  31. }
  32. .millions-rule-page .back-btn {
  33. width: 32px;
  34. height: 32px;
  35. display: flex;
  36. align-items: center;
  37. justify-content: center;
  38. color: #fff;
  39. text-decoration: none;
  40. font-size: 18px;
  41. }
  42. .millions-rule-page .header-title {
  43. flex: 1;
  44. text-align: center;
  45. font-size: 20px;
  46. font-weight: 800;
  47. margin-right: 32px; /* balance back button */
  48. }
  49. /* Content Card */
  50. .millions-rule-page .content-card {
  51. background-color: #ffffff;
  52. flex: 1;
  53. border-radius: 40px 40px 0 0;
  54. padding: 24px 20px;
  55. overflow-y: auto;
  56. padding-bottom: 100px; /* space for navbar */
  57. box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  58. position: relative;
  59. }
  60. .millions-rule-page .content-inner {
  61. max-width: 100%;
  62. }
  63. /* Mega Millions Banner */
  64. .millions-rule-page .banner {
  65. background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%);
  66. border-radius: 20px;
  67. height: 110px;
  68. position: relative;
  69. overflow: visible; /* allow ball to float */
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. margin-bottom: 32px;
  74. box-shadow: 0 8px 16px rgba(0, 98, 255, 0.2);
  75. }
  76. .millions-rule-page .banner-content {
  77. position: relative;
  78. width: 100%;
  79. height: 100%;
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. }
  84. .millions-rule-page .banner-text {
  85. color: white;
  86. font-size: 2.25rem;
  87. font-weight: 800;
  88. font-family: 'UTM Futura Extra', sans-serif;
  89. text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
  90. text-transform: uppercase;
  91. letter-spacing: -1px;
  92. line-height: 1;
  93. }
  94. .millions-rule-page .banner-ball {
  95. position: absolute;
  96. right: 80px; /* Moved further left as requested */
  97. top: 50%;
  98. transform: translateY(-50%);
  99. width: 65px;
  100. height: 65px;
  101. display: flex;
  102. align-items: center;
  103. justify-content: center;
  104. z-index: 10;
  105. }
  106. .millions-rule-page .banner-ball img {
  107. width: 100%;
  108. height: 100%;
  109. object-fit: contain;
  110. filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
  111. }
  112. .millions-rule-page .banner-ball .crown {
  113. position: absolute;
  114. top: -5px;
  115. right: 2px;
  116. font-size: 18px;
  117. color: #FFD700;
  118. transform: rotate(25deg);
  119. text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  120. }
  121. /* Rule Sections */
  122. .millions-rule-page .rule-section {
  123. margin-bottom: 28px;
  124. }
  125. .millions-rule-page .section-header {
  126. display: flex;
  127. align-items: center;
  128. gap: 12px;
  129. margin-bottom: 12px;
  130. }
  131. .millions-rule-page .section-emoji {
  132. font-size: 24px;
  133. }
  134. .millions-rule-page .section-title {
  135. font-size: 22px;
  136. font-weight: 800;
  137. color: var(--text-dark);
  138. }
  139. .millions-rule-page .rule-list {
  140. list-style: none;
  141. padding: 0;
  142. margin: 0;
  143. }
  144. .millions-rule-page .rule-item {
  145. display: flex;
  146. align-items: flex-start;
  147. gap: 10px;
  148. margin-bottom: 10px;
  149. font-size: 14px;
  150. color: #333333;
  151. line-height: 1.4;
  152. position: relative;
  153. padding-left: 15px;
  154. }
  155. .millions-rule-page .rule-item::before {
  156. content: '•';
  157. position: absolute;
  158. left: 0;
  159. color: #333333;
  160. font-weight: bold;
  161. }
  162. .millions-rule-page .rule-subitem {
  163. padding-left: 30px;
  164. }
  165. /* Prize Structure */
  166. .millions-rule-page .prize-header-labels {
  167. display: flex;
  168. gap: 10px;
  169. margin-bottom: 15px;
  170. }
  171. .millions-rule-page .prize-label {
  172. flex: 1;
  173. background-color: var(--primary-blue);
  174. color: white;
  175. padding: 12px;
  176. border-radius: 8px;
  177. text-align: center;
  178. font-weight: 800;
  179. font-size: 16px;
  180. box-shadow: 0 4px 8px rgba(0, 98, 255, 0.2);
  181. }
  182. .millions-rule-page .prize-rows {
  183. display: flex;
  184. flex-direction: column;
  185. gap: 12px;
  186. }
  187. .millions-rule-page .prize-row {
  188. display: flex;
  189. justify-content: space-between;
  190. padding: 2px 0;
  191. }
  192. .millions-rule-page .match-col {
  193. font-size: 15px;
  194. color: #333;
  195. font-weight: 600;
  196. }
  197. .millions-rule-page .prize-col {
  198. font-size: 15px;
  199. color: #000;
  200. font-weight: 800;
  201. text-align: right;
  202. }
  203. .millions-rule-page .prize-col.jackpot {
  204. color: #000;
  205. }
  206. /* Custom Styled Scrollbar */
  207. .custom-scrollbar::-webkit-scrollbar {
  208. width: 4px;
  209. }
  210. .custom-scrollbar::-webkit-scrollbar-track {
  211. background: transparent;
  212. }
  213. .custom-scrollbar::-webkit-scrollbar-thumb {
  214. background: rgba(0, 0, 0, 0.1);
  215. border-radius: 10px;
  216. }
  217. /* Bottom Navbar Positioning */
  218. .millions-rule-page .millions-bottom-navbar {
  219. position: fixed;
  220. bottom: 0;
  221. left: 50%;
  222. transform: translateX(-50%);
  223. width: 100%;
  224. max-width: 430px;
  225. z-index: 200;
  226. }