@font-face {
    font-family: "hal-night";
    src: url(/fonts/hal-night.otf) format("opentype");
    font-display: swap;
    font-weight: 400;
    font-style:normal;
}

@font-face {
    font-family: "bangers";
    src: url(/fonts/Bangers.ttf) format("truetype");
    font-display: swap;
    font-style:normal;
}

.cta-section {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  background-color: rgba(0,0,0,0);
}

.bg-rotating {
  position: absolute;
  inset: 0;
  background-image: url("/images/home_bg/truck_drive_5.png");
  background-size: 100vw;
  background-repeat: no-repeat;
  background-position: center top;
  z-index: -1;
  transition: opacity 0.6s ease-in-out;
  transition: background-image 0.6s ease-in-out;
}

.bg-base {
  position: absolute;
  inset: 0;
  background: url("/images/ai_image.png") no-repeat center top;
  background-color: rgba(0,0,0,0);
  background-size: 100%;
  margin-top: -100px;
  z-index: 0;
  pointer-events: none;
}


/* Foreground background */
body {
  position: relative;
  z-index: 0;
  font-family: Arial, sans-serif;
  background-size: cover;
  margin: 0;
}

.content-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);
  max-width: 1200px;
  margin: 0 auto;

  row-gap: 40px;

  align-items: stretch;
}

.container {
    margin-top: 900px;
    padding-bottom: 24px;
    width:fit-content;
    height: fit-content;
    padding-left: 24px;
    background-color: rgba(20,20,20,0.9);
    justify-self: center;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #b8b8b8;

}

.apply-button,
.browse-button {
  display: block;
  max-width: 100%;
  height: auto;

  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.apply-button,
.browse-button {
  transform: translateY(100%);
}

.apply-button:hover,
.browse-button:hover {
  transform: translateY(100%) scale(0.95);
}

.commisions-button:hover {
  transform: translate(-1%,0) scale(1.2);
}

.patreon-button:hover {
  transform: translate(200%, 120%) scale(1.2);
}
.patreon-container {
    position: relative;
    display: flex;

    justify-content: space-between;
    align-items: center;

    width: 100%;
    aspect-ratio: 20 / 3;

    background-image: url("/images/patreon-container.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    padding: 0 0 20% 0;
}


.patreon-text {
  transform: translate(10%,345%);
  position: absolute;
    max-width: 50%;
    height: auto;
}

.patreon-button {
  transform: translate(200%, 120%);
  position: absolute;
    max-width: 30%;
    height: auto;

    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.cta-grid {
  padding-left: 5%;
  padding-top: 60%;
  width: 98%;
  height: 50%;
  display: flex;
  flex-flow: row;
  max-width: 90%;
  justify-content: space-between;
  gap: clamp(2rem, 10vw, 2rem);
  align-items: flex-start;
}

.events-container,
.mods-container,
.maps-container {
  aspect-ratio: 1 / 0.7; /* tweak once, works everywhere */
  max-width: 40%;
  height: auto;
  position: relative;

  border-radius: 8px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 12%;
}

.commisions-container {
  margin-top: 5%;
  float:inline;
  display: flex;
  width: 100%;
  z-index: 5;
  flex-flow: row;
  justify-content:center;
  height: 0;
}

.commisions-container .commisions-button {
  max-width: 75%;
  padding-left: 12%;
  transition: all 0.3s ease;
}

.events-container {
  background-image: url("/images/events_box.png");
}

.mods-container {
  background-image: url("/images/mods_box.png");
}

.maps-container {
  background-image: url("/images/maps_box.png");
}

.container .alert-header {
    font-family:"bangers", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color:rgb(255, 255, 255);
    letter-spacing: 0.08em;
}

.patreon-header {
   font-family:"bangers", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color:rgb(255, 255, 255);
    letter-spacing: 0.08em; 
}

.cta {
  display: inline-block;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta:hover {
  color:#ffffff;
  transform: scale(1.05);
}

.banner {
  height: 70px;
  padding: 15px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, socials right */
}

.banner-image {
  height: 100%;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}
.carousel {
  position: relative;
  max-width: 63vw;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}
.filler_text_div {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
}

.filler_text {
  transform: translateY(300%);
  position: relative;;
  overflow: hidden;
  max-width: 95%;
  z-index: 4;
}

.carousel-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.carousel-image {
  width: 20vw;
  border-radius: 8px;
  transition: transform 0.25s ease;
}

.carousel-button:hover .carousel-image {
  transform: scale(1.05);
}

/* arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 32px;
  padding: 6px 12px;
  height:230px;
  cursor: pointer;
  z-index: 10;
}

.carousel-arrow.left { left:0.0001rem; }
.carousel-arrow.right { right:0.0001rem; }

.divider {
  width: 100%;
  height: 3px;
  object-fit: fill;
}

.html {
  background-color: black;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.socials-section {
  display: flex;
  align-items: center;
  gap: 16px; /* clean consistent spacing */
}


.socials-image {
  height: 32px;   /* control size by height, not % */
  width: auto;
}


@media (width > 768px ) {
  .-mobile {
      display:none;
  }
}

@media (max-width: 768px) {
  .-desktop {
    display:none;
  }
  .filler_text {
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  max-width: 95%;
  z-index: 4;
  }
  .commisions-container .commisions-button {
      max-width: 35%;
      transform: translate(39%,0) scale(1.2);
  }
  .html {
    background-color: rgba(0,0,0,0);
  }
  .cta-section {
    position: relative;
    background-image: url("/images/SiteBackMobile.png");
    z-index: 0;
    transform: translateY(10%);
    background-size: cover;
  }
  .mobile-overlay {
    width: 100%;
  }
  .socials-image {
    height: 20px;   /* control size by height, not % */
    width: auto;
  }
  .bg-base {
  display: none;
  }

  /* Foreground background */
  body {
    position: relative;
    background-color: rgb(185, 185, 185);
  }

  .cta-grid {
  padding-left: 0;
  padding-top: 10%;
  width: 98%;
  height: 50%;
  display: flex;
  flex-flow: column;
  max-width: 100%;
  justify-content: space-between;
  gap: 2vh;
  align-items: center;
  }
  
  .apply-button,
  .browse-button {
    transform: translateY(65%);
  }

  .apply-button:hover,
  .browse-button:hover {
    transform: translateY(65%) scale(0.95);
  }

  .patreon-button:hover {
    transform: translate(200%, 120%) scale(0.95);
  }

  .events-container,
  .mods-container,
  .maps-container {
    aspect-ratio: 16 / 16; /* tweak once, works everywhere */
    width: 100%;
    position: relative;

    border-radius: 8px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 12%;
  }
  .bg-rotating {
    position: absolute;
    inset: 0;

    background-image: url("/images/home_bg/truck_drive_5.png");
    background-size: contain;
    background-position-x: center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;

    z-index:-2;
    pointer-events: none;
    transition: background-image 0.6s ease-in-out;
  }
  
  /* === GLOBAL SAFETY === */
  body {
    background: #000;
  }

  /* === BANNER === */
  .banner {
    width: 100vw;
    padding: 8px 16px;
    box-sizing: border-box;
  }

  .banner-image {
    max-height: 30px;
  }

  .carousel {
  position: relative;
  max-width: 70vw;
  overflow: hidden;
}
  .content-grid {
  display: grid;

  grid-template-columns: repeat(1, 1fr);
  max-width: 1200px;
  margin: 0 auto;

  row-gap: 40px;

  align-items: stretch;
  }
}
