|
| 1 | +:root { |
| 2 | + /* 🎨 MODIFICABLE: Cambia este color en styles.css y recarga el navegador para ver el cambio instantáneo */ |
| 3 | + --confetti-color: #00FF00; /* Verde BRILLANTE */ |
| 4 | +} |
| 5 | + |
| 6 | +* { |
| 7 | + margin: 0; |
| 8 | + padding: 0; |
| 9 | + box-sizing: border-box; |
| 10 | +} |
| 11 | + |
| 12 | +body { |
| 13 | + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
| 14 | + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 15 | + margin: 0; |
| 16 | + padding: 0; |
| 17 | + overflow: hidden; |
| 18 | +} |
| 19 | + |
| 20 | +.container { |
| 21 | + position: relative; |
| 22 | + width: 100%; |
| 23 | + height: 100vh; |
| 24 | + overflow: hidden; |
| 25 | + display: flex; |
| 26 | + align-items: center; |
| 27 | + justify-content: center; |
| 28 | +} |
| 29 | + |
| 30 | +.confetti-container { |
| 31 | + position: absolute; |
| 32 | + top: 0; |
| 33 | + left: 0; |
| 34 | + width: 100%; |
| 35 | + height: 100%; |
| 36 | + pointer-events: none; |
| 37 | +} |
| 38 | + |
| 39 | +.confetti { |
| 40 | + position: absolute; |
| 41 | + width: 10px; |
| 42 | + height: 10px; |
| 43 | + /* 🎨 Los colores se asignan dinámicamente desde JavaScript */ |
| 44 | + animation: fall linear forwards; |
| 45 | + transform: rotateZ(45deg); |
| 46 | + border-radius: 50%; |
| 47 | +} |
| 48 | + |
| 49 | +.confetti:nth-child(even) { |
| 50 | + width: 8px; |
| 51 | + height: 8px; |
| 52 | +} |
| 53 | + |
| 54 | +.confetti:nth-child(3n) { |
| 55 | + width: 12px; |
| 56 | + height: 12px; |
| 57 | + border-radius: 0%; |
| 58 | +} |
| 59 | + |
| 60 | +.confetti:nth-child(4n) { |
| 61 | + width: 6px; |
| 62 | + height: 6px; |
| 63 | +} |
| 64 | + |
| 65 | +@keyframes fall { |
| 66 | + 0% { |
| 67 | + opacity: 1; |
| 68 | + transform: translateY(0) rotateZ(0deg); |
| 69 | + } |
| 70 | + 90% { |
| 71 | + opacity: 1; |
| 72 | + } |
| 73 | + 100% { |
| 74 | + opacity: 0; |
| 75 | + transform: translateY(100vh) rotateZ(720deg); |
| 76 | + } |
| 77 | +} |
| 78 | + |
| 79 | +.content { |
| 80 | + position: relative; |
| 81 | + z-index: 10; |
| 82 | + text-align: center; |
| 83 | + color: white; |
| 84 | + display: flex; |
| 85 | + flex-direction: column; |
| 86 | + gap: 20px; |
| 87 | +} |
| 88 | + |
| 89 | +.content h1 { |
| 90 | + font-size: 4rem; |
| 91 | + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); |
| 92 | + animation: bounce 0.6s ease-in-out; |
| 93 | +} |
| 94 | + |
| 95 | +.content p { |
| 96 | + font-size: 1.5rem; |
| 97 | + text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); |
| 98 | +} |
| 99 | + |
| 100 | +button { |
| 101 | + padding: 15px 40px; |
| 102 | + font-size: 1.1rem; |
| 103 | + background-color: #FF6B6B; /* 🎨 MODIFICABLE: Este es el color del botón */ |
| 104 | + color: white; |
| 105 | + border: none; |
| 106 | + border-radius: 50px; |
| 107 | + cursor: pointer; |
| 108 | + transition: all 0.3s ease; |
| 109 | + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); |
| 110 | + max-width: 250px; |
| 111 | + margin: 0 auto; |
| 112 | + font-weight: bold; |
| 113 | +} |
| 114 | + |
| 115 | +button:hover { |
| 116 | + background-color: #FF5252; |
| 117 | + transform: scale(1.05); |
| 118 | + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); |
| 119 | +} |
| 120 | + |
| 121 | +button:active { |
| 122 | + transform: scale(0.98); |
| 123 | +} |
| 124 | + |
| 125 | +.color-panel { |
| 126 | + margin-top: 30px; |
| 127 | + padding: 20px; |
| 128 | + background: rgba(255, 255, 255, 0.1); |
| 129 | + border-radius: 10px; |
| 130 | + backdrop-filter: blur(10px); |
| 131 | + border: 1px solid rgba(255, 255, 255, 0.2); |
| 132 | + max-width: 400px; |
| 133 | + font-size: 0.9rem; |
| 134 | +} |
| 135 | + |
| 136 | +.color-panel h3 { |
| 137 | + font-size: 1.1rem; |
| 138 | + margin-bottom: 10px; |
| 139 | +} |
| 140 | + |
| 141 | +.color-panel p { |
| 142 | + font-size: 0.9rem; |
| 143 | + margin-bottom: 10px; |
| 144 | +} |
| 145 | + |
| 146 | +.color-panel code { |
| 147 | + background: rgba(0, 0, 0, 0.3); |
| 148 | + padding: 8px 12px; |
| 149 | + border-radius: 5px; |
| 150 | + display: block; |
| 151 | + font-family: 'Courier New', monospace; |
| 152 | + font-size: 0.85rem; |
| 153 | +} |
| 154 | + |
| 155 | +@keyframes bounce { |
| 156 | + 0%, 100% { |
| 157 | + transform: translateY(0); |
| 158 | + } |
| 159 | + 50% { |
| 160 | + transform: translateY(-20px); |
| 161 | + } |
| 162 | +} |
| 163 | + |
| 164 | +/* Responsive */ |
| 165 | +@media (max-width: 768px) { |
| 166 | + .content h1 { |
| 167 | + font-size: 2.5rem; |
| 168 | + } |
| 169 | + |
| 170 | + .content p { |
| 171 | + font-size: 1.1rem; |
| 172 | + } |
| 173 | + |
| 174 | + button { |
| 175 | + padding: 12px 30px; |
| 176 | + font-size: 1rem; |
| 177 | + } |
| 178 | +} |
0 commit comments