/* Yksinkertainen ja responsiivinen tyyli */

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #f5f7fa, #e4ebf1);
  color: #333;
  margin: 0;
  padding: 0;
}
tr.border_bottom td {
  border-bottom: 1px solid black;
}
.container {
  max-width: 600px;
  margin: 5vh auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
}

h1 {
  color: #ff0000;
}

h2 {
  color: #ff0000;
}

h3 {
  color: #0056a6;
}

/*
button, .btn {
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
*/

button, .btn {
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  white-space: normal;       /* sallii tekstin rivittyä */
  max-width: 100%;           /* estää ylivuodon */
  box-sizing: border-box;    /* huomioi paddingin leveyden laskennassa */
}

/*
.table-container {
  width: 100%;
  overflow-x: auto;     /* sallii vaakasuoran vierityksen */
  -webkit-overflow-scrolling: touch;  /* sulava vieritys iOS-laitteilla */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  //min-width: 600px;     /* estää sisällön puristumisen liikaa */
}
*/

button:hover, .btn:hover {
  background-color: #005fa3;
}

a.btn {
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  overflow-x: auto;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .container {
    margin: 2vh 1rem;
    padding: 1.5rem;
  }
  button, .btn {
    width: 100%;
  }
}
