/*
  REVIEW NOTES (style.css)
  - p { padding: blue; } is not a valid value. "blue" is a colour, not a length, so the browser ignored the whole rule.
    It was replaced with margin, which is what the student probably intended (space between paragraphs).
  - p { line-height: 20px; } was smaller than the default text size, so lines of text overlapped on longer paragraphs.
    A unitless value (1.5) keeps spacing relative to the font size and is easier to read.
  - nav a used #81dbff text on a rgb(0,140,255) background. The contrast was too low to read comfortably (about 2.2:1).
    Black text on that blue is about 6:1, which passes accessibility guidelines.
  - nav now wraps on small screens (flex-wrap), so links do not run off the edge of a phone.
  - img used a fixed-width layout. max-width: 100% lets images shrink on phones.
    The 50% border-radius still makes the photos circular.
  - "36PX" changed to lowercase "px" for consistency (CSS units are not case-sensitive, so this is a style fix only).
  - Added a footer style and a visible focus outline for keyboard users.
*/

body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #81dbff;
  line-height: 1.5;
  /* REVISION: line-height added here so all text is easier to read. */
}

h1 {
  color: rgb(0, 140, 255);
  font-size: 36px;
  /* REVISION: "36PX" changed to "36px" (style only). */
}

h2 {
  color: rgb(0, 140, 255);
}

nav {
  display: flex;
  flex-wrap: wrap;
  /* REVISION: flex-wrap lets links move to a new line on phones instead of overflowing. */
  gap: 20px;
  padding: 10px;
  background-color: rgb(0, 140, 255);
}

nav a {
  text-decoration: none;
  color: #000000;
  /* REVISION: link text changed from light blue to black. Light blue on this blue background was hard to read. */
  font-weight: bold;
}

nav a:hover,
nav a:focus {
  color: white;
  background-color: #000000;
  /* REVISION: hover and focus states now use black, which gives clear contrast with white text. :focus was added so keyboard users can see which link is selected. */
}

img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  /* REVISION: images scale down on small screens. Previously max-width was fixed at 400px, which could overflow a phone screen. */
  border-radius: 50%;
  border: 4px solid #45b6eb;
}

p {
  margin: 0 0 1em;
  /* REVISION: "padding: blue" removed (it was invalid). Replaced with a bottom margin so paragraphs have space between them. */
  line-height: 1.5;
}

ul {
  margin: 0 0 1em;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgb(0, 140, 255);
}
