* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  color: #001f3f; /* Dark Navy */
  margin-bottom: 30px;
}

/* Team grid for large screens */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: background-color 0.3s ease;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #001f3f; /* Dark Navy */
}

.team-card:hover {
  background-color: #1f75ff; /* Light Navy */
  color: white;
}

.team-card button {
  margin-top: 10px;
  padding: 10px;
  background-color: #1f75ff; /* Light Navy */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.team-card button:hover {
  background-color: #154bc1; /* Darker Light Navy */
}

.ul_popuplist,
.ul_dialog_list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.ul_popuplist li,
.ul_dialog_list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #fff;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ul_popuplist li:hover,
.ul_dialog_list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.player-name {
  font-size: 16px;
  font-weight: bold;
  color: #001f3f; /* Dark Navy */
}

.delete-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px 15px;
  font-size: 14px;
  transition: background-color 0.2s;
}

.delete-btn:hover {
  background-color: #c82333;
}

.dialog {
  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;
  z-index: 99999;
}

.dialog-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  margin-top:100px;;
}

.dialog-content h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #001f3f; /* Dark Navy */
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

input {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

button {
  padding: 10px 20px;
  background-color: #1f75ff; /* Light Navy */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #154bc1; /* Darker Light Navy */
}

/* Responsive Styles for Mobile */
@media (max-width: 800px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }

  .team-card {
    padding: 20px; /* Reduce padding on mobile */
  }

  .dialog-content {
    max-width: 90%;
        height: 60%;
        overflow: auto;
  }

  .ul_popuplist li,
.ul_dialog_list li {
  padding: 8px 8px;
}

}

@media (max-width: 100px) {
  .team-grid {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }

  .team-card {
    padding: 15px; /* Further reduce padding for very small screens */
    font-size: 16px; /* Reduce font size for mobile */
  }

  h1 {
    font-size: 24px; /* Reduce heading size on small screens */
  }

  input {
    width: 100%; /* Full-width input on mobile */
  }

  .dialog-content h3 {
    font-size: 18px; /* Smaller font for dialog headings on mobile */
  }
}
