:root {
      --primary-color: #ffffff;
      --accent-color: #fe5005;
      --board-max-width: 800px;
      --blur-bg: rgba(255,255,255,0.2);
      --blur-filter: blur(10px);
      --radius: 12px;
      --input-shadow: rgba(0,0,0,0.2);
    }
    * { box-sizing: border-box; margin:0; padding:0; }
    body {
      font-family: 'Poppins', sans-serif;
      color: var(--primary-color);
      background: #000;
      overflow-x: hidden;
      
      display: grid;
  place-items: center;
    }  
     #bg-video {
      position: fixed;
      top:0; left:0;
      width:100vw; height:100vh;
      object-fit: cover;
      z-index:-1;
      filter: brightness(50%);
    }
    header {
      color: white;
      text-align: center;
      padding: 1rem;
      font-size: 2rem;
      font-weight: 700;
      text-shadow: 0 0 10px rgba(0,0,0,0.5);
    }
    .controls {
      display:flex;
      flex-wrap:wrap;
      gap:1rem;
      justify-content: space-between;
      backdrop-filter: var(--blur-filter);
      background: var(--blur-bg);
      padding:1rem;
      border-radius: var(--radius);
      margin:0rem auto;
      max-width: var(--board-max-width);
      align-items: center;
      border: 1px solid rgba(255,255,255,0.4);
    }
    .controls img.logo {
      height:40px;
      border-radius:4px;
    }
    .controls .button-group {
      display:flex;
      gap:0.5rem;
      flex-wrap:wrap;
    }
    .controls button,
    .controls a.link-btn {
      display:inline-flex;
      align-items:center;
      gap:0.5rem;
      padding:0.5rem 5.5rem;
      background: var(--accent-color);
      color:#fff;
      border:none;
      border-radius: var(--radius);
      cursor:pointer;
      font-weight:500;
      text-decoration:none;
      transition:transform 0.2s;
    }
    .controls button:hover,
    .controls a.link-btn:hover {
      transform: translateY(-2px);
    }
    
    
.linkedin-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #0a66c2;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  align-content: center;
}

.linkedin-button:hover {
  background-color: #004182;
}

.info-box {
  margin-top: 10px;
  margin-left:30px;
  width: 300px;
  max-height: var(--board-max-size);
  overflow-y: auto;
  backdrop-filter: var(--blur-filter);
  background: var(--blur-bg);
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-weight: 500;
}
.alert-icon {
  font-size: 1.2rem;
  color: #0d6efd; /* Bootstrap primary blue */
}

#Iterations {
		margin-top:10px;
		margin-right:30px;
      width: 350px;
      max-height: var(--board-max-size);
      overflow-y: auto;
      backdrop-filter: var(--blur-filter);
      background: var(--blur-bg);
    
      border-radius: var(--board-radius);
      border: 1px solid rgba(255,255,255,0.4);
      background: var(--blur-bg);
      border-radius: var(--radius);
    }
    .match-info-box {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--blur-bg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
}

 .cell.locked {
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}



    
    
    
    
   
   
    .container { display: flex; align-items: flex-start; margin-top: 20px; align-content: center;}
    .scoreboard { width: 150px; padding: 10px; margin: 0 20px; border-radius: 8px; color: #fff; text-align: center; }
    #user-score { background: goldenrod; }
    #comp-score { background: crimson; }
    .board { display: grid; grid-template-columns: repeat(3, 80px); grid-gap: 5px;align-items: center; }
    .cell { width: 80px; height: 80px; background: #fff; display: flex; justify-content: center; align-items: center; font-size: 2rem; cursor: pointer; }
    .cell.disabled { cursor: not-allowed; color:black; }
    #status { margin-top: 20px; font-size: 1.2rem; }
    #controls { margin-top: 20px; }
    #begin-tourney, #reset-tourney { margin: 0 10px; padding: 8px 16px; font-size: 1rem; }
    /* animations */
    @keyframes pop {
      0% { transform: scale(0.5); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }
    .result { animation: pop 0.5s ease-out forwards; font-size: 2rem; margin-top: 20px; }
    .win { color: green; }
    .lose { color: red; }
    .draw { color: gray; }
    
    
    
@media (max-width: 600px) {
	
	
	
  /* keep controls in a row, allow wrapping */
  .controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  /* make each button share the row evenly */
  .controls button,
  .controls a.link-btn {
    flex: 1 1 120px;   /* grow/shrink, minimum 120px */
    max-width: 180px;  /* never exceed 180px */
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* specifically style begin/reset the same way */
  #begin-tourney,
  #reset-tourney {
    flex: 1 1 120px;
    max-width: 180px;
    padding: 8px 12px;
    font-size: clamp(11px, 3vw, 15px); 
  }
  /* text sizes */
  .match-info-box,
  #status {
    font-size: 1rem;
    
    
    :root {
  --board-size: 330px;
  --cell-gap: 10px;
  --cell-size: calc((var(--board-size) - (var(--cell-gap) * 2)) / 3);
}


  .board {
    transform: scale(1.05); /* Slight enlargement visually */
  }

  .scoreboard h2 {
    font-size: 1.8rem;  /* Larger user/AI label */
  }

  .scoreboard div {
    font-size: 2.4rem;  /* Larger score value */
  }
  }
  
}