html,
body {
  height: 100%;
  /* Make html and body take full viewport height */
  margin: 0;
  /* Remove default margin */
}

body {
  background: linear-gradient(to bottom right,
      green,
      rgb(1, 1, 65),
      white);

  color: white;
  /* Text color */
  font-family: Arial, sans-serif;
  /* Font for the whole page */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
}

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: black;
  color: white;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 1000;
  height: 60px;
}

/* Header title */
.page-header .header-title {
  font-size: 1.5rem;
}

/* Buttons inside header */
.page-header .header-buttons {
  display: flex;
  gap: 30px;
}

.page-header .header-buttons button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px 5px;
  transition: background-color 0.2s;
}

.page-header .header-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-header .header-buttons img.button-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

label,
span,
h1,
h2,
h3,
table {
  text-align: center;
  width: 100%;
  /* Optional, makes the element fill its container */
}

table {
  padding: 10px;
  width: 100%;
  max-width: 300px;
  border-collapse: collapse;
  overflow-y: auto;
  /* Scroll vertically if content overflows */
}

th,
td {
  padding: 2px;
  text-align: center;
  vertical-align: middle;
}

th {
  background-color: #448;
  padding: 5px;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  /* Set a max-width for the form */
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="time"],
input[type="password"],
input[type="number"],
input[type="color"],
select {
  font-family: Arial, sans-serif;
  /* Ensures inputs have the same font as text */
  padding: 10px 20px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#playerTable {
  width: 100%;
  border-collapse: collapse;
  max-height: 400px;
  /* Maximum height for the table */
  margin-bottom: 80px;
  overflow-y: auto;
  /* Scroll vertically if content overflows */
  border: 1px solid #ccc;
  display: block;
  /* Allows scrolling */
}

#playerTable th,
#playerTable td {
  padding: 8px;
  text-align: center;
}

#playerTable th {
  background-color: #3f24d6;
}

/* Optional: Add styles for the container (for center alignment or other layout) */
.score-buttons {
  width: 200px;
  /* Set a fixed width for the button container */
  margin: 0 auto;
  /* Center the container horizontally */
}

/* Style for selected player */
.selected {
  background-color: #4caf50;
  /* Green background */
  color: white;
  /* White text */
}

.selected:hover {
  background-color: #45a049;
  /* Slightly darker green on hover */
}

game-image {
  width: 32px;
  /* Set the width of the image */
  height: 32px;
  /* Set the height of the image */
  margin-right: 1rem;
  /* Add space between the image and the text */
  border-radius: 50%;
  /* Optional: makes the image round */
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

/* Optional: Style the modal */
.modal-content {
  background-color: navy;
  padding: 20px;
  border-radius: 5px;
  width: 300px;
  text-align: center;
}
    .center-button {
      padding: 15px 30px;
      font-size: 16px;
      cursor: pointer;
      background-color: #000000;
      color: white;
      border: gray 1px solid;
      border-radius: 5px;
      transition: background-color 0.3s ease;
      width: 200px;
    }

