/* CSS Variables */
:root {
  --text-white: rgba(254, 253, 250, 1);
  --light-bg: #F2F5F7;
  --dark-bg: #3f3f3fff;

  --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%;
}

/* Overrides */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > header {
  padding: 0.75rem 0.5rem 1rem;
  display: flex;
  position: sticky;
  z-index: var(--header-z-index);
  top: 0;
  background-color: var(--header-background-color);
  backdrop-filter: blur(4px);
}

body > header > *:only-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
  max-width: 75rem;
}

body > header h1 {
  margin: 0;
}

header nav a, header nav a:visited {
  margin: 0 0.5rem;
}

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;
}

/* Custom Classes */
.main-description {
  display: flex;
  padding: 0;
  height: clamp(300px, 500px, 800px);
  position: relative;
  color: var(--text-white);
  text-shadow: 3px 3px 2px #000;

  background-image: url('images/tom-hills-bBEMUfWiS2s-unsplash.jpg');
  background-size: cover;
  background-position: center;
}

.main-description h1 {
  font-size: clamp(3rem, 4rem, 5rem);
}

.main-about {
  background-color: var(--light-bg);
}

.main-upcoming {
  background-color: var(--signature-race-background-color);
}

.about-description {
  background-color: var(--dark-bg);
  color: var(--text-white);
}

.about-description p {
  font-size: 1.5rem;
  line-height: 1.5;
}

