body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 100px 80px 20px 20px; /* Top padding for fixed bar */
  box-sizing: border-box;
}
.top-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding-top: 30px;
}
/* Fixed Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  z-index: 1000;
  font-family: "Segoe UI", sans-serif;
}

/* Layout sections */
.top-bar-section {
  display: flex;
  align-items: center;
}

.top-bar-section.left {
  flex: 1;
  gap: 12px;
}

.top-bar-section.center {
  flex: 1;
  justify-content: center;
}

.top-bar-section.right {
  flex: 1;
  justify-content: flex-end;
}

/* Force flex children to center properly */
.top-bar-section.center,
.top-bar-section.right {
  display: flex;
}

/* Button styling */
button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover:enabled {
  background-color: #45a049;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Dropdown styling */
#deck-select {
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  color: #333;
  appearance: none;
  outline: none;
  width: 180px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Center: deck dropdown */
#deck-select {
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  color: #333;
  appearance: none;
  outline: none;
  text-align-last: center;
  width: 340px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Right: Timer */
#timer {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

#result-bar {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  z-index: 900;
}

#result-bar.success {
  background-color: #d4edda;
  color: #155724;
  border-bottom: 2px solid #c3e6cb;
}

#result-bar.warning {
  background-color: #fff3cd;
  color: #856404;
  border-bottom: 2px solid #ffeeba;
}

#result-bar.hidden {
  display: none;
}

.card {
  width: 220px; /* 50% wider than 120px */
  height: 100px;
  background-color: #dce3f2;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: grab;
  user-select: none;
}

.bottom-container {
  display: flex;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto; /* Center the bottom container */
  margin-top: 30px;
  gap: 80px; /* Large space between left and right groups */
}

.slot-group {
  display: flex;
  gap: 20px; /* Close columns inside each group */
}

.slot-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.slot {
  width: 240px;
  height: 120px;
  border: 2px dashed #999;
  background-color: #f9f9f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: #666;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  z-index: 1000;
}
