@font-face {
  font-family: "NotoSans-Black";
  src: url("../include/NotoSans-Black.ttf") format("truetype");
}

@font-face {
  font-family: "RobotoCondensed";
  src: url("../include/RobotoCondensed.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  src: url("../include/Roboto-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  src: url("../include/Oswald.ttf") format("truetype");
}

body {
  font-family: "NotoSans-Black";
  font-weight: bold;
  overflow: hidden;
  margin: 0;
  width: 1920px;
  height: 1080px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.12))
    drop-shadow(0 3px 1px rgba(0, 0, 0, 0.14))
    drop-shadow(0 1px 5px rgba(0, 0, 0, 0.12))
    drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.1));
  letter-spacing: 1;
  text-transform: uppercase;
  opacity: 0;
}

.anim_container_outer {
  position: absolute;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 1080px;
}

.anim_container_inner {
  position: absolute;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 1080px;
}

.container {
  color: var(--text-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  align-items: center;
}

.base_container_outer {
  overflow: hidden;
  width: 1000px;
  position: absolute;
  top: 16px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.base_container {
  position: absolute;
  color: var(--text-color);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  border-radius: var(--border-radius);
  align-items: center;
  width: 1000px;
  gap: 2px;
  left: 50%;
  transform: translateX(-50%);
  /* background: var(--bg-color); */
  overflow: hidden;
}

.fullwidth .base_container_outer {
  width: 100vw;
  top: 0;
  left: 0;
  transform: none;
}

.fullwidth .base_container {
  width: 100vw;
  border-radius: 0;
}

.base_container .line {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.mid_col {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  max-width: 1000px;
  padding: 0 16px;
  height: 92px;
  justify-content: space-evenly;
  box-sizing: border-box;
}

.fullwidth .mid_col {
  max-width: 100%;
}

.players {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.player.container {
  width: 100%;
  height: 42px;
  padding: 4px 4px;
}

.p1.container {
  background-position: 100% 0;
  left: 380px;
  flex-direction: row;
}

.p2.container {
  background-position: 0 0;
  flex-direction: row-reverse;
}

.name_twitter {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-direction: column;
  overflow: hidden;
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: flex-start;
}

.p2 .name_twitter {
  justify-content: flex-end;
}

.name_twitter .name {
  font-family: "Oswald";
  font-size: 36px;
  max-width: 100%;
}

.name_twitter .twitter {
  font-size: 14px;
}

.twitter_logo {
  -webkit-mask-image: url(./twitter.svg);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  background: var(--text-color);
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.light .twitter_logo {
  filter: invert(1);
}

.logo {
  position: absolute;
  top: 128px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background-image: url("../logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--border-radius);
  z-index: 9;
}

.info.container {
  left: 50%;
  padding-left: 20px;
  padding-right: 20px;
  background-position: center;
  text-transform: uppercase;
  box-sizing: border-box;
  font-size: 20px;
}

.info.container_inner {
  display: flex;
  width: 100%;
  font-size: inherit;
  justify-content: space-around;
}

.info.container_inner > div {
  flex-shrink: 0;
  text-align: center;
}

.info.container.top {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 36px;
  padding: 8px 8px;
}

.tournament_name {
  font-size: 18px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.info.container.bottom {
  top: 42px;
  left: 42px;
  display: flex;
  justify-content: center;
  height: unset;
  flex-direction: column;
  width: 280px;
  height: 64px;
  font-size: 20px;
  padding: 4px 10px;
}

.phase {
  font-size: 16px;
  width: 100%;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 1));
}

.phase .text {
  justify-content: left;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 1));
}

.match_best_of_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 20px 0px 20px;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 1));
}

.match {
  font-size: 17px;
  letter-spacing: 2px;
  width: 100%;
  text-align: center;
  opacity: 0.8;
}

.best_of {
  font-size: 25px;
  width: 100%;
  /* opacity: 0.8; */
  text-align: center;
  position: relative;
  margin-top: 5px;
}

.best_of::before {
  content: "";
  display: block;
  width: 110%; /* Make the line 10% longer than the div */
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  left: -5%; /* Center the longer line */
  /* top: -8px; Uncomment and adjust if needed */
}

.icon {
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: var(--border-radius);
  overflow: hidden;
  /* background: #3f3f46; */
}

.icon div:not(.text) {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.flags_container {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.p2 .flags_container {
  flex-direction: row-reverse;
}

.flag {
  display: inline-block;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 32px;
  height: 22px;
  border-radius: 4px;
}

.flagname {
  font-size: 14px;
  text-align: center;
}

.sponsor_icon > div > div {
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius);
}

.character_container {
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-shrink: 0;
  width: 500px;
  position: absolute;
  z-index: -999;
}

.fullwidth .character_container {
  width: 50%;
}

.tsh_character > div {
  opacity: 0.4;
}

.tsh_character::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--bg-color) 0,
    transparent 40%,
    transparent 60%,
    var(--bg-color) 100%
  );
  top: 0;
  left: 0;
}

.p1.character_container {
  left: 0;
}

.p1.character_container::after {
  position: absolute;
  content: "";
  left: 0px;
  top: 0px;
  height: 100%;
  width: 100%;
  background: linear-gradient(-90deg, transparent 50%, var(--bg-color));
  pointer-events: none;
}

.p2.character_container {
  right: 0;
}

.p2.character_container::after {
  position: absolute;
  content: "";
  left: 0px;
  top: 0px;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent 50%, var(--bg-color));
  pointer-events: none;
}

.p2 .tsh_character {
  transform: scaleX(-1);
}

.p1.character_container .icon {
  /* //background: var(--p1-score-bg-color); */
}

.p2.character_container .icon {
  /* //background: var(--p2-score-bg-color); */
}

.character_container > div {
  overflow: hidden;
}

.character_container > div {
  height: 100%;
  flex-direction: row;
  height: 92px;
}

.p2 .character_container > div {
  flex-direction: row-reverse;
}

.character_container > div > div {
  height: 100%;
}

.character_container > div > div {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 1;
}

.score {
  font-family: "Oswald";
  width: 54px;
  height: 54px;
  font-size: 40px;
  flex-grow: 0;
  flex-shrink: 0;
  overflow: hidden;
  margin-right: -4px;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 1));
}

.pronoun {
  font-size: 18px;
  text-transform: uppercase;
  margin-left: 6px;
  margin-right: 6px;
  letter-spacing: normal;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 6px;
  color: var(--bg-color);
  place-self: flex-end;
  transform: translateY(-50%);
  font-family: 'RobotoCondensed';
}

.p1 .score {
  color: var(--p1-sponsor-color);
}

.sponsor {
  margin-right: 6px;
  font-weight: normal;
}

.p1 .sponsor {
  color: var(--p1-sponsor-color);
}

.p1 .pronoun {
  background-color: var(--p1-sponsor-color);
}

.p2 .score {
  color: var(--p2-sponsor-color);
}

.p2 .sponsor {
  color: var(--p2-sponsor-color);
}

.p2 .pronoun {
  background-color: var(--p2-sponsor-color);
}

.losers {
  display: inline-flex;
  width: 30px;
  height: 30px;
  font-size: 22px;
  border-radius: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.p1 .losers {
  background: #ff3837ff;
}

.p2 .losers {
  background: #308affff;
}

.team_names {
  padding: 0 8px;
  font-size: 16px;
}
