html, body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1.1rem;
    color: black;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background-image: url("/img/taustaruudut.jpg");
    background-size: 5vw;
    background-position: left;
    background-repeat: repeat-y;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: #FFD800;
  color: black;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: bold;
}

.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  border: 2px solid #000;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 900px;
    height: 100%;
    padding-left: 5vw;
    margin-top: 1rem;
}

header {
    width: 100%;
}

main {
    flex: 1;
    width: 100%;
}

footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #FFD800FF;
    margin-top: 1rem;
    font-size: 0.8rem;
}

/* header */

.nav-toggle {
    float: right;
    background: #FFD800FF;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 15px;
    border: none;
    font-size: 1.2rem;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.nav {
    display: none;
    flex-direction: column;
    gap: 0.7rem;
    background: #FFD800FF;
    padding: 1rem;
    padding-left: 2rem;
    border-radius: 15px;
}

.nav.show {
    display: flex;
    width: 85%;
}

.nav a {
    font-size: 1.3rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
}

.nav a:hover {
    color: #005A5A;
}

.nav a:focus {
    color: #005A5A;
}

.nav a[aria-current="page"] {
  color: #005A5A;
}

#logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin: 2rem 0 0 0;
}

#logo-img {
    display: block;
    width: 100%;
}

#logo a {
    line-height: 0;
    width: 100%;
}

@media (min-width: 700px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        background: #FFD800FF;
        padding: 1.5rem;
    }
}

/* main */

h1 {
    border-top: solid 4px #FFD800FF;
    border-left: solid 4px #FFD800FF;
    border-radius: 15px;
    padding: 20px;
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

#pikainfo {
    border: solid 4px #FFD800FF;
    border-radius: 15px;
    padding: 0.1rem 1rem;
    margin: 1rem 0;
}

.pieni {
    font-size: 0.9rem;
}

a {
    color: #005A5A;
}

a:focus {
    outline: 1px dashed #005A5A;
    outline-offset: 2px;
}

.double {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.double img {
    align-self: flex-start;
    max-width: 100%;
    height: auto;
}

.half {
    width: 45%;
}

@media (max-width: 700px) {
    .half {
        width: 100%;
    }
}

.puhelin {
    text-decoration: none;
    font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

thead {
  background-color: #f9f9f9;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  th, td {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sisennys {
    padding-left: 20px;
}

/* footer */

footer > p {
    margin: 0.5rem 0;
}

.fb-icon {
    width: 30px;
}

