* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: radial-gradient(circle at center, #4e2c1e, #1a0e08);
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.game {
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game img:first-child{
    width: 250px;
    margin-top: -60px;
}

.header {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ffd700;
}
.history {
  position: absolute;
  top: 100px;      
  left: 10px;
  width: 270px;
  max-height: 400px;     
  background: rgba(30, 30, 30, 0.4);
  box-shadow: 0 0 30px #ffcc00;
  padding: 15px;
  color: #fff;
  font-size: 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.history h2 {
  color: #ffd700;
  margin-bottom: 10px;
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  padding-bottom: 5px;
}

#historyList {
  list-style: none;
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: unset; /* Để flex tự điều chỉnh */
}

#historyList li {
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #ffd700;
}


.audio-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.audio-controls button {
  padding: 8px 14px;
  background: #8b0000;
  color: #fff;
  border: 1px solid #ffaaaa;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.audio-controls button:hover {
  background: #aa0000;
}

h1 {
  font-size: 42px;
  color: #ffcc00;
  margin-bottom: 30px;
  text-shadow: 2px 2px #000;
}

.dice-area {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

.dice {
  width: 100px;
  height: 100px;
  background: #fff;
  color: #000;
  font-size: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  font-weight: bold;
}

#displayResult {
  font-size: 24px;
  margin-top: 10px;
  color: #ffd700;
}

.result {
  font-size: 22px;
  font-weight: bold;
  margin: 15px 0;
  color: #00ff9f;
}

.choices {
  display: flex;
  gap: 50px;
  margin: 30px 0;
}

.choices button {
  padding: 25px 60px;
  font-size: 32px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 15px #ff5555;
  transition: 0.2s;
}

.choices button:hover {
  background: #cc0000;
  transform: scale(1.05);
}

.settings {
  margin-top: 20px;
  color: #fff;
}

.settings input[type="range"] {
  width: 300px;
}

#biasValue {
  color: #ffcc00;
  font-weight: bold;
}
