body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f0f8ff;
}

.hidden {
    display: none!important;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #9370db;
    margin-bottom: 20px;
}

.button {
    background-color: #9370db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #8a2be2;
}

.charms-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.charm {
    width: 40px;
    height: 40px;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
}

.charm-count {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.charm-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    font-size: 24px;
    margin-right: 10px;
}

.stats {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
}

.stats h2 {
    color: #9370db;
    margin-top: 0;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
  }
  
  .pile-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .piles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }
  
  .pile {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    max-width: 500px;
    margin-bottom: 20px;
  }
  
  .pile-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #9370db;
  }
  
  .pile-stats {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
    width: 250px;
  }
  
  .stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .pile-stats h3 {
    color: #9370db;
    margin-top: 0;
  }