
@font-face {
  font-family: "Archia";
  src: url("../fonts/Archia-Regular.otf");
}
* {
  box-sizing: border-box;
  user-select: none;
}

::-webkit-scrollbar {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: -webkit-fill-available;
  overscroll-behavior-y: none;
}

body {
  color: #fff;
  background: #000000;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

h1, h2, h3, h4, button, a {
  color: #fff;
  font-family: "Archia";
  font-size: 1rem;
  text-decoration: none;
}

h1 {
  font-size: clamp(1.5rem, 7vw, 3rem);
  text-transform: capitalize;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2rem);
}

h3 {
  font-family: "Montserrat";
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.2;
}

p {
  font-family: "Montserrat";
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 2rem;
}

a {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  text-transform: none;
  transition: color 0.25s ease-in-out;
}

a:hover {
  color: #5D31FF;
  transition: color 0.25s ease-in-out;
}

button {
  width: auto;
  height: 3rem;
  padding: 1rem;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0);
  transition: 0.25s;
  cursor: pointer;
}

button:hover {
  transition: 0.25s;
  color: #5d31ff;
  border-color: #5d31ff;
}

section {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
}

.intro {
  padding-bottom: 2rem;
  padding-top: 10rem;
  justify-content: flex-end;
}

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.intro-text p {
  width: 100%;
  align-self: center;
}

.video-banner {
  position: relative;
  width: 100%;
  height: 30rem;
  min-height: 20rem;
  overflow: hidden;
  border-radius: 6rem;
}

#tall-video {
  height: 40rem;
}

.video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 0;
}

.video-layer video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background-color: rgba(0, 0, 0, 0);
  object-position: 50% 50%;
}

.gradient-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: inset 0 0px 48px #5d31ffd6;
  background-color: transparent;
  z-index: 1;
}


.mission {
  width: 100%;
  height: 100vh;
}

.mission h3 {
  width: 100%;
}

.ethos {
  width: 100%;
  height: 200vh;
}

.ethos-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(10, minmax(20px,1fr));
  grid-template-rows: repeat(12, minmax(20px, 1fr));
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.ethos-grid-vid {
  position: relative;
  width: 10rem;
  height: 6rem;
  overflow: hidden;
  border-radius: 2rem;
  justify-self: center;
  align-self: center;
}

.ethos-grid-vid.big {
  width: 16rem;
  height: 10rem;
  border-radius: 3rem;
}

.ethos-grid-vid:nth-child(1) { grid-column: 3; grid-row: 1; }
.ethos-grid-vid:nth-child(2) { grid-column: 8; grid-row: 2; }
.ethos-grid-vid:nth-child(3) { grid-column: 1; grid-row: 3; }
.ethos-grid-vid:nth-child(4) { grid-column: 5; grid-row: 4; }
.ethos-grid-vid:nth-child(5) { grid-column: 2; grid-row: 6; }
.ethos-grid-vid:nth-child(6) { grid-column: 9; grid-row: 5; }
.ethos-grid-vid:nth-child(7) { grid-column: 7; grid-row: 7; }
.ethos-grid-vid:nth-child(8) { grid-column: 4; grid-row: 9; }
.ethos-grid-vid:nth-child(9) { grid-column: 9; grid-row: 10; }
.ethos-grid-vid:nth-child(10) { grid-column: 3; grid-row: 12; }

.motorsport {
  width: 100%;
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.motorsport .text-layer {
  height: 100vh;
}

.video-bg {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.video-bg video {
  height: 100vh;
}

.video-bg::before {
  content: "";
  width: 100%;
  height: 100vh;
  position: absolute;
  background: linear-gradient(180deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 100%);
}

.courses {
  height: 100vh;
}

.text-layer {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-self: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  z-index: 1;
}

.photo-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.training-grid {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1;
  grid-auto-rows: 3;
  justify-content: center;
  align-items: center;
  gap: 0rem;
  padding: 4rem 2rem;
}

.training-grid-item {
  justify-self: center;
  align-self: center;
  text-align: center;
}

#pill-video {
  position: relative;
  width: 20rem;
  height: 30rem;
  min-height: 20rem;
  overflow: hidden;
  border-radius: 10rem;
  justify-self: center;
  text-align: center;
  order: 1;
  margin-bottom: 2rem;
}

#training-heading {
  justify-self: center;
  text-align: center;
  order: 2;
}

#training-text {
  justify-self: center;
  text-align: center;
  order: 3;
}

.development {
  padding-bottom: 6rem;
}

.development .gradient-layer {
  background-color: rgba(0, 0, 0, 0.2);
}

.text-only, .blurb {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}
.blurb {
  height: auto;
}



/* SUBPAGES */

.pill-text-grid {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1;
  grid-auto-rows: 2;
  justify-content: center;
  align-items: center;
  gap: 0rem;
  padding: 2rem;
}

.pill-text-grid-item {
  justify-self: center;
  align-self: center;
  text-align: center;
}

.pills-grid {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-rows: auto;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.pills-grid-item {
  justify-self: center;
  align-self: center;
  text-align: center;
  width: auto;
  height: 20rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

@media only screen and (min-width: 390px) {
  .intro {
    min-height: 60vh;
    height: auto;
  }
}


@media only screen and (min-width: 768px) {

  .intro-text, .text-layer, .text-only, .mission h3, .blurb{
    width: 70vw;
  }
}


@media only screen and (min-width: 1024px) {


  section {
    padding: 3rem 4rem;
  }


  #tall-video {
    height: 30rem;
  }

  .mission h3 {
    font-size: 2.5rem;
  }

  .training-grid {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .training-grid-item {
    justify-self: center;
    align-self: center;
  }

  #pill-video {
    position: relative;
    width: 20rem;
    height: 30rem;
    min-height: 20rem;
    overflow: hidden;
    border-radius: 10rem;
    order: 2;
    margin: 0;
  }

  #training-heading {
    justify-self: flex-end;
    text-align: right;
    order: 1;
  }

  #training-text {
    margin-top: 2rem;
    justify-self: flex-start;
    text-align: left;
    order: 3;
  }

  /* SUBPAGES */
  .drivers {
    gap: 4rem;
  }

  .roadmap {
    padding-top: 10rem;
  }

  .pill-text-grid {
    width: 80%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-auto-rows: auto;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .pill-text-grid-item {
    justify-self: center;
    align-self: center;
  }

  .pills-grid {
    width: 80%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .pills-grid-item {
    justify-self: center;
    align-self: center;
  }

  .pills-grid-item#pill-video {
    width: 100%;
    height: 30rem;
  }

  .download-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: row;
  }
/* 
  .pills-grid-item:nth-child(2) {
    top: 8rem;
  } */



}