/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body defaults */
  body {
    font-family: 'Orbitron', sans-serif; /* or replace with a more minimal font like Roboto, Inter, etc. */
    background-color: #f9f9f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* HEADERS & FOOTERS */
  .header {
    text-align: center;
    padding: 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
  }
  
  .site-title {
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
  }
  
  .footer {
    text-align: center;
    padding: 1rem;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
  }
  
  /* MAIN CONTENT */
  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
  
  /* BUTTONS */
  .primary-button,
  .secondary-button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    margin: 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  /* Accent color for "main" calls to action */
  .primary-button {
    background-color: #1565c0; /* deep blue accent */
    color: #ffffff;
  }
  
  .primary-button:hover {
    background-color: #0d47a1; /* darker shade on hover */
  }
  
  /* Secondary buttons, e.g., for Pomodoro controls */
  .secondary-button {
    background-color: #e0e0e0;
    color: #333;
  }
  
  .secondary-button:hover {
    background-color: #d3d3d3;
  }
  
  /* LAYOUTS / CONTAINERS */
  .button-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .pomodoro-container {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 2rem;
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
    text-align: center;
  }
  
  /* TIMER DISPLAY */
  .timer-display {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  
  .controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
  }
  

  /* For TypeRacer */

.typeracer-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }
  
  .quote-display {
    position: relative;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    width: 600px;             /* fixed width */
    height: 120px;            /* fixed height */
    padding: 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1.5;
    white-space: nowrap;      /* keep text on one line */
    overflow-x: auto;         /* allow horizontal scroll */
    overflow-y: hidden;
    font-family: 'Courier New', Courier, monospace; /* monospaced font for stability */
  }
  
  /* Ensure spans remain uniformly sized */
  .quote-display span {
    display: inline-block;
    width: 1ch;
  }
  
  /* Highlight / correctness classes */
  .correct-char {
    color: #333; /* normal text color */
  }
  .incorrect-char {
    color: red;
  }

  .typing-area {
    margin-top: 1rem;
  }
  
  .type-input {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .highlight-char {
    background-color: #1565c0;
    color: #fff;
    border-radius: 2px;
    padding: 0 2px;
  }
  
  .typed-text {
    color: #777; /* or darker if you prefer */
  }
  
  .remaining-text {
    color: #999;
  }
  
  /* End-Game Screen */
  .end-game-screen {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
  }
  
  .end-game-screen h2,
  .end-game-screen h3 {
    margin-bottom: 0.5rem;
  }
  
  #copyBtn {
    width: 80px;
    transition: background-color 0.5s ease, color 0.5s ease;
    min-width: 80px;
  }
  
  #copyBtn.copied {
    background-color: #4CAF50; 
    color: #fff;
  }
  
  #copyBtn.copied:hover {
    background-color: #4CAF50;
  }

  .transcript {
    width: 600px;
    height: 200px;
    resize: none;
    overflow-y: auto;
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }  