:root {
    --primary-color: #603aff;   /* Strong signature color */
    --background-color: #faf6fe; /* Signature background */
    --secondary-color: #b490ff;  /* A mid-tone accent color */
}

#modelViewer {
    --progress-bar-height: 0px !important;
    --progress-bar-color: transparent !important;
}


/* Basic resets and styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
}

model-viewer {
    width: 100%;
    height: 100vh;
    background-color: transparent;
}

model-viewer::part(ar-button),
.custom-ar-button {
  background: white;
  border: none;
  border-radius: 8px;
  position: absolute;
  bottom: 16px; /* Set to bottom instead of top */
  right: 16px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-ar-button img {
  width: 24px;
  height: 24px;
}
/* Branding container */
#branding-container {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #faf6fe00;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 101;
}

/* Set default logo size for desktop */
#branding-container img {
    max-width: 200;
    height: auto;
    margin-bottom: 5px;
  }
  
  /* On mobile, make the logo a bit smaller and adjust its horizontal position if needed */
  @media (max-width: 600px) {
    #branding-container {
      top: 10px;
      left: 5px;  /* adjust as needed – still more to the right compared to before */
    }
    #branding-container img {
      max-width: 100px; /* smaller logo for mobile view */
    }
  }

#branding-container p {
    margin: 0;
    font-size: 0.7rem;
}

#branding-container a {
    text-decoration: none;
    color: var(--faf6fe);
}

/* Loading indicator styles */
#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
    font-size: 1.2rem;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message styles */
#error-message {
    color: #FF5252;
    font-weight: bold;
    text-align: center;
    margin: 20px;
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(255, 82, 82, 0.1);
    display: none;
}
/* Bottom Controls Layout */
#model-controls {
    position: fixed;
    bottom: 20px;
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 200;
}

#model-controls .control-left,
#model-controls .control-center,
#model-controls .control-right {
    display: flex;
    align-items: center;
}

#model-controls .control-center {
    gap: 5px;
}

/* Updated Button Styles for the Icon Buttons */
#model-controls button {
    background: white;        /* White background */
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 8px;       /* Rounded corners */
}

#model-controls button img {
    height: 30px;   /* Increased by 20% (30px -> 36px) */
    width: auto;
}

/* Active state: full color */
#model-controls button.active img {
    filter: none;
    opacity: 1;
}

/* Inactive state: muted tone */
#model-controls button.inactive img {
    filter: grayscale(70%);
    opacity: 0.7;
}
  /* Hide the settings button */
  #settings-button {
    display: none;
  }
  
  #settings-button button {
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Modal styles for render settings */
  .modal {
    display: none;
    position: fixed;
    z-index: 102;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  .modal-content {
    background-color: var(--background-color);
    margin: 20% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    border-radius: 8px;
    text-align: left;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  .setting-group {
    margin-bottom: 20px;
  }
  
  .setting-group label {
    display: block;
    margin-bottom: 5px;
  }
  
  /* Responsive adjustments for mobile-friendly layout */
  @media (max-width: 600px) {
    #model-controls button,
    #settings-button button {
      font-size: 14px;
      padding: 8px 12px;
    }
    .modal-content {
      width: 90%;
    }
  }
  
  /* KPI Display container */
  #kpiDisplay {
    position: fixed;
    bottom: 85px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
    z-index: 150;
  }
  
  /* 2x2 Grid for KPI cards */
  .kpi-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 0.5rem;
    max-width: 250px;
  }
  
  /* KPI Box with subtle grey/light indigo tone */
  .kpi-box {
    background: #E8EAF6;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .kpi-box .kpi-label {
    font-size: 0.9rem;
    color: #3F51B5;
    margin-bottom: 0.3rem;
  }
  
  .kpi-box .kpi-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3F51B5;
  }

  
  /* Additional styles for fun fact headlines and subheadlines */
