/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
@import "https://ga.jspm.io/npm:swiper@7.4.1/swiper-bundle.min.css";

body {
  margin: 0 auto;
  overflow-x: hidden;
}

ul {
  margin-top: 0;
}

.match {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100vh;
  justify-content: space-evenly;
}

.participant {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.participant > div {
  text-align: center;
  font-size: 10em;
  color: green;
}

.winner--hidden {
  display: none;
}

.participant__sprites {
  display: flex;
  align-items: center;
}

.participant--left .participant__sprites {
  flex-direction: row-reverse;
}

.participant--right .participant__sprites {
  flex-direction: row;
}

.participant__sprites > div[style] {
  background-repeat: no-repeat;
  background-size: contain;
  width: 25vw;
  height: 75vh;
}

.participant--left .participant__sprites > div[style] {
  background-position: center;
}

.participant--right .participant__sprites > div[style] {
  background-position: center;
}

.participant__chain {
  display: flex;
  flex-direction: column;
  margin: 0 1rem;
  justify-content: center;
}

.participant__chain > div[style] {
  background-repeat: no-repeat;
  background-size: contain;
  width: 10vw;
  height: 25vh;
}

.participant--left .participant__chain > div[style] {
  background-position: right;
}

.participant--right .participant__chain > div[style] {
  background-position: left;
}

.match__text {
  font-family: "Comic Sans MS", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem;
}

.participant__name {
  font-family: "Comic Sans MS", sans-serif;
  font-size: 2.5rem;
  margin: 0;
  text-align: center;
}

.participant__text {
  font-family: "Comic Sans MS", sans-serif;
  font-size: 1rem;
  margin: 0;
}

.participant__text-container > ul + p {
  border-top: 1px dotted;
}

.participant__text--0 {
  background: linear-gradient(to right, blue, red);
  color: white;
}

.participant__text--1 {
  background-color: yellow;
  color: black;
}

.swiper-pagination {
  font-family: "Comic Sans MS", sans-serif;
  font-size: 1rem;
  top: 1rem;
  left: 1rem;
  bottom: unset;
  text-align: unset;
}

.controls {
  position: absolute;
  left: 5rem;
  top: 1rem;
  z-index: 20; /* above swiper-pagination */
  display: flex;
  gap: 0.25rem;
}

@media (max-width: 500px) and (orientation: portrait) {
  .match {
    flex-direction: column;
    justify-content: center;
  }

  .participant__sprites > div[style] {
    background-repeat: no-repeat;
    background-size: contain;
    width: 90vw;
    height: 40vh;
  }

  .participant--left .participant__sprites > div[style] {
    background-position: bottom;
  }

  .participant--right .participant__sprites > div[style] {
    background-position: top;
  }

  .participant__chain {
    display: none;
  }

  .participant__name {
    display: none;
  }

  .participant__text-container {
    display: none;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .participant__name {
    font-size: 2rem;
  }

  .participant__text-container {
    display: none;
  }
}
