/* main.css — Global Styles for D&D Character Builder */

body {
  background: url('../images/bg-parchment.jpg') center/cover fixed;
  color: #f1e6b3;
  font-family: 'Times New Roman', serif;
  padding: 1.5rem;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
}

.panel {
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid #b38b2f;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  color: #f1e6b3;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.panel:hover {
  transform: scale(1.01);
  box-shadow: 0 0 15px rgba(255, 215, 128, 0.4);
}

h1, h2 {
  color: #e8cf8b;
  text-shadow: 1px 1px 3px #000;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

select, input, button {
  background-color: #1a1a1a;
  border: 1px solid #b38b2f;
  color: #f1e6b3;
  border-radius: 6px;
  padding: 0.5rem;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus, input:focus, button:focus {
  outline: none;
  border-color: #e8cf8b;
  box-shadow: 0 0 5px #e8cf8b;
}

button:hover {
  background-color: #2a2a2a;
  border-color: #e8cf8b;
}

ul li::marker {
  color: #e8cf8b;
}

#abilityScores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

#abilityScores div {
  background: #1a1a1a;
  border: 2px solid #b38b2f;
  border-radius: 8px;
  text-align: center;
  padding: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#abilityScores div:hover {
  transform: scale(1.05);
  background-color: rgba(255, 215, 128, 0.15);
}

#backgroundDescription {
  font-style: italic;
  color: #d5c28a;
}

.text-gray-300, .text-gray-400 {
  color: #e0d8b0 !important;
}

.text-center {
  text-align: center;
}
