  body {
    margin: 0;
    background-color: #000; /* fallback color: black */
    background-image: url('/images/web_background-command_center.webp');  /* Tech room image for background stored in images folder */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    font-family: 'Orbitron', sans-serif;
    color: #00bbc2;
    overflow: hidden;
    position: relative;
  }
   
  .background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
    backdrop-filter: blur(8px);   /* frosted glass effect */
    z-index: 0;
  }

  .background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    pointer-events: none;
  }
   
    #sigil-background {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(60vw, 100vh);
    height: min(60vw, 100vh);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
  }

  @font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron/static/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron/static/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
  }

  .tile-title {
    font-size: clamp(0.2rem, 0.6vh + 0.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: #00f7ff;
  }
   
   .tile-sign {
    font-size: clamp(0.7rem, 1vh + 0.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: #00f7ff;
  }
  
  .tile-content {
    font-size: 0.75rem;
    color: #d0fefe;
  }

  .tile-panel {
  background: rgba(0, 255, 255, 0.2);
  border: 6px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  padding: 1rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  cursor: pointer;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;       /* horizontal centering */
  justify-content: center;   /* vertical centering */
  text-align: center;
  box-shadow:
      inset 0 0 0 1px black,              /* inner black border */
      0 0 10px rgba(0, 255, 255, 0.6);    /* outer glow */

  /* Responsive sizing */
  width: calc(8vh + 2vw);
  height: calc(3vh + 2vw);
  box-sizing: border-box;
  }

  .tile-panel:hover {
  scale: 1.1;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.7), 0 0 25px rgba(0, 255, 255, 0.4) inset;
  transition: scale 0.2s ease, box-shadow 0.2s ease;
  }

  .tile-panel.active-tile {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.9), 0 0 40px rgba(0, 255, 255, 0.5) inset;
    border-color: #00f7ff;
  }

  /* --------------------- Tile Alignment: Columnar --------------------- */
  .top-left1 { top: 2%; left: 40%; }
  .top-left2 { top: 5%; left: 30%; }
  .top-left3 { top: 15%; left: 20%; }
  .top-left4 { top: 25%; left: 15%; }
  .top-left5 { top: 35%; left: 10%; }
  .center-left { top: 50%; left: 6%; transform: translateY(-50%); }
  .bottom-left5 { bottom: 37%; left: 6%; }
  .bottom-left4 { bottom: 32%; left: 6%; }
  .bottom-left3 { bottom: 22%; left: 6%; }
  .bottom-left2 { bottom: 12%; left: 6%; }
  .bottom-left1 { bottom: 2%; left: 6%; }
  .top-center { position: absolute; top: 12%; left: 50%; transform: translate(-50%, -50%);}
  .center-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}
  .center-low { position: absolute; top: 69%; left: 50%; transform: translate(-50%, -50%);}
  .bottom-center { position: absolute; bottom: 9%; left: 50%; transform: translate( -50%, -10%);}
  .top-right1 { top: 2%; right: 40%; }
  .top-right2 { top: 5%; right: 30%; }
  .top-right3 { top: 15%; right: 20%; }
  .top-right4 { top: 25%; right: 15%; }
  .top-right5 { top: 37%; right: 10%; }
  .center-right { top: 50%; right: 6%; transform: translateY(-50%); }
  .bottom-right5 { bottom: 35%; right: 6%; }
  .bottom-right4 { bottom: 32%; right: 6%; }
  .bottom-right3 { bottom: 22%; right: 6%; }
  .bottom-right2 { bottom: 12%; right: 6%; }
  .bottom-right1 { bottom: 2%; right: 6%; }

  /* --------------------- Tile Alignment" Arch --------------------- */
  .arch-1-left { top: 9%; left: 35%; }
  .arch-2-left { top: 15%; left: 35%; }
  .arch-3-left { top: 25%; left: 28%; }
  .arch-4-left { top: 35%; left: 25%; } 
  .arch-5-left { top: 50%; left: 28%; } 
  .arch-6-left { top: 56%; left: 27%;}
  .arch-7-left { top: 75%; left: 32%;}

  .arch-center { top: 26%; left: 50%; transform: translate(-50%, 0); }

  .arch-1-center { top: 5%; left: 50%; transform: translate(-50%, 0); }
  .arch-2-center { top: 15%; left: 50%; transform: translate(-50%, 0); }
  .arch-3-center { top: 25%; left: 50%; transform: translate(-50%, 0); }
  .arch-4-center { top: 35%; left: 50%; transform: translate(-50%, 0); }
  .arch-5-center { top: 45%; left: 50%; transform: translate(-50%, 0); }
  .arch-6-center { top: 56%; left: 50%; transform: translate(-50%, 0); }
  .arch-7-center { top: 76%; left: 50%; transform: translate(-50%, 0); }
  .arch-8-center { top: 84%; left: 50%; transform: translate(-50%, 0); }

  .arch-1-right { top: 9%; right: 35%; }
  .arch-2-right { top: 15%; right: 35%; }
  .arch-3-right { top: 25%; right: 28%; }
  .arch-4-right { top: 35%; right: 25%; }
  .arch-5-right { top: 50%; right: 28%; }
  .arch-6-right { top: 56%; right: 27%;}
  .arch-7-right { top: 75%; right: 32%;}
    


  /* ----------------------- SVG Code ----------------------- */
  #circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1.5; /* Below tiles but above background */
  }

  .circuit-line {
    stroke: #00D1FF;
    stroke-width: 1.5;
    opacity: 0.25;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px #00D1FF);
    transition: opacity 0.4s ease;
  }

  @keyframes pulse-glow {
    0%   { stroke-opacity: 0.1; }
    50%  { stroke-opacity: 0.5; }
    100% { stroke-opacity: 0.1; }
  }

  .circuit-line {
    animation: pulse-glow 3s infinite ease-in-out;
  }
  /* --------------------- Other code -------------------- */

  .cursor-blink::after {
    content: '_';
    animation: blink 1s step-start infinite;
  }
  
  .tile-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  }  
    
  @keyframes blink {
    50% { opacity: 0; }
  }

  .interface {
    width: 100vw;
    height: 100vh;
    position: absolute;
    margin: auto;
    z-index: 2;
  }
  
  .interface-panel {
    background: rgba(0, 128, 128, 0.3);
    border: 6px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    padding: 0.00rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: none;
    position: absolute;
    z-index: 2;
    box-shadow:
      inset 0 0 0 1px black,              /* inner black border */
      0 0 10px rgba(0, 255, 255, 0.4);    /* outer glow */
    text-align: center;
    }
  
  .interface-content {
    font-size: 0.95rem;
    color: #d0fefe;
  }

  .interface-title {
    font-size: 3.75rem;
    text-shadow: 2px 1px #009196;
    margin-left: 0.25em;
    margin-right: 0.25em;
    color: #00bbc2;
    text-align: center;
  }  
  
  .interface-msg {
    font-size: 1.0rem;
    text-shadow: 2px 1px #009196;
    color: #00bbc2;
    margin-left: 1em;
    margin-right: 1em;
    text-align: center;
  } 
    
  .tile-panel:hover {
    box-shadow:
      inset 0, 255, 255 1px black,
      0 0 19px rgba(0, 255, 255, 0.7);
    transition: box-shadow 0.2s ease;
  }
  
  .underdevelopment-panel {
    background: rgba(0, 128, 128, 0.3);
    border: 6px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    padding: 0.25rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: none;
    position: absolute;
    z-index: 2;
    visibility: hidden;
    box-shadow:
      inset 0 0 0 1px black,              /* inner black border */
      0 0 10px rgba(0, 255, 255, 0.4);    /* outer glow */
  }

  .underdevelopment-sign {
    font-size: 1.25rem;
    text-shadow: 2px 1px #009196;
    color: #00bbc2;
    text-align: center;
    visibility: hidden;
  }  
  
  .central-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90vw;
    max-width: 800px;
    height: 70vh;
    max-height: 600px;
    background: rgba(0, 255, 255, 0.1);
    border: 6px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    padding: 1rem;
    z-index: 3;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow:
      inset 0 0 0 1px black,              /* inner black border */
      0 0 10px rgba(0, 255, 255, 0.4);    /* outer glow */
  }
  
  .central-panel.active {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
  }

  #centralContent {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: block;
    color: #00bbc2;
    padding: 0.5rem;
    box-sizing: border-box;
  }
  
  .central-panel {
    width: 90vw;
    max-width: 800px;
    height: 70vh;
    max-height: 600px;
  }
  
  .close-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .close-button {
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    color: #00f7ff !important;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #00f7ff;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    cursor: pointer;
    z-index: 10;
    appearance: none;
    text-align: center;
    width: fit-content;
  }  

    /* For WebKit-based browsers */
    ::-webkit-scrollbar {
      width: 12px;
    }


  /* ------------------------------ For <1024 Width Landscape Touch Screens ------------------------------ */
  @media (orientation: landscape) and (max-width: 1024px) and (pointer: coarse) {
  #sigil-background {
    width: auto;
    height: 80vh;
    opacity: 0.1;
  }

  .interface-title {
    font-size: 1.35rem; 
  } 
  
  .interface-msg {
    font-size: 0.75rem; 
    text-align: center;
    margin-left: 0.05em;
    margin-right: 0.05em;
    text-align: center;
  } 

  /* --------------------- Tile Alignment" Arch --------------------- */
  .arch-1-left { top: 9%; left: 35%; }
  .arch-2-left { top: 15%; left: 25%; }
  .arch-3-left { top: 25%; left: 18%; }
  .arch-4-left { top: 35%; left: 15%; } 
  .arch-5-left { top: 50%; left: 18%; } 
  .arch-6-left { top: 50%; left: 17%;}
  .arch-7-left { top: 80%; left: 22%;}

  .arch-center { top: 26%; left: 50%; transform: translate(-50%, 0); }

  .center-center { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);}
  .arch-1-center { top: 5%; left: 50%; transform: translate(-50%, 0); }
  .arch-2-center { top: 15%; left: 50%; transform: translate(-50%, 0); }
  .arch-3-center { top: 25%; left: 50%; transform: translate(-50%, 0); }
  .arch-4-center { top: 35%; left: 50%; transform: translate(-50%, 0); }
  .arch-5-center { top: 45%; left: 50%; transform: translate(-50%, 0); }
  .arch-6-center { top: 50%; left: 50%; transform: translate(-50%, 0); }
  .arch-7-center { top: 80%; left: 50%; transform: translate(-50%, 0); }
  .arch-8-center { top: 90%; left: 50%; transform: translate(-50%, 0); }

  .arch-1-right { top: 9%; right: 35%; }
  .arch-2-right { top: 15%; right: 25%; }
  .arch-3-right { top: 25%; right: 18%; }
  .arch-4-right { top: 35%; right: 15%; }
  .arch-5-right { top: 50%; right: 18%; }
  .arch-6-right { top: 50%; right: 17%;}
  .arch-7-right { top: 80%; right: 22%;}

  .tile-panel {
  padding: 0.75rem;
  border-radius: 8px;
  width: calc(15vh + 2vw);
  height: calc(2vh + 2vw);
  }
  
  .tile-title {
    font-size: clamp(0.2rem, 0.6vh + 0.5vw, 1.2rem);
    margin-bottom: 0.0rem;
  }
}
/* ------------------------------ For <799 width Screens ------------------------------ */
  @media (max-width: 799px) {
   
  .background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
    backdrop-filter: blur(8px);   /* frosted glass effect */
    z-index: 0;
  }
   
  .background-logo {
    aspect-ratio: 3/4;
  }

#sigil-background {
  width: 100vw;
  height: auto;
  opacity: 0.15;
}

  @font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron/static/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron/static/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
  }
    
  .tile-title {
    font-size: clamp(0.7rem, 1vh + 0.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: #00f7ff;
  }
   
   .tile-sign {
    font-size: clamp(0.7rem, 1vh + 0.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: #00f7ff;
  }
  
  .tile-content {
    font-size: 0.75rem;
    color: #d0fefe;
  }

  .tile-panel {
  background: rgba(0, 255, 255, 0.2);
  border: 6px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  padding: 1rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  cursor: pointer;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;       /* horizontal centering */
  justify-content: center;   /* vertical centering */
  text-align: center;
  box-shadow:
      inset 0 0 0 1px black,              /* inner black border */
      0 0 10px rgba(0, 255, 255, 0.6);    /* outer glow */

  /* Responsive sizing */
  width: calc(8vh + 2vw);
  height: calc(3vh + 2vw);
  box-sizing: border-box;

}


  .tile-panel:hover {
  scale: 1.1;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.7), 0 0 25px rgba(0, 255, 255, 0.4) inset;
  transition: scale 0.2s ease, box-shadow 0.2s ease;
  }

  .tile-panel.active-tile {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.9), 0 0 40px rgba(0, 255, 255, 0.5) inset;
    border-color: #00f7ff;
  }

  /* --------------------- Tile Alignment: Columnar --------------------- */
  .top-left1 { top: 2%; left: 40%; }
  .top-left2 { top: 5%; left: 30%; }
  .top-left3 { top: 15%; left: 20%; }
  .top-left4 { top: 25%; left: 15%; }
  .top-left5 { top: 35%; left: 10%; }
  .center-left { top: 50%; left: 6%; transform: translateY(-50%); }
  .bottom-left5 { bottom: 37%; left: 6%; }
  .bottom-left4 { bottom: 32%; left: 6%; }
  .bottom-left3 { bottom: 22%; left: 6%; }
  .bottom-left2 { bottom: 12%; left: 6%; }
  .bottom-left1 { bottom: 2%; left: 6%; }
  .top-center { position: absolute; top: 12%; left: 50%; transform: translate(-50%, -50%);}
  .center-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}
  .center-low { position: absolute; top: 69%; left: 50%; transform: translate(-50%, -50%);}
  .bottom-center { position: absolute; bottom: 9%; left: 50%; transform: translate( -50%, -10%);}
  .top-right1 { top: 2%; right: 40%; }
  .top-right2 { top: 5%; right: 30%; }
  .top-right3 { top: 15%; right: 20%; }
  .top-right4 { top: 25%; right: 15%; }
  .top-right5 { top: 37%; right: 10%; }
  .center-right { top: 50%; right: 6%; transform: translateY(-50%); }
  .bottom-right5 { bottom: 35%; right: 6%; }
  .bottom-right4 { bottom: 32%; right: 6%; }
  .bottom-right3 { bottom: 22%; right: 6%; }
  .bottom-right2 { bottom: 12%; right: 6%; }
  .bottom-right1 { bottom: 2%; right: 6%; }

  /* --------------------- Tile Alignment" Arch --------------------- */
  .arch-1-left { top: 9%; left: 35%; }
  .arch-2-left { top: 15%; left: 25%; }
  .arch-3-left { top: 25%; left: 18%; }
  .arch-4-left { top: 35%; left: 15%; } 
  .arch-5-left { top: 50%; left: 18%; } 
  .arch-6-left { top: 56%; left: 17%;}
  .arch-7-left { top: 78%; left: 22%;}

  .arch-center { top: 26%; left: 50%; transform: translate(-50%, 0); }

  .arch-1-center { top: 5%; left: 50%; transform: translate(-50%, 0); }
  .arch-2-center { top: 15%; left: 50%; transform: translate(-50%, 0); }
  .arch-3-center { top: 25%; left: 50%; transform: translate(-50%, 0); }
  .arch-4-center { top: 35%; left: 50%; transform: translate(-50%, 0); }
  .arch-5-center { top: 45%; left: 50%; transform: translate(-50%, 0); }
  .arch-6-center { top: 56%; left: 50%; transform: translate(-50%, 0); }
  .arch-7-center { top: 78%; left: 50%; transform: translate(-50%, 0); }
  .arch-8-center { top: 84%; left: 50%; transform: translate(-50%, 0); }

  .arch-1-right { top: 9%; right: 35%; }
  .arch-2-right { top: 15%; right: 25%; }
  .arch-3-right { top: 25%; right: 18%; }
  .arch-4-right { top: 35%; right: 15%; }
  .arch-5-right { top: 50%; right: 18%; }
  .arch-6-right { top: 56%; right: 17%;}
  .arch-7-right { top: 78%; right: 22%;}
    
    
  .cursor-blink::after {
    content: '_';
    animation: blink 1s step-start infinite;
  }
  
  .tile-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  }  
    
  @keyframes blink {
    50% { opacity: 0; }
  }

  .interface-content {
    font-size: 0.95rem;
  }

  .interface-title {
    font-size: 1.35rem; 
  }  
  
  .interface-msg {
    font-size: 0.75rem; 
    text-align: center;
  } 

  .underdevelopment-panel {
    display: none;
    visibility: hidden;
  }

  .underdevelopment-sign {
    display: none;
    visibility: hidden;
  }  
  
  .central-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90vw;
    max-width: 800px;
    height: 70vh;
    max-height: 600px;
    background: rgba(0, 255, 255, 0.1);
    border: 6px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    padding: 2rem;
    z-index: 3;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow:
      inset 0 0 0 1px black,              /* inner black border */
      0 0 10px rgba(0, 255, 255, 0.4);    /* outer glow */
  }
  
  .central-panel.active {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
  }

  #centralContent {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: block;
    color: #00bbc2;
    padding: 1rem;
    box-sizing: border-box;
  }

  .central-panel {
    width: 90vw;
    max-width: 800px;
    height: 70vh;
    max-height: 600px;
  }
  
  .close-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .close-button {
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    color: #00f7ff !important;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #00f7ff;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    cursor: pointer;
    z-index: 10;
    appearance: none;
    text-align: center;
    width: fit-content;
  }  

    /* For WebKit-based browsers */
    ::-webkit-scrollbar {
      width: 12px;
    }

}
