*{ 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  
}


/*default structuring for attributes*/
body {
    background-color: rgb(1 30 61);
    height: 100%;
    text-align: center;
} 

header{
    position: fixed;
    width: 100%;
    text-align: center;
    z-index: 99;
   
}

/* class used for the Title at top of the body*/
.title {
  color: white;
  background-color: darkred;
}

/*Properties defining the Navbar for the Site*/
nav{
  position: fixed;
  width: 100%;
  text-align: center;
  color: aliceblue;
  font-size: 15px;
        
}

/*Font size changes for the Nav bar once minimum width is reached*/
@media (min-width: 880px) {
  nav{
    font-size: 20px;
  }
}

/* when the anchor has been visited the properties below will affect its appearance*/
a:link, a:visited {
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display:inline-block;
    border-radius: 6px;
  }
  
  /* When the anchor is hovered or active the properties below will affect its appearance*/
  a:hover, a:active {
    background-color: white;
    color: darkred;
    border-radius: 6px;
  }
  
/*images will be affected by the properties defined below*/
img {
  max-width: 100%;
  
}

/*Class used to define buttons when called*/
.button {
  appearance: none;
  border: none;
  outline: none;
  background: none;
  text-decoration: none;
  
  padding: 12px 12px;
  background-color: darkred;
  display: inline-block;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;

}

.button:hover{
  background-color: white;
  color: black;
}

/*Home Page*/

.container{
  z-index: 1;
  width: 95%;
  padding-left: 60px;
  padding-right: 60px;
  margin: 0 auto;
  
}

/*Sets the backround for the Home page*/
.banner{
  min-height: 100vh;
  display: flex; 
  align-items:center;
  background: linear-gradient(rgba(0,0,0, 0.7), rgba(0,0,0, 0.7)), url("../img/f1Background.jpg");
  background-position: center;
  background-size: cover;
  color: white;
  text-align: left;
}

/*Sets the height of the backround once the minimum width is met*/
@media (min-width: 880px) {
  .banner{
    height: 760px;
  }
}

.container h1 {
    font-size: 50px;
  }

.container h2 {
  font-size: 35px;
}

.container h3 {
  font-size: 25px;
}
.container a {
  background-color: darkred;
  margin-top: 5px;
}

.container p{
  padding-top: 10px;
  
}

.container a:hover, a:active {
  background-color: black;
  color: white;
}

/*Sets the font size of h1, h2, h3, p tags within the container class once the minimum width is met*/
@media (min-width: 880px) {
  .container h1{
    font-size: 40px;
  }

  .container h2{
    font-size: 30px;
    padding: 20px;
  }

  .container h3{
    font-size: 20px;
  }

  .container p{
    font-size: 14px;
  }

}

/*About Page*/

/*Sets the background of the About page*/
.components{
  background:linear-gradient(rgba(0,0,0, 0.8), rgba(0,0,0, 0.8)), url("../img/eau-rouge-and-raidilllon-corners-at-spa-francorchamps-planetf1.jpg");
  background-size: cover;
  min-height: 200vh;
}

/*Sets the background of the Teams page*/
.components-teams{
  background:linear-gradient(rgba(0,0,0, 0.8), rgba(0,0,0, 0.8)), url("../img/australiaTurn1.jpg");
  min-height: 200vh;
  background-size: cover;
}

/*Sets the background of the Gallery page*/
.components-gallery{
  background:linear-gradient(rgba(0,0,0, 0.8), rgba(0,0,0, 0.8)), url("../img/skysports-sebastian-vettel_4862172.jpg");
  min-height: 200vh;
  background-size: cover;
}

/*Container class defined for the about page*/
.container-about{
  padding-top: 80px;
  color: #fff;
}

.container-about h2{
  text-align: center;
  margin-bottom: 32px;
  text-transform: uppercase;
  font-size: 28px;
}

/*Grid layout set for the different components being defined in the about section*/
.component-grid{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-gap: 20px;
}

/*if the max width is not met the page will respond by reformatting the grid layout*/
@media (max-width: 1024px){
  .component-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/*Each component on the about page will have the properties below*/
.component{
 background-color: darkred;
 border-radius: 6px; 
 overflow: hidden;
}

/*Sets the visibility of images*/
.img-container{
  opacity: 1;
  display: block;
  width: 100%;
}

/*Class for images and how they are displayed*/
.img{
  display: block;
  width: 100%;
  background-color: black;
  height: 200px;
  border-radius: 6px;
  object-fit: cover;

}

/*Text content has reduced opacity until user hovers over text*/
.text-content{
  padding: 16px;
  text-align: left;
}

.text-content p{
  opacity: 0.1;
}

.text-content a{
  opacity: 0.1;
}


.text-content:hover p{
  opacity: 1;
  transition: 0.5s;
}

.text-content:hover a{
  opacity: 1;
  transition: 0.5s;
}

/*Teams Page*/

/*Grid layout set for the different components being defined in the Teams section*/
.team-component-grid{
  grid-template-columns: repeat(5,1fr);
}

/*if the max width is not met the page will respond by reformatting the grid layout*/
@media (max-width: 1024px){
  .team-component-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-container a {
  background-color: black;
  padding-left: 30px;
  padding-right: 30px;
  
}

.team-container a:hover, a:active {
  background-color: white;
  color: black;
}

/*Gallery Page*/

/*Grid layout set for the different components being defined in the Gallery section*/
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4,1fr); 
  grid-gap: 10px;
  row-gap: 50px;
}

/*if the max width is not met on the page. The page will respond by reformatting the grid layout*/
@media (max-width: 1024px){
  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  
}

/*Component class for the gallery page*/
.gallery-component{
  background-image: url(/img/skysports-sebastian-vettel_4862172.jpg);
  background-position: center;
  background-size: cover;
  
  overflow: hidden;
  border-radius: 6px;
  
}

/*Text content set to 0 opacity until hovered over*/
.gallery-content{
  padding: 16px;
  opacity: 0;
  height: 180px;
  background-color: rgba(0,0,0, 0.8);
  transition: 0.5s;
}

.gallery-content:hover{
  opacity: 1;
  transition: 0.5s;
}

/*Footer*/

/*Sets the background for the footer on each page*/
.footer{
  background-color: black;
  padding-bottom: 24px;
  
}


.footer-container h3{
  color: #fff;
  padding-top: 20px;
  padding-bottom: 20px;
  
}

/*Defines how the form will be displayed when called*/
form{
  display: block;
  margin: 0 auto;
  max-width: 400px;
  
}

/*Grid layout set for the different components being defined in the Form*/
.form-grid{
  display: grid;
  grid-gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 24px;
}

/*increases the width of the message box to meet the width of the two boxes above on the page*/
.form-area{
  grid-column: span 2;
}

/*Sets the properties for each component in the form*/
.form-component{
  display: block;
  width: 100%;
  background-color: white;
  border-radius: 6px;
  padding: 6px;
}

.left-align{
  text-align: left;
}

/*Links Page*/


/*Container class set for the Links Page*/
.container-links{
  color: #fff;
  padding-top: 80px;
}

.container-links h2{
  text-align: center;
  margin-bottom: 32px;
  text-transform: uppercase;
  font-size: 28px;
  
}
/*Sets width and height for embedded videos, removes the inline css from html*/
iframe{
  width: 100%;
  height: 100%
}