/* BASE */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #f4f4f4, #e0e0e0);
  padding: 20px;
  margin: 0;
}

h1 {
  text-align: center;
  color: #222;
  margin-bottom: 20px;
  font-size: 2em;
}

/* PULSANTE DEFAULT */
.pulsantiere {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 10px;
}

.btnSuccess {
  display: block;
  margin: 0 10px;
  padding: 10px 20px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.btnSuccess:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}

#defaultPlayers {
  background-color: blue;
}

#salvataggio {
  background-color: green;
}

#saveOne {
  background-color: orange;
}

#saveTwo {
  background-color: rgb(191, 0, 255);
}

/* GRIGLIA DESKTOP */
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 10px;
  max-width: 900px;
  margin: auto;
  background-color: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.grid > div {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.header {
  font-weight: bold;
  background-color: #f0f0f0;
  border-bottom: 2px solid #ccc;
  text-align: center;
}

/* SQUADRE */
.nomeSquadra {
  cursor: pointer;
  color: #0077cc;
  font-weight: 600;
}
.nomeSquadra:hover {
  text-decoration: underline;
  color: #005fa3;
}

.numeroCrediti, .numeroSvincolati {
  text-align: center;
  font-weight: 500;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  z-index: 1000;
}

.hidden {
  display: none !important;
}

.modal-content {
  background: #fff;
  padding: 25px;
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* RUOLI */
.ruolo {
  margin-bottom: 20px;
}
.ruolo h3 {
  margin-bottom: 8px;
  color: #0077cc;
}
.ruolo ol {
  padding-left: 20px;
  margin-bottom: 8px;
}
.ruolo ol li {
  display: flex;
  justify-content: space-between;
}
.ruolo input[type=text], .ruolo input[type=number] {
  width: 100%;
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9em;
}
.ruolo .addPlayer {
  width: 100%;
  padding: 8px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.ruolo .addPlayer:hover {
  background-color: #218838;
  transform: scale(1.03);
}

#closeModal {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
  background-color: #dc3545;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

#closeModal:hover {
  background-color: #c82333;
  transform: scale(1.03);
}

/* Messaggio per orientamento verticale */
#rotateDeviceMessage {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f4f4f4;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.5em;
  padding: 20px;
  color: #333;
  flex-direction: column;
}

#rotateDeviceMessage img {
  max-width: 100px;
  margin-top: 20px;
  opacity: 0.7;
}

/* Pulsante rimuovi a destra come X piccola */
.delete-btn {
  background: transparent;
  border: none;
  color: red;
  font-weight: bold;
  float: right;
  cursor: pointer;
  font-size: 1.5em;
  margin-left: 10px;
}
.delete-btn:hover {
  color: darkred;
}

/* RESPONSIVE - MOBILE */
@media (max-width: 700px) {
  .grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    padding: 10px;
  }
  .grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  }
  .header {
    display: none; /* Nasconde intestazioni su mobile */
  }
  .nomeSquadra, .numeroCrediti, .numeroSvincolati {
    margin: 4px 0;
  }
}/*# sourceMappingURL=style.css.map */