/* set correct box model */
* {
    box-sizing: border-box;
}

body {
  color: black;
  background-color: #6495edaa;
  font-family: Helvetica, Arial, sans-serif;
  margin: 0px;
}

header#header-canvas {
  width: 100%;
  height: 150px;
  overflow: hidden;
  display: block;
}

h1, h2 {
  text-align: center;
  margin-top: 5px;
}

/* Table header and data cells */
table td:first-child {
  text-align: right;
}
th, td {
  padding-left: 0px;
  padding-right: 10px;
}

a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: black;
  text-decoration: underline;
  font-weight: bold;
}

.justified {
  text-align: justify;
  margin: 5px;
}

.bordered {
  border: 1px solid black;
  margin: 5px;
  padding: 10px;
}

.fit img {
  width: 100%;
  height: auto;
}

.centered {
  text-align: center;
}

/* flexbox container */
.holy-grail-flexbox {
  display:flex;
  flex-wrap:wrap;
}

/* columns (mobile) */
.holy-grail-flexbox > * {
  width:100%;
  padding:1rem;
}

/* background colors */
.main-content {
  background: white;
}
.left-sidebar, .right-sidebar {
  background: #6495ed;
  display: none;
}
.footer {
  background: #6495ed;
}

/* tablet breakpoint */
@media (min-width:768px) {
  .left-sidebar,
  .right-sidebar {
    display: none;
    width:50%;
  }
  .dynamic-break {
    display: none;
  }
}

/* desktop breakpoint */
@media (min-width:1024px) {
  header {
    order:-2; /* header first */
    max-width: 1024px;
    margin: 0 auto;
  }
  .main-content {
    width:75%;
    max-width: 768px;
  }
  .left-sidebar {
    /* left sidebar second (first in second row) */
    order:-1;
    display: block;
    width:12.5%;
    max-width: 128px;
    margin-left: auto;
    margin-right: 0;
  }
  .right-sidebar {
    display: block;
    width:12.5%;
    max-width: 128px;
    margin-left: 0;
    margin-right: auto;
  }
  .footer {
    max-width: 1024px;
    margin: 0 auto;
  }
  .dynamic-break {
    display: in-line;
  }
}
