/*============================ White background color =======================================================================*/

body {
  color: #222;
  background: #ffffff;
}
body>h1,h2{
  color:#000000
}

a {
  color: #242424;
}


body {
  font-family: 'Ubuntu Condensed', sans-serif;

}


/*=========================== Header =================================================================================*/

.header{
  /* background-color: #8a0007; this value used consistently */
  background: linear-gradient(#050505, #004d00); /*linear gradient used in the header and footer with same values*/
	background-size: 100% 100%;
  height:180px;
  width:100%;
  text-align: center;
  font-size: 50px;
}

.header>h1{
  color: #fdc90c; /*overide h1, h2 colors in body values for header*/
}
.header>h2{
  color: #fdc90c;
}


.top_logo {
  position: absolute;
  left: 40px;
  top: 15px;  
  width: 150px;
  height: 150px;  
}


.footer__logo{    /* no footer logo used at present time*/
  position: absolute;
  right: 20px;
  width: 150px;
  height: 150px;

}

/*=========================== Navigation bar =================================================================================*/

.topnav {
  overflow: hidden;
  background-color: #252525;
  position: -webkit-sticky; /* Safari */
  position:sticky;
  top: 0;
  z-index: 100;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  border-radius: 5px;
}

.activeNav {
  background-color: #000000;
  color: white;
}

.topnav .icon {
  display: none;
}


.topnav a:hover{
  background-color: #fdc90c;
  color: rgb(0, 0, 0);
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child){
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {       /*nav bar changes to menu style for mobile use*/
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  
  .topnav.responsive {float: none;}
  .topnav.responsive {position: relative;}
  .topnav.responsive {
    display: block;
    width: 100%;
    text-align: left;
   }
}
/*============================= Hero slides on home page ======================================================================*/

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On mouse hover, add a transparent black background */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}


/* The dot indicators */
.dot {
  cursor: pointer;
  height: 25px;
  width: 25px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Caption text */
.text_hero {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: left;
  z-index: 1;

}

.slideshow-container:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgb(0, 0, 0), transparent); 
}

@media (min-width: 700px) {
  .text_hero {
    font-size: 24px;
  } 
}
/*End hero slides on home page section*/

/*=================================== Iframes ==============================================================*/

.aspect-ratio-iframe-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-ratio-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/*========================================== NEWS =====================================================*/
* {
  box-sizing: border-box;
}

.button_1{ /*renamed button to distinguish from other buttons*/
  border: none;
  color: rgb(255, 255, 255);
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.3s;
  cursor: pointer;
  background-color: #000000;
  border-radius: .5rem;
}

.button_1:hover { /*red on hover, text change to white*/
  background-color: #035e07;
  color: white;
}

.column_mid {
  float: left;
  width: 50%;
  column-count: 1;
  border-radius: .5rem;

}

/*handles tables on page 1 and page 3*/
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
}
td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}


/*========================================================= FAQ section  ==================================*/
.faq-heading{
  border-bottom: #ffffff;
  padding: 18px 18px;
}
.faq-container{
display: flex;
justify-content: center;
flex-direction: column;
}
.hr-line{
width: 100%;
margin: auto;

}
/* Style the buttons that are used to open and close the faq-page body */
.faq-page {
  /* background-color: #eee; */
  color: #000000;
  cursor: pointer;
  padding: 30px 20px;
  width: 100%;
  border: none;
  outline: none;
  transition: 0.4s;
  margin: auto;
}
.faq-body{
  margin: auto;
  /* text-align: center; */
 width: 100%; 
 
}
/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active_faq,.faq-page:hover {
  background-color: #9b9b9b;
}
/* Style the faq-page panel. Note: hidden by default */
.faq-body {
  padding: 0 18px;
  background-color: #dddddd;
  display: none;
  overflow: hidden;
}
.faq-page:after {
  content: '\02795';
  /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}
.active_faq:after {
  content: "\2796";
  /* Unicode character for "minus" sign (-) */
}
@media screen and (max-width: 750px) {   /* Change font sizes for FAQ with screen size*/
 
  .faq-heading{
    font-size: 20px;
  }

  .faq-body{ 
    font-size: 15px;

  }
  .faq-page{ 
    font-size: 20px;

  }

}
@media screen and (min-width: 750px) {

  .faq-heading{
    font-size: 25px;
  }

  .faq-body{ 
    font-size: 20px;

  }
  .faq-page{ 
    font-size: 25px;

  }
}

/*google map iframe on index page*/
iframe { 
  width: 530px;
  height: 447px;
  margin: 0 auto;
  background-color: #777;
  display: block;
  border-radius: 5px;
}

@media (min-width: 840px) and (max-width: 1100px){
  iframe{
    width:370px;
    height: 300px;
  }
  }
@media screen and (max-width: 840px){
  iframe{
    width:300px;
    height: 300px;
  }
  }
  
/*============================= Cards for index and page 2 ==========================================================*/
/*declare variables for cards*/
:root{
  --background-dark: #2d3548;
  --text-light: #ffffff99; /*assign variables*/
  --text-lighter: #ffffffe6;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;
  --width-container: 100%;
  }
  
  *{
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }
  
  body{
  height: 100%;
  }
    /* set size of grid*/
  .cgrid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: var(--spacing-l);
  grid-row-gap: var(--spacing-l);
  max-width: var(--width-container);
  width: 100%;
  }
  
  @media(min-width: 240px){ 
  .cgrid{
      grid-template-columns: repeat(2, 1fr); 
  }

  }
  
  @media(min-width: 960px){
  .cgrid{
      grid-template-columns: repeat(5, 1fr); 
  }
  }

  .card{
  list-style: none;
  position: relative;
  }
  
  .card:before{
  content: '';
  display: block;
  padding-bottom: 150%;
  width: 100%;
  }
  
  .cardbg{
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  bottom: 0;
  filter: brightness(0.95) saturate(1.2) contrast(0.85);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: center;
  transform: scale(1) translateZ(0);
  transition: 
      filter 200ms linear,
      transform 200ms linear;
  }
  
  .card:hover .cardbg{
  transform: scale(1.10) translateZ(0);
  }
  
  .card:hover .textcard{
  transform: scale(1.10) translateZ(0);
  }
  .card:hover .textcard1{
    transform: scale(1.10) translateZ(0);
  }
  
  .ccontent{
  left: 0;
  padding: var(--spacing-l);
  position: absolute;
  bottom: 0;
  }
  
  
  .textcard{
  color: var(--text-lighter);
  font-size: 20px;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
  line-height: 1.4;
  word-spacing: 0vw;
  }

  .textcard1{
    color: var(--text-lighter);
    font-size: 15px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    line-height: 1.4;
    word-spacing: 0vw;
    }
  
  .cardbg:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgb(0, 0, 0), transparent);
  border-radius: 0px 0px 5px 5px;
  
  }

  @media(max-width:480px) { /*remove h3 text on smaller screens so card is no overloaded*/
    .textcard{
      font-size: 15px;
    }
    .textcard1{
      display: none;
    }
    
  }  

/*End cards*/

/*============================= Page 2  =============================================================*/
/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On mouse hover, add a transparent black background */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}


/* The dot indicators */
.dot {
  cursor: pointer;
  height: 25px;
  width: 25px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 40px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  z-index: 1;

}

.slideshow-container:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgb(0, 0, 0), transparent); 
}
/*End hero slides on home page section*/

/*================================= Race reacap =======================================*/

/*this layout is used throughout the website*/

ul {
  list-style-type: none;
}
.layout-1 > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 1rem;
}

.layout-1 > ul > li {
  border: 1px solid #E2E2E2;
  border-radius: .5rem;
}


.layout-1 > ul > li > figure {
  max-height: 220px;
  overflow: hidden;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  position: relative;
}

.layout-1 > ul > li > figure > img {
  width: 100%;
}

.layout-1 > ul > li > figure > figcaption {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgb(0, 0, 0), transparent); 
  width: 100%;
}

.layout-1 > ul > li > figure > figcaption > h3 {
  color: white;
  padding: .75rem;
  font-size: 2rem;

}

.layout-1 > ul > li > p {
  font-size: 1rem;
  line-height: 1.5;
  padding: 1rem .75rem;
  color: #000000;
}

.layout-1 > ul > li > a {
  padding: .5rem 1rem;
  margin: .5rem;
}

a.button {
  border: none;
  color: rgb(255, 255, 255);
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.3s;
  cursor: pointer;
  background-color: #000000;
  border-radius: 5px;
  
}
.button:hover {
  background-color: #003b17;
  color: white;
}

@media screen and (max-width:600px){
  .layout-1 > ul > li > figure > figcaption > h3 {
    color: white;
    padding: .75rem;
    font-size: 1.5rem;
  
  }
}  



/*=========================================== BIOS ========================================================*/

.coach-heading{
  font-weight: bold;
  font-size: 1.2rem;
  padding-top: 30px;
  text-align: center;
}
.post-wrap {
  min-width: 300px;    /* Card size  and add text white space  */
  max-width: 375px;
  height: 465px;
  perspective: 1000px;
  flex: 1;
  margin: 0 15px 30px;
}
.post {
  position: relative; /* Required to absolutely position the faces */
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
}
.post-front, .post-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 5px;
  box-shadow: 0 4px 6px -1px #0000001a;
}
.post-back {
  transform: rotateY(180deg);
}
.post-wrap:hover .post {
  transform: rotateY(180deg);
}
.post-img {
  background-size: cover;
  background-position: top;
  height: 350px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.post-info {
  padding: 10px 10px 10px;
}
.post-info span {
  font-size: 0.8rem;
  color: #808080;
}
.post-info h2{
  font-weight: bold;
  font-size: 1.1rem;
  padding-top: 0px;
  text-align: center;
  
}
.post-back {
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: flex-start; 
}
.post-back h2{
  font-weight: bold;
  font-size: 1.2rem;
  padding-top: 5px;
}
.post-back p {
  margin-top: 5px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Required to position the posts one below the other on smaller devices */
}
/*Racers*/
/* Center website */
.main {
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 50px;
  word-break: break-all;
  padding-left: 10px;
}

.row {
  margin: 8px -16px;
}

/* Add padding BETWEEN each column */
.row,
.row > .column {
  padding: 4px;
}

/* Create five equal columns that floats next to each other */
.column {
  float: left;
  width: 20%;
  display: none; /* Hide columns by default */
}
.column img{
  height: 290px;
  width: 100%;
}

@media screen and (max-width: 600px) {
  .column {
      width: 50%;
  }
  .column img {
      height: 180px;
      width: 100%;
  }
}
@media(min-width: 1600px){
  .column{
    float: left;
    width: 10%;
  }
  }
  
@media(max-width: 960px){
.column{
  float: left;
  width: 25%;
}
}

@media(max-width: 660px){
  .column{
    float: left;
    width: 30%;
  }
}
  
@media(max-width: 460px){
  .column{
    float: left;
    width: 40%;
  }
  .post-wrap {
    min-width: 250px;    /* Card size  and add text white space  */
    max-width: 250px;
  }
  
  }
/* Clear floats after rows */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Content */
.content {
  background-color: #ebebeb;
  text-align: center;
  border-radius: 5px;
 
}

/* The "show" class is added to the filtered elements */
.show {
  display: block;
}

/* Style the buttons */
.btn {
  border: none;
  outline: none;
  padding: 8px 12px;
  background-color: #e4e4e4;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 5px;
}

/* Add a grey background color on mouse-over */
.btn:hover {
  background-color: rgb(156, 28, 28);
  color: white;
}

/* Add a dark background color to the active button */
.btn.active {
  background-color: #666;
   color: white;
}

z


/*============================ CONTACT ======================================================*/


  div.elem-group {
    margin: 20px ;
    color:#000000;
  }
  
  div.elem-group.inlined {
    width: 49%;
    display: inline-block;
    margin-left: 1%;
  }
  
  label {
    display: block;
    padding-bottom: 10px;
    font-size: 1.25em;
  }
  
  input, select, textarea {
    border-radius: 2px;
    border: 2px solid #777;
    box-sizing: border-box;
    font-size: 1.25em;
    width: 100%;
    padding: 10px;
  }
  
  div.elem-group.inlined input {
    width: 95%;
    display: inline-block;
  }
  
  textarea {
    height: 250px;
  }
  
  hr {
    border: 1px solid #ccc;
  }
  
  #button2 {
    display: inline-block;
    background-color: #080808;
    border-radius: 5px;
    color: #eeeeee;
    text-align: center;
    font-size: 20px;
    padding: 20px;
    width: 100px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    cursor: pointer;
    margin: 20px;
  }
  
  #button2:hover {
    background-color: #004d00;
  }
/*============================ FOOTER ===============================================================================*

/*FOOTER* on all pages*/

.footer {
  display: flex;
  flex-flow: row wrap;
  padding: 30px 30px 20px 30px;
  color: #180405;
  background: linear-gradient(#050505, #004d00); 
  margin-top: 100px;
  
}

.footer > * {
  flex:  1 100%;
}

.footer__addr {
  margin-right: 1.25em;
  margin-bottom: 2em;
  color: #0e0d0d;
}

.footer__logo {
  font-weight: 400;
  text-transform: lowercase;
  font-size: 1.5rem;
}

.footer__addr h2 {
  margin-top: 1.3em;
  font-size: 15px;
  font-weight: 400;
  color: rgb(255, 255, 255);
}

.nav__title {
  font-weight: 400;
  font-size: 15px;
}

.footer address {
  font-style: normal;
  color: rgb(255, 255, 255);
}

.footer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  max-width: max-content;
  background-color: rgba(197, 191, 191, 0.329);
  border-radius: 100px;
  color: #ffffff;
  line-height: 0;
  margin: 0.6em 0;
  font-size: 1rem;
  padding: 0 1.3em;
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer li {
  line-height: 2em;
}

.footer a {
  text-decoration: none;
}

.footer__nav {
  display: flex;
	flex-flow: row wrap;
}

.nav__title{
  color: #c0c0c0;
}

.footer__nav > * {
  flex: 1 50%;
  margin-right: 1.25em;
}

.nav__ul a {
  color: rgb(255, 255, 255);
}

.nav__ul--extra {
  column-count: 2;
  column-gap: 1.25em;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  color: rgb(255, 255, 255);
}
  
.legal__links {
  display: flex;
  align-items: center;
}


/*===================================== Media Queries ======================================================*/

@media screen and (min-width: 24.375em) {
  .legal .legal__links {
    margin-left: auto;
  }
}

@media screen and (min-width: 40.375em) {
  .footer__nav > * {
    flex: 1;
  }
  
  .nav__item--extra {
    flex-grow: 2;
  }
  
  .footer__addr {
    flex: 1 0px;
  }
  
  .footer__nav {
    flex: 2 0px;
  }
}

/* Assume these are the largest sizes */
.header > h1 {
  font-size: 70px; /* Starting font size for h1 */
}

.header > h2 {
  font-size: 34px; /* Starting font size for h2 */
}

.top_logo img {
  max-width: 140px; /* Starting logo width */
  max-height: 140px; /* Starting logo height */
  margin-left: 0px; /* Starting margin */
}

/* Gradual size adjustments for medium screens */
@media (max-width: 1200px) {
  .header > h1 {
    font-size: calc(70px * 0.9); /* 90% of the original h1 size */
  }
  .header > h2 {
    font-size: calc(34px * 0.9); /* 90% of the original h2 size */
  }
  .top_logo img {
    max-width: calc(140px * 0.9);
    max-height: calc(140px * 0.9);
    margin-left: -5px; /* Move left by 5px */
  }
}

@media (max-width: 992px) {
  .header > h1 {
    font-size: calc(70px * 0.8); /* 80% of the original h1 size */
  }
  .header > h2 {
    font-size: calc(34px * 0.8); /* 80% of the original h2 size */
  }
  .top_logo img {
    max-width: calc(140px * 0.70);
    max-height: calc(140px * 0.8);
    margin-left: -50px; /* Move left by additional 5px */
  }
}

@media (max-width: 768px) {
  .header > h1 {
    font-size: calc(70px * 0.6); /* 70% of the original h1 size */
  }
  .header > h2 {
    font-size: calc(34px * 0.7); /* 70% of the original h2 size */
  }
  .top_logo img {
    max-width: calc(140px * 0.7);
    max-height: calc(140px * 0.7);
    margin-left: -35px; /* Move left by additional 5px */
  }
}

@media (max-width: 650px) {
  .header > h1 {
    font-size: calc(70px * 0.5); /* 60% of the original h1 size */
  }
  .header > h2 {
    font-size: calc(34px * 0.6); /* 60% of the original h2 size */
  }
  .top_logo img {
    max-width: calc(140px * 0.6);
    max-height: calc(140px * 0.6);
    margin-left: -50px; /* Move left by additional 5px */
  }
}

@media (max-width: 600px) {
  .header > h1 {
    font-size: calc(70px * 0.5); /* Adjust the h1 size more gradually */
  }
  .header > h2 {
    font-size: calc(34px * 0.6); /* Adjust the h2 size more gradually */
  }
  .top_logo {
    display: none;
  }
}


@media screen and (max-width: 520px) {
  .header {
    height: auto; /* Adjust the height to fit content */
    padding: 10px 0; /* Add some padding */
  }

  .header > h1 {
    font-size: calc(70px * 0.6); /* Adjust the h1 size more gradually */
  }
  .header > h2 {
    font-size: calc(34px * 0.7); /* Adjust the h2 size more gradually */
  }

  .top_logo {
    display: none;
  }

  body {
    margin: 0; /* Remove any default margins */
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
}



@media screen and (prefers-reduced-motion: reduce) {  
  * {
    /* Very short durations means JavaScript that relies on events still works */
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}