/* Khu vực nhập liệu */
.controls {
  gap: 10px; 
  margin-bottom: 30px;
  background: white; padding: 12px; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}
.controls input {
  width: 65px; padding: 8px; border: 1px solid #ddd; border-radius: 6px; text-align: center;
}
.controls button {
  padding: 8px 12px; background: #333; color: white; border: none; border-radius: 6px; cursor: pointer;
  margin-left: 5px;
}

.wheel-wrapper {
  position: relative;
  width: 90vw; height: 90vw;
  max-width: 480px; max-height: 480px;
  display: flex; align-items: center; justify-content: center;
}

#center-display {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: #ffffff;
  border: 4px solid #10b981;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 900; color: #065f46;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pointer {
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; 
  border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 20px solid #ef4444; z-index: 20;
}

#canvas { 
  width: 100%; height: 100%;
  border-radius: 50%; 
  transition: transform 5s cubic-bezier(0.1, 0, 0.1, 1);
  background: #fff;
}

#btn-spin {
  margin: 25px 10px; width: 40%; max-width: 280px;
  padding: 15px; font-size: 1.8rem; cursor: pointer;
  background: #10b981; color: white; border: none; border-radius: 50px;
  font-weight: 800; text-transform: uppercase;
  box-shadow: 0 5px 0 #059669;
  -webkit-tap-highlight-color: transparent;
}
#btn-spin:active, #btn-reset:active { transform: translateY(3px); box-shadow: 0 2px 0 #059669; }
#btn-spin:disabled, #btn-reset:disabled { background: #ccc; box-shadow: none; opacity: 0.7; }

#btn-reset {
  margin: 25px 10px; width: 40%; max-width: 280px;
  padding: 15px; font-size: 1.8rem; cursor: pointer;
  background: #f0ad4e; color: white; border: none; border-radius: 50px;
  font-weight: 800; text-transform: uppercase;
  box-shadow: 0 5px 0 #d58512;
  -webkit-tap-highlight-color: transparent;
}

/* Khung lịch sử màu xanh dương */
.history-container {
  width: 75%;
  background: #2563eb; /* Màu xanh dương chính */
  color: white; border-radius: 15px;
  padding: 15px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  margin-top: 30px;
}
.history-title {
  font-size: 1.8rem; font-weight: bold; margin-bottom: 10px;
  text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px; display: flex; justify-content: space-between;
}
.history-delete {
cursor:pointer; 
font-size: 1.5rem; 
opacity: 0.7;
}
#history-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  min-height: 40px; align-items: center;
}
.history-item {
background: white;
color: #2563eb;
padding: 5px 9px;
border-radius: 20px;
font-weight: bold;
font-size: 2.3rem;
animation: popIn 0.3scubic-bezier(0.175, 0.885, 0.32, 1.275);
min-width: 45px;
text-align: center;
}
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.itemNumber{
font-size: 1.7rem;
margin-left: 5px;
margin-right: 5px;
cursor: pointer;
}

@media all and (min-width: 320px) and (max-width: 400px) {
.history-container {
  width: 100%;
}
.history-title {
  font-size: 1.5rem;
}
.history-delete {
  cursor:pointer; 
  font-size: 1.2rem; 
  opacity: 0.7;
}
.history-item {
  font-size: 1.8rem;
  min-width: 35px;
}
#btn-spin, #btn-reset {
  padding: 10px;
  font-size: 1.5rem;
}
}
@media all and (min-width: 401px) and (max-width: 500px) {
.history-container {
  width: 100%;
}
.history-title {
  font-size: 1.5rem;
}
.history-delete {
  cursor:pointer; 
  font-size: 1.2rem; 
  opacity: 0.7;
}
#btn-spin, #btn-reset {
  padding: 10px;
  font-size: 1.5rem;
}
}
@media all and (min-width: 501px) and (max-width: 991px) {

}
@media all and (min-width: 992px) and (max-width: 1199px) {

}