body {
    font-family: 'Segoe UI', sans-serif;
    background: #121212;
    color: white;
    text-align: center;
    padding: 0rem 0;
}

h1 {
    width: 100%;
    font-size: clamp(2rem, 10vw, 3.5rem);
    white-space: nowrap;      /* allow wrapping */
    word-wrap: break-word;    /* break mid-word if extremely narrow */
    line-height: 1.1;
    text-align: center;
    margin: 2rem 0rem 0.5rem 0rem;  /* small left/right margin so text never touches edge */
    color: gold;
}

p {
    font-size: clamp(1rem, 4vw, 2rem);
    white-space: normal;      /* allow wrapping */
    word-wrap: break-word;    /* break mid-word if extremely narrow */
    line-height: 1.1;
    margin: 0 1rem 0rem 1rem;  /* small left/right margin so text never touches edge */
    color: white;
}

.btn {
    background: gold;
    color: black;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 1rem;
    transition: 0.3s;
}

.btnGroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;     /* pushes the entire group farther down */
  }
  

.btn:hover {
    background: orange;
}

.inputBox {
    margin-top: 2rem;
}

input {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    width: 200px;
    text-align: center;
    margin-right: 10px;
}

#waitingModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10000;
}

#gameLinkText {
    margin-top: 1rem;
    background: white;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

#multiplayerBtn {
    display: block;
    margin: 1rem auto 0.5rem;
    width: 200px;
}

#multiplayerModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#multiplayerModal.active {
    display: flex;
}

#singleplayerBtn {
    display: block;
    margin: 1rem auto 0.5rem;
    width: 200px;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#createGameBtn {
    width: 240px;
}

#joinInput {
    width: 150px;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #ccc;
    text-align: center;
}

#joinGameBtn {
    padding: 0.55rem 1.15rem;
    font-size: 1rem;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}


/* Overlay (optional dim background) */
/* Dim background */
.waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
  }
  
  /* Main container */
  .waiting-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    z-index: 101;
    width: 480px;
    max-width: 90%;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
  }
  
  /* Message */
  .waiting-message {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 28px;
    color: #222;
  }
  
  /* Sections */
  .waiting-section {
    margin-bottom: 24px;
  }
  
  .waiting-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
  }
  
  .waiting-value {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #222;
    word-break: break-word;
  }
  
  /* Buttons */
  .waiting-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
  }
  
  .waiting-btn {
    padding: 12px 20px;
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .waiting-btn:hover {
    background-color: #e0a800;
  }
  
  .footer p {
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #888;
}

  .section-divider {
    left: 4rem;
    right: 4rem;
    border: none;
    border-top: 1px solid #444;
  }
  
  .steps-wrapper {
    max-width: 700px;
    margin: 4rem auto 2rem;       /* space from divider above, content below */
    padding: 0 1rem;
  }
  
  /* three‑column flex grid */
  .steps-grid {
    display: flex;
    background: transparent;
    border-top:    1px solid #444; /* matches your divider */
    border-bottom: 1px solid #444;
  }

  
  
  /* each step as an equal column */
  .steps-grid .step {
    flex: 1;
    padding: 1rem 1.5rem;
    text-align: left;
  }
  
  /* vertical separator between columns */
  .steps-grid .step + .step {
    border-left: 1px solid #444;
  }
  
  .steps-grid h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #fff;
  }
  .steps-grid p {
    font-weight: normal;
    margin: 0;
    font-size: 0.95rem;
    color: #d3d6da;
    line-height: 1.2;
  }

  
  /* each individual bubble */
  .bubble {
    align-items: center;
    margin-top: 2vh;
    justify-content: center;
    height: 25px;
    width: 25px;
    font-size: 20px;
    background-color: #444;
    border-radius: 50%;
    display: inline-flex;
    user-select: none;
  }

  .landing {
    min-height: 100vh;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  }

  .indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-weight: normal;
  }

  .line1 {
    border: 0;   
    position: absolute;            /* remove default border */
    align-items: center;
    height: 1px;             /* thickness of the line */
    background-color: white;  /* line color */
    bottom: 0;
    left: 0;   
    right: 0; 
    margin: 0 auto;
    margin-top: 1vh;    /* vertical spacing */
    width: 90%;             /* span the entire viewport */
    transform: translateY(1px);
  }

  .section-divider {
    border: none;
    border-top: 1px solid #444;
    width: 100%;
    margin: 0 auto;
  }

  .scroll-content {
    width: 90%;
    left: 0;   
    right: 0;
    margin: 0 auto;
    text-align: left;
  }
  
  /* Main title (h1) */
  .scroll-content h1 {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 2.25rem;      /* about 36px */
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;        /* bottom gap */
    text-align: left;
  }
  
  /* Section titles (h2) */
  .scroll-content h2 {
    font-family: inherit;
    font-size: 1.75rem;       /* about 24px */
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1rem;     /* space above & below */
  }

  .scroll-content h3 {
    font-family: inherit;
    font-size: 1.5rem;       /* about 24px */
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1rem;     /* space above & below */
  }
  
  /* Paragraph text */
  .scroll-content p {
    font-family: inherit;
    font-size: 1rem;     /* about 14px */
    line-height: 1.6;
    color: #d3d6da;          /* light‑gray text on dark bg */
    margin: 0.5rem 0;        /* small vertical rhythm */
    font-weight: normal;
  }
  

  @media (max-width: 600px) {
    .steps-grid h3 {
      font-size: 0.9rem;
    }
    .steps-grid p {
      font-size: 0.75rem;
    }
    .bubble {
        height: 12px;
        width: 12px;
        font-size: 8px;
      }
      .bubble:not(:last-child) {
        margin-right: -6px;
      }
  }