/* Reset some default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body: set font, background and center content horizontally */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  display: flex;
  justify-content: center; /* center horizontally */
  padding: 20px;
}

/* Main container with max-width and padding */
main, header, footer {
  max-width: 800px;
  width: 100%;
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Header styles */
header {
  text-align: center;
}

header h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

header img {
  margin-bottom: 15px;
}

/* Only avatar is round */
.avatar {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Logo stays square */
.logo {
  border: 5px solid red;
  border-radius: 0;
  width: 100px;
  height: auto;
}

/* Navigation menu */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #005fa3;
}

/* Section headings */
section h2 {
  border-bottom: 2px solid #0077cc;
  padding-bottom: 5px;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

/* Lists styling */
ul {
  list-style: disc inside;
  margin-bottom: 15px;
}

ul li {
  margin-bottom: 6px;
}

/* Code block styling */
pre {
  background-color: #eee;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: Consolas, monospace;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Footer styling */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

footer a {
  color: #0077cc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive: on small screens, stack nav links vertically */
@media (max-width: 500px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}
