﻿/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role=list],
ol[role=list] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html, body {
  font-family: "Avenir Next LT Pro", "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.main header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.main header img {
  display: block;
  margin: auto;
  max-width: 100%;
  margin-bottom: -12px;
}
.main header p {
  text-align: center;
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.5;
  font-weight: 400;
  color: #666;
  margin-bottom: 1em;
}
.main .content {
  position: relative;
  flex-grow: 1;
}
.main .content:before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url(lines.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  z-index: -1;
  opacity: 0.75;
}
.main .content ul {
  padding: 2em;
  max-width: 50em;
  margin: 0 auto;
  list-style-type: none;
}
.main .content ul li {
  z-index: 5;
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 1em 2em;
  text-align: left;
  margin-bottom: 2em;
  border-radius: 5px;
}
.main .content ul li a {
  font-size: 24px;
  text-decoration: none;
  font-weight: 400;
  display: block;
}
.main .content ul li a:hover {
  text-decoration: underline;
}
.main .content ul li p {
  margin-top: 0.5em;
  font-size: 20px;
}

article {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-image: url(tiles.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
article .content {
  flex-grow: 1;
  background-color: #fff;
  padding: 1em 2em;
  width: 60em;
  max-width: 100%;
  margin: 0 auto;
  font-size: 18px;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}
article .content header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5em;
}
article .content header img {
  max-width: 300px;
  margin-left: -16px;
  margin-right: 1em;
}
article .content header h1 {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 3;
  font-weight: 400;
  color: #666;
  margin: 0;
}
article .content h1, article .content h2, article .content h3, article .content h4, article .content h5, article .content h6 {
  letter-spacing: 1px;
  margin-bottom: 0.5em;
  font-weight: 500;
  color: #333;
}
article .content p {
  line-height: 1.65;
  margin-bottom: 1em;
}
article .content p img {
  max-width: 100%;
  display: block;
  margin: 1.5em auto;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
article .content table {
  border-spacing: 0;
  border: 1px solid #eee;
}
article .content table th {
  background-color: #eee;
  font-size: 14px;
  padding: 0.25em 0.5em;
}
article .content table td {
  border: 1px solid #eee;
  padding: 0.25em 0.5em;
}
article .content table p {
  margin: 0;
}
article .content pre {
  max-width: 100%;
  overflow: auto;
}

footer {
  background-color: #2F343C;
  color: #fff;
  line-height: 1.5;
  padding: 0.65em 0.85em;
  justify-content: space-between;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}
footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}
footer ul a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-align: center;
  margin-left: 1em;
}
footer ul a > img {
  max-width: 32px;
  margin-right: 1em;
}
footer ul a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  footer {
    justify-content: center;
    flex-direction: column;
  }
  p {
    margin-top: 1em;
  }
  article .content {
    padding: 1em;
  }
  article .content header {
    justify-content: center;
  }
  article .content header img {
    margin: 0 auto;
  }
  article .content header h1 {
    line-height: 1.5;
    text-align: center;
  }
}
