/* ========================================
  Page layout
======================================== */

body {
  padding: 0;
  margin: 0;

  font-family: Verdana, sans-serif;
}

header,
footer {
  position: relative;
  z-index: 1;

  color: #efefef;
  background-color: #181818;
  padding: 20px 50px;
  box-shadow: 1px 1px 5px 0 #111;

  text-align: center;
}

header h1 {
  margin-top: 0;
}

section {
  background-color: #333;
  background-attachment: fixed;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;

  padding: 80px 50px;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 30px 50px;

  color: #efefef;
  border: 2px solid;
  border-radius: 10px;
  box-shadow: 1px 1px 5px 0 #111;
}

h2 {
  margin-top: 0;
  text-align: center;
}

h2 img {
  max-width: 100%;
  max-height: 124px;
}

hr {
  position: relative;
  z-index: 1;

  border: none;
  height: 0;
  margin: 0;

  box-shadow: 0px 0px 3px 7px #eee;
}

/* ========================================
  Per-game theming
======================================== */

section#crucible {
  background-image: url(img/crucible_backdrop.png);
}
section#crucible .container {
  background: rgba(26, 26, 26, 0.9);
  border-color: rgb(155, 173, 183);
}

section#ignition {
  background-image: url(img/ignition_backdrop.png);
}
section#ignition .container {
  background: rgba(0, 0, 40, 0.9);
  border-color: cyan;
}

/* ========================================
  Contents
======================================== */

p {
  text-indent: 50px;
}

aside {
  max-width: 100%;
  width: 500px;
  max-height: 300px;
  border: 1px solid rgb(155, 173, 183);
  border-radius: 3px;
  margin-top: 5px;
  margin-bottom: 20px;
}

aside iframe {
  border: 0 none;
}

aside iframe,
aside img {
  height: 100%;
  width: 100%;
}

aside.left {
  margin-right: 40px;
}
aside.right {
  margin-left: 40px;
}

.actions {
  max-width: 500px;
  margin: auto;
  text-align: center;
}

a {
  color: #00FFFF;
}

a.primary {
  display: inline-block;
  /* Outer BG acts like a gradient border */
  background: linear-gradient(#DE9B3E 35%, #b56a28 38%);
  border-radius: 5px;
  padding: 2px;

  text-align: left;
  color: inherit;
  text-decoration: none;
}

a.primary > div {
  /* Inner BG is the "real" BG */
  background: linear-gradient(#52555e 35%, #3d3e42 38%);
  border-radius: 5px;
  padding: 8px;
}

a.primary:hover > div {
  background: transparent;
}

a.primary strong {
  font-size: 125%;
}

a.primary img {
  height: 36px;
}

footer ul li {
  display: inline-block;
}

footer ul li:not(:last-child) {
  margin-right: 30px;
  margin-bottom: 20px;
}

/* ========================================
  Reusable styles
======================================== */

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.left {
  float: left;
}

.right {
  float: right;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-row > * {
  flex: 1;
}

.flex-row > *:not(:last-child) {
  margin-right: 10px;
}

.flex-row > .fixed {
  flex: 0 0 auto;
}

/* ========================================
  Responsive layout
======================================== */

@media (max-width:1000px){

  body {
    font-size: 125%;
  }

  section {
    padding: 20px;
  }

  .container {
    max-width: unset;
    padding: 20px 35px;
  }

  aside {
    float: none !important;
    margin: auto !important;
  }
}
