﻿body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
  
}
* {box-sizing: border-box;}

.pagefooter {
   position: fixed;
   left: 0;
   bottom: 0;
   width: 100%;
   background-color: black;
   color: white;
   text-align: center;
  font-weight: bold;
}



/* Position the navbar container inside the image */
.container, .container-home {
  position: absolute;
  width: 100%;
    
}

.container {
  top: 30%;
}

/* Position the navbar container inside the image, specifically for the home page and the taller BG image */
.container-home {
  top: 60%;
  
}


/* styling for links */
.link-container {
  max-width: 90em;
  margin-right: auto;
  margin-left: auto;
  border: 1px black;
}

.link-container a:link, .link-container a:visited  {
	
	text-decoration:none;
	color: black;
}

.link-container a:hover, .link-container a:active {
  text-decoration: underline;
	
}



/* The navbar */
.topnav {
  overflow: hidden;
  background-color: #333;
    background: rgba(0, 0, 0, 0.5); 
  height: auto;
  margin-top: 30px;  
  padding-left: 20px;
  bottom: 8px;
}

/* Navbar links */
.topnav a {
  float: left;
  
  color: #f2f2f2;
  text-align: center;
  padding: 14px 30px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;

}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #ddd;
  color: black;
}

.topnav .icon {
  display: none;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
   font-size: 20px;
     font-weight: bold;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.wide {
  display: none;
}

/* this media screen prevents the browse option from appearing on a mobile screen */
@media screen and (min-width: 0px) and (max-width: 799px) {
  .hide-on-small { display: none;}
  .fa-caret-down { display: none;}
  .dropdown { display: none;}
  .wide {display: inline;}
}


.Title-short { 
   grid-area: Title;   
   font-size: 25px;
   color: white;
   font-weight: bold;
  align-self: center;
   }

.Sub-Title-short { 
    grid-area: Sub-Title;  
    color: black;
    font-size: 20px;
    font-style: italic; 
   font-weight: bold;
    }

.bg-img-short {
  /* The image used */
  background-image: url("https://www.motorsporthistory.ca/headerimages/03.jpg");

  min-height: 140px;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
 
  /* Needed to position the navbar */
  position: relative;
}


@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
  .heading-container {
    grid-template-columns: 110px 1fr;
  }
  .pagefooter {
    font-size: 12px;
  }
  
}


@media screen and (max-width: 600px) {
  .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 .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

.heading-container {  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 2px 2px;
    background-color: #cc0000;
  grid-auto-flow: row;
  grid-template-areas:

    "Logo Title";

  padding: 5px 0px 5px 30px;
}

.heading-container2 {  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 2px 2px;
    background-color: #cc0000;
  grid-auto-flow: row;
  grid-template-areas:

    "Logo Title";

  padding: 5px 0px 5px 30px;
}


.Logo { 
  grid-area: Logo; 

  }

.Title { 
   grid-area: Title;   
   font-size: 30px;
   color: white;
   font-weight: bold;
  align-self: center;
   }

.Sub-Title { 
    grid-area: Sub-Title;  
    color: black;
    font-size: 25px;
    font-style: italic; 
   font-weight: bold;
    }


.main-body {
	margin: 40px;
	font-size: 20px;
}

.sidebox {
  padding: 5px;
  margin: 0 2px 2px 0;
  background: #dedede;
  border: 1px solid black;
  border-radius: 15px;
  width: 100%;

}

