/* CONTRIBUTE AND PREDICT */
.action-btn {
    width: 275px;
    height: 60px;
    font-size: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    color: black;
    border: none;
    cursor: pointer;
    z-index: 1;
  }
  
  .action-btn:hover,
  .action-btn:focus,
  .action-btn:active {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    outline: none;
  }
  
  .action-btn.active {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    font-weight: bold;
  }
  
  /* Specific Button Colors */
  .contribute-btn {
    background-color: #FFB6B6;
  }
  .contribute-btn:hover,
  .contribute-btn:focus {
    background-color: #FFB6B6;
  }
  .contribute-btn:active,
  .contribute-btn.active {
    background-color: #FF8080;
  }
  
  .predict-btn {
    background-color: #FFE4B5;
  }
  .predict-btn:hover,
  .predict-btn:focus {
    background-color: #FFE4B5;
  }
  .predict-btn:active,
  .predict-btn.active {
    background-color: #FFD580;
  }
  
/* QUERY LABEL/VIEW */
.buttons-wrapper {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  /* OR Text Styling */
  .buttons-wrapper .separator {
    font-size: 24px;
    font-weight: bold;
    color: #333;
  }

  /* Base style for query buttons */
  .buttons-wrapper button {
    width: 220px;
    height: 180px;
    border: none;
    border-radius: 8px;
    background-color: #b3d9fd;
    color: black;
    font-size: 26px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Text styling for small text inside buttons */
  .buttons-wrapper button small {
    font-size: 18px;
    margin-top: 0.5rem;
  }

  /* Hover effect */
  .buttons-wrapper button:hover,
  .buttons-wrapper button:focus {
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    outline: none;
  }

  /* Active click effect: immediate visual feedback during click */
  .buttons-wrapper button:active {
    background-color: #68b7ff;
    transform: scale(0.95);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }

  /* Persistent selected state applied via class */
  .buttons-wrapper button.selected {
    background-color: #68b7ff !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

/* ============ MOBILE ============

/* Mobile styles */
@media (max-width: 768px) {
  .action-btn {
    width: 95%; 
    height: 60px; 
    font-size: 16px;
  }

  .buttons-wrapper {
    flex-direction: column; /* Stack buttons vertically */
    gap: 1rem; /* Reduce spacing between buttons */
    align-items: center; /* Center buttons */
  }

  .buttons-wrapper button {
    width: 95%; /* Wider buttons */
    height: 120px; /* Reduce fixed height for consistent sizing */
    padding: 10px 15px; /* Add spacing inside buttons */
    font-size: 18px; /* Adjust font size */
    text-align: center; /* Center-align text */
    white-space: nowrap; /* Prevent small text from wrapping */
    overflow: hidden; /* Prevent overflow issues */
    box-sizing: border-box; /* Include padding in width and height */
  }

  .buttons-wrapper button small {
    font-size: 14px; /* Adjust small text size */
    margin-top: 0.3rem;
    white-space: nowrap; /* Prevent wrapping for small text */
  }

  .buttons-wrapper .separator {
    display: block; 
    font-size: 18px; 
    font-weight: bold; 
    margin: 5px;
    text-align: center; 
  }

  h3 {
    font-size: 1.2rem; /* Adjust header size */
    text-align: center;
  }
}
