/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Create the 'page' Container Effect */
body {
  font-family: Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  color: #000000;
}

/* Give the background screen a different color to facilitate 'page' */
main {
  background: #ffffff;
  width: 100%;
  max-width: 800px; /* Restore reasonable width */
  margin: 20px;
  padding: 40px; /* Reasonable padding */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative; /* Enable absolute positioning for visitor counter */
}

/* Name styling - large and centered */
header h1 {
  font-family: Arial, sans-serif;
  font-size: 24pt;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 5px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}

/* Contact info styling - centered, smaller text */
header p {
  font-family: Arial, sans-serif;
  font-size: 11pt;
  font-weight: 400;
  color: #666666;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}

/* Contact links styling */
header p a {
  color: #1155cc;
  text-decoration: underline;
  -webkit-text-decoration-skip: none;
  text-decoration-skip-ink: none;
}

/* Section headers with underline */
section h2 {
  font-family: Arial, sans-serif;
  font-size: 14pt;
  font-weight: 700;
  color: #000000;
  border-bottom: 1px solid #000000;
  padding-top: 15px;
  padding-bottom: 2px;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.2;
  text-align: left;
}

/* Regular paragraphs */
section p {
  font-family: Arial, sans-serif;
  font-size: 11pt;
  font-weight: 400;
  color: #000000;
  margin-top: 0;
  margin-bottom: 8px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.4;
  text-align: left;
}

/* Paragraphs that come after section headers */
section p.below-line {
  margin-top: 0;
  margin-bottom: 8px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Paragraphs that should be closer to text above */
section p.bring-closer-to-text-above {
  margin-top: -8px;
  margin-bottom: 8px;
}

/* Bold text styling */
b, strong {
  font-weight: 700;
}

/* Italic text styling */
i, em {
  font-style: italic;
}

/* List styling */
ul {
  margin-left: 20px;
  padding-left: 0;
  margin-top: 5px;
  margin-bottom: 10px;
  list-style-type: disc;
}

/* List items */
li {
  font-family: Arial, sans-serif;
  font-size: 11pt;
  font-weight: 400;
  color: #000000;
  margin-left: 0;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 4px;
  line-height: 1.4;
  text-align: left;
}

/* List items that should be closer to text above */
li.bring-closer-to-text-above {
  margin-top: 0;
}

li.below-line {
  margin-top: 0;
}

/* Date/Links Rightward Alignment */
.align-right {
  float: right;
  font-style: italic;
  color: #000000;
}

/* Section spacing */
section {
  margin-bottom: 20px;
}

/* Visitor count styling - more visible and better positioned */
.visitor-count-label {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: Arial, sans-serif;
  font-size: 12pt;
  color: #666666;
  background: #f8f9fa;
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.visitor-count {
  font-weight: 700;
  color: #2563eb;
  font-size: 13pt;
}

/* Links in content */
a {
  color: #1155cc;
  text-decoration: underline;
  -webkit-text-decoration-skip: none;
  text-decoration-skip-ink: none;
}

a:hover {
  color: #0d47a1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  main {
    margin: 10px;
    padding: 20px;
    padding-top: 60px; /* Add space for visitor counter on mobile */
  }
  
  header h1 {
    font-size: 20pt;
  }
  
  .visitor-count-label {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    text-align: center;
    font-size: 11pt;
  }
  
  .visitor-count {
    font-size: 12pt;
  }
}
