@font-face {
  font-family: 'New Gothic Textura';
  font-style: normal;
  font-weight: normal;
  src: url('/fonts/New_Gothic_Textura.ttf') format('truetype');
}

@font-face {
  font-family: 'Serpentine';
  font-style: italic;
  font-weight: bold;
  src: url('/fonts/Serpentine_BoldItalic.ttf') format('truetype');
}

.display-gothic-text,
.featured-fight-robot-name,
.overlay-robot-name {
  color: #D80400;
  font-family: 'New Gothic Textura', serif;
  -webkit-text-stroke: 4px #ffffff;
  paint-order: stroke fill;
}

.display-accent,
.featured-fight-vs,
.featured-fight-matchup-info,
.overlay-phase {
  color: #a4ddfa;
  -webkit-text-stroke: 1px #2b6c8d;
}

.display-accent-border,
.featured-fight-robot-image,
.featured-fight-robot-image-placeholder,
.overlay-entrant-image,
.overlay-entrant-image-placeholder {
  border: 2px solid #a4ddfa;
  box-shadow: 0 0 15px #a4ddfa;
}

.featured-fight-matchup-info,
.overlay-phase {
  font-family: 'Serpentine', serif;
  font-size: 1.2em;
  text-transform: uppercase;
}

.overlay-phase {
  font-size: calc(1.2em * var(--scale, 1));
}

.navbar-brand {
  font-family: 'Serpentine', serif;
  text-transform: uppercase;
}

.display-title {
  -webkit-text-stroke: 5px #ffffff;
  color: #D80400;
  flex-shrink: 0;
  font-family: 'New Gothic Textura', serif;
  font-style: normal;
  height: 10em;
  justify-content: center;
  paint-order: stroke fill;
  position: relative;
  text-align: center;
  width: 10em;
}

.display-title::before {
  background-image: url('/sawblade.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 8em;
  inset: 0;
  margin: auto;
  position: absolute;
  width: 8em;
  z-index: -1;
}

.display-title em {
  font-size: 1.1em;
  font-style: italic;
  left: 1.6em;
  position: absolute;
  text-transform: uppercase;
  top: 2.4em;
}

.display-title em::first-letter {
  display: inline-block;
  font-size: 2em;
  padding-right: 0.12em;
  vertical-align: -0.3em;
}

.display-title span {
  font-size: 0.5em;
  left: 8em;
  position: absolute;
  top: 9.5em;
}

.display-title strong, .featured-fight h2 strong {
  -webkit-background-clip: text;
  background-clip: text;
  background-image: repeating-linear-gradient(140deg, #a4ddfa 0, #fff 5%, #a4ddfa 10%);
  color: #ffffff;
  font-family: 'Serpentine', serif;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #2b6c8d;
  text-transform: uppercase;
}

.display-title strong, .featured-fight.vs h2 strong {
  transform: rotate(-10deg) skewX(-15deg) scaleX(0.5);
}

.display-title strong {
  font-size: 3em;
  left: -1.8em;
  padding: 0.2em 0.4em;
  position: absolute;
  top: 1.4em;
}

.featured-fight {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 3px solid #a4ddfa;
  position: relative;
}

.featured-fight h2 strong {
  display: inline-block;
  font-size: 3em;
  padding: 0.2em 0.4em;
  width: fit-content;
  position: relative;
}

.featured-fight.vs .featured-fight-overlay {
  font-size: 1em;
  min-height: 20em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-fight.vs h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1em;
  width: 20em;
  height: 20em;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-fight.vs h2 strong {
  display: relative;
  font-size: 5em;
  padding: 0.2em 0.4em;
  width: fit-content;
  z-index: 3;
  white-space: nowrap;
  top: -0.9em;
}

.featured-fight.vs h2::before {
  background-image: url('/sawblade.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 14em;
  inset: 0;
  margin: auto;
  position: absolute;
  width: 14em;
  z-index: 1;
}

.featured-fight-container {
  width: 100%;
  z-index: 2;
}

.featured-fight-container div {
  z-index: 2;
}

.featured-fight-robot-image, .featured-fight-robot-image-placeholder {
  background: linear-gradient(135deg, #444444 0%, #666666 100%);
  border: 2px solid #a4ddfa;
  border-radius: 8px;
  box-shadow: 0 0 15px #a4ddfa;
  height: 10em;
  object-fit: cover;
  width: 10em;
}

.featured-fight-robot-image-placeholder {
  align-items: center;
  background: linear-gradient(135deg, #444444 0%, #666666 100%);
  display: flex;
  justify-content: center;
}

.featured-fight-robot-image-placeholder span {
  color: #aaaaaa;
  font-size: 0.9em;
}

.featured-fight-robot-name {
  color: #D80400;
  font-family: 'New Gothic Textura', serif;
  font-size: 1.5em;
  width: 8em;
  height: 3em;
  -webkit-text-stroke: 4px #ffffff;
  paint-order: stroke fill;
}

.featured-fight-vs {
  color: #a4ddfa;
  font-family: 'Serpentine', serif;
  font-size: 1.5em;
  text-transform: uppercase;
  -webkit-text-stroke: 2px #2b6c8d;
  position: relative;
  z-index: 2;
}

.featured-fight.vs .featured-fight-vs {
  margin-top: 2em;
}

.featured-fight-matchup-info {
  color: #a4ddfa;
  font-size: 1.25em;
}

.overlay-body {
  background: rgba(0, 0, 0, 0);
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.overlay-logo {
  position: absolute;
  top: calc(2rem * var(--scale, 1));
  right: calc(2rem * var(--scale, 1));
  width: calc(8rem * var(--scale, 1));
  height: calc(8rem * var(--scale, 1));
  background-image: url('/logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
}

.overlay-logo[data-visible="false"] {
  display: none;
}

.overlay-sponsor {
  position: absolute;
  top: calc(11rem * var(--scale, 1));
  right: calc(2rem * var(--scale, 1));
  width: calc(8rem * var(--scale, 1));
  height: calc(2rem * var(--scale, 1));
  background-image: url('/sponsor.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
}

#overlay-content-wrapper {
  height: 100%;
}

.overlay-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.overlay-info {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(2rem * var(--scale, 1));
}

#overlay-content-wrapper[data-display-round="false"] .overlay-info {
  display: none;
}

.overlay-phase {
  color: #a4ddfa;
  font-family: Serpentine, Arial, sans-serif;
  font-size: calc(1.2em * var(--scale, 1));
  text-transform: uppercase;
  text-align: center;
}

.overlay-matchup-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(2rem * var(--scale, 1));
  gap: calc(2rem * var(--scale, 1));
  min-height: 25rem;
}

#overlay-content-wrapper[data-display-entrants="false"] .overlay-matchup-container {
  display: none;
}

.overlay-matchup-container.two-entrants {
  justify-content: space-between;
  padding-left: calc(4rem * var(--scale, 1));
  padding-right: calc(4rem * var(--scale, 1));
}

.overlay-entrant {
  display: flex;
  flex-direction: column;
  gap: calc(1rem * var(--scale, 1));
}

.overlay-entrant.mirror {
  flex-direction: column-reverse;
}

.overlay-robots {
  display: flex;
  flex-direction: column-reverse;
  gap: calc(0.5rem * var(--scale, 1));
  align-items: flex-start;
}

.overlay-entrant.mirror .overlay-robots {
  align-items: flex-end;
}

.overlay-entrant.mirror .overlay-robots {
  flex-direction: column;
}

.overlay-matchup-container:not(.two-entrants) .overlay-robot {
  flex-direction: column-reverse;
  align-items: center;
}

.overlay-matchup-container:not(.two-entrants) .overlay-robots {
  flex-direction: column-reverse;
  align-items: center;
}

.overlay-robot {
  display: flex;
  align-items: center;
  gap: calc(1rem * var(--scale, 1));
  min-height: calc(10rem * var(--scale, 1));
}

.overlay-entrant.mirror .overlay-robot {
  flex-direction: row-reverse;
}

.overlay-robot-image {
  width: calc(10rem * var(--scale, 1));
  height: calc(10rem * var(--scale, 1));
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #a4ddfa;
  border-radius: 8px;
  box-shadow: 0 0 15px #a4ddfa;
  background: linear-gradient(135deg, #444444 0%, #666666 100%);
}

.overlay-robot-image-placeholder {
  width: calc(10rem * var(--scale, 1));
  height: calc(10rem * var(--scale, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #a4ddfa;
  border-radius: 8px;
  box-shadow: 0 0 15px #a4ddfa;
  background: linear-gradient(135deg, #444444 0%, #666666 100%);
  font-size: calc(0.8em * var(--scale, 1));
  color: #a4ddfa;
}

.overlay-robot-name {
  font-size: calc(1.4em * var(--scale, 1));
  max-width: calc(12rem * var(--scale, 1));
  text-align: center;
  word-break: break-word;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.action-buttons > * {
  flex: 0 0 5.5rem;
  margin: 0;
}

.action-buttons .btn {
  width: 100%;
}

.action-buttons-wide > * {
  flex-basis: 8.5rem;
}

@media (max-width: 575.98px) {
  .action-buttons {
    max-width: 11.25rem;
  }

  .action-buttons-wide {
    max-width: 8.5rem;
  }
}
