@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@500&family=Maven+Pro&display=swap');
body {
    background-color: white;
    font-family: "Maven Pro", Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}
#content {
    max-width: 1500px;
    margin: 0 auto;
    background-color: white;
}

/* Nav menu and logo css */

header {
    display: grid;
    grid-template-columns: 200px auto;
}

.logo {
    margin-left: 50px;
}

nav a {
    text-align: center;
    color: #3c1518;
    text-decoration: none;
    font-size: 26px;
    padding: 30px;
    font-family: Kanit, Georgia, serif;

}

nav {
    background-color: #d58936;
    display: flex;
    justify-content: space-around;
}

nav a:hover {
    background-color: #69140e;
    color: #f2f3ae;
}

/* home page body css */

.home-title {
    font-family: Kanit, Georgia, serif;
    text-align: center;
    padding-top: 50px;
    color: #3c1518
}

.top p {
    max-width: 1000px;
    text-align: center;
    margin: 0 auto;
    line-height: 2em;
    font-size: 18px;
    padding-bottom: 40px;
    color: #69140e;
}

.top img {
    display: block;
    margin: 0 auto;
    padding-bottom: 50px;
}

.bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bottom p {
    text-align: center;
    line-height: 2em;
    font-size: 18px;
    max-width: 500px;
    align-self: center;
    justify-self: right;
    color: #69140e;
}

.bottom img {
    justify-self: center; 
}

footer {
    display: flex;
    justify-content: space-around;
    background-color: #d58936;
    align-items: center;
    margin-top: 100px;
    font-family: Kanit, Georgia, serif;;
}

footer p {
    font-size: 20px;
    color: #3c1518;
}

footer a {
    text-decoration: none;
    padding: 20px;
    color: #3c1518;
}

footer a:hover {
    color: #f2f3ae;
    background-color: #69140e;
    text-decoration: underline;
}

footer a:visited {
    color: #3c1518;
}

/* slideshow css */
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/* CSS for How do Races work page */
.races-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 100px;
    padding: 0 4rem;
}

.races-top p:nth-of-type(2) {
    grid-column: 1/3;
    grid-row: 2/3;
    margin-top: 50px;
}

.races-circuit {
    justify-self: center;
}

 .races-top p {
    line-height: 2em;
    font-size: 18px;
    color: #69140e;
    text-align: center;
 }

.races-top p:nth-of-type(1) {
    align-self: center;
}

#quali-title {
    font-family: Kanit, Georgia, serif;
    text-align: center;
    color: #3c1518;
    font-size: 26px;
    margin-top: 80px;
}

.races-middle {
    display: grid;
    grid-template-rows: 30% 70%;
    padding: 0 4rem;
}

.races-middle p {
    line-height: 2em;
    font-size: 18px;
    color: #69140e;
    text-align: center;
    margin-top: -10px;
}

.races-grid {
    justify-self: center;
    margin-top: 15px;
    margin-bottom: 80px;
}

#grand-title {
    font-family: Kanit, Georgia, serif;
    text-align: center;
    color: #3c1518;
    font-size: 26px;
    margin-top: 120px;
}

.races-bottom {
    line-height: 2em;
    font-size: 18px;
    color: #69140e;
    text-align: center;
    margin-bottom: 150px;
    padding: 0 4rem;
}

/* Teams and Points CSS */
.teams-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    margin-top: 50px;
    margin-bottom: 100px;
    padding: 0 4rem;
}

.point-title {
    grid-column: 1/2;
    grid-row: 1/2;
    font-family: Kanit, Georgia, serif;
    color: #3c1518;
    font-size: 34px;
    text-align: center;
    align-self: flex-end;
}

.teams-top p {
    grid-column: 1/2;
    grid-row: 2/3;
    line-height: 2em;
    font-size: 18px;
    color: #69140e;
    align-self: start;
    text-align: center;
}

.teams-driver {
    grid-column: 2/3;
    grid-row: 1/3;
    align-self: center;
    justify-self: center;
}

#racing-teams {
    font-family: Kanit, Georgia, serif;
    color: #3c1518;
    font-size: 26px;
    text-align: center;
    margin-bottom: 0;
}

.teams-middle {
    display: grid;
    grid-template-rows: 30% 70%;
    margin-bottom: 100px;
    padding: 0 4rem;
}

.teams-middle p {
    line-height: 2em;
    font-size: 18px;
    color: #69140e;
    text-align: center;
    margin-bottom: 50px;
}

.teams-team {
    align-self: center;
    justify-self: center;
}

#flag-system {
    font-family: Kanit, Georgia, serif;
    color: #3c1518;
    font-size: 26px;
    text-align: center;
}

.teams-bottom {
    padding: 0 4rem;
}

.teams-bottom p {
    line-height: 2em;
    font-size: 18px;
    color: #69140e;
    text-align: center;
    margin-bottom: 250px;
}