/* General Styling */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
}

h1 {
  display: none;
}

.wrapper {
  height: 90svh;
  display: flex;
  flex-direction: column;
}

.headline {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
  height: calc(5svh - 15px);
}

.pitch-container {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 75svh;
}

.pitch {
  position: relative;
  max-width: 90%;
  aspect-ratio: 6 / 10;
  border: 4px solid #ff0000;
  border-radius: 10px;
  background-color: white;
  overflow: hidden;
  margin-top: 20px;
  height: calc(100% - 20px);
}

.center-line {
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: #ff0000;
  top: 50%;
  transform: translateY(-50%);
}

.center-circle {
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  border: 2px solid #ff0000;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.goal-area {
  position: absolute;
  width: 50%;
  height: 30%;
  border: 2px solid #ff0000;
  left: 50%;
}

.goal-area.top {
  top: 0;
  border-radius: 0 0 50% 50%;
  border-top: 0;
  transform: translate(-50%, -50%);
}

.goal-area.bottom {
  bottom: 0;
  border-radius: 50% 50% 0 0;
  border-bottom: 0;
  transform: translate(-50%, 50%);
}

.goal-circle {
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  border: 2px solid #ff0000;
  border-radius: 50%;
}

.goal-area.top .goal-circle.left {
  left: 25%;
  top: 93%;
  transform: translate(-50%, -50%);
}

.goal-area.top .goal-circle.right {
  right: 25%;
  top: 93%;
  transform: translate(50%, -50%);
}

.goal-area.bottom .goal-circle.left {
  left: 25%;
  top: 7%;
  transform: translate(-50%, -50%);
}

.goal-area.bottom .goal-circle.right {
  right: 25%;
  top: 7%;
  transform: translate(50%, -50%);
}

/* Player Circle */
.player {
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: red;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  color: white;
  font-weight: bold;
  transform: translate(-50%, -50%);
}

.player-name {
  font-size: 0.8rem;
  color: black;
  text-align: center;
  margin-top: 5px;
  white-space: nowrap;
  position: absolute;
  bottom: -40%;
}

.bench-container {
  width: 90%;
  text-align: center;
  margin: auto;
  height: 20svh;
}

.bench-container h2 {
  font-size: 1.2rem;
  font-weight: bold;
}

.bench {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bench-player {
  position: relative;
  width: 10%;
  max-width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: red;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  color: white;
  font-weight: bold;
}

.bench-player-name {
  position: absolute;
  bottom: -40%;
  color: black;
  white-space:  nowrap;
  font-size: 0.8rem;
}

.bench-player .remove-button {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: white;
  color: red;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  width: 20px;
  /* height: 20px; */
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}
