body {
  margin: 0;
  font-family: "Delius", cursive;
  background-color: #0d0f10;
  color: #fff;
}

.container {
  display: flex;
  height: 100vh;
}

.coin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.sidebar {
  width: 300px;
  background: #121617;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.balance { order: 1; }
.bet-section { order: 2; }
.choice-buttons { order: 3; }
.series-section { order: 4; }
.history { order: 5; }

.balance {
  font-size: 20px;
  font-weight: 600;
}

.bet-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#betInput {
  background: #1e2526;
  color: white;
  border: none;
  padding: 12px;
  font-size: 18px;
  border-radius: 8px;
  text-align: center;
}

.bet-controls {
  display: flex;
  justify-content: space-between;
}

.bet-controls button {
  flex: 1;
  margin: 0 5px;
  background: #1e2526;
  color: #98f5c9;
  border: 1px solid #98f5c9;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.choice-buttons {
  display: flex;
  justify-content: space-between;
}

.choice-buttons button {
  flex: 1;
  margin: 0 5px;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

#headsBtn {
  background: linear-gradient(135deg, #a1f0d3, #68e0b3);
  color: #0d0f10;
  font-family: "Delius", cursive;
}

#tailsBtn {
  background: linear-gradient(135deg, #c1f4e2, #98f5c9);
  color: #0d0f10;
  font-family: "Delius", cursive;
}

.series-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.multipliers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.multipliers div {
  background: #1e2526;
  border: 1px solid #98f5c9;
  color: #98f5c9;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
}

.withdraw {
  background: #98f5c9;
  color: #0d0f10;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  font-family: "Delius", cursive;
}

.history {
  font-size: 14px;
  line-height: 1.4;
  background: #1e2526;
  padding: 10px;
  border-radius: 6px;
  height: 150px;
  overflow-y: auto;
}

.coin-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coin {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #98f5c9, #60e5ad);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0d0f10;
  font-size: 24px;
  font-weight: bold;
  animation: glow 1.5s ease-in-out infinite alternate;
  transition: transform 0.6s;
}

@keyframes glow {
  from {
    box-shadow: 0 0 12px #98f5c9;
  }
  to {
    box-shadow: 0 0 24px #60e5ad;
  }
}


@media (max-width: 768px) {
  .container {
    display: flex;
    height: 100vh;
    flex-direction: column-reverse;
  }
  .sidebar {
    width: auto;
    background: #121617;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 50px;
  }
  .balance { order: 1; }
  .bet-section { order: 3; }
  .choice-buttons { order: 4; }
  .series-section { order: 5; }
  .history { order: 2; }
}