body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a; /* Dark background */
  color: #f0f0f0; /* Light text */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.container {
  margin-top: 50px;
  width: 80%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
}

h1, h2 {
  color: #6c63ff; /* A pleasant purple */
  margin: 0;
  text-align: center;
}

.system-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.system-button {
  background-color: #6c63ff; /* Purple */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.system-button:hover {
  background-color: #574fd8; /* Darker purple */
}

.dice-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}

.dice-buttons form {
  margin: 0;
  display: flex;
  justify-content: center;
}

.dice-buttons button {
  background-color: #6c63ff; /* Purple */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dice-buttons button:hover {
  background-color: #574fd8; /* Darker purple */
}

.dice-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dice-form form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.dice-input {
  padding: 10px;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 200px;
}

.dice-form button {
  background-color: #007bff; /* Blue */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dice-form button:hover {
  background-color: #0056b3; /* Darker blue */
}

.roll-results {
  width: 100%;
  background-color: #2a2a2a; /* Slightly lighter dark shade */
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  min-height: 150px;
  text-align: left;
  white-space: pre-wrap;
  font-family: 'Courier New', Courier, monospace;
}

.roll-results p {
  margin: 0;
}

.footer {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid #444;
  width: 90%;
  text-align: center;
  font-size: 0.9em;
  color: #aaa;
}
