/******************************************
// Defaults CSS for the theme
*/

* {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; 
}

html {
  scroll-behavior: smooth;  
}

.hide {
	display: none;
}

.no-scroll {
  overflow-y: hidden;
}

img {
  max-width: 100%;
}

@media screen and (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}

@media screen and (max-width: 1024px) {
  .desktop-only {
    display: none;
  }
}


/******************************************
//GLOBAL
*/
html {
	font-size: 16px;
  font-family: 'Montserrat', sans-serif;
}

/*set colours*/
:root {
  --black: #444; 
  --grey: #343a40;
  --lightgrey: #b5b5b5;
  --verylightgrey: #f2f2f2;
  --superlightgrey: #fbfbfb;
  --blue: #00a6e0;
  --darkblue: #004071;
  --red: #e84949;
  --gradient:linear-gradient(90deg, rgba(219,39,51,1) 0%, rgba(255,95,1,1) 100%);
  --fade:all 0.2s ease-out;
}

h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;  
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
}

h2 {
  position: relative;
  margin: 0;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--darkblue);
}

h3 {
  margin: 0;
}

p {
  margin: 0; 
  color: var(--black);
}

a:link {
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
  padding: 0;
}

.no-margin {
  margin: 0 !important;
}

.blue {
  color: var(--blue);
}

.centered {
  text-align: center !important;
}

.desktop-only {
  display: none !important;
}

.desktop-table-cell {
  display: none;
}

.fa-info-circle {
  padding-left: 10px;
  color: var(--blue);
  font-size: 1.125rem;
  align-self: center;
}

@media screen and (min-width: 768px) {
  h2 {
    font-size: 3.125rem;
  }

  .desktop-only {
    display: inline-block;
  }

  .tablet-table-cell {
    display: table-cell;
  }
}

@media screen and (min-width: 1024px) {
  .desktop-table-cell {
    display: table-cell;
  }
}

/******************************************
//BUTTONS & LINKS
*/
.button, .content-wrap a.button  {
  display: inline-block;
  padding: 15px 20px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background-color: var(--darkblue);
  transition: var(--fade);
  text-decoration: none;
}

.button .fas, .button .fal {
  padding: 0 0 0 5px;
}

.button:hover, .content-wrap a.button:hover {
  color: #fff;
  background-color: var(--blue);
}

.button-reverse, .content-wrap a.button-reverse {
  background-color: var(--blue);
}

.button-reverse:hover, .content-wrap a.button-reverse:hover {
  background-color: var(--darkblue);
}


/******************************************
//LAYOUT
*/
body {
	width: 100%;
  text-align: center;
}

body:after {
	content: '';
	position: fixed;
	top: 0;
	z-index: -1;
	display: block;
	width: 100%;
	height: 100%;
	background: #2b2b2b;
	opacity: 0;
	transition: all 0.3s ease-out;
}

body.overlay:after {
	z-index: 98;
	opacity: 0.5;
}

.container {
  width: auto;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 10px;
}


/******************************************
//HEADER
*/
header {
  background: url("../images/bg-home-hero.png") no-repeat;
  background-size: cover;
}

#banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 1025px) {
  #banner {
    grid-template-columns: auto 1fr auto;
    padding-top: 1rem;
  }
}

/* Logo */ 
.header-logo {
  width: 120px;
}

/* Primary Nav */
.header-nav {
  justify-self: end;
}

.header-nav .fa {
  padding: 20px 10px 0 0;
  font-size: 3rem;
  color: var(--blue);
}

#menu-main-menu {
    /* position: relative; */
    /* width: 100vw; */
    /* height: 100vh; */
    /* top: -100px; */
    /* right: 100px; */
    /* padding: 2rem 0 0; */
    /* background: var(--blue); */
    z-index: 1;
    transition: right 150ms ease;
    text-align: right;
    list-style-type: none;
}

.showmenu {
  right: 0 !important;
}

#menu-main-menu li {
  padding-bottom: 2rem;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
}

#menu-main-menu li:last-of-type {
  padding-bottom: 0;
}

#menu-main-menu a {  
  color: #fff;
  transition: var(--fade);
}

#menu-main-menu a:hover {
  color: var(--blue);
}

@media screen and (min-width: 1025px) {
  .header-nav {
    justify-self: start;
    padding: 1rem 0 0 50px;
  }

  .header-nav .fa {
    display: none;
  }

  #menu-main-menu {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    background: none;
    text-align: left;
  }

  #menu-main-menu li {
    display: inline-block;
    padding: 0 1rem 0 0;
  }  

  #menu-main-menu a {
    padding: 0 0 1rem 0;
  }

  #menu-main-menu a:after {
    display: block;
    content: '';
    border-bottom: 3px solid var(--blue);
    opacity: 0;
    padding-bottom: 1rem;
    transition: var(--fade);
  }

  #menu-main-menu a:hover:after {
    opacity: 1;
  }
}

@media screen and (min-width: 1280px) {
  .header-nav {
    padding: 1rem 0 0 75px;
  }

  #menu-main-menu li {
    padding: 0 2rem 0 0;
  }
}

/* Secondary Nav */
.header-secondary-nav {
  grid-row: 1/1;
  grid-column: 1/3;
  padding: 1rem 0;
  list-style: none; 
  justify-self: end;
}

.header-secondary-nav li {
  display: inline-block;
  padding: 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-secondary-nav li:last-of-type {
  padding: 0 10px 0 0;
}

.header-secondary-nav li a {  
  color: var(--lightgrey);
}

.header-secondary-nav li a:hover {  
  color: #fff;
}

.header-secondary-nav .far {
  margin-right: 5px;
  font-size: 1rem;
  color: var(--blue);
}

@media screen and (min-width: 1025px) {
  .header-secondary-nav {
    grid-row: initial;
    grid-column: initial;
  }

  .header-secondary-nav li {
    padding: 0 1rem 0 0;
  }

  .header-secondary-nav li:last-of-type {
    padding-right: 0;
  }
}



/******************************************
//INTERNAL HERO
*/
#hero-internal {
  padding-bottom: 3rem;
  text-align: right;
}


/******************************************
//MAIN CONTENT
*/
.content-wrap {
  padding: 4rem 0;
}

.content-wrap a {
  font-weight: 600;
  color: var(--darkblue);
  text-decoration: underline;
}

.content-wrap a:hover {
  color: var(--blue);
}

.content-wrap p {
  margin: 1rem 0;
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: left;
}

.content-wrap h2 {
  padding: 1rem 5px;
  font-size: 2rem;
  color: #fff;
  background-color: var(--darkblue);
}

.content-wrap dl { 
  font-size: 1.125rem; 
  text-align: left;
  color: var(--black);
  line-height: 1.5;
}

.content-wrap dt i.fal {
  margin-right: 10px;
  font-size: 1.2rem;
  color: var(--blue);
  line-height: 1.5;
}

.content-wrap dt {
  display: flex;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-wrap dd {
  margin-bottom: 1rem;
}

@media screen and (min-width: 768px) {
  .content-wrap {
    padding: 5rem 0 6rem;
  }
}

/* Content Sections */
.content {
  margin: 4rem 0;
}

.content:first-of-type, .content:last-of-type {
  margin: 0;
}

/******************************************
//PROFILE PAGES
*/
/* Profile Welcome */
.profile-sidebar {
   margin-bottom: 4rem;
}

.profile-welcome {
  display: grid;
  grid-template-columns: 140px 1fr;
  justify-items: start; 
}

.profile-welcome p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lightgrey);
  text-transform: uppercase;
}

.profile-welcome h3 {
  grid-column: 2/3;
  font-size: 1.5rem;
  color: var(--blue);
}

.profile-welcome i.fal.fa-user {
  justify-self: end;
  grid-row: span 2;
  padding-right: 1rem;
  font-size: 2.5rem;
  color: var(--blue);
}

@media screen and (min-width: 768px) {
  .profile-sidebar {
    display: grid;
    grid-template-columns: .8fr 1fr;
    grid-gap: 0 2rem;   
  }

  .profile-welcome {   
    grid-template-columns: 55px 1fr;    
    justify-self: start;    
  }
}

/* Profile nav */
.profile-nav  {
  margin: 2rem 0 0;
}

.profile-nav li {
  display: inline-block;
  margin-right: 1px;
  padding: 1rem 0;
  background-color: var(--verylightgrey);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-nav li:last-of-type {
  margin-right: 0;
}

.profile-nav li:hover, .profile-nav li.current {
  background-color: var(--blue);
}

.profile-nav li a {
  padding: 1rem 10px;
  color: var(--lightgrey);
  text-decoration: none;
}

.profile-nav li:hover a, .profile-nav li.current a {
  color: #fff;  
}

@media screen and (min-width: 768px) {
  .profile-nav {
    margin: 0;
    justify-self: end;
  }
}

/* Profile Stats */
.profile-stats {
  display: grid;
  justify-items: center;
  grid-gap: 2rem;
}

.stat-wrapper {  
  display: flex;
  flex-direction: column;  
  text-transform: uppercase;
}

.profile-stats p {  
  width: 300px; 
  margin: 0;
  padding: 1rem;
  background-color: var(--blue);
  font-size: 1.625rem;
  color: #fff;
  text-align: center;
  line-height: 1; 
}

.profile-stats h3 { 
  display: flex;
  width: 300px; 
  min-height: 90px;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  background-color: var(--verylightgrey);
  font-size: 1.625rem;
  color: var(--darkblue);  
}

@media screen and (min-width: 768px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);    
  }
}

@media screen and (min-width: 1100px) {
  .profile-stats p, .profile-stats h3 {
    width: auto;
  }

  .profile-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));     
  }

  .stat-wrapper {
    width: 100%;
  }
}

/* Profile Activity Page */
.user-routes .route-wrap {
  padding: 2rem 0;
}

.route-wrap img {
  width: 200px;
}

.user-route-stats table {
  display: flex;
  padding: 2rem 0;
  justify-content: center;
  border-spacing: 10px;
}

.user-route-stats table tr {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
}

.user-route-stats table th {  
  color: var(--darkblue);
  text-align: right;
}

.user-route-stats table td {
  color: var(--blue);
  text-align: left;
}

.user-routes .form-wrap {
  display: block; 
  margin: 0 auto;
}

.user-routes div.form-field {
  margin: 0;
}

@media screen and (min-width: 768px) {
  .user-routes .route-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
    justify-items: center;
    padding: 2rem 0 0;
  }

  .user-route-stats table {
    padding: 0;
  }

  .user-routes .form-wrap {
    margin: 0;
    grid-column: span 2;
    width: 55%;
  }
} 

@media screen and (min-width: 1024px) {  
  .user-route-stats {
    width: 100%;
  }

  .user-routes .route-wrap {
    grid-template-columns: 2fr 4fr;
    grid-gap: 0 6rem;
    justify-items: start;
    margin-top: 2rem;
    padding: 2rem 4rem 0;
    border-top: 1px solid var(--verylightgrey);
  }

  .user-routes .route-wrap:first-of-type {
    margin: 0;
    border: none;
  }

  .route-wrap a:first-of-type {
    grid-row: span 2;
    justify-self: end;
  }

  .route-wrap img {
    width: 250px;
  }

  .user-route-stats table {    
    border-collapse: collapse;
  }

  .user-route-stats table tr {
    font-size: 1rem;
  }

  .user-route-stats tbody {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
  }

  .user-route-stats th {
    padding-right: 1rem;
  }

  .user-routes .form-wrap {
    grid-column: 2/3;
    width: 100%;
  }  

  .user-routes .form-field.inline select {
    flex-grow: 0;
    width: 50%;
  }
}

@media screen and (min-width: 1150px) {
  .user-routes .route-wrap {
    grid-template-columns: 2fr 3fr;
  }

  .user-route-stats table tr {
    font-size: 1.125rem;
  }
}


/* Route History Slider */
.route-history-slider {
  padding: 2rem 0 0;
}

.route-history-slider img {
  height: 150px;
  margin: 0 auto;  
}

.route-history-slider .slick-prev {
  left: 0;
}

.route-history-slider .slick-next {
  right: 0;
}

.route-history-slider .slick-prev:before, .route-history-slider .slick-next:before {
  font-family: 'Font Awesome 5 Pro';
  font-size: 2rem;
  line-height: 1;
  opacity: .75;
  color: var(--darkblue);
}

.route-history-slider .slick-next:before {
  content: '\f054';
}

.route-history-slider .slick-prev:before {
  content: '\f053';
}

.route-history-slider .slick-dots {
  bottom: -55px !important;
}

.route-history-slider .slick-dots li, .route-history-slider .slick-dots li button {
  width: 13px;
  height: 13px;
  padding: 0;
  font-size: 0;
}

.route-history-slider .slick-dots li button:before {
  font-size: 0px !important;
  height: 13px;
  width: 13px;
  opacity: 1;
  background: var(--darkblue);
  border-radius: 50%;
}

.route-history-slider .slick-dots li.slick-active button:before {
  font-size: 0;
  opacity: 1;
  background: var(--blue);
}

/* Profile Account Page */
section.email-settings p.blue {
  margin-top: 2rem;
}

section.email-settings .form-wrap {
  padding-top: 0;
}

section.email-settings div.form-field {
  margin-left: 1rem;
}

section.privacy-settings .form-wrap select {
  display: inline-block;
  width: 90%; 
}

section.email-settings .form-wrap label span {
  font-weight: 300;
  color: var(--black);
}

@media screen and (min-width: 768px) {
  section.email-settings .form-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, 220px);
    grid-gap: 2rem;
    padding-top: 2rem;
  }

  section.email-settings div.form-field {
    margin: 0;
  }
}

@media screen and (min-width: 1024px) {
  section.email-settings p.blue {
    margin-top: 4rem;
  }

  section.email-settings .form-wrap {    
    grid-gap: 2rem 3rem;
    grid-template-columns: repeat(3, 230px);   
    justify-content: center; 
  }

  section.privacy-settings .form-wrap {
    width: 100%;
    justify-items: center;
  }

  section.privacy-settings .form-wrap label {
    display: inline-block;
    padding-right: 1rem;
  }

  section.privacy-settings .form-wrap select {
    display: inline-block;
    width: 280px; 
  }
}

/* Profile Data Source Page */
.data-source-wrap {  
  padding: 2rem 0 0;  
}

.data-source {
  margin-bottom: 2px;
  padding: 2rem 0;
  background: var(--verylightgrey);
}

.data-source-text p {
  margin: 0;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  .data-source-wrap {
    padding: 3rem 0 0;
  }

  .data-source {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1rem;
  }

  .data-source-text {
    justify-self: end;
    text-align: right;
  } 

  .data-source-text p {
    text-align: right;
  }
}


/******************************************
//EVENTS PAGE
*/
/* Event filtering */
.event-filtering {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6rem;
}

.event-filtering .form-wrap {
  display: block;
  margin: 0;
  width: 400px;
}

/* Events Section */
section.events {
  display: grid;
  grid-gap: 2rem 2rem;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  section.events {    
    grid-gap: 4rem 2rem;
  }
}

@media screen and (min-width: 1024px) {
  section.events {
    grid-template-columns: repeat(2, 1fr);   
  }
}

/* Event boxes */
.event-wrap {
  display: flex;
  flex-direction: column;
  width: calc(100% - 10px);
  min-height: 400px;
  padding: 1rem; 
  background: url('../images/event-bg.png') no-repeat bottom right;
  background-color: var(--darkblue);
  box-shadow: 10px -10px var(--blue);
}

.event-wrap .event-header {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
}

.event-wrap .event-header img {
  height: 150px;
  justify-self: center;
}

.event-wrap .event-header img.white {
  padding: 5px;
  background-color: #fff;
}

.event-wrap .event-header h3 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
}

.event-wrap .event-timing-wrap {  
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0 1rem;
  margin: 1rem 0 0rem;
  font-size: 0.8rem;
}

.event-wrap .event-timing {
  padding: 1rem;
  background-color: var(--blue);
}

.event-wrap p {
  flex-grow: 1;
  font-size: 1.125rem;
  color: #fff;
  line-height: 1.5;
}

.event-wrap .event-links {
  text-align: right;
  color: var(--blue);
}

.event-wrap .event-links a {
  font-size: 1.125rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  .event-wrap {
    width: 455px;
    padding: 2rem; 
    box-shadow: 30px -30px var(--blue);
  }

  .event-wrap .event-header {    
    grid-template-columns: auto 1fr;
  }  

  .event-wrap .event-timing-wrap {
    grid-gap: 0 1rem; 
    margin: 1rem 0 0;
  }
}

@media screen and (min-width: 1024px) {
  .event-wrap {
    width: calc(100% - 30px);    
  }
}


/******************************************
//SINGLE EVENT PAGES
*/
/* Event Header */
.single-event-header {
  border-bottom: 1px solid var(--lightgrey);
}

.event-header-title h2 {
  padding: 0;
  font-size: 2.5rem;
  color: var(--darkblue);
  background-color: transparent;
}

.event-header-title h3 {
  font-size: 1.125rem;
  color: var(--blue); 
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-manage-team {
  margin: 1rem 0 2rem;
}

.event-header-text p {
  font-size: 1.125rem;
  color: var(--grey);
  font-style: italic;
  text-align: center;
}

.event-header-text p.event-elapsed-time {
  font-style: normal;
}

.event-header-text p.event-elapsed-time span {
  font-size: 1.5rem;
  color: var(--blue); 
}

@media screen and (min-width: 1024px) {
  .single-event-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-gap: 2rem;
    padding-bottom: 2rem;
  }

  .event-header-title {
    text-align: left;
  }

  .event-manage-team {
    grid-column: 2/3;
    grid-row: 1/2;
    margin: 0;
    justify-self: end;
  }

  .event-header-text {
    grid-column: span 2;
    display: flex;
  }

  .event-header-text p {
    width: 60%;
    margin: 0;
    text-align: left;
  }

  .event-header-text p.event-elapsed-time {
    flex-grow: 1;
    text-align: right;
    width: 40%;
  }
}

/* Event Stats */

.cms-event-stats {
    display: grid;
    justify-items: center;
    grid-gap: 5px 0;
 /*   grid-template-columns: auto; */
}

.cms-event-stats img {
    height: 200px;
    padding-bottom: 1rem;
}

.event-stats img {
  height: 200px;
  padding-bottom: 1rem;
}

.event-stats {
  display: grid;
  justify-items: center;
  grid-gap: 5px 0;
}

.event-stats .stat-wrapper {  
  display: flex;
  flex-direction: row;
  text-transform: uppercase;
}

.event-stats .stat-wrapper p { 
  display: flex;
  align-items: center;
  justify-content: center; 
  width: 180px; 
  margin: 0;
  padding: 1.5rem;
  background-color: var(--blue);
  font-size: 1.625rem;
  color: #fff;
  text-align: center;
  line-height: 1; 
}

.event-stats .stat-wrapper h3 { 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px; 
  padding: 1.5rem;  
  background-color: var(--verylightgrey);
  font-size: 0.8rem;
  color: var(--darkblue);  
}

.event-stats .stat-wrapper-user {
  width: 300px;  
  padding: 1.5rem;
  background-color: var(--verylightgrey);
}

.event-stats .stat-wrapper-user p {  
  font-size: 1.125rem;
  color: var(--grey);  
}

.event-stats .stat-wrapper-user p span {  
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--darkblue);  
}

@media screen and (min-width: 1024px) {
  .event-about-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 0 6rem;
  } 

  .event-stats.event-stats__loggedin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
  }
  
  .event-stats.event-stats__loggedin img {
    width: auto;
    min-width: 200px;
    height: auto;
    grid-row: span 2;
    align-self: center;
  }

  .event-stats.event-stats__loggedin .stat-wrapper p {
    width: 160px;
  }

  .event-stats.event-stats__loggedin .stat-wrapper h3 {
    width: 100px;
  }   

  .event-stats .stat-wrapper-user {
    grid-column: 4/5;
    grid-row: 1/3;
    display: flex;
    align-items: center;
    width: auto;
  }
}

@media screen and (min-width: 1150px) {  
  .event-stats.event-stats__loggedin img {       
    height: 175px;   
  }  

  .event-stats.event-stats__loggedin .stat-wrapper p {
    width: 180px;
  }

  .event-stats.event-stats__loggedin .stat-wrapper h3 {
    width: 120px;
  }  
}

/* Event Sign Up */
.event-about-wrap .event-info {
  margin-top: 4rem;
}

section.event-info h5 {
  text-align: left;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--black);
}


@media screen and (min-width: 1024px) {
  .event-about-wrap .event-info {
    margin-top: 0;
  }
}

/* Event Map */
.event-map .map-wrapper {
  width: calc(100% - 10px);
  height: 300px;
  box-shadow: 10px -10px var(--blue);
}

.event-map .map-wrapper img {
  width: 100%;
  height: 300px;
}

@media screen and (min-width: 768px) {
  .event-map .map-wrapper {
    width: calc(100% - 30px);
    height: auto;
    box-shadow: 30px -30px var(--blue);
  }

  .event-map .map-wrapper img {
    width: 100%;
    height: auto;
  }
}

/* Record Activity */
.event-record-wrap {
  display: grid;
  grid-gap: 4rem 4rem;
  margin-bottom: 4rem;
}

@media screen and (min-width: 1024px) {
  .event-record-wrap {
    grid-template-columns: 450px 1fr;
  }

  .event-record-wrap .form-wrap {
    width: 100%;
    grid-gap: 1rem 2rem;
    margin-top: 2rem;
  }

  .form-wrap.record-activity-form .form-field {
    width: 100%;
  }

  .form-wrap.record-activity-form .form-field.full-width {
    grid-column: span 2;
  }

  .event-record-wrap .form-submit-wrap {
    width: 100%;
  }

  .event-record-wrap .form-submit-wrap input.submit-button {
    width: 100%;
  }

  .event-record-wrap .leaderboard-link {
    display: flex;
    justify-content: flex-end;
  }
}

/* Event Leaderboard */
table.default-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  text-align: left;
}

.default-table tr {
  border-bottom: 2px solid #fff;
}
.default-table tr:nth-child(odd) {
  background-color: var(--verylightgrey);
}

.default-table tr:nth-child(even) {
  background-color: var(--superlightgrey);
}

.default-table th {
  padding: 1rem;
  background-color: var(--blue);
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.default-table th:first-of-type {
  width: 1%;
  text-align: center;
}

.default-table td {
  padding: .5rem 1rem;
  font-size: .8rem;
  color: var(--darkblue);
}

.default-table tr > td:nth-of-type(1) {
   /*
  background-color: var(--lightgrey);
  border-bottom: 2px solid var(--lightgrey);
    */
  /*
  color: #fff;
  */
  text-align: center;
}

.default-table td p {
  margin: 0;
  line-height: 1.15;
  font-size: .8rem;
}

.event-leaderboard_nonreg a.button-reverse {
  margin-bottom: 2rem;
}

div.nav-button-left {
  text-align: left;
}

.event-leaderboard_full a.button {
  margin: 2rem 0 0;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .default-table th {
    font-size: 1.125rem;
  }

  .default-table th:nth-of-type(2), .default-table tr > td:nth-of-type(2) {
    padding-left: 4rem;
  }

  .default-table td {
    font-size: 1rem;
  }

  .default-table td p {
    font-size: 1rem;
  }

  .event-leaderboard_nonreg a.button-reverse {
    margin-bottom: 0;
  }
}

/* Activity Feed */
    table .activity-table th {
  padding: 1rem 5px; 
  font-size: .7rem;
}

table.activity-table td {
  padding: 1rem 5px;
  font-size: .6rem;
}

@media screen and (min-width: 1100px) {
  table.activity-table th {
    padding: 1rem; 
    font-size: 1.125rem;
  }

  table.activity-table td {
    padding: 1rem;
    font-size: 1rem;
  }
}

/******************************************
//EVENT REGISTRATION
*/

/* Order Table */
.order-table {
  width: 100%;
  margin: 2rem 0 0;
  border-collapse: collapse;
  text-align: left;
}

.order-table th {
  padding: 1rem 5px;
  background-color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.order-table th .fas {
  padding-left: 1px;
  color: var(--darkblue);
  font-size: .8rem;
}

.order-table tr {
  background-color: var(--verylightgrey);
  border-bottom: 1px solid #fff;
}

.order-table td {
  padding: 1rem 5px;
  font-size: .9rem;
}

.order-table tr > td:nth-of-type(1) {  
  width: 10%;
}

.order-table td img {
  width: 100px;  
  padding-bottom: 10px;
}

.order-table td h3 {  
  font-size: .8rem;
  color: var(--darkblue);
}

@media screen and (min-width: 768px) {
  .order-table th {
    padding: 1rem 1rem;
    font-size: 1.125rem;
  }  
  .order-table th .fas {
    padding-left: 5px;   
    font-size: 1.125rem;
  }

  .order-table td {
    padding: 1rem 1rem;
    font-size: 1.125rem;
  }

  .order-table tr > td:nth-of-type(1) {    
    width: auto;    
  }

  .order-table td img {
    width: 150px;   
  }

  .order-table td h3 {
    align-self: center;
    font-size: 1.125rem;   
  }
}

@media screen and (min-width: 1024px) {
  .order-table tr > td:nth-of-type(1) {
    display: flex;
    width: auto;
    padding: 2rem 0 2rem 2rem;
  }

  .order-table td img {    
    padding-right: 1rem;
  }
}

/* Order Form */
.order-form {
  padding: 1rem;
  background-color: #dfdfdf;
}

.order-form .form-field.inline:first-of-type {
  margin-top: 0;
}

.order-form .form-field.inline label {
  width: 30%;
  font-size: .9rem;
}

.order-form .form-field.inline select, .order-form .form-field.inline input {
  width: 50%;
  height: 35px;
  font-size: .9rem;
}

@media screen and (min-width: 768px) {
  .form-wrap.order-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0 1rem;
    margin: 0;
    width: 100%;
  }

  .order-form .form-field.inline {
    margin: 0;
  }

  .order-form .form-field.inline label {
    width: auto;
    font-size: .9rem;
    text-align: right;
  }

  .order-form .form-field.inline select, .order-form .form-field.inline input {
    width: auto;
    height: 35px;
    font-size: .9rem;
  }

  .order-form .form-field.inline input {
    width: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .form-wrap.order-form {
    grid-gap: 0 1rem;
  }
}

/* Checkout Form */
.reg-checkout-wrap {
  padding: 1rem;
  background-color: var(--verylightgrey);
}

.checkout-form .form-field.inline label {
  width: 30%;
  font-size: .9rem;
}

.checkout-form .form-field label {
  font-size: .9rem;
}

.checkout-form .form-field.inline select, .checkout-form .form-field.inline input {
  width: 45%;
  height: 35px;
  font-size: .9rem;
}

.checkout-form .form-field.inline input.submit-button__blue {
  width: 25%;
  height: 35px;
  margin-left: 1rem;
  padding: 3px;
}

.checkout-form .form-field input[type=checkbox] + span {
  font-size: .9rem;
}

.order-total-wrap {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--lightgrey);
  border-bottom: 1px solid var(--lightgrey);
}

.order-total-wrap p:first-of-type {
  margin: 0 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--grey)
}

.order-total-wrap p.total-details {
  margin: 0;
  font-size: .9rem;
  font-style: italic;
  color: var(--lightgrey);
}

.order-total-wrap h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--darkblue);
  text-align: left;
}

@media screen and (min-width: 768px) {
  section.content.reg-checkout-wrap {
    width: 600px;
    margin: 0 0 0 auto;
  }

  .form-wrap.checkout-form {
    width: 100%;
  }  

  .checkout-form .form-field.inline label {   
    font-size: 1.125rem;
    text-align: right;
  }

  .checkout-form .form-field label {
    font-size: 1.125rem;
  }

  .checkout-form .form-field.inline select, .checkout-form .form-field.inline input {   
    height: 42px;
    font-size: 1.125rem;
  }

  .checkout-form .form-field.inline input.submit-button__blue {    
    height: 42px;    
  }

  .checkout-form .form-field input[type=checkbox] + span {
    font-size: 1.125rem;
  }

  .order-total-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 2rem 0;
    padding: 2rem 0;    
  }

  .order-total-wrap p.total {
    line-height: 1.15;
  }

  .order-total-wrap h3 {    
    text-align: right;
  }

  .submit-button.submit-order-button {
    width: 50%;
    margin: 0 0 0 auto;
  }
}

@media screen and (min-width: 1024px) {
  section.content.reg-checkout-wrap {
    padding: 2rem;
  }

  .form-wrap.checkout-form {
    display: block;
    margin: 0;
  }

  .checkout-form div.form-field {
    margin: 2rem 0 0 0;
  }
}

/******************************************
//FOOTER
*/
/* CTA Boxes */
footer #cta-boxes {
  padding: 1rem 0;
  background-color: var(--blue);
}

.cta-box {
  display: flex;  
  width: 305px;
  height: 220px;
  margin: 1rem auto;
  padding: 0 1.5rem;
  align-items: center;
  justify-content: center;
  background-color: var(--darkblue);
}

.cta-box.events {
  background: url('../images/cta-events-bg.png') no-repeat;
}

.cta-box.routes {
  background: url('../images/cta-routes-bg.png') no-repeat;
}

.cta-box.register {
  background: url('../images/cta-register-bg.png') no-repeat;
}

.cta-box.contact {
  background: url('../images/cta-contact-bg.png') no-repeat;
}

.cta-box a {
  display: block;
  width: 100%;
}

.cta-box h2 {
  width: 80%;
  margin: 0 auto;
  padding: .5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

@media screen and (min-width: 768px) {
  footer #cta-boxes {       
    padding: 2rem 0;
  }

  footer #cta-boxes .container {
    display: grid;
    grid-template-columns: repeat(2, 305px);
    grid-gap: 1rem;
    justify-content: center;
  }

  .cta-box {
    width: 100%;
    margin: 0 0;
    padding: 0;
  }
}

@media screen and (min-width: 1024px) {
  footer {
    margin-top: 2rem;
  }

  footer #cta-boxes {       
    padding: 0 0 2rem;
  }

  footer #cta-boxes .container {    
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 0 1rem;    
  }

  .cta-box {
    width: 100%;
    margin: -2rem 0 0;
  }
}

/* Footer Main */
footer #footer-main {
  padding: 1rem 0;
  background-color: var(--darkblue);
}

@media screen and (min-width: 1024px) {
  footer #footer-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

/* Social Nav */
#footer-main .footer-nav-social {
  padding: 0 0 1rem 0;
}

#footer-main .footer-nav-social li {
  display: inline-block;
  padding: 0 1rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
}

#footer-main .footer-nav-social li:last-of-type { 
  padding: 0;
}

#footer-main .footer-nav-social a {  
  color: var(--blue);
}

@media screen and (min-width: 1024px) {
  #footer-main .footer-nav-social {
    padding: 0 3rem 0 0;
    justify-self: end;
  }

  #footer-main .footer-nav-social li { 
    padding: 0 1.5rem 0 0; 
    font-size: 2rem;
  }  
}

/* Footer Logo */
#footer-main .footer-logo img {
  width: 120px;
}

/* Footer Nav */
#footer-main .footer-nav {
  padding: 1rem 0 0;
}

#footer-main .footer-nav li {
  display: inline-block;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;  
  letter-spacing: 2px;
}

#footer-main .footer-nav a {  
  color: var(--lightgrey);
}

#footer-main .footer-nav .far {
  margin-right: 5px;
  font-size: 1rem;
  color: var(--blue);
}

@media screen and (min-width: 1024px) {
  #footer-main .footer-nav {
    padding: 0 0 0 3rem;
    justify-self: start;
  }

  #footer-main .footer-nav li {
    display: block;
    padding: 0 0 1rem;
    text-align: left;
  }

  #footer-main .footer-nav li:last-of-type {
    padding: 0;
  }
}

/* Footer Copyright */
footer #copyright {
  padding: 1rem;
  background-color: var(--grey);
  font-size: 0.8rem;
  color: var(--lightgrey);
  text-transform: uppercase;
}



/******************************************
//LOGIN MODAL
*/

/* JQuery UI Dialog */
.ui-dialog {
  position: fixed;
	z-index: 99;	
  max-width: 90%;
  min-width: 0;
  max-height: 100vh;
  background: #111;
}

.ui-dialog-titlebar {
	position: absolute !important;
	top: 10px;
	right: 10px;
}

.ui-dialog-titlebar-close {
  position: relative !important;
	display: block;
  top: -20px !important;
  right: 15px !important;
  z-index: 999;
	font-size: 0px;
	font-weight: 300;
	width: 50px;
	height: 50px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.ui-dialog-titlebar-close:before,
.ui-dialog-titlebar-close:after {
  position: absolute;
  top: 0;
  content: '';
  height: 25px;
  width: 2px;
  background: var(--lightgrey);
  transition: var(--fade);
}

.ui-dialog-titlebar-close:before {
  transform: rotate(45deg);
}

.ui-dialog-titlebar-close:after {
  transform: rotate(-45deg);
}

.ui-dialog-titlebar-close:hover:before,
.ui-dialog-titlebar-close:hover:after {
  background: var(--grey);
}

@media screen and (min-width: 768px) {
  .ui-dialog {
    width: auto !important;
  }

  .ui-dialog-titlebar-close {	
    top: -15px;
    right: -5px;	
  }  
}

/* Login Modal */
#login-modal { 
  display: none;    
  z-index: 99;   
  width: auto;
  height: auto;
  padding: 3rem 2rem;
  background-color: #fff;  
}

/* Title */
#login-modal h2 {
  font-size: 1.625rem;
  text-transform: unset;
  letter-spacing: 1px;
}

/* Form tweaks */
#login-modal .form-wrap {
  display: block;
  width: 100%;
  margin: 1rem 0 0;
  padding: 0;
  border: none;
}

#login-modal div.form-field {
  margin: 2rem 0 0 0;
}

#login-modal label {
  font-size: 1rem;
  color: var(--grey);
}

#login-modal input.submit-button {
  margin: 0 auto;
}

/* Register button */
#login-modal .button {
  width: 100%;
  margin: 1rem 0;
  background-color: var(--lightgrey);
  color: #fff;
  text-transform: initial;
}

#login-modal .button:hover {
  background-color: var(--grey);
}

/* Forgot password */
#login-modal p.forgot-password a {
  margin: 1rem 0 0;
  color: var(--lightgrey);
}

#login-modal p.forgot-password a:hover {
  color: var(--grey);
}

@media screen and (min-width: 768px) {
  #login-modal {
    width: 500px !important;
  }

  #login-modal .button {
    width: 300px;
  }
}

@media screen and (min-width: 1100px) {
  #login-modal {
    width: auto !important;
  }
}

/******************************************
//INFO BOX
*/
.ui-widget.ui-widget-content {
  border: 1px solid var(--blue) !important;
  background: var(--blue) !important;
  color: #fff !important;
}

.ui-widget-shadow {
  box-shadow: 0px 0px 5px var(--darkblue) !important;
}


/******************************************
//MAP INFO BOXES
*/

.gm-style-iw-d table {
  margin: 10px;
  border-collapse: collapse;
  border: 1px solid var(--blue);
}

.gm-style-iw-d table td {  
  border-bottom: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
}

.gm-style-iw-d table td:first-of-type {
  padding: 10px;
}

.gm-style-iw-d table td img {
  object-fit: cover;
  display:block;
}

.my-scroll-box {
    border: 2px solid #000;
    padding: 15px;
    overflow-y: auto;
    height: 500px;
}


/* mobile issue - icon too small in current events table */
@media screen and (min-width: 0px) and (max-width: 768px) {
    .default-table td {
        padding: 0rem 0rem;
        font-size: .8rem;
        color: var(--darkblue);
    }
}

.error-message {
    color: red;
    font-size: 1.5em;
    font-weight: 700;
}
