body {
    background: #cff0f9;
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 0;
  }

h1 {
    color: #3f05d2; /* Change to any color you like */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    background-color: rgba(228, 84, 84, 0.2); /* Semi-transparent white background */
    padding: 5px 10px; /* Padding for the rectangular box */
    border: 2px solid rgb(29, 3, 227); /* White border */
    border-radius: 10px; /* Slightly rounded corners */
    display: inline-block; /* Ensure the box wraps around the text */
    text-shadow: 
        -1px -1px 0 #a82323,  
         1px -1px 0 #211b42,
        -1px  1px 0 #a6c91b,
         1px  1px 0 #11ba0e; /* Black outline effect */
}
  .selector-container {
    margin: 20px auto;
    background: #fff7e6;
    border: 2px solid #ff9900;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
  }
  .section-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
  }
  .button-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .select-btn {
    padding: 12px 20px;
    font-size: 1em;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .select-btn.selected {
    background-color: #4CAF50;
    color: white;
    border-color: #388E3C;
  }
  .start-btn {
    background-color: #2196F3;
    color: white;
    font-size: 1.2em;
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
  }
  .start-btn:hover {
    background-color: #1976D2;
  }
  #game-container {
    display: none;
    margin-top: 20px;
  }
  .word-boxes, .letter-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  .target-box {
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    background-color: white;
  }
  .target-box.editable {
    background-color: #fffacd;
    border: 2px dashed #ff9800;
  }
  .letter-box {
    width: 50px;
    height: 50px;
    background-color: lightblue;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease;
  }
  .letter-box:active {
    transform: scale(1.1);
    background-color: #ffdd57;
  }
  #word-image {
    width: 300px;
    height: 250px;
    object-fit: contain;
    display: block;
    margin: 20px auto;
    border: 2px solid #333;
    background-color: white;
    padding: 1px;
    border-radius: 10px;
  }
  #clear-word {
    margin-top: 20px;
    padding: 12px 24px;
    background: #ff758c;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
  }

    /* Rich Back to Home Button */
    .back-button {
    display: inline-block;
    margin-top: 90px;
    margin-bottom: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
/* Footer */
footer {
    background: linear-gradient(135deg, #e30f16, #033ca0);
    color: white;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #fff;
}

.social-media a {
    margin: 0 10px;
    text-decoration: none;
    color: white;
    font-size: 1.2em;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #a6c1ee;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* style.css */
.category-box {
    font-family: 'Arial', sans-serif;
    color: white;
    background-color: rgb(76, 175, 80); /* Green */
    margin: 5px;
    padding: 5px 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(109, 4, 4, 0.2);
    font-size: 2em;
    font-weight: bold;
    text-shadow: 
      -1px -1px 0px rgb(0, 0, 0),
       1px -1px 0px rgb(0, 0, 0),
      -1px  1px 0px rgb(0, 0, 0),
       1px  1px 0px rgb(0, 0, 0);
   }
  
  .category-box h2 {
    margin: 0;
    font-size: 1.1em;
  }
  
  .category-box #word-progress {
    font-size: 1.1em;
    margin-top: 8px;
  }

  @keyframes bounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(4); }
    100% { transform: scale(1); }
  }
  
  .bounce-animation {
    animation: bounce 0.3s ease;
  }

  /* === Start Game Section Styles === */

#start-game-container {
  text-align: center;
  margin-top: 30px;
}

#start-game-container .start-box {
  border: 2px dashed #4CAF50;
  background: #f0fff4;
  padding: 25px;
  border-radius: 12px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Start Game heading and message */
#start-game-container h2 {
  color: #332e7d;
  font-size: 1.8em;
  margin-bottom: 10px;
}

#start-game-container p {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 20px;
}

/* Animated Start Game Button */
#startGameBtn {
  padding: 14px 30px;
  font-size: 1.2em;
  font-weight: bold;
  background: linear-gradient(45deg, #5855fa, #675def);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: pulseBtn 2s infinite;
  transition: transform 0.2s ease;
}

#startGameBtn:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* === Animations === */
@keyframes pulseBtn {
  0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  50% {
      transform: scale(1.05);
      box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
  }
  100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

