/* =========================================
   BASE DOCUMENT STRUCTURE
   ========================================= */

html {
  -webkit-overflow-scrolling: touch;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  height: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background-color: var(--color-bg-body);
  color: var(--color-text-body);
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity .15s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* =========================================
   HEADER STRUCTURE
   ========================================= */

header {
  background-size: auto 100%;
  background: var(--color-bg-dark);
  z-index: 400;
  position: absolute;
  top: 0;
  width: 100%;
}

header .home img {
  width: 124px;
}


/* =========================================
   CONTENT WRAPPER
   ========================================= */

#content-wrapper {
  background: url(../images/background.jpg) 0 0 repeat;
  transition: transform 0.3s linear 0s;
  min-height: 100%;
  position: relative;
  margin-top: 50px;
}

#content-wrapper.logged-in {
    margin-top: 98px;
}

.site-main {
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding-bottom: 150px;
  color: #333;
}

.site-main {
  padding-top: var(--header-height);
}
.mtg--home .site-main {
  padding-top: 0;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  background-color: var(--color-bg-darker);
  color: var(--color-text-light);
  text-align: center;
  padding: 30px 0;
  min-height: 150px;
  width: 100%;
  left: 0;
  bottom: 0;
  position: relative;
  overflow: visible;
  z-index: 15;
  display: block;
  margin-top: -120px;
}

.module_footer #back-to-top {
  text-align: center;
  width: 160px;
  height: 40px;
  margin-left: -80px;
  background: url(../images/back-to-top.png) center top no-repeat;
  position: absolute;
  top: -40px;
  left: 50%;
  z-index: 9;
  display: none;
  cursor: pointer;
}

.module_footer #back-to-top a {
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  width: 160px;
  height: 40px;
  padding-top: 22px;
  display: block;
  cursor: pointer;
}

.module_footer--copyrights--wrapper {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 20px;
}


/* =========================================
   GLOBAL TYPOGRAPHY
   ========================================= */

h2.divider-title {
  font-size: 1.6rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--color-text-dark);
  text-align: center;
  position: relative;
  margin: 10px 0 20px;
  padding: 0 30px;
  clear: both;
  width: 100%;
}

h2.divider-title:before {
  content: '';
  height: 1px;
  width: 100%;
  background: #bdbdbd;
  position: absolute;
  z-index: 0;
  left: 0;
  top: 50%;
  margin-top: -1px;
}

h2.divider-title span {
  background: var(--color-bg-body);
  position: relative;
  display: inline;
  padding: 0 10px;
  white-space: pre-wrap;
}


/* =========================================
   MISC GLOBAL UTILITIES
   ========================================= */

.website-message {
  min-height: 40px;
  line-height: 2em;
  background-color: #8c2a2a;
  color: #ccc;
  padding: 5px 10px;
  border-top: 1px solid #8c2a2a;
  border-bottom: 1px solid #8c2a2a;
}

.link-container {
  display: block;
  position: relative;
  margin-bottom: 15px;
}

.deck-row {
  margin-bottom: 20px;
}

.homepage-image {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.img-row-title {
  font-weight: 600;
  margin-bottom: 10px;
}
