﻿.match-screen img {
  max-width: 150px;
  display: block;
  margin: 0 auto;
  margin-bottom: 25px;
}
.match-screen > div.match-content {
  flex: 1;
  align-content: center;
  width: 80%;
}
.match-screen > div.match-content .match-buttons {
  display: flex;
}
.match-screen > div.match-content .match-buttons--right {
  justify-content: flex-end;
}
.match-screen > div.match-content .player-name {
  font-size: 48px;
  filter: drop-shadow(2px 2px 2px #000);
  display: flex;
}
.match-screen > div.match-content .player-name--right {
  justify-content: flex-end;
}
.match-screen .current-score {
  font-size: 128px;
  filter: drop-shadow(2px 2px 2px #000);
  text-align: center;
  border: 5px solid #F888D8;
  background-color: rgba(248, 136, 216, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.winner-screen > div {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 50px;
  flex-direction: column;
  flex: 1;
}
.winner-screen > div span {
  font-size: 48px;
  color: #fff;
  filter: drop-shadow(2px 2px 2px #F888D8);
  margin-bottom: 25px;
  animation: blinker 1s linear infinite;
}
.winner-screen > div img {
  max-width: 400px;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}
@keyframes firework {
  0% {
    transform: translate(var(--x), var(--initialY));
    width: var(--initialSize);
    opacity: 1;
  }
  50% {
    width: 0.5vmin;
    opacity: 1;
  }
  100% {
    width: var(--finalSize);
    opacity: 0;
  }
}
.fireworks {
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
}

.firework,
.firework::before,
.firework::after {
  --initialSize: 0.5vmin;
  --finalSize: 45vmin;
  --particleSize: 0.2vmin;
  --color1: yellow;
  --color2: khaki;
  --color3: white;
  --color4: lime;
  --color5: gold;
  --color6: mediumseagreen;
  --y: -30vmin;
  --x: -50%;
  --initialY: 60vmin;
  content: "";
  animation: firework 2s infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, var(--y));
  width: var(--initialSize);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 50% 0%, radial-gradient(circle, var(--color2) var(--particleSize), rgba(0, 0, 0, 0) 0) 100% 50%, radial-gradient(circle, var(--color3) var(--particleSize), rgba(0, 0, 0, 0) 0) 50% 100%, radial-gradient(circle, var(--color4) var(--particleSize), rgba(0, 0, 0, 0) 0) 0% 50%, radial-gradient(circle, var(--color5) var(--particleSize), rgba(0, 0, 0, 0) 0) 80% 90%, radial-gradient(circle, var(--color6) var(--particleSize), rgba(0, 0, 0, 0) 0) 95% 90%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 90% 70%, radial-gradient(circle, var(--color2) var(--particleSize), rgba(0, 0, 0, 0) 0) 100% 60%, radial-gradient(circle, var(--color3) var(--particleSize), rgba(0, 0, 0, 0) 0) 55% 80%, radial-gradient(circle, var(--color4) var(--particleSize), rgba(0, 0, 0, 0) 0) 70% 77%, radial-gradient(circle, var(--color5) var(--particleSize), rgba(0, 0, 0, 0) 0) 22% 90%, radial-gradient(circle, var(--color6) var(--particleSize), rgba(0, 0, 0, 0) 0) 45% 90%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 33% 70%, radial-gradient(circle, var(--color2) var(--particleSize), rgba(0, 0, 0, 0) 0) 10% 60%, radial-gradient(circle, var(--color3) var(--particleSize), rgba(0, 0, 0, 0) 0) 31% 80%, radial-gradient(circle, var(--color4) var(--particleSize), rgba(0, 0, 0, 0) 0) 28% 77%, radial-gradient(circle, var(--color5) var(--particleSize), rgba(0, 0, 0, 0) 0) 13% 72%, radial-gradient(circle, var(--color6) var(--particleSize), rgba(0, 0, 0, 0) 0) 80% 10%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 95% 14%, radial-gradient(circle, var(--color2) var(--particleSize), rgba(0, 0, 0, 0) 0) 90% 23%, radial-gradient(circle, var(--color3) var(--particleSize), rgba(0, 0, 0, 0) 0) 100% 43%, radial-gradient(circle, var(--color4) var(--particleSize), rgba(0, 0, 0, 0) 0) 85% 27%, radial-gradient(circle, var(--color5) var(--particleSize), rgba(0, 0, 0, 0) 0) 77% 37%, radial-gradient(circle, var(--color6) var(--particleSize), rgba(0, 0, 0, 0) 0) 60% 7%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 22% 14%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 45% 20%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 33% 34%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 10% 29%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 31% 37%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 28% 7%, radial-gradient(circle, var(--color1) var(--particleSize), rgba(0, 0, 0, 0) 0) 13% 42%;
  background-size: var(--initialSize) var(--initialSize);
  background-repeat: no-repeat;
}

.firework::before {
  --x: -50%;
  --y: -50%;
  --initialY: -50%;
  /*   transform: translate(-20vmin, -2vmin) rotate(40deg) scale(1.3) rotateY(40deg); */
  transform: translate(-50%, -50%) rotate(40deg) scale(1.3) rotateY(40deg);
  /*   animation: fireworkPseudo 2s infinite; */
}

.firework::after {
  --x: -50%;
  --y: -50%;
  --initialY: -50%;
  /*   transform: translate(44vmin, -50%) rotate(170deg) scale(1.15) rotateY(-30deg); */
  transform: translate(-50%, -50%) rotate(170deg) scale(1.15) rotateY(-30deg);
  /*   animation: fireworkPseudo 2s infinite; */
}

.firework:nth-child(2) {
  --x: 30vmin;
}

.firework:nth-child(2),
.firework:nth-child(2)::before,
.firework:nth-child(2)::after {
  --color1: pink;
  --color2: violet;
  --color3: fuchsia;
  --color4: orchid;
  --color5: plum;
  --color6: lavender;
  --finalSize: 40vmin;
  left: 30%;
  top: 60%;
  animation-delay: -0.25s;
}

.firework:nth-child(3) {
  --x: -30vmin;
  --y: -50vmin;
}

.firework:nth-child(3),
.firework:nth-child(3)::before,
.firework:nth-child(3)::after {
  --color1: cyan;
  --color2: lightcyan;
  --color3: lightblue;
  --color4: PaleTurquoise;
  --color5: SkyBlue;
  --color6: lavender;
  --finalSize: 35vmin;
  left: 70%;
  top: 60%;
  animation-delay: -0.4s;
}

.cs-toast {
  display: none;
  padding: 1.5rem;
  color: #fff;
  z-index: 999;
  position: fixed;
  width: 25rem;
  top: 2rem;
  filter: drop-shadow(2px 2px 2px #000);
  border-radius: 10px;
  right: 2rem;
}
.cs-toast-visible {
  display: flex;
  flex-direction: row;
  animation: fadein 1.5s;
}

.cs-toast-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-left: 1rem;
}
.cs-toast-body p {
  margin: 0;
}

.bg-info {
  background-color: rgba(248, 136, 216, 0.8);
}

.bg-warning {
  background-color: rgba(255, 255, 0, 0.8);
  color: #000;
}

.bg-error {
  background-color: rgba(255, 255, 0, 0.8);
  color: #000;
}

.bg-success {
  background-color: rgba(0, 128, 0, 0.8);
  color: #000;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.live-scores .match-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  align-content: center;
  width: 80%;
}
.live-scores .match-content .live-scores-waiting {
  font-size: 38px;
}
.live-scores .match-content img {
  max-width: 150px;
  display: block;
  margin: 0 auto;
  margin-bottom: 25px;
}
.live-scores .match-content .match-buttons {
  display: flex;
}
.live-scores .match-content .match-buttons--right {
  justify-content: flex-end;
}
.live-scores .match-content .player-name {
  font-size: 64px;
  filter: drop-shadow(2px 2px 2px #000);
  display: flex;
}
.live-scores .match-content .player-name--right {
  justify-content: flex-end;
}
.live-scores .match-content .current-score {
  font-size: 128px;
  filter: drop-shadow(2px 2px 2px #000);
  text-align: center;
  border: 5px solid #F888D8;
  background-color: rgba(248, 136, 216, 0.5);
  padding: 20px;
  border-radius: 10px;
  width: 100%;
}

html, body, #app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background-image: url("/img/background.jpg");
  background-size: cover;
  background-position: bottom center;
  font-family: "Orbitron", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
}

button {
  font-family: "Orbitron", sans-serif;
  font-weight: 400;
  font-style: normal;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  max-height: 100vh;
}

footer {
  flex: 0;
  display: flex;
}
footer > .nav-link {
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-transform: uppercase;
  flex: 1;
  font-size: 32px;
  color: #fff;
  padding: 25px;
  filter: drop-shadow(2px 2px 2px #000);
  -webkit-text-stroke: 2px #F888D8;
  animation: fadeIn 1s;
  letter-spacing: 3px;
  transition: ease-in-out 0.2s;
  text-align: left;
}
footer > .nav-link:last-child {
  text-align: right;
}
footer > .nav-link:hover {
  color: #fff;
  -webkit-text-stroke: 2px rgb(240.9166666667, 15.5833333333, 176.5357142857);
  animation: fadeIn 1s;
  transition: ease-in-out 0.2s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Yellowtail", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}

h1 {
  text-align: center;
  padding: 25px;
}

#app > div:not(.animate__fadeOutDown):not(.cs-toast) {
  height: 100%;
}

.btn.btn-grey {
  background-color: #D9D9D9;
  color: #F888D8;
  border: 2px solid #000;
  filter: drop-shadow(2px 2px 2px #000);
  font-size: 40px;
  line-height: 25px;
  width: 45px;
  height: 45px;
  text-align: center;
}
.btn.btn-grey:first-of-type {
  margin-right: 10px;
}
.btn.btn-grey:hover {
  background-color: #F888D8;
  color: #000;
}
.btn:focus {
  outline: none;
  box-shadow: none;
}

.main-contents {
  display: flex;
  height: 100%;
  flex-direction: column;
}
.main-contents main {
  flex: 1;
  align-items: center;
  justify-content: start;
}

.top-scores {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.top-scores .top-score {
  width: 90%;
  align-items: center;
  justify-content: end;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  animation: slide-in 0.5s forwards;
  position: relative;
  transform: translateX(-100%);
  text-shadow: rgba(248, 136, 216, 0.9) 0px 0px 4px;
  filter: drop-shadow(2px 2px 2px #000);
}
.top-scores .top-score strong {
  font-size: 36px;
  margin-right: 20px;
  letter-spacing: 3px;
}
.top-scores .top-score span {
  color: #000;
  font-size: 24px;
  padding-right: 25px;
}
.top-scores .top-score:nth-child(1) {
  animation-delay: 0.2s;
}
.top-scores .top-score:nth-child(2) {
  animation-delay: 1.2s;
  margin-left: -25%;
}
.top-scores .top-score:nth-child(2) .star {
  background-image: url("/img/silver.png");
}
.top-scores .top-score:nth-child(3) {
  animation-delay: 2.2s;
  margin-left: -50%;
}
.top-scores .top-score:nth-child(3) .star {
  background-image: url("/img/bronze.png");
}
.top-scores .top-score__player {
  position: relative;
}

.star {
  background-image: url("/img/gold.png");
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0px;
  right: -40px;
  background-size: contain;
  background-repeat: no-repeat;
}

@keyframes slide-in {
  from {
    transform: translateX(-100%); /* Start off-screen to the left */
  }
  to {
    transform: translateX(0); /* End at the original position */
  }
}
.score-table {
  border: 10px solid #F888D8;
  background-color: rgba(248, 136, 216, 0.4);
  padding: 10px;
  border-radius: 10px;
  filter: drop-shadow(2px 2px 2px #000);
  margin-top: 25px;
  width: 100%;
  margin-top: 50px;
}
.score-table > table {
  width: 100%;
  border-collapse: collapse;
}

.animated {
  opacity: 0;
  animation: show-table 0.2s ease-in-out forwards;
  animation-delay: 3s;
}

/* Add the following CSS animation to show the table after 3 seconds */
@keyframes show-table {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
th {
  font-size: 24px;
  padding: 10px;
  border-bottom: 2px solid #fff;
  letter-spacing: 3px;
}

td {
  font-size: 24px;
  padding: 10px;
  border-bottom: 2px solid #fff;
  text-align: center;
}

td:nth-child(2) {
  /*text-align: left;*/
  color: black;
}

.loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
}
.loading .loading-wrapper {
  overflow: hidden;
  height: 500px;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}
.loading .loading-wrapper h2 {
  color: rgb(209, 0, 177);
  display: block;
  font-family: "Yellowtail", cursive;
  font-size: 80px;
  position: absolute;
  text-shadow: 0 0 1px rgb(209, 0, 177), 0 -3px 3px rgba(255, 255, 255, 0.8), 0 3px 3px rgba(0, 0, 0, 0.5), 0 0 15px rgb(209, 0, 177), 0 0 45px rgba(209, 0, 177, 0.8);
  text-align: center;
  text-decoration: underline;
  text-transform: none;
  top: 25%;
  left: 50%;
  transform: skew(-10deg) rotate(-10deg) translate(-50%, -50%);
  z-index: 11;
}
.loading .loading-wrapper .logo-triangle {
  animation: dash 3s infinite forwards;
  fill: url(#grad1);
  filter: url(#dropshadow);
  position: absolute;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
}

.logo-wrapper {
  height: 200px;
  width: 400px;
  overflow: hidden;
  perspective: 1200px;
}
.logo-wrapper h1 {
  color: #C6CBF5;
  font-family: "Orbitron", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  font-weight: 1000;
  line-height: 1.2;
  left: 50%;
  margin: 0;
  margin-left: -125px;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  top: 20px;
  z-index: 11;
  background: -webkit-linear-gradient(top, #151C60, #C6CBF5 40%, black 40%, #E1A0CE 65%, white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: white;
}
.logo-wrapper h2 {
  color: rgb(209, 0, 177);
  display: block;
  font-family: "Yellowtail", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  font-size: 60px;
  margin-top: 50px;
  position: absolute;
  text-shadow: 0 0 1px rgb(209, 0, 177), 0 -3px 3px rgba(255, 255, 255, 0.8), 0 3px 3px rgba(0, 0, 0, 0.5), 0 0 15px rgb(209, 0, 177), 0 0 45px rgba(209, 0, 177, 0.8);
  text-align: center;
  text-decoration: underline;
  text-transform: none;
  transform: skew(-10deg) rotate(-10deg);
  top: 20px;
  width: 100%;
  z-index: 11;
}
.logo-wrapper .logo-triangle {
  animation: dash 6s infinite forwards;
  fill: url(#grad1);
  filter: url(#dropshadow);
  left: 50%;
  margin-left: -100px;
  position: absolute;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  top: 30px;
  z-index: 8;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}
.paginator .paginator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0.5rem 1rem;
}
.paginator .paginator nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin: auto;
}
.paginator .paginator nav .go-first::before {
  content: "<<";
  font-size: 16px;
}
.paginator .paginator nav .go-previous::before {
  content: "<";
  font-size: 16px;
}
.paginator .paginator nav .go-next::before {
  content: ">";
  font-size: 16px;
}
.paginator .paginator nav .go-last::before {
  content: ">>";
  font-size: 16px;
}
.paginator .paginator nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: white;
}
.paginator .paginator nav .pagination-text {
  display: inline-block;
  padding: 0 0.25rem;
}
.paginator .paginator .summary {
  flex: 0 0 auto;
  text-align: left;
}

.home-game-selector {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.home-game-selector li {
  padding: 0;
  margin-bottom: 20px;
}
.home-game-selector .game-type-list {
  display: flex;
}
.home-game-selector .game-type-list .game-type-item {
  border: 2px solid transparent;
  border-radius: 10px;
  height: 80px;
  width: 100px;
  display: flex;
  align-items: center;
}
.home-game-selector .game-type-list .game-type-item.game-type-item--active {
  border: 2px solid #fff;
}
.home-game-selector .game-type-list .game-type-item:hover {
  border: 2px solid #F888D8;
}
.home-game-selector .game-type-list .game-type-item img {
  width: 100px;
  height: 80px;
  margin: 0 auto;
  display: block;
}
