.form form {
  display: flex;
  flex-direction: column;
}
.form form .form-group {
  margin-bottom: 15px;
}
.form form .form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #e6a607;
}
.form form .form-group:last-child {
  margin-bottom: 0;
}
.form form .submit-button {
  padding: 10px;
  background-color: #e6a607;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}
.form form .submit-button:hover {
  background-color: #f8b918;
}

.btn-group-center {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.btn-group-center .btn {
  flex-basis: 100%;
}

.float {
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.float .form {
  max-width: 100%;
  width: 450px;
}

input[type=text],
input[type=password],
input[type=email],
input[type=number],
input[type=url],
input[type=tel],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bebebe;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  border-radius: 8px;
  outline: none;
}

select {
  font-size: 14px;
  width: 100%;
  padding: 10px;
  background: #e6a607;
  border-radius: 8px;
  color: #ffffff;
}

.padding-box {
  padding: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  background-color: #686868;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  outline: none;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background-color: #919191;
}

.btn.btn-small {
  padding: 5px 10px;
  font-size: 11.2px;
}

.btn.btn-primary {
  background-color: #e6a607;
}
.btn.btn-primary:hover {
  background-color: #f8b918;
}

a {
  color: #e6a607;
  text-decoration: none;
}
a:hover {
  color: #f8b918;
  text-decoration: underline;
}

.games {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  width: 600px;
}

.page-title {
  font-size: 16.8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border-bottom: double 1px #e6a607;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.2px;
  font-family: "Poppins", sans-serif;
}
.table th, .table td {
  padding: 10px;
  border: 1px solid #bebebe;
  text-align: left;
  font-weight: 500;
}
.table tr.tools-tr th, .table tr.tools-tr td {
  line-height: 32px;
}
.table th {
  background-color: #976e05;
  color: #ffffff;
}
.table .center {
  text-align: center;
}
.table input {
  vertical-align: middle;
}

.game {
  max-width: 100%;
  width: 450px;
}

.pagination {
  font-size: 11.2px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.pagination a {
  border-radius: 5px;
  padding: 5px 10px;
}
.pagination a:hover, .pagination a:focus {
  background-color: #bebebe;
  text-decoration: none;
  color: #ffffff;
}
.pagination a.highlight {
  color: #ffffff;
  background-color: #e6a607;
}
.pagination a.highlight:hover, .pagination a.highlight:focus {
  color: #ffffff;
  background-color: #f8b918;
  text-decoration: none;
}

.balls {
  margin-bottom: 15px;
}

.balls-container {
  display: flex;
  gap: 10px;
  flex-direction: row;
  flex-wrap: wrap;
}
.balls-container .pot-ball {
  cursor: pointer;
}
.balls-container .ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e6a607;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}
.balls-container .ball p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 600;
}
.balls-container a.ball {
  text-decoration: none;
}
.balls-container a.ball:hover {
  text-decoration: none;
}
.balls-container .ball-1 {
  background-color: #ebeb0a;
}
.balls-container .ball-2 {
  background-color: #1013ce;
}
.balls-container .ball-3 {
  background-color: #f00808;
}
.balls-container .ball-4 {
  background-color: #a00ebd;
}
.balls-container .ball-5 {
  background-color: #ff8512;
}
.balls-container .ball-6 {
  background-color: #0f911c;
  text-decoration: underline;
}
.balls-container .ball-7 {
  background-color: #8b4513;
}
.balls-container .ball-8 {
  background-color: #202020;
}
.balls-container .ball-9 {
  background-color: #ffffff;
  text-decoration: underline;
}
.balls-container a.ball-6.pot-ball,
.balls-container a.ball-9.pot-ball {
  text-decoration: underline;
}
.balls-container a.ball-6.pot-ball:hover,
.balls-container a.ball-9.pot-ball:hover {
  text-decoration: underline;
}
.balls-container .ball-9::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 32px;
  left: 0;
  background-color: #ebeb0a;
  z-index: 500;
}
.balls-container .ball-10,
.balls-container .ball-11,
.balls-container .ball-12,
.balls-container .ball-13 {
  background-color: #ffffff;
}
.balls-container .ball-10::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 32px;
  left: 0;
  background-color: #1013ce;
  z-index: 500;
}
.balls-container .ball-11::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 32px;
  left: 0;
  background-color: #f00808;
  z-index: 500;
}
.balls-container .ball-12::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 32px;
  left: 0;
  background-color: #a00ebd;
  z-index: 500;
}
.balls-container .ball-13::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 32px;
  left: 0;
  background-color: #ff8512;
  z-index: 500;
}

.tools {
  display: inline-block;
}
.tools .btn-up,
.tools .btn-down,
.tools .btn-draw-card {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  border-radius: 5px;
  margin-left: 5px;
}
.tools .btn-up {
  background-color: #449f3e;
  color: #ffffff;
}
.tools .btn-down {
  background-color: #ff4d4f;
  color: #ffffff;
}
.tools .btn-draw-card {
  background-color: #e69f11;
  color: #ffffff;
  font-size: 20px;
}

.success {
  color: #449f3e;
}

.danger {
  color: #ff4d4f;
}

.modal {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.2);
}
.modal .modal-content {
  max-width: 100%;
  width: 450px;
  box-shadow: 0 5px 21px rgb(0, 0, 0);
  border-radius: 8px;
  background-color: #2a4e44;
  border: solid 1px #976e05;
  overflow: hidden;
}
.modal .modal-content .modal-header {
  font-size: 14px;
  padding: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background-color: #976e05;
}
.modal .modal-content .modal-header p {
  margin: 0;
  color: #ffffff;
}
.modal .modal-content .modal-body {
  font-size: 11.2px;
}
.modal .modal-content .modal-body select {
  font-size: 11.2px !important;
}
.modal .modal-content .modal-footer {
  padding: 15px;
  font-size: 11.2px;
}
.modal .modal-content .modal-footer .btn {
  font-size: 11.2px !important;
}

.player-selector {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 15px;
  gap: 10px;
  flex-direction: row;
}
.player-selector .player {
  width: calc(50% - 5px);
  background-color: #2a4e44;
  border: solid 1px #976e05;
  cursor: pointer;
  text-align: center;
  padding: 10px;
  font-size: 14px !important;
  font-weight: 500;
}
.player-selector .player.selected {
  background-color: #e6a607;
  color: #ffffff;
}

.alert {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.2);
}
.alert .alert-content {
  padding: 15px;
  max-width: 100%;
  width: 450px;
  box-shadow: 0 5px 21px rgb(0, 0, 0);
  border-radius: 8px;
  background-color: #2a4e44;
  border: solid 1px #976e05;
  overflow: hidden;
}
.alert .alert-content .alert-body {
  margin-bottom: 10px;
  text-align: center;
}
.alert .alert-content .alert-footer {
  text-align: center;
}
.alert .alert-content .alert-footer .btn {
  font-size: 11.2px !important;
}
.alert.alert-success {
  color: #449f3e;
}
.alert.alert-error {
  color: #ff4d4f;
}
