/* Basic responsive table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

th, td {
  padding: 8px;
  text-align: left;
}

@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    display: none;
  }
  tr {
    margin-bottom: 1em;
    border-bottom: 1px solid #ccc;
  }
  td {
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #eee;
  }
  td:before {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    content: attr(data-label);
  }
}

/* Responsive form fields */
input, select, button {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    background-color: #FFFFFF;
    margin: 0;
}
.navtop {
    background-color: #3b4656;
    height: 60px;
    width: 100%;
    border: 0;
}
.navtop div {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    height: 100%;
    padding: 0 10px;
}
.navtop div h1, .navtop div a {
    display: inline-flex;
    align-items: center;
}
.navtop div h1 {
    flex: 1;
    font-size: 24px;
    padding: 0;
    margin: 0;
    color: #ebedee;
    font-weight: normal;
}
.navtop div a {
    padding: 0 20px;
    text-decoration: none;
    color: #c4c8cc;
    font-weight: bold;
}
.navtop div a i {
    padding: 2px 8px 0 0;
}
.navtop div a:hover {
    color: #ebedee;
}
.content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}
.content h2 {
    margin: 0;
    padding: 25px 0;
    font-size: 22px;
    border-bottom: 1px solid #ebebeb;
    color: #666666;
}

.calendar {
    width: 100%;
    
    margin: 0 auto;
}

.header, .days {
    display: flex;
    flex-wrap: wrap;
}

.day_name, .day_num {
    flex: 1 0 14.28%; /* 7 columns */
    box-sizing: border-box;
    min-width: 40px;
    min-height: 40px;
    text-align: center;
    padding: 4px 0;
}

@media (max-width: 600px) {
    .calendar {
        max-width: 100%;
        font-size: 14px;
    }
    .day_name, .day_num {
        min-width: 32px;
        min-height: 32px;
        font-size: 12px;
        padding: 2px 0;
    }
    .header, .days {
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
  #ajanvaraukseen_btn {
    position: fixed;
    margin-bottom: 10px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    border-radius: 0;
    z-index: 1050;
    margin: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  }
}