/* Box sizing kaikille elementeille */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #1a1a1a;
  color: #E5D07A;
  font-family: "Inconsolata", monospace;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 1rem;
}

.container {
  width: 90%;
  max-width: 600px; /* voit kasvattaa tarvittaessa 700-800px isoille näytöille */
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

h1, h2, h3 {
  color: #FF6666;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

section {
  line-height: 1.8;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: #E5D07A;
  text-decoration: underline;
}

a:hover {
  color: #ff6600;
}

nav {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14.25px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;      /* rivityttää linkit pienillä näytöillä */
  justify-content: center;
}

nav a {
  margin: 5px;
  word-break: break-word;  /* estää pitkien linkkien rikkomisen layouttia */
}

hr {
  border: 0.8px solid #333333;
  margin-bottom: 20px;
  width: 100%; /* varmistaa, ettei mene yli containerin */
}

footer {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.75px;
  color: #555555;
  margin-top: 40px;
  text-align: left;
}

footer a {
  text-decoration: none !important;
  color: #555555 !important;
}

footer a:hover {
  color: #ff6600 !important;
  text-decoration: none !important;
}

hr.dashed {
  border: 0.8px dashed #333333;
}

@media (max-width: 480px) {
  .container {
    width: 95%;   /* lähes koko ruutu pienillä näytöillä */
    padding: 10px; /* pienempi padding */
  }

  nav {
    font-size: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  footer {
    font-size: 11px;
  }
