* {
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #333;
  margin: 0;
  padding: 0;

  /* Add these lines for vertical & horizontal centering */
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
}

.container {
  padding: 0 20px;
  max-width: 600px;
  margin: auto;
}

.main-title {
  text-align: center;
  color: #5a3ec8;
}

.bet-form,
.result-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100%;
}

input[type="number"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  display: block;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #5a3ec8;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #4429b4;
}

.section-title {
  text-align: center;
  margin-top: 40px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.results-table th,
.results-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.results-table th {
  background: #5a3ec8;
  color: white;
}

.win {
  color: green;
}

.lose {
  color: red;
}

.info-text {
  text-align: center;
  font-style: italic;
  color: #777;
}

/* Timer card */
.timer-card {
  background: #f9f9ff; /* lighter purple-tinged bg */
  border: 2px solid #5a3ec8; /* your main purple */
  border-radius: 12px;
  padding: 20px 30px;
  margin: 5px auto 25px;
  text-align: center;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(90, 62, 200, 0.15);
  user-select: none;
  font-weight: 500;
  color: #4a3a8a;
}

.timer-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #5a3ec8;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Countdown number */
#countdown {
  font-family: "Courier New", Courier, monospace;
  font-size: 2rem; /* slightly smaller */
  font-weight: 700;
  color: #5a3ec8;
  background: #d5d0ff; /* softer purple background */
  border-radius: 10px;
  padding: 12px 0;
  letter-spacing: 0.2em;
  width: 140px;
  margin: 0 auto;
  box-shadow: inset 0 0 12px rgba(90, 62, 200, 0.3);
  user-select: text;
  transition: background-color 0.3s ease;
}

/* Countdown hover effect (optional) */
#countdown:hover {
  background-color: #c1b7ff;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
  .timer-card {
    max-width: 100%;
    padding: 15px 20px;
  }

  .timer-card h3 {
    font-size: 1rem;
  }

  #countdown {
    font-size: 1.6rem;
    width: 120px;
  }
}
.custom-select-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.custom-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: white;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%235a3ec8" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  color: #333;
  transition: all 0.2s ease-in-out;
}

.custom-select:focus {
  border-color: #5a3ec8;
  box-shadow: 0 0 0 3px rgba(90, 62, 200, 0.15);
  outline: none;
}

.custom-select:hover {
  background-color: #f4f4ff;
  cursor: pointer;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #5a3ec8;
  margin-bottom: 6px;
  display: block;
}

/* Flex center the form */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  /* ensures spacing on smaller screens */
}

/* Form Container */
.form-container {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  box-sizing: border-box;
}

/* Headings */
.form-container h2 {
  margin-bottom: 20px;
  color: #5a3ec8;
  font-size: 24px;
}

/* Inputs */
.form-container input {
  width: 100%;
  padding: 12px;
  margin: 0 0 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Button */
.form-container button {
  width: 100%;
  padding: 12px;
  background-color: #5a3ec8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.form-container button:hover {
  background-color: #472bbf;
}

/* Error box */
.form-container .error-box {
  padding: 10px;
  background-color: #ffe5e5;
  color: #d00000;
  border: 1px solid #ffb3b3;
  border-radius: 8px;
  font-size: 14px;
}

/* Register text */
.form-container p {
  margin-top: 5px;
  font-size: 14px;
}

.form-container a {
  color: #5a3ec8;
  text-decoration: none;
}

.form-container a:hover {
  text-decoration: underline;
}

/* ✅ Responsive Adjustments */
@media (max-width: 480px) {
  .form-container {
    padding: 24px 20px;
  }

  .form-container h2 {
    font-size: 20px;
  }

  .form-container input,
  .form-container button {
    font-size: 15px;
    padding: 10px;
  }

  .form-container .error-box {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .form-container {
    padding: 20px 16px;
  }

  .form-container h2 {
    font-size: 18px;
  }

  .form-container input,
  .form-container button {
    font-size: 14px;
    padding: 9px;
  }

  .form-container .error-box {
    font-size: 12px;
  }
}
/* Status Icon */
.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding-right: 40px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.input-with-icon input.valid {
  border-color: #28a745;
}

.input-with-icon input.invalid {
  border-color: #dc3545;
}

.input-with-icon .status-icon {
  position: absolute;
  right: 12px;
  top: 40%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  display: none;
}

.input-with-icon .input-error {
  position: absolute;
  top: 56%;
  left: 12px;
  font-size: 10px;
  color: #dc3545;
  line-height: 1;
}
