/* ========================================
   Font Faces
   ======================================== */

@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  font-named-instance: 'Regular';
  src: url("../fonts/Inter-upright.var.woff2") format("woff2");
}

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */

:root {
  /* Colors */
  --white: #ffffff;
  --theme-light: #f5f5f0;
  --theme-grey: #3d3e40;
  --theme-dark: #2D2E2F;
  --black: #000000;
  --theme-red: #F24744;
  --theme-blue: #1B1464;
  --theme-light-blue: #0071BC;
  --theme-pink: #F077c4;
  --theme-light-pink: #F7BBE1;
  --theme-green: #65C8D0;
  --theme-light-green: #AFE5E3;
  --theme-yellow: #f1ce39;
  --theme-light-yellow: #F8E69C;
  --paper: #f8f8ee;
  
  /* Semantic colors */
  --body-bg: var(--white) url("../img/pattern-blue.svg") repeat fixed center;
  --nav-bg: var(--white) url("../img/pattern-pink.svg") repeat fixed center;
  --footer-bg: var(--white);
  --text-color: var(--theme-dark);
  --heading-color: var(--theme-grey);
  --link-color: #004dcc;
  --link-hover-color: #1d4fa2;
  --btn-bg: var(--black);
  --btn-color: var(--black);
  --btn-hover-color: var(--white);
  --section-bg: var(--white);
  --nav-link-color: var(--black);
  --nav-link-hover-color: var(--theme-dark);
  --link-hover-decoration-color: var(--theme-light-pink);
  --section-border: 0.125rem solid var(--black);
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  
  /* Spacing */
  --nav-width: 16rem;
  --max-width: 55rem;
  
  /* Timing */
  --timing: 0.4s;
  --timing-fast: 0.2s;
  --timing-slow: 0.8s;
  --cubic-bezier: cubic-bezier(.025,.5,.0625,1);
  --animation-timing: 1s;
  
  /* Breakpoints */
  --screen-sm-min: 576px;
  --screen-md-min: 768px;
  --screen-lg-min: 992px;
  --screen-xl-min: 1200px;
  --screen-xxl-min: 1400px;
  --screen-xxxl-min: 1800px;
}

/* ========================================
   Typography Base
   ======================================== */

html {
  font-size: 14px;
  line-height: 23px;
  font-family: 'Inter', var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

@supports (font-variation-settings: normal) {
  html {
    font-family: 'Inter var', var(--font-family);
    font-feature-settings: "ss01";
  }
}

@media screen and (min-width: 1200px) {
  html {
    font-size: 16px;
    line-height: 26px;
  }
}

body {
  margin: 0;
  color: var(--text-color);
  background: var(--body-bg);
  font-size: 1rem;
  line-height: 1.6428571rem;
}

@media screen and (min-width: 1200px) {
  body {
    line-height: 1.9375rem;
  }
}

/* ========================================
   Headings
   ======================================== */

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  color: var(--heading-color);
}

h1, .h1 {
  margin-top: 1.6428571rem;
  margin-bottom: 3.2857142rem;
  font-size: 2.3571429rem;
  line-height: 3.2857143rem;
  letter-spacing: -0.050em;
}

@media screen and (min-width: 1200px) {
  h1, .h1 {
    margin-top: 1.625rem;
    margin-bottom: 3.25rem;
    font-size: 4.25rem;
    line-height: 4.875rem;
  }
}

h2, .h2 {
  margin-top: 1.6428571rem;
  margin-bottom: 1.6428571rem;
  font-size: 1.7857143rem;
  line-height: 2.4642857rem;
  letter-spacing: -0.025em;
}

@media screen and (min-width: 1200px) {
  h2, .h2 {
    margin-top: 1.625rem;
    margin-bottom: 1.625rem;
    font-size: 2.625rem;
    line-height: 3.25rem;
  }
}

h3, .h3 {
  margin-top: 1.6428571rem;
  margin-bottom: 1.6428571rem;
  font-size: 1.3571429rem;
  line-height: 1.6428571rem;
  letter-spacing: 0;
}

@media screen and (min-width: 1200px) {
  h3, .h3 {
    margin-top: 1.625rem;
    margin-bottom: 1.625rem;
    font-size: 1.625rem;
    line-height: 2.1375rem;
  }
}

h4, .h4 {
  margin-top: 1.6428571rem;
  margin-bottom: 0rem;
  font-size: 1rem;
  line-height: 1.6428571rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

@media screen and (min-width: 1200px) {
  h4, .h4 {
    margin-top: 1.625rem;
    line-height: 1.625rem;
  }
}

h5, .h5 {
  margin-top: 1.6428571rem;
  margin-bottom: 0rem;
  font-size: 1rem;
  line-height: 1.6428571rem;
  letter-spacing: 0;
}

@media screen and (min-width: 1200px) {
  h5, .h5 {
    margin-top: 1.625rem;
    line-height: 1.625rem;
  }
}

h6, .h6 {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-weight: 600;
}

/* ========================================
   Text Elements
   ======================================== */

p,
ul,
ol,
pre,
table,
blockquote {
  margin-top: 0rem;
  margin-bottom: 1.6428571rem;
}

@media screen and (min-width: 1200px) {
  p,
  ul,
  ol,
  pre,
  table,
  blockquote {
    margin-bottom: 1.625rem;
  }
}

blockquote {
  margin-inline-start: 1.625rem;
  margin-inline-end: 1.625rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  font-style: italic;
}

cite {
  display: block;
}

ul,
ol {
  margin-top: 1.6428571rem;
  margin-bottom: 1.6428571rem;
}

@media screen and (min-width: 1200px) {
  ul,
  ol {
    margin-top: 1.625rem;
    margin-bottom: 1.625rem;
  }
}

ul ol,
ul ul,
ol ol,
ol ul {
  margin-top: 0rem;
  margin-bottom: 0rem;
}

ul.small {
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

hr,
.hr {
  margin: -0.125rem 0;
  border: 0 solid;
  border-top-width: 0.125rem;
}

sub,
sup {
  position: relative;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* ========================================
   Base Styles
   ======================================== */

* {
  box-sizing: border-box;
}

*:focus:not(:active) {
  outline-color: var(--link-color);
  outline: 2px dotted var(--link-color);
  outline-offset: 2px;
}

*:focus:active {
  outline: none;
}

*::selection {
  color: var(--black);
  background-color: var(--theme-light-yellow);
}

/* ========================================
   Links
   ======================================== */

a {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-hover-color);
}

a:not([class]) {
  text-decoration: none;
  border-bottom: 2px dotted var(--link-color);
  padding-bottom: 0.125em;
  margin-bottom: -0.125em;
  transition: box-shadow var(--timing-fast) var(--cubic-bezier);
}

a:not([class]):hover,
a:not([class]):focus {
  border-bottom: 2px solid var(--link-hover-decoration-color);
  box-shadow: inset 0 -0.25em var(--link-hover-decoration-color);
}

/* ========================================
   Buttons
   ======================================== */

button,
.button {
  display: inline-block;
  padding: 0.5em 1em;
  margin-bottom: 0.5em;
  white-space: nowrap;
  color: var(--btn-hover-color);
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.125em;
  text-decoration: none;
  border: 2px solid var(--btn-bg);
  background: var(--btn-color);
  transition: background var(--timing-fast) var(--cubic-bezier);
  cursor: pointer;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
  color: var(--btn-color);
  background: transparent;
}

button.button--outline,
.button.button--outline {
  color: var(--btn-color);
  background: transparent;
}

button.button--outline:hover,
button.button--outline:focus,
.button.button--outline:hover,
.button.button--outline:focus {
  color: var(--btn-hover-color);
  background: var(--btn-color);
}

/* ========================================
   Select Elements
   ======================================== */

select {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0.5em 2em 0.5em 1em;
  max-width: 100%;
  font-size: 16px;
  color: var(--btn-hover-color);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
  border: 1px solid var(--btn-color);
  background-color: var(--btn-bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23ffffff'><polygon points='0,0 100,0 50,50'/></svg>");
  background-repeat: no-repeat, repeat;
  background-position: right .5em top 60%, 0 0;
  background-size: .55em auto, 100%;
  appearance: none;
  box-sizing: border-box;
}

select::-ms-expand {
  display: none;
}

select option {
  font-weight: normal;
}

/* ========================================
   Main Layout
   ======================================== */

@media screen and (min-width: 768px) {
  .main {
    min-height: 100vh;
  }
}

.main__header {
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  text-align: center;
  background: var(--nav-bg);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50em;
  margin-top: 1rem;
}

.main__header a {
  color: var(--nav-link-color);
  text-decoration: none;
}

.main__header a:hover,
.main__header a:focus {
  color: var(--nav-link-hover-color);
}

.main__content {
  position: relative;
  border-top: 1px solid transparent;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 0;
  align-items: start;
  max-width: 1600px; 
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .main__content {
    grid-template-columns: max-content 1fr;
    grid-template-rows: auto auto 1fr;
  }
  
  .main__content > header {
    grid-column: 1;
    grid-row: 1;
  }
  
  .main__content > aside {
    grid-column: 1;
    grid-row: 2;
  }
  
  .main__content > .past-shows {
    grid-column: 1;
    grid-row: 3;
  }
  
  .main__content > article {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

.main__content > article {
  max-width: 100%;
}

/* ========================================
   Page
   ======================================== */

.page {
  position: relative;
  display: block;
}

.page .page__container {
  padding-bottom: 3rem;
}

.page__container {
  padding: 0 0.25rem;
  position: relative;
}

@media screen and (min-width: 768px) {
  .page__container {
    padding: 0 1rem;
  }
}

.page__header {
  top: 1.6428571rem;
}

@media screen and (max-width: 1199px) {
  .page__header {
    margin-bottom: 1.6428571rem;
  }
}

@media screen and (min-width: 1200px) {
  .page__header {
    top: 1.625rem;
  }
}

.page__header,
.section-header {
  max-width: 55rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}

@media screen and (min-width: 1200px) {
  .page__header,
  .section-header {
    padding: 0 2.25rem;
  }
}

.page__header__text,
.section-header__text {
  margin: 0 -1rem;
  padding: 0.25rem 1rem;
  z-index: 1;
  display: inline-block;
  color: var(--text-color);
  box-shadow: 0.5rem 0.5rem 0 0 var(--theme-green);
  border: 2px solid var(--theme-light-green);
  background-color: var(--theme-light-green);
}

.page__header__text i,
.section-header__text i {
  font-style: normal;
}

/* ========================================
   Panel
   ======================================== */

.panel {
  position: relative;
  padding: 0 1rem;
  margin: 1rem 0;
  max-width: 55rem;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  color: var(--text-color);
  border: var(--section-border);
  background-color: var(--section-bg);
  border-color: var(--black);
  box-shadow: 0.5rem 0.5rem 0 0 var(--black);
}

@media screen and (min-width: 1200px) {
  .panel {
    padding: 0 2rem;
  }
}

.video .panel {
  padding: 0;

}

/* ========================================
   Examples, Personnel, Shows
   ======================================== */

.examples,
.shows {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  max-width: 1399px;
  margin-left: auto;
  margin-right: auto;
  container-type: inline-size;
}

.personnel {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
  justify-items: center;
  align-items: center;
  max-width: 1399px;
  margin-left: auto;
  margin-right: auto;
  padding: 2em;
  font-size: 1em;
  container-type: inline-size;
}

@media (min-width: 500px) and (max-width: 767px) {
  .personnel {
    grid-template-columns: repeat(2, 1fr);
    font-size: 2cqi;
  }
}

@media (min-width: 900px) and (max-width: 1399px) {
  .personnel {
    padding: 2em 0;
    grid-template-columns: repeat(2, auto);
    font-size: 1.1cqi;
  }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .personnel {
    padding: 2em 0;
    grid-template-columns: repeat(4, auto);
    font-size: 0.75cqi;
  }
}

@media (min-width: 1600px) {
  .personnel {
    padding: 0;
    grid-template-columns: repeat(4, 1fr);
    font-size: 0.75em;
  }
}


.personnel figure {
  flex: 0 1 45%;
  background: transparent;
  box-shadow: none;
  border: none;
}

@media screen and (min-width: 768px) {
  .personnel figure {
    flex: 0 1 auto;
  }
}

.personnel figure img {
  height: 200px;
  margin: 1rem auto -3rem;
  position: relative;
  z-index: -1;
  filter: grayscale(100) drop-shadow(0.25em 0.25em 0 var(--black));
}

.personnel figure figcaption {
  padding: 0 1rem;
  z-index: 1;
  color: var(--text-color);
  border: var(--section-border);
  background-color: var(--section-bg);
  box-shadow: 0.25em 0.25em 0 var(--black);
  padding: 0.33rem 0.66rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.personnel figure figcaption small {
  display: block;
  margin-top: 0.5em;
  font-size: 0.66em;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.025em;
  color: var(--theme-grey);
}

/* ========================================
   Figure
   ======================================== */

figure {
  position: relative;
  display: inline-block;
  flex: 0 1 32%;
  margin: 0.25rem;
  padding: 0 1rem;
  z-index: 1;
  color: var(--text-color);
  border: var(--section-border);
  background-color: var(--section-bg);
  box-shadow: 0.25rem 0.25rem 0 0 var(--black);
}

figure:has(table) {
  padding: 0;
  display: block;
}

@container (max-width: 767px) {
  figure {
    flex-basis: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0 0 auto;
}

figure h3 {
  margin-top: 0.8125rem;
  margin-bottom: 0.40675rem;
  letter-spacing: -0.050em;
  font-weight: 800;
}

figure h4 {
  margin-top: 0.40675rem;
  margin-bottom: 0.40675rem;
  line-height: 1.21875rem;
}

figure p {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

figure p.location {
  margin-top: 0.40675rem;
  margin-bottom: 0.8125rem;
}

figure ul {
  padding: 0 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  list-style-type: square;
}

figcaption {
  margin-top: 0.40675rem;
  margin-bottom: 0.40675rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

figcaption.empty {
  color: var(--theme-grey);
}

@media screen and (min-width: 992px) {
  figcaption {
    font-size: 1.3571429rem;
  }
}

figcaption small {
  margin-top: 0.5rem;
  display: block;
  font-size: 0.75em;
  line-height: 1.5;
}

/* ========================================
   Tables
   ======================================== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 0;
}

table th {
  background: var(--text-color);
  text-align: left;
  color: var(--section-bg);
  padding: 0.25em 0.5rem;
  font-size: 0.825rem;
  line-height: 1;
}

table td {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  line-height: 1.25;
}


.past-shows table td:first-child {
  min-width: 12ch;
}

/* ========================================
   Details
   ======================================== */

details {
  display: block;
  margin: 1rem 0;
  background: var(--theme-light);
}

details summary {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border: 2px solid var(--btn-bg);
}

details summary:hover,
details summary:focus {
  background: var(--btn-hover-color);
}

/* ========================================
   YouTube Embed
   ======================================== */

.yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  margin: 0;
  height: 0;
  overflow: hidden;
}

.yt-embed iframe,
.yt-embed object,
.yt-embed embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========================================
   Screen Reader Only
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========================================
   Forms
   ======================================== */

form {
  margin: 1rem 0 2rem;
  padding: 1rem;
  border: 2px solid var(--theme-dark);
  background-color: rgba(248, 230, 156, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

form .h3 {
  flex: 0 1 100%;
  margin-top: 0.25em;
  margin-bottom: 0;
}

form p {
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

form label {
  flex: 1 1 auto;
  font-weight: 600;
  display: flex;
  color: var(--theme-grey);
  flex-direction: column;
}

form input,
form textarea {
  line-height: 1.5;
  padding: 0.5rem;
  font-size: 1.125rem;
  border: 2px solid var(--theme-dark);
}

form textarea {
  resize: vertical;
  align-self: stretch;
  font-family: inherit;
}

form .form__message {
  flex: 0 1 100%;
}

form button {
  margin-left: auto;
  margin-top: 0.5rem;
  padding: 0.66em 1.5em;
}

/* ========================================
   Navigation
   ======================================== */

.logo {
  display: block;
  max-width: 66vw;
  width: 100%;
  margin: auto;
  color: var(--nav-link-hover-color);
  fill: currentColor;
  filter: drop-shadow(0.25em 0.5em 0 rgba(0,0,0,0.2));
}

@media screen and (min-width: 768px) {
  .logo {
    max-width: 360px;
  }
}

nav {
  flex-grow: 1;
  
}

nav ul {
  margin: 0;
  list-style-type: none;
  padding: 0.25rem;
  font-size: 1rem;
  background: var(--white);  
  text-align: right;
}

nav ul li {
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  display: inline-block;
}

nav ul li a {
  display: block;
  text-align: left;
  line-height: 1;
  font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */

footer {
  padding-top: 1rem;
  text-align: center;
  background: var(--footer-bg);
}

.contact-info {
  font-size: 1.25rem;
  text-decoration: none;
  font-weight: 400;
  padding: 0.5rem 0;
}

.city {
  font-size: 0.825rem;
  letter-spacing: 0.16em;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}

@media screen and (min-width: 992px) {
  .city {
    font-size: 0.75rem;
  }
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 0.667em;
  font-weight: 700;
  font-size: 0.825rem;
}

@media screen and (min-width: 992px) {
  .social {
    font-size: 0.875rem;
  }
}

.social a {
  margin: 0 0.5em;
  line-height: 1.5;
}

.copyright {
  padding-bottom: 1rem;
  font-size: 0.75rem;
}

/* ========================================
   Print Styles
   ======================================== */

.print-only {
  display: none !important;
}

@media print {
  :root {
    --body-bg: #ffffff;
    --text-color: #000000;
    --heading-color: #000000;
    --nav-bg: transparent;
    --nav-link-color: #000000;
    --nav-link-hover-color: #000;
    --link-color: inherit;
    --link-hover-color: inherit;
    --link-hover-decoration-color: transparent;
    --btn-bg: #000;
    --btn-color: #000;
    --btn-hover-color: #fff;
    --section-bg: #fff;
    --section-border: 0.125rem solid #000;
  }

  html {
    font-size: 7pt;
  }

  body {
    width: 8.5in;
    margin: 0 auto;
  }

  h1 {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 4rem;
  }

  .section-header {
    margin-top: 3rem;
    font-size: 3rem;
  }

  .no-print {
    display: none;
  }

  .print-only {
    display: block !important;
  }

  .contact-page {
    display: block;
    margin: 0 0 0.5rem;
    text-align: right;
  }

  .contact-page--disclaimer {
    text-align: center;
  }

  .phone {
    margin: 0.5rem 0;
    font-size: 2.35rem;
  }

  .social,
  .copyright {
    display: none;
  }

  .page {
    display: block !important;
    height: auto !important;
  }

  .no-page-break {
    page-break-inside: avoid;
  }

  .panel {
    max-width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
    page-break-inside: avoid;
    box-shadow: 0.25rem 0.25rem 0 0 var(--black);
  }

  section {
    box-shadow: none;
  }

  figure {
    box-shadow: 0.125rem 0.125rem 0 0 var(--black);
  }

  .section-header {
    max-width: 95%;
  }

  .main__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 95%;
    margin: 1rem auto 1rem;
    padding: 0 0.5rem 1rem;
  }

  .logo {
    margin: 0;
    height: 1.27in;
    width: 1.75in;
  }

  .page__header {
    max-width: 95%;
  }

  .page__header__text i {
    font-weight: 700 !important;
    letter-spacing: -0.05em !important;
  }

  a:not([class]) {
    color: inherit;
    border-bottom: 0;
    box-shadow: none;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) translateY(0) rotate(var(--card-tilt)); }
  25%, 75% { transform: translateX(-0.08em) translateY(-0.04em) rotate(calc(var(--card-tilt) - 0.3deg)); }
  50% { transform: translateX(0.08em) translateY(0.04em) rotate(calc(var(--card-tilt) + 0.3deg)); }
}



.baseball-card {
  font-size: 1em;
  width: 21.75em;
  height: 31.25em;
  margin: 0;
  perspective: 56.25em;
  transform: rotate(var(--card-tilt, 0deg));
  transition: transform 0.3s ease;
  border-radius: 0.5em;
}

.baseball-card:hover {
  animation: shake 1.5s ease-in-out infinite;
  z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
  .baseball-card {
    transition: none;
  }

  .baseball-card:hover {
    animation: none;
  }

  .baseball-flipper {
    transition: none;
  }
}

.baseball-flipper {
  width: 100%;
  height: 100%;
  border: solid 0.0625em var(--white);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  position: relative;
  border-radius: 0.5em;
  cursor: pointer;
}

.baseball-card:hover,
.baseball-card:focus-within,
.baseball-flipper.flipped {
  will-change: transform;
}

.baseball-flipper:focus {
  outline: none;
}

.baseball-flipper:focus-visible {
  outline: 0.25em solid var(--theme-light-blue);
  outline-offset: 0.25em;
}

.baseball-flipper.flipped {
  transform: rotateY(180deg);
}

.baseball-card .front,
.baseball-card .back {
  width: 100%;
  height: 100%;
  cursor: pointer;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0.5em;
  box-shadow: 0.125em 0.375em 0.9375em rgba(0, 0, 0, 0.5);
}

.baseball-card .front {
  background-color: var(--paper);
  z-index: 2;
  /* for firefox 31 */
  transform: rotateY(0deg);
}

.baseball-card .back {
  box-sizing: border-box;
  background-color: var(--theme-pink);
  transform: rotateY(180deg);
  padding: 0;
}

.player-name {
  font-style: normal;
  color: black;
  font-weight: bold;
  letter-spacing: -0.025em;
  margin-left: 6em;
  text-align: right;
  line-height: 1;
  margin-right: 1.3em;
  font-size: 1.25em;
  text-transform: uppercase;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: calc(10% - 0.3125em);
}

.player-photo {
  height: 86%;
  width: 86%;
  top: 10%;
  left: 7%;
  position: absolute;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
  background-size: cover;
  background-position: center center;
  
  border: solid 0.0625em var(--black);
  border-radius: 0.625em;
  box-shadow: 0 0 0 0.25em var(--theme-yellow), 0 0 0 0.3125em var(--black);
}

.position-banner {
  position: absolute;
  display: block;
  top: 1.3em;
  left: 1.375em;
  width: 4.34em;
  height: 5em;
  transform: scale(1.2);
}

.team-banner {
  position: absolute;
  display: block;
  bottom: 1em;
  right: 0;
  width: 8.5em;
  height: 8em;
}

.position {
  margin: 0;
  padding: 0;
  position: absolute;
  color: white;
  display: block;
  font-size: .75em;
  font-weight: bold;
  text-shadow: -0.0625em -0.0625em 0 var(--theme-grey), 0.0625em -0.0625em 0 var(--theme-grey), -0.0625em 0.0625em 0 var(--theme-grey), 0.0625em 0.0625em 0 var(--theme-grey);
  transform: rotate(-15deg);
  text-transform: uppercase;
  top: 3em;
  left: 2em;
  width: 5em;
  line-height: 2.5;
  text-align: center;
  z-index: 1;
}

.team {
  margin: 0;
  padding: 0;
  position: absolute;
  color: white;
  display: block;
  font-size: 1.4em;
  font-weight: bold;
  transform: rotate(-12deg);
  text-transform: uppercase;
  bottom: 2.8125em;
  right: 2.1875em;
  z-index: 1;
}

.team-logo {
  position: absolute;
  bottom: 2.65em;
  right: 2.25em;
  width: 6em;
  height: 3em;
  z-index: 1;
  transform: rotate(-7deg)
}

.back header {
  display: block;
  border: solid 0.1875em rgba(0, 0, 0, .75);
  border-radius: 1.75em;
  position: relative;
  padding: 0.25em 0 0.375em 0;
  margin: 0.125em 0.625em 0 0.625em;
  background-color: var(--theme-light);
}

.card-number {
  position: absolute;
  top: -0.1875em;
  left: -0.125em;
  border: solid 0.1875em rgba(0, 0, 0, .75);
  border-radius: 50%;
  width: 3.125em;
  height: 3.125em;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: .8em;
}

.card-number:before {
  content: "TOPPS";
  display: block;
  font-weight: bold;
  margin: .5em auto .1em auto;
  font-size: .75em;
}

.header-grid {
margin: 0 0.5em 0 3.375em;
}

.header-player-name {
  text-transform: uppercase;
  font-size: 1.6em;
  margin: 0;
  padding: 0;
  line-height: .9em;
  text-shadow: 0 0.0625em 0.125em rgba(255, 255, 255, .6);
}

.header-player-position,
.header-player-team {
  font-weight: bold;
  text-transform: uppercase;
}

.small-text {
  font-size: 0.62em;
}

.bio {
  text-align: justify;
  line-height: 1.05em;
  padding-bottom: .2em;
  padding-top: .2em;
  font-size: .8em;
  margin: 0.1em 0.625em;
  border-bottom: solid 0.0625em rgba(0, 0, 0, 0.6);
  box-shadow: 0 0.0625em 0.125em rgba(255, 255, 255, 0.3);
}

.table-title {
  margin: 0 0.625em;
  text-transform: uppercase;
  font-size: .9em;
  border-bottom: solid 0.0625em rgba(0, 0, 0, 0.6);
  box-shadow: 0 0.0625em 0.125em rgba(255, 255, 255, 0.3);
}

.player-stats {
  width: 20em;
  font-size: .66em;
  margin: 0 0.625em;
  border-collapse: collapse;
  max-height: 14.6875em;
  height: 13.625em;
}


.player-stats th,
.player-stats td {
  text-align: right;
  padding: 0.04em .01em;
  margin: 0;
  line-height: 0.625em;
}

.player-stats thead tr th {
  border-bottom: solid 0.0625em rgba(0, 0, 0, 0.6);
  padding-bottom: .4em;
  padding-top: .4em;
  box-shadow: 0 0.0625em 0.125em rgba(255, 255, 255, 0.3);
}

.player-stats tbody tr:last-child td {
  border-bottom: solid 0.0625em rgba(0, 0, 0, 0.6);
  box-shadow: 0 0.0625em 0.125em rgba(255, 255, 255, 0.3);
}

.player-stats tr th:first-child,
.player-stats tr td:first-child {
  font-weight: bold;
  text-align: left;
}

.player-stats tr:first-child td {
  padding-top: .2em;
}

.player-stats tr td:nth-child(2) {
  text-align: left;
}

.player-stats thead tr th {
  font-weight: bold;
}

.player-stats thead tr th:nth-child(2) {
  text-align: center;
}

.player-stats tfoot tr{height: 1.0625em;}
.trivia {
  position: absolute;
  bottom: 0.9375em;
  right: 0;
  margin: 0 0.625em;
  min-height: 6.25em;
  background-color: var(--theme-light);
  font-family: 'Just Another Hand', cursive;
  text-transform: uppercase;
  border: solid 0.1875em rgba(0, 0, 0, .75);
  border-radius: 1.75em;
  padding: .2em 1.2em;
  box-sizing: border-box;
  width: 20.625em;
}

.question {
  display: block;
  position: absolute;
  right: 0.5625em;
  top: 0.5625em;
  width: 12.125em;
  margin: 0;
  font-weight: bold;
  font-style: italic;
  text-align: center;
}

.question:before {
  content: "Q.- "
}

.answer {
  margin: 0;
  transform: rotate(-180deg);
  display: inline-block;
  padding: 0;
  font-weight: bold;
  font-style: italic;
  text-align: center;
  position: absolute;
  bottom: 9px;
  right: 9px;
  width: 90px;
}

.answer:before {
  content: "A.- "
}

#triviadude {
  position: absolute;
  bottom: 5px;
  left: 10px;
  z-index: 3;
}

.printed {
  font-size: .7em;
  text-align: right;
  margin: .1em 0 0 0;
  position: absolute;
  bottom: 1px;
  right: 11px;
}