body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(-45deg, #000428, #004e92, #000428, #004e92);
    background-size: 400% 400%;
    animation: galaxyAnimation 15s ease infinite;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
  }
  
  @keyframes galaxyAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  .container {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 10px solid white;
  }
  
  #textInput {
    width: 80%;
    padding: 10px;
    margin: 20px 0;
    font-size: 16px;
    border: none;
    border-radius: 5px;
  }
  
  #boxContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }
  
  .letter-container {
    display: grid;
    grid-template-columns: repeat(7, 20px);
    grid-template-rows: repeat(7, 20px);
    gap: 2px;
    margin: 10px;
  }
  
  .box {
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    opacity: 0; /* Start with invisible boxes */
    animation: fadeIn 0.5s forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }