/* South Molton Struggle page: its own look, carried over from the old site
   (css/struggle.css on Start Bootstrap's Grayscale theme, and the parts of
   Bootstrap 3 it used). Sponsors and the staff notice and edit link are in
   race-page.css. */

/* Base ---------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html, body { width: 100%; height: 100%; }
html { font-size: 10px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2); }

body {
  margin: 0;
  padding-top: 50px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #000;
  background: #961313;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 35px;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h5 { font-size: 14px; }

p { margin: 0 0 25px; font-size: 18px; line-height: 1.5; }
ul { font-size: 20px; }

a { color: #869ed8; text-decoration: none; transition: all 0.2s ease-in-out; }
a:hover, a:focus { color: #337ab7; }

img { max-width: 100%; vertical-align: middle; border: 0; }
::selection { text-shadow: none; background: rgba(255, 255, 255, 0.2); }
img::selection { background: transparent; }

.text-center { text-align: center; }
.light { font-weight: 400; }

@media (min-width: 768px) {
  h2 { font-size: 48px; }
  p { margin: 0 0 35px; font-size: 20px; line-height: 1.6; }
}

/* Layout (Bootstrap's container; the old col-lg-8 col-lg-offset-2) -------- */

.container { margin: 0 auto; padding: 0 15px; }
.container::after { content: ""; display: table; clear: both; }

@media (min-width: 768px) { .container { width: 750px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.narrow, .intro-col { margin: 0 auto; }
@media (min-width: 992px) { .intro-col { width: 66.66666667%; } } /* the old col-md-8 col-md-offset-2 */
@media (min-width: 1200px) { .narrow { width: 750px; } }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 10px 16px;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3333333;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease-in-out;
}

.btn-outline { border: 1px solid #fff; color: #fff; background-color: transparent; }
.btn-outline .icon { margin-right: 0.3em; }
.btn-outline:hover, .btn-outline:focus { outline: none; color: #000; background-color: #fff; }

.icon { display: inline-block; width: auto; height: 1em; vertical-align: -0.125em; }

/* Navigation --------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  min-height: 50px;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  background: #da0000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.navbar a { color: white; }

.navbar-header::after { content: ""; display: table; clear: both; }
.navbar-header { margin: 0 -15px; }

.navbar-brand {
  float: left;
  height: 50px;
  padding: 15px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}
.navbar-brand:hover, .navbar-brand:focus { color: white; outline: none; }

.navbar-toggle {
  float: right;
  margin: 8px 15px 8px 0;
  padding: 9px 10px;
  font: inherit;
  font-size: 12px;
  text-transform: none;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}
.navbar-toggle:focus, .navbar-toggle:active { outline: none; }

.navbar-nav {
  display: none;
  margin: 0 -15px;
  padding: 7.5px 15px;
  list-style: none;
  font-size: 14px;
  border-top: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.navbar-nav.open { display: block; }
.navbar-nav a { display: block; padding: 10px 15px; line-height: 20px; transition: background 0.3s ease-in-out; }
.navbar-nav a:hover { color: rgba(255, 255, 255, 0.8); outline: none; }
.navbar-nav a:focus, .navbar-nav a:active { outline: none; }
.navbar-nav li.active a { background-color: rgba(0, 0, 0, 0.34); }
.navbar-nav li.active a:hover { color: white; }

@media (min-width: 375px) {
  .navbar-brand { font-size: 16px; }
}

@media (min-width: 768px) {
  .navbar {
    padding: 20px 0;
    border-bottom: none;
    letter-spacing: 1px;
    transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
  }
  .navbar.top-nav-collapse { padding: 0; }
  .navbar-header { float: left; margin: 0; }
  .navbar-brand { margin-left: -15px; }
  .navbar-toggle { display: none; }
  .navbar-nav, .navbar-nav.open { display: block; float: right; margin: 0 -15px 0 0; padding: 0; border: 0; box-shadow: none; }
  .navbar-nav li { float: left; }
  .navbar-nav a { padding: 15px; font-size: 15px; }
}

@media (min-width: 1024px) {
  .navbar-nav a { font-size: 20px; }
}

/* Intro -------------------------------------------------------------------- */

.intro {
  display: table;
  width: 100%;
  height: auto;
  padding: 100px 0;
  text-align: center;
  color: white;
  background: url("/images/struggle/intro2022.jpg") no-repeat bottom center scroll black;
  background-size: cover;
}
.intro-body { display: table-cell; vertical-align: middle; }
.intro .brand-heading { margin-top: 25px; font-size: 40px; } /* the old page's <p><h1> left an empty paragraph's margin above */

.btn-circle {
  display: inline-block;
  width: 70px;
  height: 70px;
  margin-top: 15px;
  font-size: 40px;
  line-height: 66px;
  color: white;
  background: transparent;
  border: 2px solid white;
  border-radius: 100%;
  transition: background 0.3s ease-in-out;
}
.btn-circle:hover, .btn-circle:focus { outline: none; color: white; background: rgba(255, 255, 255, 0.1); }
.btn-circle .icon { vertical-align: -0.15em; }
.btn-circle:hover .icon { animation: struggle-pulse 1.5s linear infinite; }

@keyframes struggle-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

@media (min-width: 768px) {
  .intro { height: 100%; padding: 0; }
  .intro .brand-heading { margin-top: 35px; font-size: 60px; }
}

/* Sections ----------------------------------------------------------------- */

.content-section { padding: 100px 0; }

#race-entry, #race-rb, #race-history { background-color: #961712; color: white; }
#race-hospice, .sponsors-band { background: #fff; color: #333; }
.sponsors-band { color: #000; }

/* The Struggle logo in the page's content */
#race-entry img[src$="struggle-no-date.png"] { max-width: 150px; }

.arc { border: solid white 15px; border-radius: 5px; }
.race-charity { display: block; margin: 40px 20px 0; }

/* Footer ------------------------------------------------------------------- */

footer { padding: 50px 0; text-align: center; background: rgba(0, 0, 0, 0.32); }
footer span { font-size: small; }

@media (min-width: 768px) {
  footer { text-align: left; }
}
