*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: Montserrat, sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
}

html,
body,
#root {
  margin: 0;
  padding: 0;
}

body {
  background-color: #1a1a1a;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.title {
  width: 100%;
  text-align: center;
}

.start-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.start-screen h2 {
  text-align: center;
  font-weight: 600;
}

.start-screen .competition {
  max-width: 70%;
  margin-top: 20px;
}

.start-screen button {
  width: fit-content;
  padding: 10px 50px;
  border-radius: 5px;
  background-color: #5bad00;
  color: #fff;
  font-size: 1.6em;
  font-weight: 600;
  transition: all 0.3s ease-out;
  margin-top: 40px;
}

.description {
  margin-top: 10px;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
}

#descImgTest {
  display: none;
}

#round-info {
  font-size: 1.2em;
  text-align: center;
  margin-top: 20px;
}

#pair-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

#pair-container .vs {
  width: 50px;
  user-select: none;
}

@media (max-width: 800px) {
  #pair-container {
    margin-top: 70px;
  }
}

@media (max-width: 600px) {
  #pair-container {
    flex-direction: column;
    margin-top: 30px;
  }

  #pair-container .girl {
    width: 100%;
    max-width: 70%;
  }

  #pair-container .girl:hover {
    transform: none;
  }
}

.girl {
  cursor: pointer;
  aspect-ratio: 1/1;
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  background-repeat: no-repeat;
  overflow: hidden;
  max-width: 50%;
  transition: all 0.3s ease-out;
  position: relative;
  box-shadow: 0 0 15px 5px rgb(255 255 255 / 30%);
}

.girl::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 40%;
  top: 50%;
  left: 80%;
  transform: translate(-50%, -50%);

  animation: tap 15s forwards infinite;
  background: url("./assets/tap.gif") center / contain no-repeat;
}

.girl.selected::after {
  display: none;
}

@keyframes tap {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  49% {
    opacity: 0;
    visibility: hidden;
  }
  50% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.girl.winner {
  position: relative;
  margin-bottom: 60px;
  overflow: visible;
}

.girl.winner::after {
  display: none;
}

.girl.winner::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  background: url("./assets/arrow.png") no-repeat center / cover;
  height: 70px;
  width: 50px;
  bottom: -90px;
}

.girl:hover {
  transform: scale(1.02);
}

#greeting {
  font-size: 1.4em;
  margin-top: 20px;
}

.poll-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  margin-top: 40px;
  gap: 5px;
  width: 100%;
}

.poll-container h1 {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.poll-container p {
  text-align: center;
  font-size: 1.2em;
  font-weight: 500;
  width: 100%;
  margin-top: 20px;
}

.buttons-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}

.buttons-container button {
  width: fit-content;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #3e887e;
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
  transition: all 0.3s ease-out;
}

.loader-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-container img {
  width: 100px;
}

.cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta a {
  width: fit-content;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #5e974c;
  color: #fff;
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: 500;
  transition: all 0.3s ease-out;
}