@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&display=swap");
/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */
/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
	 Base styles: opinionated defaults
	 ========================================================================== */
html {
  font-size: 1em;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}

/* ==========================================================================
	 Helper classes
	 ========================================================================== */
/*
 * Hide visually and from screen readers
 */
.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */
.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */
.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* site styles */
* {
  box-sizing: border-box;
  font-family: "IBM Plex Mono", monospace;
}

body {
  display: grid;
  grid-template-rows: [head] 7rem [list] 3rem [main-start] 1fr [main-end] 2rem [end-row];
  grid-template-columns: [left] 1fr [mid-start] 20rem [mid-end] 1fr [right];
}
body header {
  background-color: #222;
  display: grid;
  grid-row: head/main-start;
  grid-column: left/right;
  color: white;
}
body header h1 {
  font-weight: 600;
  margin: 3rem 10vw;
}
body footer {
  display: grid;
  grid-row: main-end/end-row;
  grid-column: mid-start/mid-end;
}
body footer p {
  text-align: center;
}
body #keep-score {
  display: grid;
  grid-row: list/main-end;
  grid-column: mid-start/mid-end;
}
body #keep-score ul {
  background-color: white;
  list-style: none;
  padding: 0 1rem 1rem 0;
  background-color: darkmagenta;
  margin-left: 1.5rem;
}
body #keep-score ul li {
  font-size: 2rem;
  padding: 1rem;
  border: 2px solid black;
  border-bottom-width: 1px;
  background-color: white;
  margin-left: -1rem;
  margin-top: -1rem;
  position: relative;
  display: grid;
  grid-template-columns: [name] 1fr [score] 6rem [list-end];
}
body #keep-score ul li.add-player-row {
  background-color: lavender;
}
body #keep-score ul li.turn {
  background-color: mediumaquamarine;
}
body #keep-score ul li.turn:hover {
  cursor: default;
  background-color: mediumaquamarine;
}
body #keep-score ul li + li {
  border-top: none;
  margin-top: 0;
}
body #keep-score ul li:last-child {
  border-bottom-width: 2px;
}
body #keep-score ul li input[type=text] {
  border: 1px solid black;
  padding: 0 0.5rem;
}
body #keep-score ul li input[type=text]:focus {
  background-color: cornsilk;
  outline: none;
}
body #keep-score ul li label {
  display: block;
  display: grid;
  grid-column: name/list-end;
}
body #keep-score ul li label input {
  width: 100%;
}
body #keep-score ul li .name {
  display: grid;
  grid-column: name/score;
}
body #keep-score ul li .score, body #keep-score ul li .add, body #keep-score ul li .total {
  display: grid;
  grid-column: score/list-end;
  text-align: right;
  position: relative;
  height: 2.75rem;
}
body #keep-score ul li .score input, body #keep-score ul li .add input, body #keep-score ul li .total input {
  position: absolute;
  right: -0.5rem;
  width: 4rem;
  margin: 0;
  text-align: right;
}
body #keep-score ul li .score input::before, body #keep-score ul li .add input::before, body #keep-score ul li .total input::before {
  content: "+";
  display: inline-block;
}
body #keep-score ul li .add {
  display: none;
  text-align: left;
  padding-left: 0.5rem;
}
body #keep-score ul li .total {
  display: none;
  margin: 0.5rem -0.5rem 0 0.5rem;
  padding: 0 0.5rem 0 0;
  font-weight: 600;
  border-top: 2px solid black;
}
body #keep-score.playing li:hover {
  background-color: lavender;
  cursor: pointer;
}
body #keep-score.playing li.turn {
  background-color: mediumaquamarine;
}
body #keep-score.playing li.turn .add {
  display: block !important;
}
body #keep-score.playing li.turn .total {
  display: block !important;
}
body #keep-score .buttons {
  display: grid;
  grid-template-columns: [btn-1] 6.33% [btn-2] 23% [btn-3] 17% [btn-4] 1fr [btn-5] 17% [btn-6] 23% [btn-7] 6.33% [btn-8];
  margin: 1rem 0 3rem;
}
body #keep-score .buttons div {
  display: grid;
  grid-column: btn-2/btn-7;
  text-align: center;
  font-weight: 600;
}
body #keep-score button {
  background: black;
  color: white;
  border: 2px solid black;
  font-weight: 600;
  line-height: 3rem;
  font-size: 1rem;
  display: grid;
  grid-column: btn-3/btn-6;
}
body #keep-score button:hover {
  cursor: pointer;
  background: mediumaquamarine;
  color: black;
}
body #keep-score button#add-player {
  line-height: 2rem;
}

/* responsive styles */
@media only screen and (min-width: 35em) {
  body {
    grid-template-columns: [left] 1fr [mid-start] 28rem [mid-end] 1fr [right];
  }
}
@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}
/* print styles */
@media print {
  *,
*::before,
*::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  p,
h2,
h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
h3 {
    page-break-after: avoid;
  }

  header, header h1, .buttons, footer {
    display: none !important;
  }
}

/*# sourceMappingURL=styles.css.map */
