@font-face {
  font-family: "ColnagoSans";
  src: url("https://cdn.shopify.com/oxygen-v2/27756/13397/27604/2855412/build/_assets/ColnagoSans-Rg-RYDVHDWC.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  padding: 0;
  margin: 0;
}

html {
  /* fix mobile viewport menu bar on iOS */
  height: -webkit-fill-available;
}

body {
  height: 100%;
  /* fix mobile viewport menu bar on iOS */
  height: -webkit-fill-available;
  width: 100%;
  text-align: center;
}

#unity-container {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
}

/* Default values, might be overwritten by aspect ratio media queries */
#unity-canvas {
  width: 100%;
  height: 100%;
  background-color: #fff;
}

/* Unity mobile */
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
.unity-mobile #unity-footer { display: none }

@media (min-aspect-ratio: 3/1) {
  #unity-canvas {
    width: auto;
    height: 100%;
    aspect-ratio: 3/1;
  }
}

@media (max-aspect-ratio: 1/2) {
  #unity-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1/2;
  }
}

h1{
  font-family: 'Montserrat', sans-serif;
  color: #000;
  font-size: 25px;
}

/* =========================
   Unity loading screen
   Background: diagonal gradient that reaches #2B2B2B by screen center
   Logo: starts #D4D4D4, fills #FFFFFF left -> right via --p
   SVG path: ../img/colnago.svg (relative to THIS CSS file)
   ========================= */

#unity-loading-container {
  font-family: "ColnagoSans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    to top right,
    #515151 0%,
    #2B2B2B 50%,
    #2B2B2B 100%
  );

  opacity: 1;
  visibility: visible;
}

#unity-loading-container.finished {
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms linear, visibility 0ms linear 300ms;
}

#unity-loading-logo-container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo-as-progress (no separate bar) */
.logo-reveal {
  width: 350px;   /* adjust if needed */
  height: 120px;  /* adjust to match your SVG aspect ratio */
  --p: 0%;

  background: linear-gradient(
    90deg,
    #D4D4D4 0%,
    #D4D4D4 var(--p),
    #000 var(--p),
    #000 100%
  );

  -webkit-mask-image: url("../img/colnago.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-image: url("../img/colnago.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-mode: alpha;
}

/* =========================
   Footer ("powered by" + logo)
   ========================= */

.loading-footer {
  position: absolute;
  left: 50%;
  bottom: 50px;
  /* logo 50px from bottom border */
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* space between label and logo */
}

.loading-footer-label {
  font-size: 12px;
  line-height: 1;
  color: #D4D4D4;
  /* adjust if you want */
  text-transform: lowercase;
  /* matches "powered by" styling */
  font-weight: 400;
}

.loading-footer-logo {
  width: 110px;
  height: auto;
  display: block;
}

/* =========================
   Maintenance Overlay
   ========================= */

#maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
  }

  #maintenance-card {
    text-align: center;
    padding: 3rem 4rem;
    max-width: 480px;
    width: 90%;
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }


  #maintenance-icon svg {
    width: 100%;
    height: 100%;
  }

  @keyframes slowSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  #maintenance-logo {
    margin-bottom: 2rem;
  }

  #maintenance-logo img {
    max-height: 48px;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.75;
    filter: none;
  }

  #maintenance-title {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2e3749;
    margin: 0 0 1rem;
  }

  #maintenance-subtitle {
    font-size: 0.9rem;
    color: #2e3749;
    line-height: 1.8;
    letter-spacing: 0.04em;
    margin: 0 0 2.4rem;
  }

  #maintenance-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
  }

  #maintenance-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fac93e;
    animation: pulse 1.5s ease-in-out infinite;
  }

  #maintenance-dots span:nth-child(2) { animation-delay: 0.3s; }
  #maintenance-dots span:nth-child(3) { animation-delay: 0.6s; }

  @keyframes pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.4); }
  }
