/* General styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', 'monospace';
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased; /* Better font rendering */
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  opacity: 0.8;
}

main ul {
  list-style-type: disc;  /* Ensures black dots are used */
  padding-left: 40px;     /* Adds space for the bullet points */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--background-color);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--background-color);
}


.logo-link {
  font-size: 24px;
  text-transform: uppercase;
  color: inherit;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style-type: none;
}

nav ul li {
  text-transform: uppercase;
}

nav ul li a {
  color: inherit;
  font-size: 18px;
}

/* Horizontal line under the header */
.header-hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--hr-color);
  width: 100%;
}

/* Main content */
main {
  width: 75%;
  margin: 40px auto;
  padding: 20px;
}

main a {
  color: inherit;
  text-decoration: underline;
}

h1 {
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

p {
  margin-bottom: 20px;
}

/* Dark and Light Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #121212;
    --hr-color: #444444;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --background-color: #ffffff;
    --text-color: #333333;
    --header-bg: #ffffff;
    --hr-color: #cccccc;
  }
}

@media only screen and (max-width: 600px) {
  main {
    width: 95%;
  }

  nav ul li a {
    font-size: 16px;
  }
}