/* General Styles */
body {
  background-color: #eef3f8;
}

.container {
  background-color: #ffffff;
  max-width: 600px;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 80px;
}

/* Form Styles */
.form-input {
  box-sizing: border-box;
  max-width: 100%;
  padding: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #ecc94b;
}

.form-button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #fff;
}

.form-button:hover {
  background-color: #d69e2e;
}

.form-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
}

.btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

/* Button Styles */
.btn {
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-bottom: 10px;
  padding: 10px;
  width: 100%;
  text-align: center;
  font-weight: lighter;
}

.btn-blue {
  background-color: #3498db;
  color: #fff;
}

.btn-green {
  background-color: #2ecc71;
  color: #fff;
}

.btn-yellow {
  background-color: #f39c12;
  color: #fff;
}

.btn:hover {
  opacity: 0.8;
}

/* Score Styles */
.score-button {
  width: 2rem;
  height: 2rem;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-space {
  margin: 0 0.5rem;
}

.score-space-button {
  margin: 0 0.2rem;
}

/* Header Styles */
header {
  background-color: #3490dc;
}

header div {
  font-family: "Roboto", sans-serif;
}

/* Footer Styles */
footer {
  background-color: #3490dc;
}

.game-indicator {
  background-color: #63b3ed;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
}

.delete-button {
  background-color: #de1717;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Error */
.error-message {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ff4d4d;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Add Players Page Styles */
#back {
  display: block;
  margin-bottom: 20px;
}

#addPlayerForm {
  box-sizing: border-box;
  width: 100%;
}

#playerFields {
  max-width: 100%;
  box-sizing: border-box;
}

.form-input {
  width: 100%;
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  margin-top: 4px;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #3490dc;
}

button {
  cursor: pointer;
}

.bg-blue-500 {
  background-color: #3490dc;
}

.bg-blue-500:hover {
  background-color: #2779bd;
}

.bg-red-500 {
  background-color: #e53e3e;
}

.bg-red-500:hover {
  background-color: #c53030;
}

#queueList {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
}

.queue-entry-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 10px;
}

.court-text {
  flex: 1;
  margin-bottom: 8px;
}

.buttons-container {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.edit-button,
.delete-button {
  background-color: #de1717;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.edit-button:hover,
.delete-button:hover {
  background-color: #9f6960;
}

.edit-button {
  margin-right: 8px;
}

.loader-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


@keyframes ldio-gzqtuwybk0u {
  0%, 100% {
    animation-timing-function: cubic-bezier(0.45,0,0.9,0.55)
  }
  0% {
    transform: translate(0,0)
  }
  50% {
    transform: translate(0,46.46px);
    animation-timing-function: cubic-bezier(0,0.45,0.55,0.9);
  }
  100% {
    transform: translate(0,0);
  }
}

.ldio-gzqtuwybk0u div {
  position: absolute;
  width: 34.34px;
  height: 34.34px;
  border-radius: 50%;
  background: #912623;
  left: 33.33px;
  top: 10.1px;
  animation: ldio-gzqtuwybk0u 0.6578947368421053s linear infinite;
}
.loadingio-spinner-ball-uogk7q6uhbn {
  width: 101px;
  height: 101px;
  display: inline-block;
  overflow: hidden;
  background: none;
}
.ldio-gzqtuwybk0u {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0; /* see note above */
}
.ldio-gzqtuwybk0u div { box-sizing: content-box; }