|
| 1 | +body { |
| 2 | + font-family: Arial, sans-serif; |
| 3 | + text-align: center; |
| 4 | + background-image: url('https://images4.alphacoders.com/133/1330757.png'); |
| 5 | + background-size: cover; |
| 6 | + margin: 0; |
| 7 | + padding: 0; |
| 8 | + display: flex; |
| 9 | + justify-content: center; |
| 10 | + align-items: center; |
| 11 | + height: 100vh; |
| 12 | + color: #fff; |
| 13 | +} |
| 14 | + |
| 15 | +.container { |
| 16 | + display: flex; |
| 17 | + flex-direction: column; |
| 18 | + justify-content: center; |
| 19 | + align-items: center; |
| 20 | + background-color: rgba(0, 0, 0, 0.3); /* Grayish background with 50% opacity */ |
| 21 | + border-radius: 10px; |
| 22 | + box-shadow: 0 0 10px rgba(206, 192, 192, 0.2); |
| 23 | + backdrop-filter: blur(5px); /* Apply a blur effect */ |
| 24 | + padding: 20px; |
| 25 | + max-width: 400px; |
| 26 | + margin: 0 auto; |
| 27 | + height: 300px; /* Fixed height for the box */ |
| 28 | + overflow-y: auto; /* Allow vertical scrolling if needed */ |
| 29 | + text-align: center; /* Left-align text */ |
| 30 | +font-family: 'Bebas Neue', sans-serif; |
| 31 | +font-family: 'Fjalla One', sans-serif; |
| 32 | +font-family: 'Merriweather', serif; |
| 33 | +font-family: 'Montserrat', sans-serif; |
| 34 | +font-family: 'Oswald', sans-serif; |
| 35 | +font-family: 'Poppins', sans-serif; |
| 36 | +font-family: 'Signika', sans-serif; |
| 37 | +font-family: 'Teko', sans-serif; |
| 38 | +font-family: 'Titillium Web', sans-serif;/* Use a monospace font for proper text alignment */ |
| 39 | +} |
| 40 | + |
| 41 | +h1 { |
| 42 | + margin-top: 6 0px; |
| 43 | + color: #fff; |
| 44 | +} |
| 45 | + |
| 46 | +button { |
| 47 | + background-color: #007BFF; |
| 48 | + color: #fff; |
| 49 | + border: none; |
| 50 | + padding: 8px 16px; |
| 51 | + font-size: 18px; |
| 52 | + border-radius: 5px; |
| 53 | + cursor: pointer; |
| 54 | + margin-top: 5px; |
| 55 | + transition: transform 0.2s ease; /* Add transition for smooth scaling */ |
| 56 | +} |
| 57 | + |
| 58 | +button:hover { |
| 59 | + background-color: #0056b3; |
| 60 | + transform: scale(1.05); /* Scale up by 10% on hover */ |
| 61 | +} |
| 62 | + |
| 63 | +.joke-container { |
| 64 | + margin-top: 3px; |
| 65 | +} |
| 66 | + |
| 67 | +#jokeText { |
| 68 | + font-size: 18px; |
| 69 | + color: #fff; |
| 70 | + line-height: 1.2; /* You can adjust this value as needed for spacing */ |
| 71 | +} |
0 commit comments