* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Josefin Sans", sans-serif;
}

body {
  background-image: url("img/body-background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header and multiplaer */

.main-header {
  background-image: url("img/header-background.jpg");
  background-repeat: no-repeat;
  background-size: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header-title {
  color: #e6db5e;
  padding: 0.6em;
  font-size: clamp(30px, 5vw, 50px);
  font-family: "Luckiest Guy";
  text-transform: uppercase;
  text-shadow: -10px 10px 10px black;
}

#header-play {
  border: 5px solid white;
  border-radius: 55px;
  background-color: #ffaf0a;
  box-shadow: 10px 10px 15px black;
  color: white;
  margin: 0.3em;
  padding: 0.6em;
  font-size: clamp(20px, 4vw, 40px);
  font-family: "Luckiest Guy";
  text-transform: uppercase;
  cursor: pointer;
  transition: all 500ms;
}

#header-play:hover {
  font-size: 50px;
  border-radius: 65px;
  background-color: #25f3ed;
  border: 5px solid #ff5055;
  color: #ff5055;
}

@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  #header-title {
    padding: 0.2em;
    text-align: center;
  }

  #header-play {
    margin: 0;
    font-size: 24px;
    padding: 0.5em 0.8em;
  }
}

.game-code {
  color: white;
  font-size: 30px;
}

.input-code {
  padding: 1em;
  font-size: 18px;
}

.join-game {
  padding: 1em;
  margin-right: 2em;
  font-size: 18px;
  cursor: pointer;
  text-transform: uppercase;
}

/* General Container */

.general-container {
  width: 1280px;
  max-width: 100%;
  margin: 1.5em auto;
  position: relative;
}

.roulette-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Escritorio */
.square-container {
  width: 800px;
  height: 800px;
  background-color: #e5e5e5;
  border-radius: 50%;
  border: 15px solid #481f0e;
  box-shadow: 0px 0px 15px black;
  position: relative;
  overflow: hidden;
  transition: 1s;
  margin: 2em auto;
}

.marker {
  width: 0;
  height: 0;

  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 120px solid white;

  position: absolute;

  top: 50%;
  left: calc(50% - 400px);

  transform: translateY(-50%);

  z-index: 10;
  cursor: pointer;
  background: transparent;
  border-radius: 7px;
}

/* TABLET */

@media (max-width: 850px) {
  .square-container {
    zoom: 0.85;
  }

  .marker {
    transform: translateY(-50%) scale(0.85);
  }
}

/* TABLET PEQUEÑA */

@media (max-width: 700px) {
  .square-container {
    zoom: 0.67;
  }

  .marker {
    left: -5%;
    transform: translateY(-50%) scale(0.7);
  }
}

/* SMARTPHONE */

@media (max-width: 500px) {
  .square-container {
    zoom: 0.5;
  }

  .marker {
    left: -5%;
    transform: translateY(-50%) scale(0.5);
  }
}

/* SMARTPHONE PEQUEÑO */

@media (max-width: 400px) {
  .square-container {
    zoom: 0.43;
  }

  .marker {
    left: -5%;
    transform: translateY(-50%) scale(0.43);
  }
}

/*
@media (max-width: 1200px) {
  .marker {
    left: 12%;
  }
}

@media (max-width: 1150px) {
  .marker {
    left: 10%;
  }
}

@media (max-width: 1050px) {
  .marker {
    left: 8%;
  }
}

@media (max-width: 990px) {
  .marker {
    left: 5%;
  }
}

@media (max-width: 920px) {
  .marker {
    left: 2%;
  }
}
  */

.standard {
  height: 51%;
  width: 453px;
  position: absolute;
  clip-path: polygon(100% 0, 50% 100%, 0 0);
  transform: translateX(-50%);
  transform-origin: bottom;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  font-family: sans-serif;
  color: #fff;
  left: 159px;
}

/* Imágenes de las rebanadas */
.standard img {
  opacity: 0.35;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

/* Imagen de la rebanada seleccionada */
.standard.selected img {
  opacity: 1;
  transform: scale(1.15);
  filter: brightness(1.25) drop-shadow(0 0 8px white);
}

.square-one {
  background-color: #0091fa;
  left: 49.8%;
}
.square-one-img {
  opacity: 40%;
  width: 40%;
  text-align: center;
}

.square-two {
  background-color: #fbfe65;
  transform: rotate(60deg);
}

.square-two-img {
  opacity: 40%;
  width: 40%;
  text-align: center;
}

.square-three {
  background-color: #ff747c;
  transform: rotate(120deg);
}

.square-three-img {
  opacity: 40%;
  width: 40%;
  text-align: center;
}

.square-four {
  background-color: #3fa154;
  transform: rotate(180deg);
}

.square-four-img {
  opacity: 40%;
  width: 40%;
  text-align: center;
}

.square-five {
  background-color: #fe79d9;
  transform: rotate(240deg);
}

.square-five-img {
  opacity: 40%;
  width: 40%;
  text-align: center;
}

.square-six {
  background-color: #f47111;
  transform: rotate(300deg);
}

.square-six-img {
  opacity: 40%;
  width: 40%;
  text-align: center;
}

.options-container {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 15px;
}

/*
.rules {
  background-color: #662a82;
  color: white;
  width: 260px;
  font-size: 28px;
  text-align: center;
  padding: 0.5em;
  font-style: italic;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 15px;
}
  */

.category-container {
  width: 180px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

@media (max-width: 600px) {
  .category-container {
    width: calc(50% - 10px);
  }

  .name-category {
    font-size: 15px;
  }

  .color-category {
    width: 35px;
    height: 25px;
    flex-shrink: 0;
  }
}

.color-category {
  width: 50px;
  height: 30px;
  border-radius: 10px;
  margin-right: 10px;
  border: 2px solid black;
}

.com {
  background-color: #0091fa;
}

.jug {
  background-color: #fbfe65;
}

.reg {
  background-color: #ff747c;
}

.his {
  background-color: #3fa154;
}

.fic {
  background-color: #fe79d9;
}

.cul {
  background-color: #f47111;
}

.name-category {
  font-size: 18px;
  font-family: "Chewy";
}

.category-container:nth-child(7n) {
  margin-left: 10px;
}

/* question container */

.question-container {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100dvh;
  z-index: 100;
  display: none;
}

.question {
  position: relative;
  background: transparent;
  z-index: 15;

  width: min(600px, 92vw);

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.question-header {
  width: 100%;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 5px 5px 10px -1px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: space-evenly;
}

.question-bar {
  width: 99%;
  height: 71px;
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 25;
  border-radius: 15px 0 0 15px;
  animation-name: desplazamiento;
  animation-duration: 20s;
}

@keyframes desplazamiento {
  from {
    width: 99%;
  }
  to {
    width: 0%;
  }
}

h2.category-name {
  font-size: clamp(20px, 5vw, 30px);
  font-family: "Chewy";
  text-transform: capitalize;
}

.question-body {
  margin-top: 1.5em;
}

.question-title {
  padding: 1em;
  border-radius: 25px 25px 0px 0px;
}

.question-title h3 {
  text-align: center;
  font-size: clamp(20px, 4vw, 26px);
  font-family: "Chewy";
  line-height: 1.2;
}

.answers-container {
  background-color: white;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 25px 25px;
  box-shadow: 7px 7px 6px rgba(0, 0, 0, 0.25);
}

.answer {
  padding: 0.7em;
  width: min(400px, 85%);
  margin: 0.7em auto;
  border-radius: 15px;
  text-align: center;
  font-size: clamp(18px, 4vw, 23px);
  font-family: "Chewy";
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 1s;
}

.answer:hover {
  background-color: #481f0e;
  color: white;
}

.countdown {
  font-size: 30px;
  font-family: "Chewy";
}

/* result container */

.result-container {
  width: min(300px, 80vw);
  min-height: 80px;
  height: auto;

  position: absolute;
  z-index: 30;

  top: 15%;
  left: 50%;
  transform: translateX(-50%);

  color: white;
  text-align: center;
  font-size: clamp(22px, 5vw, 28px);
  font-family: "Chewy";
  padding: 1em;
  border-radius: 15px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.player-alert {
  top: 1%;
  left: 39%;
}

.success-answer {
  background-color: #00c932;
}

.wrong-answer {
  background-color: #a80637;
}

/* player stats container */

.players-container {
  width: 100%;
  margin: 0.5em auto;
  display: flex;
  justify-content: space-between;
}

.player-stats-container {
  border-radius: 20px;
  border: 2px solid white;
  background-color: #ffaf0a;
  display: flex;
  width: 250px;
  margin: 0.5rem;
  padding: 0.5em;
  flex-direction: column;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.player-two {
  display: none;
}

.player-stats-container span {
  color: white;
  font-size: 20px;
  font-family: "Chewy";
  margin: 0.5em 0;
}

@media (max-width: 600px) {
  .players-container {
    justify-content: center;
  }

  .player-stats-container {
    width: min(250px, 90%);
    margin: 0.5rem auto;
  }

  .player-stats-container span {
    font-size: 17px;
    margin: 0.25em 0;
  }
}

.final-result-container {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 30;
  display: none;
}

.final-result {
  position: absolute;
  width: 100%;
  padding: 20px;
  font-size: clamp(50px, 15vw, 100px);
  font-family: "Luckiest Guy";
  color: white;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
