* {
  margin: 0;
  border: 0;
}

html {
  background-color: rgb(205, 225, 234);
}

body {
  font-family: Raleway, sans-serif;
  line-height: 150%;
  color: rgb(96, 96, 96);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 600;
  color: #666;
}

p {
  margin-top: 9pt;
  margin-bottom: 9pt;
}

strong {
  font-weight: 600;
}

h1 {
  font-weight: 400;
  color: #999;
  line-height: 120%;
}

h1.frontpage {
  font-size: 150%;
  color: inherit;
}

h2 {
  font-size: 120%;
  margin-top: 2em;
  color: #999;
  font-weight: 600;
}

table {
  width: 100%;
  font-size: 90%;
}

th {
  padding: 4pt;
  font-weight: bold;
  color: white;
  background-color: rgb(57, 151, 186);
  border: none;
}

td {
  padding: 4pt;
  background-color: rgb(197, 220, 229);
  border: none;
}

#page {
  width: 928px;
  padding-left: 20px;
  padding-right: 20px;
  background-image: url(graphics/page-shadow.png);
  margin-left: auto;
  margin-right: auto;
}

#bottom-shadow {
  width: 968px;
  margin-left: auto;
  margin-right: auto;
  height: 20px;
  background-image: url(graphics/bottom-shadow.png);
}

#header {
  position: relative;
  padding: 30px;
  background-color: rgb(102, 102, 102);
  color: #ccc;
}

#header #logo {
  position: absolute;
  top: 30px;
  left: 20px;
}

#header h1 {
  margin-top: 4px;
  margin-left: 104px;
  color: #eee;
  font-weight: 600;
  font-size: 190%;
  line-height: 110%;
  margin-bottom: 0;
}

#header h1 .second-line {
  display: block;
  color: white;
  font-weight: 400;
  font-size: 90%;
}

#header p.byline {
  margin: 0;
  text-align: right;
  color: white;
}

#facebook-header {
  margin: 0;
  position: absolute;
  top: 0;
  right: 20px;
  background-color: white;
  padding: 12px;
  border-radius: 0px 0px 15px 15px;
  line-height: 110%;
}

#facebook-header p {
  margin-top: 0;
  margin-bottom: 0;
}

p.facebook-link span {
  display: block;
}

p.facebook-link img {
  float: left;
  margin-right: 8px;
  margin-top: -3px;
}

p.facebook-link a {
  display: block;
  text-decoration: none;
  font-weight: 400;
  color: black;
  margin-top: 3px;
}

#mainmenu {
  padding: 20px;
  background-color: rgb(128, 128, 128);
}

#mainmenu a {
  font-size: 110%;
  padding-left: 9pt;
  padding-right: 9pt;
  border-right: 2px solid #888;
  color: #d6d6d6;
  text-decoration: none;
  font-weight: 400;
}

#mainmenu a.current {
  font-weight: 600;
  color: white;
}

#mainmenu a:first-child {
  margin-left: 112px;
  padding-left: 0;
}

#mainmenu a:last-child {
  border: none;
}

#mainmenu a:hover {
  color: white;
}

#content {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

#maincontent {
  width: 70%;
  background-color: white;
  padding: 40px;
  order: 1;
  -ms-flex-negative: 1; /* IE 10 fix */
}

#maincontent.maincontent-frontpage {
  padding: 0;
}

#maincontent .frontpage-content {
  padding: 40px;
}

#maincontent.wide {
  width: 100%;
}

#sidebar {
  width: 30%;
  background-color: rgb(245, 230, 230);
  color: rgb(64, 64, 64);
  order: 2;
  -ms-flex-negative: 1; /* IE 10 fix */
  padding: 40px;
}

#sidebar.no-padding {
  padding: 0;
}

#sidebar h2:first-child {
  margin-top: 0;
  color: #464646;
}

#sidebar .frontpage {
  background-image: url("graphics/piggy-front-side-image-translucent.png");
  background-repeat: no-repeat;
  background-position: center 40px;
  background-size: 180px;
  padding: 40px;
}

.dates {
  background-color: rgb(224, 34, 53);
  padding: 20px;
  color: white;
  text-align: center;
}

.dates em {
  font-style: normal;
  font-size: 120%;
  display: block;
}

.dates a {
  color: white;
}

#sidebar-image {
  text-align: center;
}

#sidebar-image img {
  width: 180px;
  height: auto;
}

#piggy-book-pile {
  text-align: center;
}

#piggy-book-pile img {
  width: 70%;
  max-width: 220px;
  height: auto;
}

#facebook-footer {
  display: none;
}

#footer {
  padding-top: 5px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 5px;
  background-color: rgb(128, 128, 128);
  color: rgb(230, 230, 230);
  font-size: 90%;
}

#footer a {
  color: white;
}

.buttonlink-container {
  margin-top: 2em;
  margin-bottom: 2em;
}

.buttonlink {
  display: inline-block;
  background-color: rgb(197, 220, 229);
  color: #464646;
  padding: 9pt;
  text-decoration: none;
  margin-bottom: 3pt;
}

/* Front page */

.sidebar-bullets {
  text-align: center;
  font-size: 120%;
  line-height: 180%;
}

.sidebar-bullets ul {
  padding: 0;
}

.sidebar-bullets li {
  list-style-type: none;
  padding: 0;
  color: rgb(57, 151, 186);
  font-weight: 600;
}

.sidebar-bullets li:nth-child(odd) {
  color: rgb(224, 34, 53);
}

/* Contact page */
form.contact label {
  display: inline-block;
  width: 4em;
}

form.contact input {
  font-size: 120%;
  border: 1px solid #e6e6e6;
  font-family: Raleway, sans-serif;
  background-color: rgb(242, 242, 242);
  border: 1px solid rgb(57, 151, 186);
}

form.contact input[type="submit"] {
  font-size: 100%;
  background-color: rgb(197, 220, 229);
  border: 1px solid rgb(57, 151, 186);
  color: #464646;
  padding: 0.5em;
}

form.contact textarea {
  display: block;
  font-size: 120%;
  font-family: Raleway, sans-serif;
  background-color: rgb(242, 242, 242);
  border: 1px solid rgb(57, 151, 186);
  width: 100%;
  height: 6em;
  margin-top: 6pt;
}

#maincontent .dates {
  display: none;
}

/* Responsive styles */

@media screen and (max-width: 968px) {
  html {
    background-color: rgb(128, 128, 128);
  }

  #page {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    background: none;
    margin-left: 0;
    margin-right: 0;
  }

  #bottom-shadow {
    display: none;
  }
}

@media screen and (max-width: 700px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  #facebook-header {
    display: none;
  }

  #facebook-footer {
    display: block;
    padding: 10px 20px;
    background-color: #eee;
    line-height: 120%;
  }

  /*#mainmenu a {
		font-size: 90%;
		padding-left: 6pt;
		padding-right: 6pt;
	}*/
}

@media screen and (max-width: 568px) {
  #content {
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
  }

  #maincontent {
    width: 100%;
  }

  #sidebar {
    width: 100%;
  }

  #sidebar .dates {
    display: none;
  }

  #maincontent .dates {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  #footer .bullet {
    display: none;
  }

  #footer .copyright,
  #footer .designer {
    display: block;
  }

  #header #logo {
    width: 80px;
    height: 80px;
  }

  #header p.byline {
    margin-top: 1rem;
  }

  #header h1 {
    font-size: 150%;
    margin-left: 90px;
  }

  #mainmenu a {
    display: block;
    font-size: 110%;
    padding-left: 9pt;
    padding-right: 9pt;
    padding-top: 6pt;
    padding-bottom: 6pt;
    border-right: none;
    color: #eee;
    text-decoration: underline;
    font-weight: 400;
  }

  #mainmenu a:first-child {
    margin-left: 0;
    padding-left: 9pt;
  }

  form.contact input {
    width: 100%;
  }
}
