/* CSS Variables */
:root {
  --text-white: rgba(254, 253, 250, 1);
  --light-bg: #F2F5F7;
  --dark-bg: rgb(39, 39, 39);

  --header-background-color: rgba(189, 199, 255, 0.75);
  --footer-background-color: rgba(28, 26, 26, 1);
  --signature-race-background-color: rgba(197, 227, 255, 1);

  --header-z-index: 10;
  --center-z-index: 2;
  --backdrop-z-index: 1;
}

/* Utility CSS */
.container {
  min-width: 400px;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: var(--center-z-index);
}

.backdrop {
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--backdrop-z-index);
  height: 100%;
  width: 100%;
}

.mobile-hidden {
  @media screen and (max-width: 720px) {
    display: none;
  }
}

.desktop-hidden {
  @media screen and (min-width: 720px) {
    display: none;
  }
}

/* Overrides */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--dark-bg);
}

body > header {
  display: flex;
  position: sticky;
  background-color: rgba(20, 20, 20, 0.6);
  z-index: var(--header-z-index);
  top: 0;
  backdrop-filter: blur(4px);
  padding: 0 0 1rem;
}

body > header > *:only-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 75rem;
}

body > header h1 {
  margin: 0;
}

header nav a, header nav a:visited {
  margin: 0 0.5rem;
  color: var(--text-white);
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 0;
}

main > section {
  margin: 0;
}

main > section:last-of-type {
  padding: 0;
  flex-grow: 1;
}

body > footer {
  background-color: var(--footer-background-color);
  color: var(--text-white);
  margin-top: 0;
}

body > footer > p {
  margin: 0;
}

.logo {
  max-height: 60dvh;
  margin: 0 auto;
}

/* Custom Classes */
.main-description {
  color: var(--text-white);
  padding: 0;
}

.main-description .container {
  min-width: 400px;
  max-width: 100%;
  max-height: 60dvh;
  margin: 0 auto;
  padding: 0 5rem;

  @media screen and (max-width: 720px) {
    max-height: max-content;
    padding: 0 1rem;
  }
}

.main-description-top {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  
  @media screen and (max-width: 720px) {
    display: flex;
    flex-direction: column-reverse;
  }
}

.main-description-top img {
  margin: 0 auto;
  height: 100%;

  @media screen and (max-width: 720px) {
    height: 65dvh;
  }
}

.main-about {
  background-color: var(--light-bg);
}

.main-about h1 {
  margin: 2rem auto;
}

.main-about a.button {
  font-size: 2rem;
  margin: 0 auto;
}

.main-upcoming {
  background-color: var(--signature-race-background-color);
}

/*
  About
*/
.about-description {
  background-color: var(--dark-bg);
  color: var(--text-white);
}

.about-description p {
  font-size: 1.5rem;
  line-height: 1.5;
}

.board-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.board-section-item h2,
.board-section-item h4,
.board-section-item p {
  margin: 0 0 0.5rem;
}
