/* Applying Comic Sans MS font */
body {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}
To center everything (both horizontally and vertically) in the middle of a page using CSS, here are three common methods:

1. Using Flexbox
Copy code
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
  margin: 0; /* Remove default margin */
}

2. Using Grid
Copy code
body {
  display: grid;
  place-items: center;
  height: 100vh; /* Full viewport height */
  margin: 0; /* Remove default margin */
}

3. Using Positioning
Copy code
body {
  position: relative;
  height: 100vh; /* Full viewport height */
  margin: 0; /* Remove default margin */
}

div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


Each method works well, but Flexbox and Grid are more modern and easier to use for responsive designs.