style.css
301 lines
| 1 | @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;800&family=Roboto&display=swap'); |
| 2 | |
| 3 | .bmi-banner { |
| 4 | font-family: 'Montserrat', Helvetica, Arial, sans-serif; |
| 5 | background: linear-gradient(180deg, #FFFFFF -10.65%, #C3EAF2 103.46%); |
| 6 | position: relative; |
| 7 | max-width: 1085px; |
| 8 | width: 95%; |
| 9 | margin: 30px auto; |
| 10 | border-radius: 10px; |
| 11 | padding: 30px clamp(30px, 3vw, 60px); |
| 12 | color: #000; |
| 13 | } |
| 14 | |
| 15 | .bmi-banner__close { |
| 16 | position: absolute; |
| 17 | top: 20px; |
| 18 | right: 20px; |
| 19 | font-size: 40px; |
| 20 | color: #999; |
| 21 | text-decoration: none; |
| 22 | } |
| 23 | |
| 24 | .bmi-banner__close:hover { |
| 25 | color: #929498; |
| 26 | } |
| 27 | |
| 28 | .bmi-banner__header { |
| 29 | margin-bottom: 10px; |
| 30 | } |
| 31 | |
| 32 | .bmi-banner__header div { |
| 33 | margin-bottom: 25px; |
| 34 | font-weight: 400; |
| 35 | font-size: clamp(20px, 2.5vw, 27px); |
| 36 | color: #000; |
| 37 | text-align: center; |
| 38 | } |
| 39 | |
| 40 | .bmi-banner__header div .bb-highlight { |
| 41 | color: #0C7872; |
| 42 | font-weight: 700; |
| 43 | } |
| 44 | |
| 45 | .bmi-banner__header .small { |
| 46 | font-size: 0.9rem; |
| 47 | } |
| 48 | |
| 49 | .bmi-banner__cards { |
| 50 | display: flex; |
| 51 | flex-wrap: wrap; |
| 52 | flex-direction: row; |
| 53 | justify-content: center; |
| 54 | margin-top: 5px; |
| 55 | gap: 25px; |
| 56 | } |
| 57 | |
| 58 | .bmi-banner__card { |
| 59 | background: #fff; |
| 60 | padding: 20px 25px 20px 20px; |
| 61 | border-radius: 20px; |
| 62 | width: 300px; |
| 63 | flex: 1 1 300px; |
| 64 | max-width: 100%; |
| 65 | } |
| 66 | |
| 67 | .bmi-banner__card-header { |
| 68 | display: flex; |
| 69 | align-items: center; |
| 70 | gap: 15px; |
| 71 | font-weight: 700; |
| 72 | font-size: 18px; |
| 73 | line-height: 28px; |
| 74 | padding-bottom: 10px; |
| 75 | } |
| 76 | |
| 77 | .bmi-banner__card img { |
| 78 | display: block; |
| 79 | height: 70px; |
| 80 | width: 70px; |
| 81 | flex-shrink: 0; |
| 82 | } |
| 83 | |
| 84 | .bmi-banner__card h3 { |
| 85 | margin: 0 0 10px; |
| 86 | font-size: 1.1rem; |
| 87 | font-weight: normal; |
| 88 | } |
| 89 | |
| 90 | .bmi-banner__card .bmi-banner__card-text { |
| 91 | margin: 0; |
| 92 | font-size: 15px; |
| 93 | line-height: 22.5px; |
| 94 | } |
| 95 | |
| 96 | |
| 97 | .bmi-banner__footer { |
| 98 | display: flex; |
| 99 | flex-direction: column; |
| 100 | flex-wrap: wrap; |
| 101 | align-items: center; |
| 102 | justify-content: space-between; |
| 103 | margin-top: 25px; |
| 104 | gap: 25px; |
| 105 | } |
| 106 | |
| 107 | .bmi-banner__footer-text { |
| 108 | display: flex; |
| 109 | align-items: center; |
| 110 | gap: 6px; |
| 111 | font-size: 15px; |
| 112 | } |
| 113 | |
| 114 | .bmi-banner__footer span { |
| 115 | margin: 0; |
| 116 | font-size: 15px; |
| 117 | line-height: 22.5px; |
| 118 | } |
| 119 | |
| 120 | .bmi-banner__cta-button { |
| 121 | background: #148E87; |
| 122 | font-weight: 700; |
| 123 | color: #fff; |
| 124 | border: none; |
| 125 | border-radius: 20px; |
| 126 | padding: 10px clamp(30px, 5vw, 50px); |
| 127 | font-size: clamp(16px, 2vw, 20px); |
| 128 | cursor: pointer; |
| 129 | margin-right: 20px; |
| 130 | white-space: nowrap; |
| 131 | } |
| 132 | |
| 133 | .bmi-banner__cta-button:hover { |
| 134 | background: #10736E; |
| 135 | } |
| 136 | |
| 137 | .bmi-banner .bmi-links { |
| 138 | color: #148E87; |
| 139 | text-decoration: none; |
| 140 | font-weight: 600; |
| 141 | } |
| 142 | |
| 143 | .bmi-banner__dismiss-link { |
| 144 | position: absolute; |
| 145 | right: 20px; |
| 146 | bottom: 20px; |
| 147 | color: #929498; |
| 148 | text-decoration: none; |
| 149 | } |
| 150 | |
| 151 | .bmi-banner__dismiss-link:hover { |
| 152 | color: #999; |
| 153 | } |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | /* |
| 159 | Underline effect for the free link |
| 160 | */ |
| 161 | .bmi-banner__free-underlined { |
| 162 | display: inline-block; |
| 163 | position: relative; |
| 164 | } |
| 165 | |
| 166 | .bmi-banner__free-underlined::after { |
| 167 | content: ""; |
| 168 | position: absolute; |
| 169 | left: -2px; |
| 170 | right: 0; |
| 171 | bottom: 4px; |
| 172 | height: 7px; |
| 173 | background-color: #55BDBD; |
| 174 | border-radius: 5px; |
| 175 | z-index: 0; |
| 176 | width: 110%; |
| 177 | } |
| 178 | |
| 179 | .bmi-banner__free-underlined span { |
| 180 | position: relative; |
| 181 | z-index: 1; |
| 182 | } |
| 183 | |
| 184 | .bmi-banner__left-bg { |
| 185 | position: absolute; |
| 186 | top: 0; |
| 187 | left: 0; |
| 188 | width: 50%; |
| 189 | height: 50%; |
| 190 | border-radius: 10px 0 0 10px; |
| 191 | } |
| 192 | |
| 193 | |
| 194 | .bmi-banner__card.bmi-banner__premium-card { |
| 195 | display: flex; |
| 196 | flex-direction: row; |
| 197 | } |
| 198 | |
| 199 | .bmi-banner__premium-card .bmi-banner__card-content { |
| 200 | display: flex; |
| 201 | flex-direction: column; |
| 202 | } |
| 203 | |
| 204 | |
| 205 | /* Tablet and smaller laptops */ |
| 206 | @media (max-width: 1200px) { |
| 207 | .bmi-banner__card { |
| 208 | width: calc(50% - 12.5px); |
| 209 | min-width: 250px; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | /* Tablets */ |
| 214 | @media (max-width: 768px) { |
| 215 | .bmi-banner { |
| 216 | padding: 25px 20px; |
| 217 | margin: 20px auto; |
| 218 | } |
| 219 | |
| 220 | .bmi-banner__close { |
| 221 | font-size: 30px; |
| 222 | top: 15px; |
| 223 | right: 15px; |
| 224 | } |
| 225 | |
| 226 | .bmi-banner__header div { |
| 227 | margin-bottom: 20px; |
| 228 | } |
| 229 | |
| 230 | .bmi-banner__cards { |
| 231 | gap: 20px; |
| 232 | } |
| 233 | |
| 234 | .bmi-banner__card { |
| 235 | width: 100%; |
| 236 | max-width: 400px; |
| 237 | margin: 0 auto; |
| 238 | } |
| 239 | |
| 240 | .bmi-banner__footer { |
| 241 | margin-top: 20px; |
| 242 | gap: 15px; |
| 243 | } |
| 244 | |
| 245 | .bmi-banner__cta-button { |
| 246 | margin-right: 0; |
| 247 | width: 100%; |
| 248 | max-width: 300px; |
| 249 | } |
| 250 | |
| 251 | .bmi-banner__dismiss-link { |
| 252 | position: static; |
| 253 | display: block; |
| 254 | text-align: center; |
| 255 | margin-top: 15px; |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | /* Mobile */ |
| 260 | @media (max-width: 480px) { |
| 261 | .bmi-banner { |
| 262 | padding: 20px 15px; |
| 263 | margin: 15px auto; |
| 264 | width: 98%; |
| 265 | } |
| 266 | |
| 267 | .bmi-banner__close { |
| 268 | font-size: 25px; |
| 269 | top: 10px; |
| 270 | right: 10px; |
| 271 | } |
| 272 | |
| 273 | .bmi-banner__card { |
| 274 | padding: 15px; |
| 275 | } |
| 276 | |
| 277 | .bmi-banner__card-header { |
| 278 | gap: 10px; |
| 279 | font-size: 16px; |
| 280 | line-height: 24px; |
| 281 | } |
| 282 | |
| 283 | .bmi-banner__card img { |
| 284 | height: 50px; |
| 285 | width: 50px; |
| 286 | } |
| 287 | |
| 288 | .bmi-banner__card .bmi-banner__card-text { |
| 289 | font-size: 14px; |
| 290 | line-height: 20px; |
| 291 | } |
| 292 | |
| 293 | .bmi-banner__footer-text { |
| 294 | font-size: 14px; |
| 295 | text-align: center; |
| 296 | } |
| 297 | |
| 298 | .bmi-banner__footer span { |
| 299 | font-size: 14px; |
| 300 | } |
| 301 | } |