/*! 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.
 */

@font-face {
  font-family: "auto";
  src: url("../bahnschrift.ttf") format("truetype"); /* Safari, Android, iOS */
}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
:root {
  --primary-color: #9fa819;
  --secondary-color: var(--yellow);
  --redpink: #dd004a;
  --blue: #001837;
  --yellow: #fedf2d;
  --background: var(--redpink);
  --container: 1260px;
}

html {
  color: #fafafa;
  background-color: var(--redpink);
  font-size: 16px;
  line-height: 1.4;
  font-family: "auto";
}

/*
 * 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@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;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

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

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

a {
  color: var(--secondary-color);
}
header {
  display: flex;
  justify-content: space-between;
}
.discord-link {
  background-color: #bb003f;
  border-radius: 3px;
  padding: .5rem;
  color: white;
  transition: all .25s;
  text-decoration: none;
  text-align: center;
}
.discord-link:hover {
  background: var(--redpink);
  background: var(--blue);
  transition: all .5s;
}
.discord-link img {
  max-width: 75px;
  width: 100%;
}
.discord-link p {
  margin: 0;
}

#roster {
  margin: auto;
  grid-template-columns: 1fr;
  display: grid;
  grid-gap: 1rem;
}

@media screen and (min-width: 480px) {
  #roster {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 700px) {
  #roster {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


figure {
  padding: 0;
  margin: 0;
}

.player-grid {
  display: flex;
  align-items: center;
  padding: .5rem;
  border-top: 5px solid var(--yellow);
}

.player-grid h2 {
  margin-left: 1rem;
}

.player-grid svg {
  background: var(--blue);
  background: white;
}

.player {
  box-shadow: 1px 1px 10px rgba(0,0,0,.3);
  position: relative;
  background: white;
  color: #222;
}

.player-content,
.attributes {
  padding-left: 1rem;
  padding-right: 1rem;
}
.attributes {
  padding-bottom: 1rem;
}

.player svg {
  fill: red;
  width: 2rem;
  padding: .25rem;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.crab-badge {
  
}

.gold svg {
  /* background: rgb(228,200,0);
  background: linear-gradient(180deg, rgba(228,200,0,1) 0%, rgba(245,228,0,1) 100%); */
  fill: gold;
}

.silver svg {
  fill: silver;
}

.bronze svg {
  fill: #b86a1d;
}

.platinum svg {
  position: relative;
  z-index: 2;
  fill: url(#platinum);
  background: transparent;
}

.platinum .crab-badge {
  overflow: hidden;
  box-shadow: 1px 1px 5px rgba(0,0,0,.1);
  border-radius: 3px;
  border: 1px solid #C7C6C4;
  box-shadow: inset 0 1px 0 #F4F3F1;
  -webkit-box-shadow: inset 0 1px 0 #F4F3F1;
  -moz-box-shadow: inset 0 1px 0 #F4F3F1;
  background: #CCC;
  background: linear-gradient(to bottom, #CCC 0%, #aaa 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #CCC), color-stop(100%, #aaa));
  background: -webkit-linear-gradient(top, #CCC 0%, #aaa 100%);
  background: -moz-linear-gradient(top, #CCC 0%, #aaa 100%);
  background: -o-linear-gradient(top, #CCC 0%, #aaa 100%);
  background: -ms-linear-gradient(top, #CCC 0%, #aaa 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E5E4E2', endColorstr='#aaa', GradientType=0);
}
/* .player-banner {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  text-align: center;
}

.player-banner svg {
  max-width: 75px;
  margin: auto;
  border-radius: 50%;
  padding: 0.5rem;
  background: white;
  fill: var(--primary-color);
  border: 0.25rem solid var(--secondary-color);
} */

marquee {
  background: var(--blue);
  padding: 1rem 0;
  font-size: 10px;
}

.nav {
  list-style-type: none;
  font-size: 10px;
}

body {
  font-size: 10px;
}

@media screen and (min-width: 1068px) {
  main.grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-gap: 2rem;
    margin: auto;
  }
}

.results-table {
  width: 100%;
}

.results-table td,
.results-table th {
  padding: 0.25rem 0.5rem;
}

thead {
  color: var(--secondary-color);
  background: var(--blue);
}
.attributes {
  margin-top: 1rem;
}
.attribute {
  margin-bottom: 1rem;
}
.attr-meter {
  width: 100%;
  border-radius: 10px;
  background: white;
  height: 20px;
  overflow: hidden;
  margin-top: 0.25rem;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1) 1px,
    #efefef 1px,
    #efefef 10%
  );
}

.attr-progress {
  background: var(--blue);
  height: 20px;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.mobile-stat {
  padding: 0.25rem;
  background-color: var(--yellow);
  border-radius: 2px;
  display: inline-block;
  margin-left: 0.5rem;
  opacity: 0;
  transition: all 0.25s;
}

.mobile-stat strong {
  font-size: 0.5rem;
}

.mobile-stat a {
  color: var(--blue);
}

.player-grid:hover .mobile-stat {
  opacity: 1;
  transition: all 0.5s;
}

.dataTables_paginate {
  display: flex;
  justify-content: space-between;
}

.dataTables_paginate span {
  padding: 0 1rem;
  width: 50px;
  display: flex;
  justify-content: space-between;
}
.dataTables_length {
  display: none;
}
.dataTables_filter {
  margin-bottom: 1rem;
}
