* {
  box-sizing: border-box;
}

h1, form {
  text-align: center;
}

#ground, #order {
  margin: 0 auto;
}

#order {
  width: 520px;
}

#ground {
  background-image: url("../images/baseball-ground.jpg");
  width: 400px;
  height: 320px;
  background-size:contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#ground > div {
  position: absolute;
  width: 32px;
  line-height: 18px;
  background-color: silver;
  text-align: center;
  transform: translateX(-50%);
}

#ground > div > div:first-child {
  font-weight: bold;
}

#ground > div:nth-child(1) {
  bottom: 80px;
  left: 204px;
}

#ground > div:nth-child(2) {
  bottom: 24px;
  left: 204px;
}

#ground > div:nth-child(3) {
  bottom: 92px;
  left: 270px;
}

#ground > div:nth-child(4) {
  bottom: 132px;
  left: 236px;
}

#ground > div:nth-child(5) {
  bottom: 92px;
  left: 138px;
}

#ground > div:nth-child(6) {
  bottom: 132px;
  left: 172px;
}

#ground > div:nth-child(7) {
  bottom: 208px;
  left: 108px;
}

#ground > div:nth-child(8) {
  bottom: 250px;
  left: 204px;
}

#ground > div:nth-child(9) {
  bottom: 208px;
  left: 300px;
}

#pitcher-header {
  width: 400px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.pitcher-palam {
  width: 400px;
  border: 2px solid black;
  background-color: silver;
  margin: 0 auto;
  margin-bottom: 4px;
}

.p-data2 {
  width: 100%;
  height: 200px;
  border-top: 1px solid black;
  background-image: url("../images/ball-graph.jpg");
  background-size:150px 120px;
  background-position: center 32px;
  background-repeat: no-repeat;
  position: relative;
}

.p-data2 > div {
  position: absolute;
  transform: translateX(-50%);
  width: 88px;
  text-align: center;
  line-height: 18px;
}

.p-data2 > :nth-child(1) {
  left: 64px;
  top: 48px;
}

.p-data2 > :nth-child(2) {
  left: 80px;
  top: 120px;
}

.p-data2 > :nth-child(3) {
  left: 200px;
  top: 150px;
}

.p-data2 > :nth-child(4) {
  left: 320px;
  top: 120px;
}

.p-data2 > :nth-child(5) {
  left: 336px;
  top: 48px;
}

.p-data2 > :nth-child(6) {
  left: 200px;
  top: 16px;
}

.p-data2 > div {
  font-weight: bold;
}

.p-data1 {
  margin: 0 auto;
  width: 200px;
  display: flex;
  justify-content: center;
  gap: 4px;
  border-left: 1px solid black;
  border-right: 1px solid black;
}

.pitcher-name {
  width: 100px;
  text-align: center;
}

.p-status {
  width: 75px;
  display: flex;
  text-align: center;
}

.p-status > * {
  width: 33.3%;
  font-weight: bold;
  text-align: center;
}

.batter-palam, #batter-header {
  width: 520px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.batter-palam {
  background-color: silver;
  border: 2px solid black;
  margin-bottom: 4px;
}

.batter-palam > * {
  height: 48px;
}

#batter-header > * {
  height: 24px;
  line-height: 24px;
  text-align: center;
}

.batter-palam > *:not(:first-child), .p-data1 > *:not(:first-child) {
  border-left: 1px solid black;
}

.num, .left-right, .def-pos {
  width: 16px;
  line-height: 48px;
}

.def-pos {
  font-weight: bold;
}

.batter-name {
  width: 100px;
  line-height: 48px;
  text-align: center;
}

.b-status {
  display: flex;
  width: 100px;
  align-items: center;
}

.b-status > * {
  width: 25%;
  font-weight: bold;
  text-align: center;
}

.ability{
  width: 250px;
  padding: 0 4px;
}
