/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/**
 * Set up a decent box model on the root element
 */
html {
  box-sizing: border-box;
}

/**
 * Make all elements from the DOM inherit from the parent box-sizing
 * Since `*` has a specificity of 0, it does not override the `html` value
 * making all elements inheriting from the root box-sizing value
 * See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
 */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  font-size: 10px;
}

html, body {
  height: 100vh;
}

body {
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 10px;
  box-sizing: border-box;
}

body {
  position: relative;
}

img {
  width: 100%;
  height: auto;
}

.container {
  display: grid;
  grid-template-columns: min-content auto;
  height: 100vh;
  overflow: hidden;
}

/**
 * Hide text while making it readable for screen readers
 * 1. Needed in WebKit-based browsers because of an implementation bug;
 *    See: https://code.google.com/p/chromium/issues/detail?id=457146
 */
.hide-text {
  overflow: hidden;
  padding: 0; /* 1 */
  text-indent: 101%;
  white-space: nowrap;
}

/**
 * Hide element while making it readable for screen readers
 * Shamelessly borrowed from HTML5Boilerplate:
 * https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css#L119-L133
 */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.hide {
  display: none !important;
}

.fixture-banner {
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 9;
  padding: 10px 20px;
  border-radius: 8px;
}
.fixture-banner img {
  height: 100px;
  width: auto;
}
.fixture-banner .fixture__versus {
  color: white;
  display: flex;
  align-items: center;
  font-size: 30px;
  margin: 0 20px;
  font-weight: bold;
}

.controls {
  overflow: auto;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.controls header {
  font-size: 1.8rem;
  padding: 0.6em 0.2em;
  background: #000;
}
.controls header label {
  color: white;
  font-size: inherit;
  margin-bottom: 8px;
  display: inline-block;
  text-transform: uppercase;
}
.controls header select {
  width: 100%;
  padding: 0.2em;
}
.controls header div:first-child {
  margin-bottom: 0.6em;
}

.controls::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.position-label {
  display: block;
  background: rgb(36, 36, 36);
  color: white;
  width: 100%;
  font-size: 12px;
  padding: 4px;
  text-transform: uppercase;
}

.controls__player {
  text-transform: capitalize;
  background: #feedda;
  position: relative;
  display: flex;
  flex-wrap: wrap;
}
.controls__player .player-shirt {
  display: none;
}
.controls__player.hold {
  background: transparent !important;
  justify-content: center;
}
.controls__player.hold .player-position {
  display: none;
}
.controls__player.hold .player-name {
  margin: 0;
  padding: 3px 6px;
  background: white;
  border-radius: 2px;
  flex-grow: 0;
  flex-basis: auto;
}
.controls__player.hold .player-squad-no {
  display: none;
}
.controls__player.hold img {
  display: block;
  min-width: 130px;
}
.controls__player .player-name {
  font-weight: bold;
  font-size: 2rem;
  margin: 0.5rem 1rem 0.2rem 1rem;
  flex-basis: 100%;
}
.controls__player .player-squad-no {
  font-size: 1.3rem;
  flex-basis: auto;
  margin: 0 0.5rem 0.5rem 1rem;
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
}
.controls__player .player-position {
  font-size: 12px;
}
.controls__player:nth-child(odd) {
  background: #fff7ef;
}
.controls__player:hover {
  cursor: pointer;
  background: #fddcb7;
}

.controls__formations {
  background: #252525;
  padding: 1em 0.5em;
}
.controls__formations .controls__formations-label {
  color: white;
  margin: 0 0 8px 0;
  text-align: center;
  margin-bottom: 8px;
  font-size: 20px;
}
.controls__formations .controls__formation-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 142px;
}
.controls__formations button {
  font-size: 1.6rem;
  border-radius: 0.3em;
  border: none;
  background: white;
  padding: 0.3em 0.6em;
}
.controls__formations button:hover {
  cursor: pointer;
  background: rgba(226, 226, 226, 0.9);
}

.hide {
  display: none;
}

.pitch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.pitch .pitch__img {
  position: absolute;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

#pitch__team-grid {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1820px;
}

.pitch__player {
  align-self: center;
  justify-self: center;
  position: relative;
  padding: 0.8em;
  border: 0.4em solid transparent;
  font-size: 1rem;
}
.pitch__player.player-1 {
  align-self: center;
  top: -14px;
}
.pitch__player img {
  max-width: 100px;
}
@media (min-width: 1200px) {
  .pitch__player img {
    max-width: 120px;
  }
}
@media (min-width: 1300px) {
  .pitch__player img {
    max-width: 130px;
  }
}
@media (min-width: 1400px) {
  .pitch__player img {
    max-width: 140px;
  }
}
@media (min-width: 1500px) {
  .pitch__player img {
    max-width: 150px;
  }
}
.pitch__player.over {
  border: 0.2em dashed rgba(255, 255, 255, 0.7);
  background: #000;
}
.pitch__player.active .player-name {
  display: block;
}
.pitch__player .player-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: normal;
  font-size: 2.6rem;
  padding: 0 0.3em;
  background: white;
  color: #1f1f1f;
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
  text-align: center;
  display: none;
  border-radius: 2px;
}
.pitch__player .player-squad-no {
  color: rgba(255, 255, 255, 0.7411764706);
  font-size: 2.6rem;
  font-weight: bold;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  transform: translate(-50%, -50%);
}
.pitch__player .player-position {
  display: none;
}
.pitch__player .goalie-shirt {
  display: none;
}
.pitch__player.goalie-on .goalie-shirt {
  display: block;
}
.pitch__player.goalie-on .grey-shirt {
  display: none;
}

.formation-label {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  padding: 0.5em 1em;
  background-color: rgb(22, 20, 20);
  color: white;
  display: inline-block;
}
.formation-label p {
  margin: 0;
}

.formation-442 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas: "g d2 m6 ." "g d3 m7 f9" "g d4 m8 f10" "g d5 m11 .";
}
.formation-442 .player-1 {
  grid-area: g;
}
.formation-442 .player-2 {
  grid-area: d2;
}
.formation-442 .player-3 {
  grid-area: d3;
}
.formation-442 .player-4 {
  grid-area: d4;
}
.formation-442 .player-5 {
  grid-area: d5;
}
.formation-442 .player-6 {
  grid-area: m6;
}
.formation-442 .player-7 {
  grid-area: m7;
}
.formation-442 .player-8 {
  grid-area: m8;
}
.formation-442 .player-11 {
  grid-area: m11;
}
.formation-442 .player-9 {
  grid-area: f9;
}
.formation-442 .player-10 {
  grid-area: f10;
}

.formation-433 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas: "g p2 p6 p9" "g p3 p7 p10" "g p4 p8 p11" "g p5 . .";
}
.formation-433 .player-1 {
  grid-area: g;
}
.formation-433 .player-2 {
  grid-area: p2;
}
.formation-433 .player-3 {
  grid-area: p3;
}
.formation-433 .player-4 {
  grid-area: p4;
}
.formation-433 .player-5 {
  grid-area: p5;
}
.formation-433 .player-6 {
  grid-area: p6;
}
.formation-433 .player-7 {
  grid-area: p7;
}
.formation-433 .player-8 {
  grid-area: p8;
}
.formation-433 .player-9 {
  grid-area: p9;
}
.formation-433 .player-10 {
  grid-area: p10;
}
.formation-433 .player-11 {
  grid-area: p11;
}
.formation-433 .player-6, .formation-433 .player-7, .formation-433 .player-8, .formation-433 .player-9, .formation-433 .player-10, .formation-433 .player-11 {
  position: relative;
  top: 12vh;
}

.formation-532 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 20%);
  grid-template-areas: "g p2 . ." "g p3 p7 ." "g p4 p8 p10" "g p5 p9 p11" "g p6 . .";
}
.formation-532 .player-1 {
  grid-area: g;
}
.formation-532 .player-2 {
  grid-area: p2;
}
.formation-532 .player-3 {
  grid-area: p3;
}
.formation-532 .player-4 {
  grid-area: p4;
}
.formation-532 .player-5 {
  grid-area: p5;
}
.formation-532 .player-6 {
  grid-area: p6;
}
.formation-532 .player-7 {
  grid-area: p7;
}
.formation-532 .player-8 {
  grid-area: p8;
}
.formation-532 .player-9 {
  grid-area: p9;
}
.formation-532 .player-10 {
  grid-area: p10;
}
.formation-532 .player-11 {
  grid-area: p11;
}
.formation-532 .player-10, .formation-532 .player-11 {
  position: relative;
  top: -10vh;
}

.formation-352 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas: "g . p2 ." "g p3 p7 ." "g p4 p8 p10" "g p5 p9 p11" "g . p6 .";
}
.formation-352 .player-1 {
  grid-area: g;
}
.formation-352 .player-2 {
  grid-area: p2;
}
.formation-352 .player-3 {
  grid-area: p3;
}
.formation-352 .player-4 {
  grid-area: p4;
}
.formation-352 .player-5 {
  grid-area: p5;
}
.formation-352 .player-6 {
  grid-area: p6;
}
.formation-352 .player-7 {
  grid-area: p7;
}
.formation-352 .player-8 {
  grid-area: p8;
}
.formation-352 .player-9 {
  grid-area: p9;
}
.formation-352 .player-10 {
  grid-area: p10;
}
.formation-352 .player-11 {
  grid-area: p11;
}
.formation-352 .player-10, .formation-352 .player-11 {
  position: relative;
  top: -10vh;
}

.formation-4231 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-areas: "g p2 . . ." "g p3 p6 p8 ." "g p4 p7 p9 p11" "g p5 . p10 .";
}
.formation-4231 .player-1 {
  grid-area: g;
}
.formation-4231 .player-2 {
  grid-area: p2;
}
.formation-4231 .player-3 {
  grid-area: p3;
}
.formation-4231 .player-4 {
  grid-area: p4;
}
.formation-4231 .player-5 {
  grid-area: p5;
}
.formation-4231 .player-6 {
  grid-area: p6;
}
.formation-4231 .player-7 {
  grid-area: p7;
}
.formation-4231 .player-8 {
  grid-area: p8;
}
.formation-4231 .player-9 {
  grid-area: p9;
}
.formation-4231 .player-10 {
  grid-area: p10;
}
.formation-4231 .player-11 {
  grid-area: p11;
}
.formation-4231 .player-8, .formation-4231 .player-9, .formation-4231 .player-10 {
  position: relative;
  top: -10vh;
}
.formation-4231 .player-11 {
  position: relative;
  top: -10vh;
}/*# sourceMappingURL=main.css.map */