title-screen.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <style type="text/css">
  2. #title-screen h1 {
  3. font-family: sans-serif;
  4. font-weight: normal;
  5. font-size: 4em;
  6. }
  7. #title-screen button.primary {
  8. width: 200px;
  9. height: 160px;
  10. font-size: 2em;
  11. background-color: transparent;
  12. border: 4px solid white;
  13. border-radius: 16px;
  14. color: white;
  15. transition: all 0.2s ease-in-out;
  16. margin: 4px;
  17. }
  18. #title-screen button.primary:hover {
  19. background-color: white;
  20. color: black;
  21. cursor: pointer;
  22. }
  23. #title-screen button.secondary {
  24. width: 100px;
  25. height: 80px;
  26. font-size: 1.5em;
  27. background-color: transparent;
  28. border: 4px solid white;
  29. border-radius: 8px;
  30. color: white;
  31. transition: all 0.2s ease-in-out;
  32. margin: 4px;
  33. }
  34. #title-screen button.secondary:hover {
  35. background-color: white;
  36. color: black;
  37. cursor: pointer;
  38. }
  39. #title-screen {
  40. font-family: sans-serif;
  41. color: white;
  42. text-align: center;
  43. width: 50%;
  44. height: 100%;
  45. margin-left: auto;
  46. margin-right: auto;
  47. padding-top: 12%;
  48. }
  49. @media (max-width: 320px) {
  50. #title-screen {
  51. padding-top: 20px;
  52. }
  53. }
  54. </style>
  55. <div id="title-screen">
  56. <h1>Envious Mouse</h1>
  57. <button class="primary" id="play-button">Play</button><br />
  58. <button class="secondary" id="credits-button">Credits</button>
  59. </div>