body {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background-color: #181818;
  color: #fff;
}

.container {
  max-width: 80%;
  margin: 20px auto;
  margin-top: 100px;
}

h1 {
  font-size: 50px;
}

input[type="file"],
#clearButton {
  width: 40%;
  margin: 10px 1%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #444;
}

#fileInput {
  border: 1px solid #ddd;
  background-color: #82ed82;
  color: #000;
}

#fileInput:hover {
  background-color: #95eb95;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
}

#clearButton {
  background-color: #ff5252;
  cursor: pointer;
  color: #fff;
  height: 60px;
}

#clearButton:hover {
  background-color: #ff6464;
}

button:hover {
  background-color: #666;
}

#result {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 10px;
}

p {
  margin: 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  background-color: #333;
  color: #fff;
  display: flex;
  align-items: center; /* Vertically center text */
  justify-content: center; /* Horizontally center text */
  text-align: center; /* Center text horizontally */
  overflow: hidden; /* Ensure no overflow */
}

p:hover {
  background-color: #444;
}

#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s;
}
