* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #BFBDBA; 
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*justify-content: flex-start;*/
  min-height: 100vh;
  margin: 0;
  padding: 1%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 0;
}

.player-name {
  flex: 1;
  padding: 1%;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 5%;
  text-align: center;
  width: 40%;
}

.score-display {
  background: linear-gradient(to right, #457B9D, #C44536);
  flex: 0.5;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  background-color: #dad7cd;
  color: white;
  padding: 5px 10px;
  border-radius: 10%;
  margin: 2px 0;
  white-space: nowrap;
}

.round-container {
  width: 100%;
  justify-content: center;
  max-width: 600px;
  background-color: #dad7cd;
  border-radius: 1%;
  box-shadow: 0 2% 5% rgba(0,0,0,0.1);
  margin: 3% 0px;  
  padding-top: 0.5%;
  padding-bottom: 0.5%;
}

.round-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 2%;
}

.players-row {
  display: flex;
  justify-content: space-between;
}

.player-side {
  flex: 1;
  padding: 0.5%;
  /*background-color: #A8DADC;*/
  margin: 0px 0.5%;
}

.controls {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5%;
}

button {
  background-color: #5F6659;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.1% 0.1%;
  cursor: pointer;
  font-size: 0.9rem;
  flex: 1 1 30%;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #E09F3E;
}

button.toggled {
  background-color: #772E25 !important;
}

.battle-tactics {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 1%;
  margin-top: 8px;
}

.battle-tactics label {
  font-weight: bold;
}

/* Bigger checkboxes for mobile use */
.battle-tactics input[type="checkbox"] {
  transform: scale(1.5);
  cursor: pointer;
  accent-color: #5F6659;
}

.twist-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.twist-controls span {
  font-weight: bold;
}

.twist-controls button {
  width: 35%;
  height: 35px;
  padding: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.twist-score {
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 30px;
  text-align: center;
}

.reset-container {
  margin-top: 5px;
  align: middle
}

.reset-button {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.reset-button:hover {
  background-color: #b52b38;
}

.player-info {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;        /* centers block horizontally */
  padding: 0;            /* remove side padding to align perfectly */
  box-sizing: border-box;
}

.army-name {
  flex: 1;
  margin: 0 0.5%;
  text-align: center;
  width: 40%
}

.checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #5F6659;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.checkbox:hover {
  transform: scale(1.1);
}

.checkbox.checked {
  background-color: #772E25;
}

.checkbox.checked::after {
  content: "✔";
  color: white;
  position: absolute;
  top: -3px;
  left: 2px;
  font-size: 18px;
  font-weight: bold;
}