/* styles.css */

/* ----------------------------
   1. Base Styles
   ---------------------------- */

   body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
    font-family: Arial, sans-serif;
  }
  
  /* ----------------------------
     2. Canvas Styles
     ---------------------------- */
  
  canvas {
    display: block;
    background-color: #000; /* Black background for stars */
    width: 100%;
    height: 100%;
  }
  
  /* ----------------------------
     3. Intro Message Styles
     ---------------------------- */
  
  #intro-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Darker overlay for better contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other elements */
    transition: opacity 1s ease;
  }
  
  #intro-message p {
    color: white;
    font-size: 2em;
    text-align: center;
    margin: 0 0 1em;
  }
  
  #intro-message a {
    color: #00f;
    text-decoration: underline;
    cursor: pointer;
  }
  
  #intro-message a:hover {
    color: grey;
  }
  
  /* ----------------------------
     4. Skip Intro Button Styles
     ---------------------------- */
  
  #skip-intro {
    margin-top: 1em;
    padding: 0.5em 1em;
    font-size: 1em;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 5px;
    color: white;
    transition: background-color 0.3s ease;
  }
  
  #skip-intro:hover {
    background-color: rgba(255, 255, 255, 0.4);
  }
  
  /* ----------------------------
     5. Animated Text Styles
     ---------------------------- */
  
  .animated-text {
    position: absolute;
    pointer-events: none; /* Allow interactions through the text */
    z-index: 1001; /* Above the canvas and intro message */
    white-space: nowrap; /* Prevent text from wrapping */
    user-select: none; /* Prevent text selection */
    transform-origin: center center;
    /* Optional: Add shadow for better visibility */
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
  }
  
  /* ----------------------------
     6. Mouse and Touch Trail Styles
     ---------------------------- */
  
  .mouse-trail {
    position: absolute;
    pointer-events: none; /* Allow interactions through the trail */
    z-index: 1001; /* Above the canvas and intro message */
    border-radius: 50%;
    user-select: none; /* Prevent selection */
    transform-origin: center center;
    /* Optional: Add shadow for better visibility */
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
  }
  
  /* ----------------------------
     7. Fullscreen Link Styles
     ---------------------------- */
  
  #fullscreen-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
  }
  
  #fullscreen-link:hover {
    color: grey;
  }
  
  /* ----------------------------
     8. Responsive Styles
     ---------------------------- */
  
  /* Adjust intro message font size and layout for smaller screens */
  @media (max-width: 600px) {
    #intro-message p {
      font-size: 1.5em;
    }
  
    #skip-intro {
      font-size: 0.9em;
      padding: 0.4em 0.8em;
    }
  
    /* Adjust animated text size for smaller screens */
    .animated-text {
      font-size: 1.5em !important; /* Override inline styles if necessary */
    }
  }
  
  /* ----------------------------
     9. Additional Styles
     ---------------------------- */
  
  /* Smooth transitions for animated elements */
  .animated-text {
    transition: opacity 2s, transform 2s;
  }
  
  /* Optional: Prevent text from being selected or interacted with */
  .animated-text {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
  }
  