/* Basic reset + gradient background for entire site */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', sans-serif;
    color: #fff;
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 200% 200%;
    background-attachment: fixed;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
  }
  
  @keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Utility hidden class */
  .hidden {
    display: none !important;
  }
  
  /* New Navigation Bar */
  .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }
  
  .nav-logo {
    font-size: 1.6em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
  }
  
  /* Updated Landing Page Styles */
  #landingPage {
    padding: 120px 20px 40px;
    min-height: calc(100vh - 160px);
  }
  
  .landing-container {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    margin: 0 auto;
    transform: translateY(20px);
    animation: floatIn 0.8s ease forwards;
  }
  
  @keyframes floatIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .landing-container h1 {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
  }
  
  .landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 40px 0;
  }
  
  .landing-image {
    width: 100%;
    border-radius: 12px;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
  }
  
  .landing-image:hover {
    transform: rotate(0deg) scale(1.02);
  }
  
  .user-name-input {
    background: rgba(255,255,255,0.9);
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    width: 80%;
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .user-name-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  /* TEST PAGE */
  #testPage {
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }
  
  /* overrideColor if used */
  body.overrideColor {
    animation: none !important;
    background: none !important;
    background-color: var(--overrideColor) !important;
  }
  
  /* top test page buttons */
  .top-buttons {
    width: 100%;
    max-width: 800px;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    background: none;
  }
  .top-buttons button {
    padding: 12px 24px;
    font-size: 1.1em;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }
  .top-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  
  /* Remove any pseudo-elements that might be causing the white circle */
  .top-buttons button::before,
  .top-buttons button::after {
    display: none;
  }
  
  /* Word display area: grid "cards" */
  #word-display {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }
  #word-display span {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 16px;
    border: none;
    font-size: 1.3em;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    animation: fadeIn 0.5s ease;
    text-align: center;
    width: auto;
    display: block;
    color: #333;
    font-weight: 500;
    transform: scale(0.95);
    transition: all 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  #word-display span:hover {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  }
  
  /* Input section */
  #input-section {
    width: 100%;
    max-width: 800px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 30px;
    box-sizing: border-box;
  }
  #input-section p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #fff;
    font-weight: bold;
  }
  #input-list {
    width: 100%;
    margin-bottom: 20px;
  }
  .word-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  .word-input-row .word-label {
    width: 40px;
    font-weight: bold;
    color: #fff;
  }
  .word-input-row .word-input {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px 25px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
  }
  
  .word-input-row .word-input:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transform: translateY(-2px);
  }
  
  /* Submit button */
  #submitWordsBtn {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: linear-gradient(90deg, #5ee7df, #b490ca);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  #submitWordsBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  
  /* Message area */
  #message {
    margin-top: 30px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background: none;
    backdrop-filter: none;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    animation: fadeInUp 0.5s ease;
    position: relative;
    z-index: 2;
  }
  
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Remove the blur effect when empty */
  #message:empty {
    background: none;
    backdrop-filter: none;
    padding: 0;
  }
  
  /* Mobile adaptation (if you want) */
  @media (max-width: 768px) {
    .landing-grid {
      grid-template-columns: 1fr;
    }
    
    .landing-container {
      margin: 0 15px;
      padding: 30px 20px;
    }
    
    .landing-container h1 {
      font-size: 2.2em;
    }
    
    #word-display {
      padding: 10px;
    }
    
    .word-input-row .word-input {
      max-width: none;
      width: calc(100% - 50px);
    }
  }

  /* Remove the gradient animation from behind the button */
  #testPage .top-buttons {
    background: none;
    position: static;
  }