/* General */

@font-face {font-family: 'Mont'; src: url('../fonts/Mont/MontHeavy.otf')}
@font-face {font-family: 'DMSans'; src: url('../fonts/DMSans/DMSans.ttf')}
@font-face {font-family: 'Brittany'; src: url('../fonts/Brittany/Brittany.otf')}

h1,a,button {font-family:'Mont', sans-serif}
p,select,input {font-family:'DMSans', sans-serif}
h2 {font-family:'Brittany', sans-serif}

:root {
  --contentwidth: 1300px;
  --color1: #000000;
  --color2: #ffffff;
  --color3: #045e10;
  --color4: #308141;
  --color5: #941919;
}

body {
  background-image: 
    repeating-linear-gradient(to bottom, #0000001a 0, #0000001a 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(110deg, #0000001a 0, #0000001a 1px, transparent 1px, transparent 80px);
  background-color: var(--color3);
  overflow-y: scroll;
  margin: 0;
}

/* Header & Overlay */

.header {
  background: linear-gradient(to bottom,#0520079a,#0520073b);
  border-bottom: 1px solid #4988256b;
  box-shadow: 0 4px 12px #1c5a1c6b;
  position: fixed;
  z-index: 998;
  width: 100%;
}

.header-content {
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
  padding: 20px;
  display: flex;
}

.header-svg {
  width: clamp(2rem, 1.5rem + 2vw, 3rem);
  fill: var(--color2);
}

.header-button {
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  transition: 0.3s;
  cursor: pointer;
  display: grid;
  z-index: 999;
  height: 30px;
  width: 30px;
}

.header-dot {
  background-color: var(--color2);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.header-button.active {
  transform: rotate(45deg);
}

.overlay {
  background: #013808fb;
  visibility: hidden;
  transition: 0.3s;
  position: fixed;
  display: flex;
  z-index: 998;
  height: 100%;
  width: 100%;
  opacity: 0;
  left: 0;
  top: 0;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

.overlay-content {
  transform: translateX(-20px);
  box-sizing: border-box;
  flex-direction: column;
  transition: 0.3s;
  padding: 20px;
  display: flex;
  margin: auto;
  height: 100%;
  width: 100%;
  opacity: 0;
}

.overlay-content.active {
  transform: translateX(0);
  opacity: 1;
}

.overlay-links a {
  font-size: clamp(3rem, 15vw, 7.5rem);
  text-decoration: none;
  color: var(--color2);
  transition: 0.3s;
  display: block;
}

.overlay-links:hover a {
  color: #7c7c7c;
}

.overlay-links a:hover {
  color: var(--color2);
}

/* Footer */

.footer {
  background-color: var(--color1);
  width: 100%;
}

.footer-gradient {
  background: linear-gradient(to bottom, var(--color3), var(--color1));
  height: 50px;
  width: 100%;
}

.footer-text {
  font-size: clamp(0.8rem, 0.6rem + 1.4vw, 2rem);
  color: var(--color2);
  text-align: center;
  padding: 20px;
}

.footer-text svg {
  stroke-dashoffset: 700;
  stroke-dasharray: 700;
  stroke: var(--color2);
  fill: transparent;
  stroke-width: 1;
  width: 50%;
}

@media (max-width: 900px) {
  .footer-text svg {
    width: 100%;
  }
}

.footer-text svg.animate {
  animation: fillFooterSVG 3s ease-in-out 1 forwards;
}

@keyframes fillFooterSVG {
  0% {
    stroke-dashoffset: 700;
    stroke: #0f0f0f;
    fill: transparent;
  }
  60% {
    stroke-dashoffset: 0;
    stroke: #7cff7c;
    fill: transparent;
  }
  100% {
    stroke: transparent;
    fill: var(--color2);
  }
}

.footer-hr {
  border: 1px solid #1d1d1d;
}

.footer-socials {
  justify-content: space-between;
  align-items: center;
  max-width: 280px;
  display: flex;
  padding: 20px;
  margin: auto;
}

.footer-socials img {
  width: 50px;
}

/* Hero */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
}

@media (max-width: 600px) {
  .hero {
    height: 80vh;
  }
}

.hero video {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.hero-shadow {
  background: #000000b2;
  align-items: center;
  position: absolute;
  display: flex;
  height: 100%;
  width: 100%;
  bottom: 0;
  left: 0;
}

.hero-content {
  padding: 100px 0 0 0;
  text-align: center;
  width: 100%;
}

.hero-title,
.hero-title-mobile {
  fill: var(--color2);
  margin-bottom: 40px;
  width: 95%;
}

.hero-title-mobile {
  display: none;
}

@media (max-width: 1100px) {
  .hero-title {
    display: none;
  }
  .hero-title-mobile {
    display: unset;
  }
}

.hero-subtitle {
  animation: fillHeroSVG 3s ease-in-out 1 forwards;
  width: clamp(14rem, 9rem + 6vw, 23rem);
  stroke-dashoffset: 700;
  stroke-dasharray: 700;
  fill: transparent;
  stroke: #7c7c7c;
  stroke-width: 1;
}

@keyframes fillHeroSVG {
  0% {
    stroke-dashoffset: 700;
    stroke: #7c7c7c;
  }
  50% {
    stroke-dashoffset: 350;
    stroke: #7cff7c;
  }
  100% {
    stroke-dashoffset: 0;
    stroke: #7c7c7c;
    fill: #7c7c7c;
  }
}

.hero-scrollcue {
  padding-bottom: 20px;
  position: absolute;
  margin: 0 auto;
  width: 30px;
  bottom: 0;
  right: 0;
  left: 0;
}

/* Navigation Column */

.nav-column {
  border-radius: 15px;
  max-width: 100%;
}

.nav-column-content {
  box-sizing: border-box;
  flex-direction: column;
  display: flex;
  padding: 20px;
  gap: 20px;
}

.nav-column-link {
  text-decoration: none;
  color: var(--color2);
  position: relative;
  transition: 0.3s;
  width: 100%;
}

.nav-column-link:hover {
  transform: translateX(10px);
}

.nav-link-image {
  border-radius: 15px;
  object-fit: cover;
  display: block;
  height: 70vh;
  width: 100%;
}

@media (max-width: 600px) {
  .nav-link-image {
    height: 40vh;
  }
}

.nav-link-shadow {
  background: linear-gradient(to right, #000000ef, #00000000, #000000ef);
  justify-content: space-between;
  align-items: flex-end;
  border-radius: 15px;
  position: absolute;
  display: flex;
  height: 100%;
  width: 100%;
  bottom: 0;
  left: 0;
}

.nav-link-text {
  box-sizing: border-box;
  padding: 20px;
}

.nav-link-text h1 {
  font-size: clamp(1rem, 0.75rem + 1vw, 2rem);
  margin: 0;
}

.nav-link-svg {
  box-sizing: border-box;
  fill: var(--color2);
  padding: 20px;
  height: 100%;
}

/* Sub Hero */

.sub-hero {
  position: relative;
  height: 90vh;
  width: 100%;
}

@media (max-width: 600px) {
  .sub-hero {
    height: 50vh;
  }
}

.sub-hero img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

@media (max-width: 600px) {
  .sub-hero img {
    border-radius: 0 0 25px 25px;
  }
}

.sub-hero-shadow {
  background: #0000007e;
  align-items: center;
  position: absolute;
  display: flex;
  height: 100%;
  width: 100%;
  bottom: 0;
  left: 0;
}

@media (max-width: 600px) {
  .sub-hero-shadow {
    border-radius: 0 0 25px 25px;
  }
}

.sub-hero-content {
  padding: 100px 0 0 0;
  text-align: center;
  width: 100%;
}

.sub-hero-title {
  margin-bottom: 40px;
  fill: white;
  width: 95%;
}

.sub-hero-subtitle {
  animation: fillSubSVG 3s ease-in-out 1 forwards;
  width: clamp(14rem, 9rem + 6vw, 23rem);
  stroke-dashoffset: 700;
  stroke-dasharray: 700;
  fill: transparent;
  stroke: #7c7c7c;
  stroke-width: 1;
}

@keyframes fillSubSVG {
  0% {
    stroke-dashoffset: 700;
    stroke: #7c7c7c;
  }
  50% {
    stroke-dashoffset: 350;
    stroke: #7cff7c;
  }
  100% {
    stroke-dashoffset: 0;
    stroke: #7c7c7c;
    fill: #7c7c7c;
  }
}

/* About Grid */

.about-grid {
  grid-template-columns: 1fr 1fr 1fr;
  color: var(--color2);
  max-width: 2000px;
  padding: 20px;
  display: grid;
  margin: auto;
  gap: 20px;
}

.about-grid h1 {
  font-size: clamp(1.3rem, 1.1vw + 1.1rem, 2rem);
}

.about-grid p {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
}

@media (max-width: 1400px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-grid img {
  border-radius: 15px;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

@media (max-width: 1400px) {
  .about-grid img {
    display: none;
  }
}

.about-text {
  background-color: var(--color4);
  border-radius: 15px;
  padding: 20px;
}

.timeline {
  background-color: var(--color4);
  flex-direction: column;
  border-radius: 15px;
  padding: 20px;
  display: flex;
}

.timeline-item {
  transition: all 0.6s ease-out;
  transform: translateX(-50px);
  align-items: center;
  display: flex;
  opacity: 0;
}

.timeline-item h1 {
  border: 1px solid var(--color2);
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  padding: 10px;
  height: 20px;
  width: 20px;
}

.timeline-item.visible {
  transform: translateX(0);
  opacity: 1;
}

/* Calender Container */

.calender-container {
  padding: 20px;
}

.calender-event-title {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 4rem);
  color: var(--color2);
}

.calender-carousel {
  overflow-x: scroll;
  overflow-y: hidden;
  display: flex;
  cursor: grab;
  width: 100%;
}

.calender-carousel::-webkit-scrollbar {
  display: none;
}

.calender-carousel-content {
  display: flex;
  gap: 20px;
}

.calender-item {
  border-radius: 15px;
  position: relative;
  user-select: none;
  height: 400px;
  width: 400px;
}

@media (max-width: 600px) {
  .calender-item {
    height: 300px;
    width: 300px;
  }
}

.calender-item-background-image {
  border-radius: 15px;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.calender-item-shadow {
  background: #0e0e0ec5;
  border-radius: 15px;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.calender-item-content {
  flex-direction: column;
  display: flex;
  height: 100%;
  width: 100%;
}

.calender-item-track-image {
  pointer-events: none;
  user-select: none;
  margin: auto;
  height: 50%;
  width: 50%;
}

.calender-item-text {
  color: var(--color2);
  padding: 15px;
}

.calender-item-text h1 {
  font-size: clamp(1.3rem, 1.1vw + 1.1rem, 2rem);
  margin: 0;
}

.calender-item-text p {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  margin: 0;
}

.calender-event-link {
  align-items: center;
  display: flex;
}

.calender-event-link img {
  width: 50px;
}

/* Gallery Swiper */

.swiper-container {
  position: relative;
  padding-top: 20px;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.swiper-slide {
  transform: scale(0.97) !important;
  transition: transform 0.3s ease;
  justify-content: center;
  align-items: center;
  display: flex;
  opacity: 0.8;
}

.swiper-slide:hover {
  cursor: grab;
}

.swiper-slide-active {
  transform: scale(1.03) !important;
  z-index: 2;
  opacity: 1;
}

.swiper-slide img {
  border-radius: 15px;
  object-fit: cover;
  height: auto;
  width: 100%;
}

@media (max-width: 1200px) {
  .swiper-slide img {
    border-radius: 0;
  }
}

.swiper-pagination {
  margin-bottom: 20px;
}

.swiper-pagination-bullet-active {
  background-color: var(--color2) !important;
}

/* Hotlaps List */

.hotlaps-list {
  max-width: var(--contentwidth);
  color: var(--color2);
  padding: 20px;
  margin: auto;
}

@media (max-width: 900px) {
  .hotlaps-list { 
    overflow-x: scroll;
  }
}

.hotlaps-list h1 {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 4rem);
}

.hotlaps-list p,a {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
}

.hotlaps-list-container {
  background-color: var(--color4);
  border-radius: 15px;
}

@media (max-width: 900px) {
  .hotlaps-list-container {
    overflow-x: scroll;
  }
}

.hotlaps-list-content {
  box-sizing: border-box;
  padding: 20px;
}

@media (max-width: 900px) {
  .hotlaps-list-content {
    width: 800px;
  }
}

.hotlaps-list-grid {
  grid-template-columns: 2fr repeat(3, 1fr) 0.3fr;
  border-bottom: 1px solid var(--color3);
  grid-template-rows: 1fr;
  grid-column-gap: 5px;
  align-items: center;
  grid-row-gap: 10px;
  display: grid;
}

.hotlaps-list-grid a {
  text-decoration: none;
  color: var(--color2);
}

/* Gear Container */
 
.gear-container {
  max-width: var(--contentwidth);
  box-sizing: border-box;
  position: relative;
  padding: 20px;
  margin: auto;
}

.gear-dots {
  position: relative;
  height: 100%;
  width: 100%;
}

.gear-dots img {
  border-radius: 15px;
  object-fit: cover;
  display: block;
  height: 100%;
  width: 100%;
}

.dot {
  transform: translate(-50%, -50%);
  border: 1px solid var(--color2);
  background-color: var(--color4);
  position: absolute;
  border-radius: 50%;
  transition: 0.3s;
  cursor: pointer;
  height: 20px;
  width: 20px;
}

.dot:hover {
  background-color: var(--color2);
}

.dot-overlay-shadow {
  background: #000000b2;
  justify-content: center;
  border-radius: 15px;
  align-items: center;
  visibility: hidden;
  position: absolute;
  transition: 0.3s;
  display: flex;
  height: 100%;
  width: 100%;
  opacity: 0;
  left: 0;
  top: 0;
}

.dot-overlay-shadow.visible {
  visibility: visible;
  opacity: 1;
}

.dot-overlay-content {
  transform: scale(0.5) rotate(10deg);
  box-shadow: 0 0 10px #00ff0066;
  background-color: var(--color4);
  flex-direction: column;
  color: var(--color2);
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
  display: flex;
  padding: 10px;
  opacity: 0;
  gap: 10px;
}

.dot-overlay-shadow.visible .dot-overlay-content {
  box-shadow: 0 0 20px #00ff0099;
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

.dot-overlay-content p {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  margin: 0;
}

.dot-overlay-content img {
  border-radius: 15px;
  width: 350px;
}

@media (max-width: 600px) {
  .dot-overlay-content img {
    width: 250px;
  }
}

.dot-overlay-content button {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  background-color: var(--color3);
  color: var(--color2);
  border-radius: 15px;
  transition: 0.3s;
  cursor: pointer;
  border: none;
}

.dot-overlay-content button:hover {
  background-color: var(--color5);
  color: var(--color2);
}

/* Form */

.form {
  padding: 120px 20px 20px 20px;
  box-sizing: border-box;
  max-width: 450px;
  margin: auto;
}

.form-content {
  background-color: var(--color4);
  color: var(--color2);
  border-radius: 15px;
  padding: 20px;
}

.form-content h1 {
  font-size: clamp(1.3rem, 1.1vw + 1.1rem, 2rem);
  text-align: center;
}

.form-content p {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
}

.form-content button {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  background-color: var(--color3);
  color: var(--color2);
  border-radius: 10px;
  transition: 0.2s;
  margin-top: 15px;
  cursor: pointer;
  padding: 10px;
  border: none;
  width: 100%;
}

.form-content button:hover {
  background-color: #167c16;
}

.form-content input {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px;
  border: none;
  width: 100%;
  outline: 0;
}

/* Dashboard Links */

.dashboard-links {
  padding: 120px 20px 0px 20px;
  max-width: 900px;
  margin: auto;
}

.dashboard-links-content {
  background-color: var(--color4);
  justify-content: space-between;
  border-radius: 15px;
  flex-wrap: wrap;
  display: flex;
  padding: 20px;
  gap: 5px;
}

.dashboard-links-content a {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  text-decoration: none;
  color: var(--color2);
}

.logout {
  color: var(--color5) !important;
}

/* Dashboard Objects */

.dashboard-objects {
  align-items: flex-start;
  max-width: 2000px;
  display: flex;
  margin: auto;
}

@media (max-width: 900px) {
  .dashboard-objects {
    flex-direction: column;
  }
}

/* Dashboard Form */

.dashboard-form {
  padding: 20px 0px 20px 20px;
  box-sizing: border-box;
  max-width: 450px;
  min-width: 450px;
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .dashboard-form {
    padding: 20px 20px 0px 20px;
    position: relative;
    min-width: unset;
    margin: auto;
    width: 100%;
    top: 0px;
  }
}

.dashboard-form-content {
  background-color: var(--color4);
  color: var(--color2);
  border-radius: 15px;
  padding: 20px;
}

.dashboard-form-content img {
  object-fit: cover;
  height: 50px;
  width: 50px;
}

.dashboard-form-content h1 {
  font-size: clamp(1.3rem, 1.1vw + 1.1rem, 2rem);
  text-align: center;
}

.dashboard-form-content p {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
}

.dashboard-form-content button {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  background-color: var(--color3);
  color: var(--color2);
  border-radius: 10px;
  transition: 0.2s;
  margin-top: 15px;
  cursor: pointer;
  padding: 10px;
  border: none;
  width: 100%;
}

.dashboard-form-content button:hover {
  background-color: #167c16;
}

.dashboard-form-content select {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  border: none;
  width: 100%;
  outline: 0;
}

.dashboard-form-content input {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px;
  border: none;
  width: 100%;
  outline: 0;
}

.dashboard-form-content input::-webkit-outer-spin-button,
.dashboard-form-content input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Dashboard List */

.dashboard-list {
  box-sizing: border-box;
  padding: 20px;
  width: 100%;
}

.dashboard-list-content {
  background-color: var(--color4);
  color: var(--color2);
  border-radius: 15px;
  padding: 20px;
}

.dashboard-list-row {
  justify-content: space-between;
  display: flex;
  gap: 20px;
}

.dashboard-list-row-text {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  border-bottom: 1px solid var(--color3);
  grid-template-rows: 1fr;
  word-break: break-all;
  grid-column-gap: 10px;
  align-items: center;
  grid-row-gap: 10px;
  display: grid;
  width: 100%;
}

.dashboard-list-row-text img {
  object-fit: cover;
  height: 50px;
  width: 50px;
}

.dashboard-list-row-text h1 {
  font-size: clamp(1.3rem, 1.1vw + 1.1rem, 2rem);
}

.dashboard-list-row-text p {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
}

.dashboard-list-row-links {
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 10px;
}

.dashboard-list-row-links button {
  background-color: transparent;
  border: none;
}

.dashboard-list-row-links button:hover {
  cursor: pointer;
}

.dashboard-list-row-links img {
  width: 40px;
}

.dashboard-list-row-links-hidden {
  visibility: hidden;
}

/* Error Container */

.error-container {
  padding: 120px 20px 20px 20px;
  box-sizing: border-box;
  max-width: 450px;
  margin: auto;
}

.error-content {
  background-color: var(--color4);
  color: var(--color2);
  border-radius: 15px;
  text-align: center;
  padding: 20px;
}

.error-content h1 {
  font-size: clamp(1.3rem, 1.1vw + 1.1rem, 2rem);
}

.error-content p {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
}

.error-content a {
  font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1.2rem);
  background-color: var(--color3);
  box-sizing: border-box;
  text-decoration: none;
  color: var(--color2);
  border-radius: 10px;
  transition: 0.2s;
  display: block;
  padding: 10px;
  width: 100%;
}

.error-content a:hover {
  background-color: #167c16;
}

/* Message */

.message {
  background-color: var(--color1);
  transform: translateX(-50%);
  color: var(--color2);
  border-radius: 30px;
  transition: 0.3s;
  position: fixed;
  display: flex;
  padding: 15px;
  z-index: 999;
  opacity: 0;
  top: 40px;
  left: 50%;
}

.message.show {
  opacity: 1;
}

.message.hide {
  opacity: 0;
}