style.css 872 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. body, html {
  2. height: 100%;
  3. margin: 0;
  4. font-family: Arial, Helvetica, sans-serif;
  5. }
  6. * {
  7. box-sizing: border-box;
  8. }
  9. .bg-image {
  10. /* The image used */
  11. background-image: url("/maydo/background.jpg");
  12. /* Add the blur effect */
  13. filter: blur(8px);
  14. -webkit-filter: blur(8px);
  15. /* Full height */
  16. height: 100%;
  17. /* Center and scale the image nicely */
  18. background-position: center;
  19. background-repeat: no-repeat;
  20. background-size: cover;
  21. }
  22. /* Position text in the middle of the page/image */
  23. .bg-text {
  24. background-color: rgb(0,0,0); /* Fallback color */
  25. background-color: rgba(0,0,0, 0.4); /* Black w/opacity/see-through */
  26. color: white;
  27. font-weight: bold;
  28. border: 3px solid #f1f1f1;
  29. position: absolute;
  30. top: 50%;
  31. left: 50%;
  32. transform: translate(-50%, -50%);
  33. z-index: 2;
  34. width: 80%;
  35. padding: 20px;
  36. text-align: center;
  37. }